/grey-matter:implement-specfrom grey-matter
Implement the result of to-spec and to-tickets in code, a whole spec on one integration branch.
Ships in grey-matter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You have been provided a spec with tickets describing how to implement it. The goal is the entire spec implemented on a single integration branch, with every ticket closed via tkt close.
The tickets are a task graph with blocking edges, not a list of steps, so there is always a frontier of ready tickets (tkt ready). Work the frontier until it's empty.
Parallel or sequential. Where the harness supports real background subagents, run ready tickets in parallel (one implementer subagent per ticket, each in its own git worktree) for concurrency. Where it doesn't, work the frontier sequentially: one ready ticket at a time, directly on the integration branch. Same structure either way; sequential is simpler and avoids concurrent conflicts, it just takes longer. Everything below describes the parallel case; drop the worktree/merger machinery for the sequential one.
Communicate between agents sparsely, via context pointers (spec-slug, ticket id, commit sha, notes-file path), not duplicated content. Shared notes must live where every worktree can reach them: outside any single worktree (the main checkout or an out-of-repo dir), not a per-worktree .scratch/.
Read the spec and tickets to understand the task graph. Plan verification by assertion with the test-environment ladder: assign the lowest faithful environment and lifecycle gate, separate cost from criticality, and identify evidence that can be reused across tickets without repeating expensive setup.
(optional) Use an exploration subagent for any codebase or external-doc exploration the tickets need. It saves markdown notes where all later subagents can read them (shared location per above), so implementers focus on implementation, not exploration.
Resolve any build-changing premise with the technical spike decision rule, then create the integration branch off the base branch.
For each ready ticket, run an implementer subagent in its own worktree on its own branch. Each one:
tkt claims its ticket;tdd to build it;Pass large inputs (spec excerpts, exploration notes) as file paths, not inline in the prompt. When an implementer stalls or comes back empty, inspect its worktree first (git status, the expected files, test output) before re-dispatching: it may have finished and only lost its report. Report a failed or partial implementer explicitly; never absorb it silently.
When an implementer completes, a merger subagent merges its branch to the integration branch. After every merge, the integration branch build and the project's pre-merge check (tiers 0 to 2 of the test-environment ladder for the changed areas) must be green before the next merge or the next frontier ticket. A clean textual merge is not enough: two slices can each pass alone and break together. If the gate fails, fix it before proceeding.
Recompute the frontier (tkt ready); fan out implementers for the newly-unblocked tickets (or take the next one, sequentially).
Once all tickets are implemented, run the tier 3 and higher checks the spec's outcomes need, once, on the integration branch. Then review the integration branch at the depth its riskiest ticket calls for, per implement's review depth: code-review for a consequential change, otherwise a spec check of each ticket. Expectations come from the spec and tickets, written before reading the diff. Code-review files its findings as tickets; fix the ones that block the spec now, in a single implementer subagent, and leave the rest as follow-up tickets.
Verify before closing. For each ticket, confirm its acceptance criteria actually pass on the integration branch, don't trust an implementer's self-report. Before closing, promote, keep or delete each ticket's scratch and build artifacts per repository-artifact-hygiene. Then tkt close each with its resolution and ACs checked. (If this repo treats PRs as a request surface, which is off by default, mark the draft PR ready instead; see the issue-tracker doc.) Report the integration branch.
Clean up the implementer worktrees. Detect merged branches by content, not ancestry: a squash-merge looks unmerged by ancestry, so a naive "fully-merged only" sweep leaves worktrees (and their build artifacts) dangling.
If the project keeps a status dashboard, call the Skill tool with "delivery-dashboard" after closing the tickets: one entry per ticket, then one Plan tab refresh.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub smileynet/grey-matter --plugin grey-matter50 skills in this plugin
/adopt-projectAdopt a brownfield repo into grey-matter: characterize its as-is model, subsume existing agent config, seed a triaged board, and wire plumbing./changelogMaintain CHANGELOG.md in Keep a Changelog format with user-facing entries. Use when recording what changed for a release, updating the Unreleased section, or asked to write/update the changelog./cheat-sheetList every skill in this set by category with a one-line description. Use when the user wants a quick reference card of available skills, asks "what skills are there", or "list all commands"./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview a commit range, staged changes, or working tree on two axes (Standards + Spec) in parallel sub-agents and file findings as tickets. Use to review a branch, PR, WIP changes, or "review since X"./compassFind which skill or flow fits your situation. A router over the skills in this repo. Use when you (or the agent) are unsure which skill to reach for, want to see how the skills fit together, or ask "what should I use for X".