| name | dev-workflow |
| description | Complete development workflow from specification to implementation to review. Use this skill for any substantial development work (features, bugfixes, hotfixes) that requires planning, isolated implementation, and review. Orchestrates the entire process using specialized subagents. |
Development Workflow
Overview
Orchestrate a complete, structured development workflow from initial design through final delivery. This skill manages the entire process: specification generation, detailed planning, task breakdown, isolated implementation, and thorough review.
When to Use This Skill
Use this skill when:
- Starting any substantial development work (feature, bugfix, hotfix)
- Need a structured approach with clear planning and review
- Want isolated implementation sessions to minimize context pollution
- Working on changes that benefit from systematic tracking
Don't use for: Trivial changes, exploratory work, or when a quick iteration is more appropriate.
Workflow Phases
The workflow consists of five phases, orchestrated by spawning specialized subagents:
Phase 1: Specification (Interactive)
Generate a comprehensive design specification through iterative questioning.
What happens:
- Spawn a subagent to gather requirements
- Subagent asks ONE question at a time (preferring multiple choice)
- Refines understanding through Q&A
- Presents specification in 200-300 word sections
- Gets approval for each section
- Writes final spec to
docs/development/NNN-<name>/spec.md
User involvement: Answer questions, approve spec sections
Phase 2: Planning (Automated)
Create detailed implementation plan assuming implementer has minimal context.
What happens:
- Spawn a subagent with the approved spec
- Subagent creates comprehensive plan with:
- Files to modify
- Code patterns to follow
- Testing requirements
- Step-by-step guidance
- Writes plan to
docs/development/NNN-<name>/plan.md
User involvement: Review and approve the plan
Phase 3: Task Extraction (Automated)
Break down the plan into trackable tasks.
What happens:
- Spawn a subagent with the plan
- Subagent extracts discrete tasks
- Links each task to specific plan sections (line numbers)
- Writes task list to
docs/development/NNN-<name>/tasks.md
User involvement: Review task list
Phase 4: Implementation (Isolated Sessions)
Implement tasks one at a time in fresh, isolated sessions.
Implementation Options:
Option A: Claude Subagent (Recommended)
- For each task, spawn a fresh implementation subagent
- Subagent reads: task → spec → relevant plan section
- Subagent implements according to plan (NO deviation)
- Follows TDD, DRY, YAGNI principles
- Completes one task, then stops
Option B: External Coding Agent
- Provide the external agent with:
- Task list file path:
docs/development/NNN-<name>/tasks.md - Spec file path:
docs/development/NNN-<name>/spec.md - Plan file path:
docs/development/NNN-<name>/plan.md - Implementation instructions:
references/impl_phase.md(from this skill)
- Task list file path:
- Direct the agent to implement the next uncompleted task
- Agent reads task → spec → relevant plan section → implements
- Agent reports completion (but does NOT mark complete or commit yet)
Option C: Human Implementation
- Human reads the next task from tasks.md
- Human reads corresponding spec and plan sections
- Human implements according to plan
- Human reports completion for review
User involvement: Choose implementation method, trigger each task, provide clarifications if needed
Phase 5: Review (Isolated Sessions)
Review completed work before marking complete.
What happens:
- After implementation, spawn a review subagent
- Subagent reads: spec → plan section → implementation
- Checks against requirements, code quality, tests
- Provides specific feedback OR sign-off
User involvement:
- Route feedback between reviewer and implementer
- Authorize task completion and commit after sign-off
- Decide when to do final review
Using This Skill
Quick Start
Invoke this skill and say:
"I want to implement [feature/fix description]"
The skill will guide you through each phase, spawning the appropriate subagents.
Manual Phase Control
You can also invoke specific phases:
- "Start spec phase" - Begin specification generation
- "Generate plan" - Create plan from existing spec
- "Implement next task" - Spawn implementer for next uncompleted task
- "Review last implementation" - Spawn reviewer for completed work
- "Final review" - Check all completed work together
Subagent Orchestration
This skill leverages the Task tool to spawn specialized subagents with isolated context:
Specification Agent (general-purpose)
- Loads: Current project state, user input
- Detailed instructions in:
references/spec_phase.md - Interactive mode: Asks questions, gets approval
Planning Agent (general-purpose)
- Loads: Approved spec, project context
- Detailed instructions in:
references/plan_phase.md - Outputs: Comprehensive implementation plan
Task Extraction Agent (general-purpose)
- Loads: Approved plan
- Detailed instructions in:
references/tasks_phase.md - Outputs: Structured task list with line references
Implementation Agent (general-purpose)
- Loads: Single task, spec, relevant plan section
- Detailed instructions in:
references/impl_phase.md - Constraint: NO deviation from plan
- Fresh session per task (no context pollution)
Review Agent (general-purpose)
- Loads: Spec, plan section, implementation
- Detailed instructions in:
references/review_phase.md - Outputs: Specific feedback or sign-off
File Structure
All workflow artifacts are stored in:
docs/development/NNN-<name>/
├── spec.md # Design specification
├── plan.md # Implementation plan
└── tasks.md # Task tracking list
The NNN-
Key Principles
- Separation of concerns - Design, implementation, and review are distinct phases
- Isolated context - Implementation and review happen in fresh sessions
- Plan adherence - Implementers follow the plan strictly
- Incremental commits - Each task gets its own commit after review
- Quality gates - Nothing is marked complete without review sign-off
Workflow State Management
Track workflow progress through:
- Task list checkboxes (
- [ ]→- [x]) - Commit history (one commit per completed task)
- File timestamps in docs/development/NNN-
/
Advanced Usage
Resuming After Interruption
If interrupted mid-workflow:
- Read the task list to see completed tasks
- Use "Implement next task" to continue
- The subagent will pick up from the first uncompleted task
Modifying the Plan
If the plan needs adjustment:
- Edit
docs/development/NNN-<name>/plan.md - Update affected tasks in
tasks.md - Continue implementation with updated plan
Parallel Implementation
For independent tasks, spawn multiple implementation agents in parallel:
"Implement tasks 1, 3, and 5 in parallel"
Review each independently before marking complete.
Using External Coding Agents
To use external agents (Cursor, Windsurf, Aider, etc.) for implementation:
- Complete spec, plan, and task phases in Claude (phases 1-3)
- Export the context to the external agent:
- Task list:
docs/development/NNN-<name>/tasks.md - Spec:
docs/development/NNN-<name>/spec.md - Plan:
docs/development/NNN-<name>/plan.md - Implementation guide: Extract
references/impl_phase.mdfrom this skill
- Task list:
- Instruct the external agent:
Read the task list at [path]. Implement the next uncompleted task. Follow the implementation guide in impl_phase.md strictly. Read the spec and the plan section referenced in the task. DO NOT mark the task complete or commit - report completion only. - After implementation, return to Claude for review (phase 5)
- Route feedback between Claude reviewer and external implementer
- After sign-off, external agent (or human) marks complete and commits
This approach allows you to:
- Use Claude for planning and review (its strength)
- Use external agents for implementation (potentially faster or with different capabilities)
- Maintain the structured workflow and quality gates
References
Detailed instructions for each phase are in references/:
spec_phase.md- Specification generation guidanceplan_phase.md- Planning requirements and formattasks_phase.md- Task extraction rulesimpl_phase.md- Implementation constraints and workflowreview_phase.md- Review checklist and standards
These references are loaded into subagent context as needed.