/spec-driven:spec-workflowfrom spec-driven
Guides spec-driven development with a 4-phase workflow: brainstorm, requirements (EARS notation), design, and tasks. Helps plan features before coding.
Ships in spec-driven. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A structured approach to feature development through four phases: Brainstorm, Requirements, Design, and Tasks. This methodology prevents ad-hoc coding by ensuring proper planning before implementation.
Spec-driven development transforms vague feature ideas into formal, traceable specifications:
Feature Idea → Brainstorm (Conversation) → Requirements (EARS) → Design (Architecture) → Tasks (Trackable)
Before formalizing requirements, use /spec-brainstorm to explore the idea through conversation.
/spec-brainstorm [idea]/spec <feature-name>The brainstorm phase is optional — if you already know exactly what you want, skip straight to /spec.
All new spec files are stored in .claude/specs/<feature-name>/. Existing .codex/specs/<feature-name>/ specs remain supported as a migration fallback:
requirements.md - User stories with EARS acceptance criteriadesign.md - Architecture, components, data flowtasks.md - Implementation tasks tracked by status, wiring, verification, and dependenciesCapture WHAT the system should do using EARS (Easy Approach to Requirements Syntax).
Structure requirements as testable statements:
WHEN [condition/trigger]
THE SYSTEM SHALL [expected behavior]
Examples:
WHEN a user submits a login form with valid credentials
THE SYSTEM SHALL authenticate the user and redirect to dashboard
WHEN a user submits invalid form data
THE SYSTEM SHALL display inline validation errors without page reload
WHEN an API request fails after 3 retries
THE SYSTEM SHALL display a user-friendly error message and log the failure
### US-1: [Story Title]
**As a** [user role]
**I want** [goal/desire]
**So that** [benefit/value]
#### Acceptance Criteria (EARS)
1. WHEN [condition]
THE SYSTEM SHALL [behavior]
For detailed EARS patterns and examples, consult references/ears-notation.md.
Define HOW the system will implement the requirements.
For detailed design patterns, consult references/design-patterns.md.
Break down the design into discrete, trackable implementation tasks.
### T-1: [Task Title]
- **Status**: pending | in_progress | completed
- **Wired**: no | yes | n/a
- **Verified**: no | yes
- **Requirements**: US-1, US-2
- **Description**: [Detailed description]
- **Acceptance**: [How to verify completion]
- **Dependencies**: T-0 | none
Organize tasks into logical phases:
tasks.md; if the active client has a native todo tool, mirror the task list there.For detailed task breakdown strategies, consult references/task-breakdown.md.
After planning is complete, execute the spec autonomously using the provided scripts.
Run one task at a time:
${CODEX_PLUGIN_ROOT:-$CLAUDE_PLUGIN_ROOT}/scripts/spec-exec.sh --spec-name <name>
Each run picks the highest-priority pending task, implements it, tests it, updates the spec, and commits.
Run all tasks in a loop:
${CODEX_PLUGIN_ROOT:-$CLAUDE_PLUGIN_ROOT}/scripts/spec-loop.sh --spec-name <name> --max-iterations 50
The loop re-reads spec files each iteration, detects completion via <promise>COMPLETE</promise>, and stops when all tasks are done.
| Command | Description |
|---|---|
/spec-exec | Run one implementation iteration |
/spec-loop | Loop until all tasks complete |
Create specs in the project's .claude/specs/ directory. If an older project already has .codex/specs/, the scripts read that location unless SPEC_ROOT is set:
project/
├── .codex/
│ └── specs/
│ └── user-authentication/
│ ├── requirements.md
│ ├── design.md
│ └── tasks.md
└── src/
Use the /spec <feature-name> command to start a new spec with interactive guidance through all three phases.
After completing the Tasks phase, keep tasks.md authoritative and mirror to the active client's todo system when available:
For each task in tasks.md:
Create or update a todo with subject, description, and dependencies
When implementing features, include relevant spec files as context. This ensures implementation stays aligned with requirements.
Use /spec-refine to update requirements or design. Changes cascade:
Templates are available at ${CODEX_PLUGIN_ROOT:-$CLAUDE_PLUGIN_ROOT}/templates/:
requirements.md - Requirements template with EARS formatdesign.md - Design document templatetasks.md - Task tracking template| Phase | Focus | Output | Key Question |
|---|---|---|---|
| Requirements | WHAT | User stories + EARS | What should it do? |
| Design | HOW | Architecture docs | How will it work? |
| Tasks | WHEN | Task list + todos | What's the sequence? |
For detailed guidance on each phase:
references/ears-notation.md - Complete EARS patterns and examplesreferences/design-patterns.md - Architecture documentation patternsreferences/task-breakdown.md - Task decomposition strategies/spec <name> - Start new spec/spec-refine - Update existing spec/spec-tasks - Regenerate tasks/spec-status - View progress/spec-validate - Validate completenessWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub habib0x0/spec-driven-plugin --plugin spec-drivenOther plugins' skills for the same job