Create structured GitHub issues via gh CLI using type-specific templates (bug, feat, refactor, doc, perf, security). Use when filing bugs, requesting features, tracking work, opening tickets, or any intent to create a GitHub issue — even implicit phrases like "track this" or "file this".
Ships in git. 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.
Create a GitHub issue with structured, agent-friendly content using the gh CLI. Issues follow type-specific templates so that any agent picking up the issue later has enough context to implement without asking follow-up questions.
Supported issue types:
| Type | Shorthand | Use when |
|---|---|---|
| Bug | bug | Something is broken, crashing, or behaving incorrectly |
| Feature | feat | A new capability, endpoint, component, or user-facing behavior |
| Refactor | refactor | Restructuring code without changing external behavior |
| Documentation | doc | Missing, outdated, or incomplete documentation |
| Performance | perf | Slowness, high memory usage, or optimization opportunities |
| Security | security | Vulnerabilities, auth issues, data exposure risks |
Decide which language to use for the issue content. Check in this order:
CLAUDE.md in the project root. If it is written in Traditional Chinese or contains a language directive (e.g., language: zh-TW), use Traditional Chinese.When the user asks for "Chinese" without specifying a variant, default to Traditional Chinese (繁體中文).
Store the result as ISSUE_LANG — either en or zh-TW. This determines which template file to read in Step 4.
Map the user's request to one of the six types. Use these signals:
If the type is ambiguous, ask the user with AskUserQuestion presenting the six options.
Store the result as ISSUE_TYPE (one of: bug, feat, refactor, doc, perf, security).
Run these commands in parallel to understand the repo and existing issues:
# Repo info
gh repo view --json nameWithOwner,url --jq '.nameWithOwner'
# Available labels (only use labels that actually exist)
gh label list --limit 100 --json name --jq '.[].name'
# Open issues (check for duplicates)
gh issue list --limit 20 --state open --json number,title --jq '.[] | "#\(.number) \(.title)"'
Also gather context from the conversation and codebase:
The goal is to fill the template with specific, concrete information — not vague placeholders.
Read the appropriate template from <skill-path>/templates/{ISSUE_TYPE}.md (or {ISSUE_TYPE}-zh-TW.md if ISSUE_LANG is zh-TW).
Fill in every section using information gathered in Steps 2 and 3. For each template section:
src/auth/middleware.ts:42).Compose the issue title:
type: Concise description of the issuebug:, feat:, refactor:, doc:, perf:, security:Show the user the complete issue in a fenced markdown block:
**Title:** type: The issue title
**Labels:** label1, label2
**Assignee:** (if identified)
**Milestone:** (if identified)
---
{filled template body}
Use AskUserQuestion to ask the user to approve or request changes. If the user requests changes, revise and present again.
For labels: only suggest labels that appeared in the gh label list output from Step 3. If no matching labels exist, omit the labels line entirely.
After the user approves, create the issue:
gh issue create \
--title "{title}" \
--body "$(cat <<'ISSUE_EOF'
{filled template body}
ISSUE_EOF
)" \
--label "{label1},{label2}" \
--assignee "{assignee}" \
--milestone "{milestone}"
Only include --label, --assignee, and --milestone flags if values were identified and confirmed. Do not include flags with empty values.
After creation, report the issue URL back to the user.
After reporting the issue URL, offer to start development:
Issue #N created. Want me to start development? I can run
/gh-devto create a branch and begin implementation.
Replace N with the actual issue number from the created issue.
Before running any gh command, verify that the CLI is available and authenticated:
gh auth status
If gh is not installed, guide the user to install it first:
brew install ghwinget install --id GitHub.cli or scoop install ghIf gh is installed but not authenticated, guide the user to log in:
gh auth login
Walk the user through the interactive prompts (select GitHub.com vs Enterprise, preferred protocol, and authentication method). Do not proceed with issue creation until gh auth status succeeds.
If the repository has no GitHub remote (e.g., a purely local repo), inform the user that a remote is required and suggest:
gh repo create
# or
git remote add origin https://github.com/{owner}/{repo}.git
gh label list.bug:, feat:).Co-Authored-By: trailer). Issues must read as if the user wrote them.templates/bug-zh-TW.md (opens in a new tab)templates/bug.md (opens in a new tab)templates/doc-zh-TW.md (opens in a new tab)templates/doc.md (opens in a new tab)templates/feat-zh-TW.md (opens in a new tab)templates/feat.md (opens in a new tab)templates/perf-zh-TW.md (opens in a new tab)templates/perf.md (opens in a new tab)templates/refactor-zh-TW.md (opens in a new tab)templates/refactor.md (opens in a new tab)templates/security-zh-TW.md (opens in a new tab)templates/security.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/git:gh-issuefrom git
npx claudepluginhub chienchuanw/chuan-skills --plugin git9 skills in this plugin
/branch-reportGenerates a branch-vs-default comparison report with plain-language explanations and senior dev review. Use when the user asks to summarize, compare, review, or explain branch changes, or wants a PR summary before merging. Read-only: it produces a report to read — it does not push the branch or open/update the PR (for that use gh-pr).
/commit-msgSuggests 3 commit messages based on git diff and project conventions. Use when the user asks for commit message ideas, wants help writing a commit message, or has changes ready to commit.
/gh-archiveCapture the current state of a project by updating documentation at the end of a development session. Invokes the readme skill to refresh README.md and the planning-with-files skill to record project status in a doc/ or docs/ directory. Use after merging a PR, finishing a feature, wrapping up a coding session, or any time the user wants to snapshot where the project stands — even implicit phrases like "archive this", "wrap up the session", "document current status", "update project docs", "snapshot this repo", or "I'm done for today". Also use when the user says "end of session" or asks to prepare documentation before stepping away from a project.
/gh-commentPost formatted comments on GitHub PRs or issues, approve PRs, and merge PRs via gh CLI using purpose-specific templates (feedback, question, status, approval, request-changes). Use when commenting on a PR, leaving feedback, asking a question on an issue, posting a status update, approving a pull request, merging a PR, or any intent to interact with an existing PR or issue — even implicit phrases like "tell them", "approve it", "merge this", "LGTM", or "ship it".
/gh-devCreate a branch linked to a GitHub issue via gh issue develop, then implement the work with regular convention-following commits. Use when starting work on an issue, picking up a ticket, developing a feature branch, or any intent to begin coding against a GitHub issue.
/gh-fixRead unresolved review comments on a GitHub PR, deeply evaluate each suggestion, then either fix it (via gh-dev + simplify) and push the result, or push back via gh-comment with a reasoned reply. Use when the user wants to address PR feedback, respond to reviewer comments, fix code-review suggestions, action a review, or any phrasing like "address the comments on PR #N", "respond to the review", "fix what the reviewer asked for", "go through the PR feedback", or "handle the review comments".