/agent-skills:synthesize-specfrom agent-skills
Transforms a brief into a ratified, decomposable spec using a research ledger executed across fresh contexts, with synthesis, adversarial review, and operator ratification. For large builds where the spec doesn't yet exist.
Ships in agent-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.
Produce a ratified, decomposable spec from a brief — the upstream half of a large build. Both reference
builds' upstream halves were multi-day, multi-context efforts with operator decision rounds; a single-context
"write me a spec" call cannot hold that. So this skill has the same shape as the build itself: a durable
research ledger whose rows are executed in fresh contexts, exactly as orchestrate-build executes
tickets, then synthesis, adversarial review, and operator ratification.
The mental model. State lives on disk (
docs/research-ledger.md). Cognition lives in fresh contexts (each research/design row; the review pass). Sequencing is a loop that reads the ledger, runs the next unit, writes the ledger back — sodrive-build.sh --skill synthesize-speccan drive it, honoringpauseRequestedand stopping at operator-decision points. It hands off todecompose-specby writingdocs/decomposition-prompt.md.
The layout it reads and writes (docs/research-ledger.md, docs/research/, docs/design/, the spec,
docs/decomposition-prompt.md) is defined in skills/build-memory/layout.md; this skill cites it and does not
restate the tree.
docs/ is the docs root (BM-ROOT-03). Every docs/… path in this skill and its modes is relative to the
docs root — the parent of the build memory root. In a single repo that is <toplevel>/docs. In a monorepo
subproject, with BUILD_MEMORY_ROOT=<sub>/docs/build set (the root need not exist yet), it is <sub>/docs:
bash <skills>/build-memory/scripts/memory-root.sh --paths --allow-missing prints it as docs=, so the ledger is
<sub>/docs/research-ledger.md, the notes <sub>/docs/research/, and so on. The freshness check then resolves
--planning docs/research-ledger.md under <sub>/docs by itself; a toplevel-relative
--planning <sub>/docs/research-ledger.md works too. With the variable unset, nothing changes.
Resolve the mode from the ledger, the way orchestrate-build orients:
docs/research-ledger.md yet → plan (§ modes/plan.md).CURRENT STATE block (nextUnit, projectStatus, round). projectStatus: DONE
or spec Status canonical → nothing to do; report and stop. An open research/design row is nextUnit →
run. All rows done, no spec yet (or a new round) → synthesize. Spec written, not yet reviewed →
review. Reviewed and dispositioned, awaiting operator → ratify.mode input overrides.pauseRequested: true or an unanswered operator-decision (⚑) row that blocks progress → report and stop
(this is the human's decision surface, like a gate).check-build-memory.sh --planning docs/research-ledger.md — updatedAt not older than the
newest change-log stamp, lastCompleted the newest done row, nextUnit not done. Every stamp you write comes from
date -u at that moment (BM-CLOCK-01); only one session writes CURRENT STATE.Then follow the matching mode file below; each ends by updating the ledger's CURRENT STATE + change log and
returning here.
| Mode | File | What it does |
|---|---|---|
plan | modes/plan.md | Seed docs/research-ledger.md: theses, lettered research/design streams as | id | item | owner | status | evidence | tables, the §O process, the §Q operator register, and a CURRENT STATE block so the loop can drive it. |
run | modes/run.md | Execute one open ledger row per fresh context → a note under docs/research/ or docs/design/ in the CONVENTIONS.md finding format, emitting REQ-<STREAM>-<n> requirements and open questions. |
synthesize | modes/synthesize.md | Write the spec: front matter, §0 how-to-read + requirement-ID convention, decision register, appendices A–E, and (with a brief) OUTLINE_TRACE.md proving superset coverage. |
review | modes/review.md | Fresh-context adversarial pass (consistency, coverage of every ledger row, MVP realism, self-contradiction); delta-only when a prior version exists; findings dispositioned in Appendix E. |
ratify | modes/ratify.md | Present open Q rows, record answers, flip the spec to canonical, freeze the ledger, and write docs/decomposition-prompt.md — the hand-off to decompose-spec. |
implement-spec and decompose-spec guard against). review runs in a fresh context
given the spec + the ledger, not the authoring history.§Q register and ⚑ markers make the human's rulings part of the
durable record, and ratify is the one place they are required — no spec goes canonical with open questions.decomposition-prompt.md hand-off;
decompose-spec and implement-spec take it from there.INACCESSIBLE, never paraphrased into a claim.canonical requires the operator's answers to the open Q rows.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (stevevitali/agent-skills) — no native marketplace selected
npx claudepluginhub p/stevevitali-agent-skills12 skills in this plugin
/address-pr-commentsWork through unresolved review comments on your PR as the author: triage every thread, implement fixes where the reviewer is right, push back with rationale where they aren't, answer questions, commit + push, and reply to every thread with what happened. Use when asked to address, respond to, or resolve PR review feedback./agent-docsCreate or converge agent documentation (AGENTS.md hierarchy) for a codebase — bootstrap mode generates docs from scratch, refresh mode detects and fixes drift/audit-buildIndependent, fresh-context critical re-review of tickets that have already landed in a multi-session build. It covers the last N tickets, every ticket since the previous audit, named tickets, or a git range. Each ticket's acceptance criteria are re-checked against the code, tests and evidence, and claims are compared with what is verified. Faked or weakened checks, cross-ticket duplication and sole-owner violations are hunted down. Every finding is verified before it is reported, and fixes are routed through the build's own repair mechanisms. It also has an evaluation mode: a pre-registered, blinded measurement study of an implementer's work, which estimates how much auditing is actually needed, where and why. Use it to keep cheaper implementation models in check with periodic review by a stronger model, and to decide on evidence how often that review should run. Read-only on the build; never fixes, merges or edits landed records./build-memoryOwns the build-memory contract that the multi-session build skills share: the committed layout under docs/build/, docs/tickets/ and docs/adr/, the templates, the validator, and legacy-scratch migration. Use it to initialise the layout in a repo (init), validate it (check), migrate a legacy gitignored scratch dir into the committed tree (migrate), or regenerate the ADR index (adr-index). Other skills cite skills/build-memory/layout.md rather than restating the layout./decompose-specTurn one large spec into an optimally-partitioned, dependency-ordered ticket plan — the fewest self-contained tickets that each fit one fresh-context implementation run — and seed a durable build ledger plus per-ticket contract files and a manifest runbook (relocatable into the repo tree via tickets_dir). The planning half of a multi-session build; pairs with orchestrate-build./implement-specSpec-driven, autonomous end-to-end: branch → plan + test matrix → implement (tests alongside) → self-review → gap-analysis vs spec → close gaps → rigorous downstream verification → PR + evidence reportOther plugins' skills for the same job