CommunityCodierung & Entwicklunggithub.com

implementing

Dispatch a spec's ready tickets to fresh implementers in their own worktrees and merge each onto one integration branch after its spec review. Use when ticketing hands over its tickets, or the user says implement, execute or go on a spec whose tickets are in the tracker.

Was ist implementing?

implementing is a Claude Code agent skill that dispatch a spec's ready tickets to fresh implementers in their own worktrees and merge each onto one integration branch after its spec review. Use when ticketing hands over its tickets, or the user says implement, execute or go on a spec whose tickets are in the tracker.

Funktioniert mit✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Martingale42/cy-skills/tree/HEAD/skills/implementing

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht implementing?

Put every ticket cut from one spec onto one integration branch, the default because one review and one owner checkpoint then cover the whole set. When the owner wants to review each landing, each ticket lands instead on a pull request of its own (the per-ticket model). You are the controller: you dispatch from the frontier, read reports, route questions and start merges, while fresh subagents write, review and merge the code, so your context holds reports rather than diffs and lasts the whole set. The frontier, what clears a blocker and how closure is recorded are defined in ~/.claude/skills/ticketing/references/tracker.md; read it first, since you dispatch from that frontier and nothing else.

Run the whole set without checking in between tickets. The owner hears from you at a phase boundary (see "Choices and owner gates") and when the set is done.

Steps

  1. Read the set. The spec, every ticket in it and their blocking edges, found the way tracker.md records them. Create the integration branch off the default branch, in a worktree per using-git-worktrees, and record the schedule: one task entry per ticket naming its blockers (TaskCreate where the session has it, otherwise once in your reply). Done when you can name the frontier and, for every ticket off it, what it waits for.

  2. Dispatch the frontier. Every frontier ticket in one message, one background Agent call each with isolation: "worktree", carrying the brief below. Resolve the model from what the dispatch tool offers, and give the stronger tier to tickets heavy on judgment (a protocol, a wire format, a state machine, many files). A frontier ticket that cannot start before an owner action, named by the spec, the ticket or a report, waits, undispatched, for that action's check, and the action goes to the owner at the phase boundary with the rest; one whose check alone needs the action is dispatched and waits at step 3. Done when every frontier ticket has an implementer in flight or waits on such an action.

  3. Route each report as it arrives. Choices taken by default need nothing from you; they are in the commit body. Owner questions that pass the test in "Choices and owner gates" are held for the phase boundary, and you decide the rest as that section says. Owner actions are held for the same boundary, with an owner question that is really a step only the owner can perform refiled among them in tracker.md's shape; the ticket an action unblocks waits for its check before spec review and merge, since its own check cannot pass sooner, while one that matters only after landing holds nothing and is written on its ticket for landing, as tracker.md says. NOTES want no answer; an environment fact among them that bears on a later ticket goes into that ticket's brief. A ticket whose report shows a deviation from the spec already built stays off the integration branch until the owner answers, with its dependents; one built to the spec that only proposes a deviation goes on (see "Choices and owner gates"). NEEDS_CONTEXT gets the context, sent to the same implementer. BLOCKED gets more context, a stronger model, or a split of the ticket; a blocker only the owner can clear is an owner action, held as above, and one that says the spec itself is wrong is an owner question. Read the concerns in DONE_WITH_CONCERNS: one about correctness or scope goes back to the implementer before review, or becomes an owner question when it questions the spec itself. Done when every report in hand is routed.

  4. Spec-review each finished ticket. Dispatch a fresh subagent whose message points it at ~/.claude/skills/implementing/references/spec-review.md and names the ticket, the spec, the implementer's commit and its report. It asks one question, does the diff do what the ticket says, and returns gaps against the ticket alone. A gap goes back to the same implementer, then to a fresh spec review. There is no per-ticket quality review: quality is reviewed once on the whole branch by reviewing, because per-ticket quality reviewers multiply subagents and fill a backlog with findings nobody reads back. Done when the review reports no gap, or the only gap is a deviation already waiting for the owner.

  5. Merge as each ticket clears review and is not held. One merger subagent at a time, working in the integration worktree, so each merge is checked against the tip the previous one left. Its brief:

    • git merge-tree --write-tree <integration-branch> <ticket-commit> first. A conflict goes back to that ticket's implementer, who rebases onto the integration branch and reruns its check, since it knows what its ticket meant.
    • Merge (a cherry-pick when the ticket is one commit), then build the whole workspace, because two clean merges can still disagree on a type or a signature, and run the ticket's check on the integration branch.
    • Remove the ticket's worktree and branch.
    • Report the new tip, the build result and the check output.

    Done when the ticket's commit is on the integration branch with its check green there, which clears it for the frontier.

  6. Recompute the frontier after each merge and dispatch what became ready, as in step 2. Done when the frontier is empty and nothing is in flight or held.

