spec-dd
This skill should be used when the user asks to "write specifications", "create test specifications", "specification-driven development", "spec-first"…
от florianbuetow★ 22 звезды на GitHub
Установить spec-dd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Specification-Driven Development
Orchestrate a spec-first development workflow: behavioral specification, test scenario derivation, test implementation planning, test implementation, feature implementation, and cross-artifact alignment review. The skill guides writing behavioral specifications, derives test scenarios, plans test implementation approaches, and verifies alignment across all artifacts and code. Quality gates between phases are advisory — the skill flags issues and recommends addressing them, but the user can override and proceed.
Commands
| Command | Phase | Reference |
|---|---|---|
/spec-dd |
Auto-detect phase, assess state, recommend next step | All references |
/spec-dd:product-spec |
Product Spec (Phase 0) — problem, falsifiable bet, success criteria, evaluation | product-spec skill (separate) |
/spec-dd:spec |
Behavioral Specification | references/specification.md |
/spec-dd:test |
Test Specification | references/test-specification.md |
/spec-dd:test-impl |
Test Implementation Specification | references/test-implementation-specification.md |
/spec-dd:verify |
Implementation Verification | references/verify.md |
/spec-dd:review |
Alignment Review | references/review.md |
All commands accept an optional feature name argument (e.g., /spec-dd:spec user-auth).
/spec-dd:verify also accepts a spec file path as its first argument
(e.g., /spec-dd:verify specifications.md chat-ui). This allows verification against
any spec file, including informal ones not created through the spec-dd workflow.
If no feature name is provided and multiple features exist, list available features and
ask the user to choose.
Artifacts
All artifacts live in docs/specs/ with one set of files per feature:
| Artifact | Filename |
|---|---|
| Product Spec | docs/specs/<feature>-product-spec.md |
| Behavioral Specification | docs/specs/<feature>-specification.md |
| Test Specification | docs/specs/<feature>-test-specification.md |
| Test Implementation Specification | docs/specs/<feature>-test-implementation-specification.md |
| Implementation Verification | docs/specs/<feature>-verification.md |
| Implementation Review | docs/specs/<feature>-implementation-review.md |
First Steps
When any command is invoked:
Read the relevant reference file from
references/BEFORE doing anything else./spec-dd:spec-> readreferences/specification.md/spec-dd:test-> readreferences/test-specification.md/spec-dd:test-impl-> readreferences/test-implementation-specification.md/spec-dd:verify-> readreferences/verify.md/spec-dd:review-> readreferences/review.md/spec-dd-> read whichever reference applies to the recommended phase
Auto-detect project language by scanning for manifest files:
package.json(JavaScript/TypeScript)requirements.txt,pyproject.toml(Python)go.mod(Go)Cargo.toml(Rust)pom.xml,build.gradle(Java/Kotlin)- Use the detected language/ecosystem to inform testing frameworks, patterns, idioms, and handoff prompts throughout the workflow.
For
/spec-dd(router): Follow the auto-detect router logic below.For
/spec-dd:<phase>: Check whether prior-phase artifacts exist. If gaps are found, advise the user which earlier phase to complete first, but do not block — proceed if the user chooses to continue.
Phase 1: Behavioral Specification (/spec-dd:spec)
Reference: Read references/specification.md before starting.
Purpose: Define what the system does — behavioral contracts, not implementation details.
Workflow:
- Guide the user through creating or reviewing the behavioral specification for the selected feature.
- Use selectable options plus a free-text escape for every question. Ask 1-3 questions per turn, grouped thematically. Summarize captured answers before moving on.
- Review for ambiguity:
- Vague language ("fast", "secure", "easy", "simple", "efficient")
- Missing edge cases and boundary conditions
- Undefined terms and implicit assumptions
- Unmeasurable acceptance criteria
- Mark any unresolved items with
[NEEDS CLARIFICATION]. - Produce or update
docs/specs/<feature>-specification.md.
Advisory gate: No unresolved [NEEDS CLARIFICATION] markers before proceeding
to Phase 2.
Artifact template:
# <Feature> - Behavioral Specification
## Objective
What this feature does and why it exists.
## User Stories & Acceptance Criteria
Numbered user stories, each with measurable acceptance criteria.
## Constraints
Technical, business, or regulatory constraints.
## Edge Cases
Boundary conditions, error states, unusual inputs.
## Non-Goals
What this feature explicitly does NOT do.
## Open Questions
Items marked [NEEDS CLARIFICATION] that must be resolved.
Phase 2: Test Specification (`/s
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/review.md
- references/specification.md
- references/test-implementation-specification.md
- references/test-specification.md
- references/verify.md
FAQ
Что делает скилл spec-dd?
This skill should be used when the user asks to "write specifications", "create test specifications", "specification-driven development", "spec-first", "behavioral specs", "derive test scenarios", "test implementation specification", "check specification alignment", "review specs", "verify implementation", or "spec-dd". Also triggers when the user mentions "SDD", "SDD-TDD", "spec-driven", "behavioral testing workflow", "test-first design", or asks about writing specifications before code, deriving tests from specs, or verifying implementation against specifications. Supports a full workflow walkthrough or focusing on individual phases.
Как установить скилл spec-dd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec-dd запускает скрипты?
Нет, скилл состоит только из инструкций (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…