/skills:writing-issuesfrom skills
How a GitHub issue is written. Load BEFORE running gh issue create.
Ships in skills. 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.
Write an issue an agent can act on and a person can read: the part at fault named, one decided outcome, each thing in its place, nothing unneeded. One body serves both readers.
gh issue create --body bypasses the repository templates: GitHub applies
.github/ISSUE_TEMPLATE/ to the web UI only. Read task.md or bug.md there.
Where the project has no templates, use the ones in templates/ beside this
file. Skip the YAML frontmatter, which is for GitHub rather than for the body.
Two kinds, each with the matching label:
bug: something behaves differently from how the spec or docs say it
shouldtask: a unit of work, or a decision, with the criteria that say when it
is doneCheck the project's spec or docs, not only what the code does today.
task whose job is the
decision: Purpose asks for the choice, Options sets out each way it could go,
and the acceptance criteria are the choice made and written down. It is
never a bug offering "either X or Y", and never a task presenting one option
as settled.These, in this order, and no other headings. Leave out an optional section when it has nothing to say.
| Bug | Task |
|---|---|
| What happens | Purpose |
| What should happen | Context, optional |
| Reproduce, or Evidence when there is no command | Options, only for a decision |
| Cause, optional | Acceptance criteria |
| Reference, optional | Reference, optional |
What happens is what a user sees, as observed. No file, function or line, no issue number, no diagnosis, no fix, and not how it was found.
Not this:
notes sync --server workuploads to work, but the nextnotes syncuploads to the default server. The server is kept only for the run that was given the flag, so later runs never see it.This:
notes sync --server workuploads to work, but the nextnotes syncuploads to the default server.
The second sentence of the first says how the product works inside, not what the user saw. It goes in Cause.
What should happen is testable: a command, input or action and what it produces, or a document and what it says. It names anything that must stay as it is. Never "works correctly" or "does what it says".
Reproduce holds commands and their output, in a code block, and nothing else. With no command, the section is Evidence: where and when it was seen and what that showed, and that it was not reproduced.
Cause holds the code locations, the diagnosis, and what is not yet known.
Purpose is one sentence. If it needs two, it is probably two issues.
Context is the finding or the gap behind the work.
Options states each option as concretely as an outcome: what it would do, and what it costs. Choices appear here and nowhere else. Write them for the person deciding, who may not know the code: what a user would notice under each, in words they use. A function, event or field name goes in Context, if anywhere. The last line recommends one option, with its reason.
Not this: A. Default
ExportOptions.formattomd. B. Makeformatrequired.This: A.
notes exportwrites Markdown unless--formatnames another. Someone who wanted HTML runs it again. B.notes exportstops and asks for--format. Everyone types a second command the first time. Recommended: A, because one wasted run costs less than asking everyone.
Acceptance criteria are checkboxes, each one check that passes or fails on its own. The project's checks passing is one.
Reference lists what governs the issue: spec sections, docs, linked issues. "Found while ..." is its last bullet, every time.
Both name the part as a user knows it: a command, a setting, or what the product does for them. The internal function or file that causes it belongs in Cause.
From the title and the first sentence alone, a reader can say what is wrong and which part is wrong.
AGENTS.md says: kind,
priority, area, milestone, or whatever else it requires of every issue.gh issue create --blocked-by or gh issue edit --add-blocked-by, so GitHub
renders it and --json blockedBy reads it back.gh issue create --title "<the part at fault and what it does wrong>" --label bug --body "$(cat <<'EOF'
<the bug template's sections, comments removed>
EOF
)"
gh issue create --title "<the work, imperative>" --label task --body "$(cat <<'EOF'
<the task template's sections, comments removed>
EOF
)"
gh issue create --title "<the work, imperative>" --label task --blocked-by 12,13 --body "..."
gh issue edit 14 --add-blocked-by 12
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jacygao/skills --plugin skills12 skills in this plugin
/cutting-releasesFor a project that has shipped and tracks releases in GitHub milestones. How a release's GitHub milestone becomes a version bump, a tag and a GitHub Release. Load BEFORE cutting a release./executing-milestonesFor a project built from nothing, planned in docs/specs/milestones.md — not one that tracks releases in GitHub milestones. How a planned milestone's issue tree yields the issues ready to work, which working-issues then dispatches. Load BEFORE executing a milestone./planning-milestonesFor a project built from nothing, planned in docs/specs/milestones.md — not one that tracks releases in GitHub milestones. How a named milestone there becomes an epic issue and one sub-issue per subtask. Load BEFORE planning a milestone or filing its issues./triaging-issuesFor a project that has shipped and tracks releases in GitHub milestones. How open GitHub issues get a priority and a release milestone, and how a release's issues are made small enough for one pull request each. Load BEFORE triaging issues or planning a release./working-issuesHow GitHub issues become worktrees, subagent briefs, and verified pull requests — one issue, or every ready issue in a milestone. Load BEFORE dispatching implementation work to subagents./writing-agents-mdWhat goes in a project's AGENTS.md or CLAUDE.md, what goes elsewhere, and how the file is laid out. Load BEFORE creating, restructuring or adding a section to one.