Done when every ticket is on the integration branch with its check green, or, in the per-ticket model, every ticket is on a pull request of its own with its check green and every needs-decision item a review of this set held is closed, a flip on any open branch of the set counting. That model ends at one more phase boundary after the last pull request's review, carrying the items that review held, and at each follow-up list that applying their answers raises, since no later boundary comes and they would wait for good. When a per-ticket set is done, tell the owner how many tickets its reviews deferred and how many of those carry tracker.md's unseen tag; on an integration branch the review comes after this hand-off, and landing reports its count. Hand-off: reviewing, on the whole integration branch, with the spec's path. Closing the tickets in the tracker is landing's.

The implementer's brief

The dispatch message points at the ticket and the spec, the texts the implementer builds from and the spec reviewer checks against, and adds what neither can know: the answers already given and this run's environment. A sentence that restates the ticket's Behaviour or the spec's interfaces is a second copy that drifts from the file, and the implementer ends up asking which one holds. Where the ticket reads unclear enough to want restating, edit the ticket (committed on the integration branch between merges when the tracker is files) and point at it, so both readers work from one text. It names:

  • The ticket by its tracker reference (issue number, or tickets file and ticket number) and the spec by path. The implementer reads both, the spec's decided trade-offs above all, before writing anything.

  • The integration branch, and the first step: git reset --hard <integration-branch>, then git log -1 --oneline to confirm the tip. The commits its blockers landed are there to read, since they hold the interfaces this ticket builds on.

  • The build directory for this worktree, its scratch location, and that the implementer stops what it started, then confirms nothing of its own remains among the processes that name its worktree or run from inside it (command line or working directory), since $! names a wrapper or a pipeline's last stage and a kill by name reaches every worktree on the host.

  • Answers already given that bear on this ticket.

  • This run's environment: each fact the implementer would build on, with the command that produced it, run in this environment from where the fact holds (what a container reaches is probed from a container), or marked unverified so the implementer checks it first. A fact without its command is the controller's belief, and the implementer cannot tell the two apart.

  • Testing per pragmatic-testing, at the tier the ticket's check names.

  • One commit, naming its ticket reference, its body saying why and listing each choice taken by default with its reason; reviewing finds the spec and landing closes the tickets from these references.

  • The report, in this shape and no more; the diff carries the rest:

    STATUS: DONE | DONE_WITH_CONCERNS | NEEDS_CONTEXT | BLOCKED
    COMMIT: <sha> <subject>
    CHECK: <command>, and the output that shows it passing or failing
    DEFAULTS: each choice the ticket left open, what was taken, why
    OWNER QUESTIONS: only what passes the needs-decision test in
      ~/.claude/skills/ticketing/references/tracker.md: the gap you hit and
      what you built, with a suggestion where you have one, or none
    OWNER ACTIONS: steps only the owner can perform, as tracker.md defines
      an owner action: command or step, location, ticket and check, or none
    NOTES: facts and housekeeping that need no answer, or none
    

Choices and owner gates

A question goes to the owner only when it passes the test in tracker.md's needs-decision row. A choice that fails it (a name, a log field, an order of steps, an option already built) takes the default the implementer would defend, recorded with its reason in the commit body and under DEFAULTS. A fact or a piece of housekeeping that wants no answer (a limit the environment imposes, an error inherited from the tip, who removes a stale line) goes under NOTES. A step only the owner can perform is none of these: it goes under OWNER ACTIONS, and one found among the questions is refiled there (step 3), since it has no options to decide.

You put every owner question and concern through the same test before holding it, and decide what fails it yourself: take the implementer's suggestion, or the answer you would defend, and write the choice marked "controller decided" on the ticket where its closure is recorded (the issue, or under the ticket's Status line, committed between merges), so the owner can reverse it from there. A choice other than the one built goes back to the same implementer as a follow-up before the ticket merges, so the code and the record agree.

For a deviation from the spec, the implementer builds to the spec where the spec can be built, and reports the gap under OWNER QUESTIONS with the deviation as its suggestion; that ticket merges as built. Where the spec cannot be built as written, the implementer builds the way it would defend and reports it the same way, and you put it through the needs-decision test: one that fails it is a spec correction you decide, written on the ticket as "controller decided" and committed to the spec between merges, so the ticket merges; one that passes it holds the ticket, with the dependents that read the changed interface, since merging it would put on the branch what nobody agreed, while a dependent that reads nothing it changed goes on and is brought to the answer by the follow-up below if the owner reverses it. Keep dispatching and merging everything that does not depend on a held question or an owner action.

