/gh-issues:gh-issuesfrom gh-issues
Reads, creates, edits, closes and labels a single GitHub issue with gh, including issue types, sub-issues, blocked-by links, milestones, Projects V2 fields and issue search. Use when the user wants to file or update one issue, set its type, parent, labels or project field, or find issues by query. Not for Forgejo or Codeberg remotes (`forgejo-cli`).
Ships in gh-issues. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Make issue changes through gh. Reads run freely. Every write needs the user's approval first.
Not for turning a plan or spec into many linked issues (issue-breakdown) or classifying and routing an existing backlog (gh-triage).
Before any command, check the repo's host (git remote get-url origin, or the -R target). Proceed when it is github.com or a host gh auth status --hostname <host> knows. Otherwise stop: "not a GitHub remote; on Forgejo or Codeberg use forgejo-cli if installed".
Creating, editing, closing, reopening, commenting, labeling, transferring, and changing project fields all change shared state.
Pass -R OWNER/REPO when the repo isn't the current directory's. gh api has no -R flag, so write the owner and repo into the path (the {owner} and {repo} placeholders fill from the current directory only).
Run gh --version. Native flags for issue types, sub-issues, and dependencies (--type, --parent, --add-sub-issue, --blocked-by, --add-blocked-by) arrived in gh 2.94.0. Below that, gh issue create has no --type and the same relationships need gh api (api fallback). Confirm any flag with gh issue create --help or gh issue edit --help before relying on it, because flags added since this skill was checked (gh 2.102.0) may exist.
gh issue view 123 --comments
gh issue view 123 --json number,title,state,stateReason,labels,issueType,parent,subIssuesSummary,blockedBy,blocking,milestone,assignees
gh issue list --state open --label bug --limit 50 --json number,title,labels,updatedAt
gh issue list --type Bug --search "no:assignee sort:updated-asc"
gh issue list returns 30 rows by default, so pass --limit whenever a count or an absence matters. For cross-repo or qualifier-heavy queries, read search.
gh issue list --state all --search "<keywords>" --limit 20. If one exists, offer to comment on it instead.gh label list --limit 1000, and the org's issue types through the api fallback..github/ISSUE_TEMPLATE/) with --template "<name>". Otherwise use a body from templates.gh issue create --title "Login fails with SSO enabled" --type Bug \
--label "bug" --assignee "@me" --milestone "v2.0" \
--body-file /tmp/issue-body.md
An issue type replaces a category label such as bug when the org has types configured, so use one or the other. Put the type in --type, not in a [Bug] title prefix. Keep titles specific and under about 72 characters. Write multi-line bodies to a file and pass --body-file, which avoids shell quoting problems.
gh issue create also takes --parent <number|url>, --blocked-by <numbers>, and --blocking <numbers>. Use them to link at creation time.
gh issue edit 123 --add-label "needs-info" --remove-label "needs-triage"
gh issue edit 123 --type Task --milestone "v2.0"
gh issue edit 123 --add-sub-issue 124,125
gh issue edit 124 --parent 123
gh issue edit 124 --add-blocked-by 120
gh issue comment 123 --body-file /tmp/comment.md
gh issue close 123 --reason "not planned" --comment "Out of scope because ..."
gh issue close 123 --duplicate-of 120
gh issue reopen 123
Fetch the issue before editing so unchanged fields stay as they are. --body replaces the whole body, so read the current body and edit it rather than overwriting it. gh issue delete and gh issue transfer are hard to undo. Use them only when the user names them.
state_reason or another REST-only field, or when a native flag fails. Holds the integer-ID and zsh traps.The metadata calls here need repo scope. Project writes need the project scope: gh auth refresh -s project.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin gh-issues