Spec
DEPRECATED: This skill is now a thin wrapper around deep-design --spec. The standalone spec skill is maintained for backwards compatibility but all new development happens in deep-design.
Routing
When invoked, this skill delegates to deep-design --spec:
- If
deep-design is available: invoke it with --spec flag and pass through the argument.
- If not available: fall back to the inline workflow below.
SDD-Compatible Output
The spec is written as specs/{NNN-feature-name}/spec.md following the Spec-Driven Development format:
specs/{NNN-feature-name}/
├── spec.md # Feature specification
└── checklists/
└── requirements.md # Spec quality validation
Required Sections
- User Scenarios & Testing — prioritized user stories (P1, P2, P3) with Given/When/Then acceptance scenarios. Each story must be independently testable.
- Functional Requirements — FR-001, FR-002, etc. Each testable and unambiguous.
- Success Criteria — SC-001, SC-002, etc. Technology-agnostic, measurable outcomes.
- Key Entities — if data is involved (entity, attributes, relationships).
- Assumptions — reasonable defaults documented here.
- Edge Cases — boundary conditions and error scenarios.
Spec Quality Rules
- Focus on WHAT and WHY, never HOW. No implementation details (languages, frameworks, APIs).
- Success criteria must be measurable and technology-agnostic.
- Max 3
[NEEDS CLARIFICATION] markers (scope > security > UX priority).
- Every requirement must be testable.
Fallback Workflow
If deep-design is unavailable, use this inline workflow:
Pace: Spec authoring is load-bearing design work — choices made here propagate to implementation. Think carefully and step-by-step.
- Extract the core idea — identify what system, feature, or API is being specified.
- Ask clarifying questions if needed (batched, max 3) — present ALL as a single numbered batch.
- Create SDD directory — scan
specs/ for next sequential prefix, create specs/{NNN-name}/.
- Draft spec.md — write all required sections following the SDD format above.
- Generate checklists/requirements.md — validate spec quality (no implementation details, testable requirements, measurable criteria, max 3 clarification markers).
- Self-correct — if validation fails, fix and re-validate (max 3 iterations).
- Report — print SDD_DIR path, spec status, and suggested next step (
deep-plan or deep-design --spec for clarification).
Golden Rules
- Problem before design. Always define what and why before how.
- Non-Goals are valuable. They define the boundary of the work.
- Success Criteria are mandatory. Without measurable criteria there is no definition of done.
- Ask at most 3 clarifying questions, batched in one message.
- Spec serves downstream tools. The spec.md must be consumable by
deep-plan for plan generation and by autopilot for the full SDD workflow.
Follow-up Skills
| Next Step |
Skill |
Purpose |
| Clarify ambiguities |
deep-design --spec |
Adversarial stress-testing of the spec |
| Plan implementation |
deep-plan --spec specs/{NNN}/spec.md |
Produce plan.md + tasks.md |
| Build everything |
autopilot |
Full SDD workflow: specify → plan → tasks → implement |
1---2name: spec3description: DEPRECATED — use `deep-design --spec` instead. Turns a conversation, idea, or discussion into an SDD-compatible spec.md. Use when the user asks to write a spec, technical spec, design doc, RFC, API design, data model, spec this out, turn this into a spec, write up the design, document this, implementation spec, spec for this feature.4---56# Spec78> **DEPRECATED**: This skill is now a thin wrapper around `deep-design --spec`. The standalone `spec` skill is maintained for backwards compatibility but all new development happens in deep-design.910## Routing1112When invoked, this skill delegates to `deep-design --spec`:13- If `deep-design` is available: invoke it with `--spec` flag and pass through the argument.14- If not available: fall back to the inline workflow below.1516## SDD-Compatible Output1718The spec is written as `specs/{NNN-feature-name}/spec.md` following the Spec-Driven Development format:1920```21specs/{NNN-feature-name}/22├── spec.md # Feature specification23└── checklists/24 └── requirements.md # Spec quality validation25```2627### Required Sections2829- *User Scenarios & Testing* — prioritized user stories (P1, P2, P3) with Given/When/Then acceptance scenarios. Each story must be independently testable.30- *Functional Requirements* — FR-001, FR-002, etc. Each testable and unambiguous.31- *Success Criteria* — SC-001, SC-002, etc. Technology-agnostic, measurable outcomes.32- *Key Entities* — if data is involved (entity, attributes, relationships).33- *Assumptions* — reasonable defaults documented here.34- *Edge Cases* — boundary conditions and error scenarios.3536### Spec Quality Rules3738- Focus on WHAT and WHY, never HOW. No implementation details (languages, frameworks, APIs).39- Success criteria must be measurable and technology-agnostic.40- Max 3 `[NEEDS CLARIFICATION]` markers (scope > security > UX priority).41- Every requirement must be testable.4243## Fallback Workflow4445If `deep-design` is unavailable, use this inline workflow:4647> **Pace:** Spec authoring is load-bearing design work — choices made here propagate to implementation. Think carefully and step-by-step.48491. **Extract the core idea** — identify what system, feature, or API is being specified.502. **Ask clarifying questions if needed (batched, max 3)** — present ALL as a single numbered batch.513. **Create SDD directory** — scan `specs/` for next sequential prefix, create `specs/{NNN-name}/`.524. **Draft spec.md** — write all required sections following the SDD format above.535. **Generate checklists/requirements.md** — validate spec quality (no implementation details, testable requirements, measurable criteria, max 3 clarification markers).546. **Self-correct** — if validation fails, fix and re-validate (max 3 iterations).557. **Report** — print SDD_DIR path, spec status, and suggested next step (`deep-plan` or `deep-design --spec` for clarification).5657## Golden Rules58591. **Problem before design.** Always define what and why before how.602. **Non-Goals are valuable.** They define the boundary of the work.613. **Success Criteria are mandatory.** Without measurable criteria there is no definition of done.624. **Ask at most 3 clarifying questions, batched in one message.**635. **Spec serves downstream tools.** The spec.md must be consumable by `deep-plan` for plan generation and by `autopilot` for the full SDD workflow.6465## Follow-up Skills6667| Next Step | Skill | Purpose |68|-----------|-------|---------|69| Clarify ambiguities | `deep-design --spec` | Adversarial stress-testing of the spec |70| Plan implementation | `deep-plan --spec specs/{NNN}/spec.md` | Produce plan.md + tasks.md |71| Build everything | `autopilot` | Full SDD workflow: specify → plan → tasks → implement |