The phase boundary is the point where nothing more can merge without an answer or an owner action: every ticket that waits on neither is merged, and the waiting reports are routed. Then reconcile the held questions, with each needs-decision item a review of this set holds in the tracker, before any of them reaches the owner. You alone hold the whole set: a question forwarded as its agent framed it arrives without the others' context, the owner gets one per agent instead of one per gap, and answers given in isolation contradict one another and the spec. So trace each question to the spec section or decided trade-off it touches and name the cause (the spec is silent there, contradicts itself, or states a fact the environment refutes); merge every question that touches one section into one item, whoever raised it; and answer each item the spec already decides yourself, pointing at the entry, to the agent that asked. Put the rest to the owner at once, numbered, each as a proposed amendment: the section, what it says now, what it would say, why, and the tickets it touches with what each built, worded so that agreeing costs a word. "What it says now" is the spec's sentence quoted, beside the proposed one, since an amendment without its current text cannot be read as a diff and comes back as a request for it. The message reaches the owner in your words: where the owner steers through another session, that session relays the note you wrote on the ticket verbatim rather than its summary, because each retelling drops the text the owner needs to decide. The owner reads a diff to the design, and the count is bounded by the design's gaps rather than by the number of agents. A question that arrives later goes into the next batch. Every owner action the set waits on, from a report, the spec or a ticket, goes in the same message, delivered as tracker.md says; once the owner reports one done, run its check, and when it passes resume the implementer of each ticket it held, which reruns its own check and reports again (a fresh one in a new worktree, starting from that implementer's commit, when it cannot be resumed), and dispatch each ticket step 2 held back for it.

The owner's answers become one spec commit, so reviewing and the dependent tickets read what was agreed. An accepted amendment changes its section (an interface where one changes, the reason under decided trade-offs). A declined one that leaves the code as built is written into decided trade-offs as a keep, in the shape reviewing step 5 gives a keep as is, naming this phase boundary as the review it was kept at, since otherwise the next review raises the choice again; with no spec, the keep goes on the ticket it touches, the way a controller-decided choice does. The commit lands on the integration branch between merges, before any held ticket merges, or in the per-ticket model on the next landing branch, since a pull request per answer costs a review each and gates the code pull request it came from. Once the set's last pull request has landed, it goes on a branch of its own with the follow-ups below, through reviewing when that carries code and then landing, since in this model the owner reviews each landing. Send it to every implementer at work on a ticket it touches, so siblings build on the same text. Flip each held review item an answer settles as reviewing step 5 says, after the last commit that applies it, a follow-up's fix included, and check a follow-up on a pull request already reviewed as reviewing step 4 checks a fix, since landing runs only the project's checks. A held ticket whose deviation is declined goes back to its implementer as a gap; merged work that differs from an answer goes to a follow-up before reviewing, from the ticket's implementer or, once its worktree is gone, a fresh one. The follow-up names every ticket merged after the overturned choice, or built on a branch that already held it, brings each that carries the choice to the answer, and reruns their checks on the integration branch, or in the per-ticket model on the next landing branch or, for a ticket whose pull request is still open, on that pull request's own branch, since a ticket built on that choice keeps it when only the one that made it is fixed, and its own check can still pass.

Running tickets side by side

Each of these keeps parallel worktrees from corrupting one another:

  • Reset first. An isolated worktree may start from the default branch rather than the integration branch, so the implementer's first step is the reset in its brief.
  • One build directory per worktree (CARGO_TARGET_DIR or the project's equivalent). A shared one lets one worktree's test run a binary another built and still report green.
  • One scratch location per worktree, a gitignored directory inside it or one named for it, for logs, captured output and draft commit messages. In a shared scratchpad one implementer's log overwrites another's, and each reads back what its sibling wrote as its own.
  • Stop only your own processes, and all of them. Stop what you started, then confirm nothing of yours remains among the processes that name your worktree or run from inside it (command line or working directory). The confirmation is what the rule is for: $! names a wrapper or a pipeline's last stage and leaves the workers running, and a kill by name reaches every worktree on the host and ends a sibling's check mid-run.
  • One implementer per worktree. Each one's commit sweeps up the other's uncommitted files, so a follow-up goes to the implementer that owns the worktree, and a new implementer gets a new one.

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

Verwandte Skills