To Tickets
Break a plan, spec, or conversation into a set of tickets — tracer-bullet vertical slices, each declaring the tickets that block it.
Read the
section of the project's instructions file (
, or
when there is no
), then
docs/agents/issue-tracker.md
— together they have the tracker's commands and the triage label vocabulary. If either is missing, stop immediately:
⛔ Issue tracker not configured (missing
in the instructions file or
docs/agents/issue-tracker.md
).
Run
before using this skill.
Process
1. Gather context
Work from whatever is already in the conversation context. If the user passes a reference (a spec path, an issue number or URL) as an argument, fetch it and read its full body and comments.
2. Explore the codebase (optional)
If you have not already explored the codebase, do so to understand the current state of the code. Read
docs/agents/architecture.md
first, if it exists — module map, test seams, invariants. Ticket titles and descriptions should use its vocabulary, and respect the invariants in the area you're touching.
Look for opportunities to prefactor the code to make the implementation easier. "Make the change easy, then make the easy change."
3. Draft vertical slices
Break the work into tracer bullet tickets.
<vertical-slice-rules>
- Each slice cuts a narrow but COMPLETE path through every layer (schema, API, UI, tests) — vertical, NOT a horizontal slice of one layer
- A completed slice is demoable or verifiable on its own
- Each slice is sized to fit in a single fresh context window
- Any prefactoring should be done first
One slice is a valid answer. If the whole spec fits in a single fresh context window, say so and emit one ticket — or tell the user to run
directly against the spec, with no tickets at all.
treats a spec without tickets as one unit of work; that is the designed path for small scopes, not a failure. Splitting a spec that already fits buys nothing and costs a full loop per slice.
</vertical-slice-rules>
Give each ticket its blocking edges — the other tickets that must complete before it can start. A ticket with no blockers can start immediately.
Wide refactors are the exception to vertical slicing. A wide refactor is one mechanical change — rename a column, retype a shared symbol — whose blast radius fans across the whole codebase, so a single edit breaks thousands of call sites at once and no vertical slice can land green. Don't force it into a tracer bullet; sequence it as expand–contract. First expand: add the new form beside the old so nothing breaks. Then migrate the call sites over in batches sized by blast radius (per package, per directory), each batch its own ticket blocked by the expand, keeping CI green batch to batch because the old form still exists. Finally contract: delete the old form once no caller remains, in a ticket blocked by every migrate batch. When even the batches can't stay green alone, keep the sequence but let them share an integration branch that all block a final integrate-and-verify ticket — green is promised only there.
4. Decide the breakdown yourself
Granularity, blocking edges, merging and splitting are yours to decide — do not quiz the user on them. They are code and context-window decisions, the owner may not read code, and they have no product effect: the PR opens only when the whole spec closes, so every ticket ships together regardless of how it was sliced. The pipeline escalates only product and risk decisions to a human.
Check each ticket against the vertical-slice rules above, and each edge against "does this ticket genuinely need that one's code to exist first?". Then publish.
5. Publish the tickets to the configured tracker
Publish the tickets.
How depends on the tracker
configured — the tickets are the same either way, only the shape of the blocking edges changes:
-
Local files → write one file per ticket under
.scratch/<feature-slug>/issues/<NN>-<slug>.md
, numbered from
in dependency order (blockers first). Each file's "Blocked by" lists the numbers/titles it depends on. Use the per-ticket file template below — one ticket per file, never a single combined file.
-
A real issue tracker (GitHub, Linear, …) → publish one issue per ticket in dependency order (blockers first) so each ticket's
can reference real issue numbers (
). Link each one to the spec with the tracker's sub-issue relationship (the "Vincular ticket à spec" command).
Do not create native blocking links, even where the tracker has them: the
section of the body is the single source
reads, and a second source only diverges. Apply the
triage label unless instructed otherwise — the tickets are agent-grabbable by construction.
Write each ticket's body to its working copy first —
.scratch/<spec-slug>/issues/<NN>-<slug>.md
— and publish from that file (
or the tracker's equivalent, never an inline
: markdown breaks inline quoting differently in Bash and PowerShell). Read the new issue's URL from the command's output and pass it literally to the linking command; no shell variables in between.
Then
insert the issue number on the first line of each ticket's working copy, and write the spec to .scratch/<spec-slug>/spec.md
if it isn't there already — same content as the issue, plus the issue number on the first line, in the form
, so
can find the file by issue number instead of reconstructing the slug. Use the same
used; if the spec folder already exists, write into it. This is not local-mode duplication:
is gitignored and disposable, the issue stays canonical, and if the two ever diverge the issue wins. It exists because
hands the reviewer the
path to the spec rather than pasting its text, and without the file there is no path to hand.
already declares that both skills write this copy; without this step that declaration is false.
Work the
frontier: any open ticket whose blockers are all closed. For a purely linear chain that means top to bottom.
closes each ticket as soon as its review passes.
After publishing, show the user the breakdown in plain product language — one line per ticket saying what it makes work, and the order. This is information, not a request for approval; if the user wants a change, apply it.
Remove from the parent spec. Once a spec is sliced, it is no longer grabbable — its tickets are. Leaving the label on both makes
gh issue list --label ready-for-agent
return the spec and its tickets flattened into one list with no hierarchy, which is exactly the list
shows the user when called with no argument; picking the spec from it makes the implementer redo every ticket at once. A board works the same way: nobody picks up an epic, they pick up a story from it. Passing the spec explicitly (
) still works and means "work the frontier".
Apart from that label, do NOT close or modify the parent issue. From here on the spec's label is a mirror that
moves (
when the first ticket starts,
when the PR opens).
<local-ticket-template>
<NN> — <Ticket title>
What to build: the end-to-end behaviour this ticket makes work, from the user's perspective — not a layer-by-layer implementation list.
Blocked by: the numbers/titles of the tickets that gate this one, or "None — can start immediately".
Status: ready-for-agent
</local-ticket-template>
<issue-template>
Spec
— the spec issue this ticket slices, and the section of it this ticket covers. Omit only when there is no parent spec.
What to build
The end-to-end behaviour this ticket makes work, from the user's perspective — not layer-by-layer implementation.
Acceptance criteria
Blocked by
- A reference to each blocking ticket, or "None — can start immediately".
</issue-template>
In either form, avoid specific file paths or code snippets — they go stale fast. Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it and note briefly that it came from a prototype. Trim to the decision-rich parts — not a working demo, just the important bits.