/skills:planning-milestonesfrom skills
For 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.
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.
Turn one milestone into an issue tree a person can disagree with before anybody writes code.
This skill plans only. It ends at a reviewable tree and stops.
The caller names the milestone. Never infer it. The argument is an id such
as M2.
With no argument, stop and ask which one, listing the milestones from
docs/specs/milestones.md so the caller picks from what the file actually has.
Do nothing else until the answer comes back. Do not guess from which epics are
open, from what was planned last, or from the order of the file. Which milestone
to plan next is a fact about what the caller intends to build, and the
repository does not hold it.
Then check two things before reading any further.
The id names a section in docs/specs/milestones.md. If it does not, stop
and say which ids the file has.
No epic exists for it yet. An epic is an issue with no parent whose title starts with the id:
gh issue list --state all --limit 200 --json number,title,state,parent \
--jq '.[] | select(.parent == null) | "\(.state)\t#\(.number)\t\(.title)"'
If one is already there, the milestone has been planned. Stop, name the issue, and ask whether to add to that tree or leave it alone. A second epic for one milestone splits the tree, and nothing later in this skill detects it.
Read issues with --json throughout, never the rendered text output. That
output is laid out for a person reading a terminal, and its shape is not a
contract; --json names fields you can test.
docs/specs/milestones.md, including its
acceptance criteriaAGENTS.md names is what the work has to satisfy.
Cite its sections by numberAGENTS.md names. A subtask that invents a directory the layout
does not have is a subtask in the wrong shapeAGENTS.mddocs/notes/, once it exists, for anything already learned about the same
surface, so a fact is not re-derivedIf a subtask cannot be derived from the specification, that is a gap in the specification. Raise it as a question in step 5. Do not invent the answer and do not design around it: a result contradicting the specification is reconciled in the specification.
One subtask is one isolated, complete purpose:
main. The bar is the project's checks, which AGENTS.md
names. A part that only passes them once its sibling lands is not a partmain stays releasable after it mergesSplit at a seam, not at a line count: a directory under src/ with its own
reason to change, a pure transform under an I/O wrapper, a decision one part
makes and the next consumes. Put the dangerous code in its own subtask, away
from the large mechanical thing sitting next to it. A change reviewed on its own
gets read line by line, and the same change inside a large mechanical diff does
not.
A subtask that adds tested code nothing calls yet is fine. A milestone is the unit that ends in something you can run or see. A subtask is the unit somebody reviews in one pull request. They are different sizes on purpose.
Then work out the dependency graph. Which subtasks are genuinely sequential, and which only look sequential because of the order you thought of them? The graph is routinely looser than it first appears, and independent parts can be reviewed at the same time and merged in any order. Where two touch the same line of a shared file, say so in both issues, because the second to merge needs a rebase.
Load the writing-issues skill before the first gh issue create. It owns
the body: which template sections to keep, and how each is written. What follows
is only what is specific to a milestone tree.
The label the tree is pulled by does not exist until it is made. Create it first, which is safe to repeat:
gh label create "milestone:M2" --color ededed \
--description "M2 — The finding contract and the comment format" --force
One epic issue for the milestone:
M2 — The finding contract and the comment format. Step 1 finds it by the id prefix## Decomposition section: why these seams and not others. The task
template has no such section, and the epic gets one anyway, because the epic
is not a unit of work and its reason for existing is the argument it carriestask and milestone:<id>One sub-issue per subtask:
docs/notes/task or bug, and milestone:<id>Create the epic, then each sub-issue with --parent, then the blockers:
gh issue create --title "<one line, imperative>" \
--label task --label "milestone:M2" --parent 42 --body "<body>"
gh issue edit 45 --add-blocked-by 43 --add-blocked-by 44
Blockers come last because a dependency is set by issue number, and a number
does not exist until the issue is filed. --parent is passed at creation
instead, because the epic is already filed by then.
Verify the tree before moving on. A sub-issue that failed to attach looks exactly like one that was never filed, and a blocker that failed to post looks exactly like a subtask that never had one:
gh issue view 42 --json subIssuesSummary --jq '.subIssuesSummary.total'
gh issue list --label "milestone:M2" --state all --limit 100 \
--json number,title,parent,blockedBy \
--jq '.[] | select(.parent != null)
| "#\(.number) \(.title) — blocked by \(.blockedBy.totalCount)"'
The first must equal the number of subtasks you filed. The second must show, on every row, the blocker count you set.
Print the tree in the reply:
gh issue list --label "milestone:M2" --state open --limit 100 \
--json number,title,parent,blockedBy \
--jq '.[] | select(.parent != null)
| select([.blockedBy.nodes[] | select(.state == "OPEN")] | length == 0)
| "#\(.number) \(.title)"'
Print the frontier. Do not store it in the epic. Readiness is true at the moment it is computed and wrong after the next merge, so it belongs in a reply and never in a body somebody will read later and believe.
Then stop for human review.
Do not begin implementation. Do not claim or assign any issue. Do not open a branch or a pull request. The decomposition is the deliverable, and it is worth more when a person has disagreed with it before anybody writes code.
docs/specs/milestones.md — the milestones in build order, each with the
acceptance criteria its epic copiesAGENTS.md names — what the work has to satisfy, cited by
H2 number.github/ISSUE_TEMPLATE/task.md — the sections an issue body is built fromwriting-issues skill — how those sections are writtenWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 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./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.npx claudepluginhub jacygao/skills --plugin skills