spec-driven-execution
Turn a big or ambiguous technical task into a spec of independently verifiable slices, implement slice-by-slice with verification gates, and close the spec…
от usecompai★ 32 звезды на GitHub
Установить spec-driven-execution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Spec-Driven Execution
The the reference deployment 3-phase rule (Research → Plan → Implement) says a plan must exist; this skill defines what a plan that survives contact with execution looks like: a spec made of independently verifiable slices, each small enough to hand to Codex or a swarm agent as one self-contained prompt, each verifiable without trusting the implementer's word.
When to invoke / when not
- Invoke: task needs >1 delegation, touches >1 system, will take >1 session, or has ambiguity that would make a single internal
codex-handoffprompt a guess. - Skip: one script, one fix, one clear deliverable → go straight to codex-handoff. A spec for a 30-minute task is bureaucracy.
What an independently verifiable slice is
A slice earns its place when it has all four:
- A seam — the interface it exposes (function signature, file contract, API shape, data format). Named, so the next slice can build against it before this one is perfect.
- A playable artifact — something a human or agent can RUN to see it work (CLI probe, test page, dry-run command, sample output file). Not "the code exists".
- A verification gate — the explicit check that must pass (test command, expected output, screenshot comparison, reconciliation number). The gate is written in the spec BEFORE implementation, so the implementer can't negotiate it afterward.
- Independence — buildable and verifiable without unrelated slices existing first. Independent slices can run as parallel delegations.
If a slice hides multiple variables or contains a broad verb ("make it robust", "clean up the data"), it is fog — re-slice it recursively until every leaf has one question, one seam, one verdict.
Protocol
Phase 1 — Write the spec
- Research first (the reference deployment rule): Brain (
brain_search), source systems, reference implementations. Document what is settled vs open. - For high-stakes specs, draft blind in parallel: give 2-3 fresh subagents the same brief independently and compare. Where drafts agree → firm ground. Where they diverge → that's exactly where to think hardest before committing. (Skip for routine specs.)
- Materialize to ONE canonical location:
- Code work in a repo →
specs/<feature>/README.mdin that repo. - Brain/platform/ops work →
knowledge/projects/<project>/spec-<feature>.md.
- Code work in a repo →
- Spec structure: goal + hard bar (see the internal
fable-promptingskill) · slice list with seams/artifacts/gates · dependency order (what can run in parallel) · out-of-scope list (explicit) · Next Agent Prompt — a final section written in second person that lets a fresh zero-context agent pick the work up with no chat history. If you can't write that section, the spec isn't done.
Phase 2 — Implement, one slice = one pass
For each slice, in dependency order (independent slices → parallel delegations):
- Delegate or implement the slice (delegation → codex-handoff, with the slice's gate pasted in as the success criteria).
- Run the verification gate yourself. The implementer's report is a claim, not evidence. A sandboxed/delegated implementer ships code it never saw run — the orchestrator verifies in the real environment (browser, real API, real data).
- Mark the slice done IN THE SPEC with the evidence (command + output, screenshot path, number).
- Every 2-3 slices, or after any failed gate: maintenance checkpoint — re-read the spec; prune slices reality invalidated; log plan deviations as new open questions. A spec that contradicts the codebase is worse than none.
- Do not stop while open slices remain unless: a gate fails un-fixably (→ re-scope, don't patch around — the reference deployment rule: revert & re-scope), a hard-stop trigger appears, or budget/timebox is reached.
Hard-stop triggers (automatic, never a judgment call): production deploy/restart, spend or budget change, credentials/auth changes, any deletion of existing data/files, customer-facing/HR/legal/external communications, company master prompt or governance-doc changes, multi-node rollout. A slice touching ANY of these pauses for the founder's explicit OK before executing that slice — same list as the internal
fable-promptinghouse rules.
Phase 3 — Close the spec
When all gates are green:
- Rewrite the spec doc from build plan into rationale record: why it's built this way, the invariants that must hold, the dead ends tried (→ also file per failure-archaeology), pointers into the final system. Delete the slice ladder.
- Claim audit by a fresh agent: every remaining statement in the closed doc gets checked against the real system by someone who didn't write it. Stale claims are defects that block closing.
- Move/mark it closed (
specs/done/in repos; status line in Brain docs) and record durable learnings viabrain_write.
Guardrails
| ❌ | ✅ |
|---|---|
| Slices split by file/layer ("backend part" |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл spec-driven-execution?
Turn a big or ambiguous technical task into a spec of independently verifiable slices, implement slice-by-slice with verification gates, and close the spec with a claim audit. Use when asked to write a spec, implement a spec, plan a build, break down a feature, structure a multi-day or multi-week technical project or migration, or when a Codex/agent delegation is too big for one self-contained prompt. Not for small tasks (single codex-handoff prompt suffices) or non-technical plans.
Как установить скилл spec-driven-execution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec-driven-execution запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…