Command Palette

Search for a command to run...

Назад к скиллам
скилл № 90508

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от 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-handoff prompt 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:

  1. 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.
  2. 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".
  3. 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.
  4. 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

  1. Research first (the reference deployment rule): Brain (brain_search), source systems, reference implementations. Document what is settled vs open.
  2. 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.)
  3. Materialize to ONE canonical location:
    • Code work in a repo → specs/<feature>/README.md in that repo.
    • Brain/platform/ops work → knowledge/projects/<project>/spec-<feature>.md.
  4. Spec structure: goal + hard bar (see the internal fable-prompting skill) · 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):

  1. Delegate or implement the slice (delegation → codex-handoff, with the slice's gate pasted in as the success criteria).
  2. 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).
  3. Mark the slice done IN THE SPEC with the evidence (command + output, screenshot path, number).
  4. 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.
  5. 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-prompting house rules.

Phase 3 — Close the spec

When all gates are green:

  1. 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.
  2. 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.
  3. Move/mark it closed (specs/done/ in repos; status line in Brain docs) and record durable learnings via brain_write.

Guardrails

❌ ✅
Slices split by file/layer ("backend part"
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить spec-driven-execution с