/skills:triaging-issuesfrom skills
For 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.
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.
Give every open issue a priority and a place, so that what to work on next is a listing rather than a judgement made again each session.
A release is a GitHub milestone named by its version, such as 0.1.0. Backlog
is a milestone too, for issues no release has taken yet. Which issues a release
holds is the owner's call. This skill proposes, applies what the owner agrees
to, and stops.
Read the project's AGENTS.md for its definitions. Where it gives none, these
hold:
P0 blocks the release it is in: a user on the default setup gets no
result, or a wrong one, in ordinary use.P1 is wanted in the next release or the one after: real users, or the
project's own CI, will hit it.P2 waits in Backlog until a release's theme pulls it in.Make sure the labels and the Backlog milestone exist. Both are safe to repeat:
gh label create P0 --color B60205 --description "Blocks the release it is in" --force
gh label create P1 --color D93F0B --description "Wanted in the next release or the one after" --force
gh label create P2 --color FBCA04 --description "Backlog, worked when a release's theme pulls it in" --force
gh api "repos/{owner}/{repo}/milestones?state=all" --jq '.[].title' | grep -qx Backlog \
|| gh api "repos/{owner}/{repo}/milestones" -f title=Backlog \
-f description="Triaged and not planned into a release yet."
List what has no milestone or no priority:
gh issue list --state open --limit 500 --json number,title,labels,milestone \
--jq '.[] | select(.milestone == null
or ([.labels[].name] | any(test("^P[012]$")) | not))
| "#\(.number)\t\(.milestone.title // "-")\t\(.title)"'
Read each body and its last comments, not just the title. A title says what was seen; the body and comments say what it costs and what has changed since.
Read issues with --json, never the rendered text, whose layout is not a
contract.
Group the proposal by priority. For each issue give one line: its number, what it costs a user in plain words, and why that priority. Then:
Recommend which issues the next release holds, with a one-line theme for it. A release is small: one theme, about five to ten issues, done in a week or two.
For a bulk triage, present the proposal and wait for the owner. For a single issue filed in the course of other work, apply it directly and say why in the issue.
gh issue edit <n> --add-label P1 --milestone 0.1.0
gh issue edit <n> --add-label P2 --milestone Backlog
Close a duplicate or an answered issue with a comment saying why, and never delete one. The comment is the record of the judgement:
gh issue close <n> --reason "not planned" --comment "Closed as a duplicate of #<m>, which <why it is the one to keep>."
Verify that nothing open is left without both:
gh issue list --state open --limit 500 --json number,labels,milestone \
--jq '[.[] | select(.milestone == null
or ([.labels[].name] | any(test("^P[012]$")) | not))] | length'
It must print 0.
Most issues are already one pull request. Split only an issue in the release that is not.
One subtask is one isolated, complete purpose:
main. A part that only passes once its sibling lands is not a partmain stays releasable after it mergesSplit at a seam, not at a line count: a directory with its own reason to change, a pure transform under an I/O wrapper, code that computes a decision and code that acts on it. Put the dangerous code in its own subtask, away from the large mechanical thing sitting next to it.
A split carries every requirement, the specification's as well as the issue's. Each sub-issue states what it must meet as an acceptance criterion, not as a choice it may make: "the token is read only from the keychain", not "decide where the token is read from". Nothing the parent asks for is left on the parent alone.
Load the writing-issues skill before the first gh issue create. The issue
being split becomes the parent. Add a ## Decomposition section to its body
saying why these seams, and do not list the children in it; GitHub renders them.
Each sub-issue takes the parent's priority and milestone:
gh issue create --title "<one line, imperative>" --label task --label P1 \
--milestone 0.1.0 --parent 42 --body "<body>"
Then set every sequential dependency in the release, between whole issues as well as subtasks. Which are genuinely sequential, and which only look it because of the order you thought of them? Where two touch the same line of a shared file, say so in both issues, because the second to merge needs a rebase.
gh issue edit 45 --add-blocked-by 43 --add-blocked-by 44
Print each release's issues with their priority, sub-issues and open blockers. The listing is also the check on § 5: a sub-issue that failed to attach, or a blocker that failed to post, looks exactly like one that was never set.
gh issue list --milestone 0.1.0 --state open --limit 200 \
--json number,title,labels,blockedBy,subIssuesSummary \
--jq '.[] | "#\(.number) \([.labels[].name | select(test("^P[012]$"))] | join(",")) sub-issues \(.subIssuesSummary.total) open blockers \([.blockedBy.nodes[] | select(.state == "OPEN")] | length) \(.title)"'
Name the frontier, the issues with no open blocker and no sub-issues, as
working-issues § 1 reads it. Do not store it in an issue: readiness is true at
the moment it is computed and wrong after the next merge.
Then stop. Do not begin implementation; that is the working-issues skill, and
the caller starts it.
AGENTS.md — the project's own definitions of each priority, where it has themwriting-issues skill — how a sub-issue's body is writtenworking-issues skill — how a release's frontier is workedcutting-releases skill — what happens once a release's milestone is emptyWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jacygao/skills --plugin skills11 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./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-issuesHow a GitHub issue is written. Load BEFORE running gh issue create./writing-notesHow a durable finding is written in a project's docs/notes/. Load BEFORE writing or editing any note.