Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

spec-driven-workflow

БесплатноЗапускает вложенные скриптыНе проверен

Run development from an executable specification with traceable requirement IDs and merge-time coverage gates. Use when starting a greenfield feature…

borgheiот borghei★ 1 250 звёзд на GitHub

Об этом скилле

Spec-Driven Workflow

Development where the specification is the source of truth and the code is its implementation, rather than a document that was true at kickoff and fiction by week three. The mechanism is unglamorous: every normative statement gets a stable ID, every ID appears in a test, and the merge gate fails when the two drift apart. Without that mechanical link a spec is a memo, and memos do not survive contact with a sprint.

When to use this skill

  • Starting a greenfield feature where the interface is contested and the cost of building the wrong thing is high
  • Reviving a stale spec that no longer matches shipped behaviour and needs reconciling before the next change
  • Gating merges on coverage so a PR that implements two of five committed requirements cannot silently land
  • Auditing what actually shipped ahead of a stakeholder review or a compliance obligation
  • Handing a feature to another team who need the intent, not just the code
  • Generating an implementation from a spec — which only works if the spec is precise enough that two engineers would build the same thing
  • Capturing a spec from a conversation — a chat thread, design call or agent session where the decisions already exist but nobody wrote them down
  • Implementing ticket by ticket from an approved spec, test-first, with a review and a commit per ticket

Inputs the skill expects

  • A specification document in markdown, with normative statements using must/shall/should/may
  • Acceptance criteria per requirement, ideally in given/when/then form
  • The source tree and test suite where implementations will be annotated
  • The coverage bar the merge gate enforces (mandatory-requirement coverage, typically 1.0)
  • The previous requirements snapshot, when checking for drift against a baseline
  • Which requirements are explicitly out of scope for the current milestone

Clarify First

Before writing or auditing a spec, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • What must be true for this to be "done": becomes the acceptance criteria; without it the spec is a wish list and nothing is verifiable.
  • Which constraints are hard vs preferences: decides must/shall versus should, which in turn decides what the merge gate blocks on.
  • Who consumes the spec: an implementing engineer, a generating model, and an auditor need different precision; the generating case needs the most.
  • Scope boundary for this milestone: requirements outside it must be marked, or coverage reports will show permanent false gaps.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Quick Start

# Lint the spec, freeze IDs, then gate on coverage (lint and coverage exit 1 on the samples' deliberate flaws;
# every tool exits 2 on bad input such as a missing file or invalid JSON)
python3 engineering/spec-driven-workflow/scripts/spec_lint.py --spec engineering/spec-driven-workflow/assets/sample_spec.md
python3 engineering/spec-driven-workflow/scripts/spec_parse.py --spec engineering/spec-driven-workflow/assets/sample_spec.md --format text
python3 engineering/spec-driven-workflow/scripts/trace_coverage.py --requirements engineering/spec-driven-workflow/assets/sample_requirements.json --index engineering/spec-driven-workflow/assets/sample_trace_index.json

Workflows

Workflow 0 — Capture the spec from a conversation [RECOMMENDED]

Use when the decisions were made in a discussion — a chat thread, a call, a long session with a coding agent — and need to become a spec without being re-litigated. Detail and worked rules: references/conversation-capture-and-implementation-loop.md, Part 1.

  1. Read the whole conversation once before writing. Sort every substantive statement into decision, constraint, example, deferred, or open. Discussion that fits no bin stays out.
  2. Write each decision as one normative statement with a modality keyword, keeping the numbers people actually said. A decision the agent made alone and the user never confirmed is open, not decided.
  3. Turn the examples people walked through into given/when/then acceptance criteria.
  4. Quote deferrals word for word in the out-of-scope list, and put open questions in their own section with an owner — never as TBD inside a requirement.
  5. Ask only about gaps that would change a requirement, in one batch. Then read the requirement and out-of-scope lists back and ask what is on them that was not decided.
  6. Run Workflow 1's linter. Captured specs usually fail first on unquantified adjectives.

— Write the spec, then prove it is precise

  1. Draft requirements one statement at a time, each with exactly one obligation and a modality keyword. Two obligations in one sentence become two
Полный SKILL.md на GitHub

Установить spec-driven-workflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

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

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

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

Вложенные файлы

assets/sample_requirements.jsonassets/sample_spec.mdassets/sample_trace_index.jsonassets/spec-template.mdreferences/conversation-capture-and-implementation-loop.mdreferences/spec-writing-guide.mdreferences/traceability-model.mdscripts/spec_lint.pyscripts/spec_parse.pyscripts/trace_coverage.py

FAQ

Что делает скилл spec-driven-workflow?

Run development from an executable specification with traceable requirement IDs and merge-time coverage gates. Use when starting a greenfield feature, reviving a stale spec, or gating merges on requirement coverage.

Как установить скилл spec-driven-workflow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл spec-driven-workflow запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

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