plan
Generate Implementation Plan
Generate an implementation design document from a canonical specification.
Workflow
-
Load Specification
- Read the specification file from provided path
- If no path provided, search
.specs/for recent specifications - Parse requirements and acceptance criteria
-
Analyze Codebase
- Explore existing codebase for:
- Existing patterns and conventions
- Related components and modules
- Integration points
- Technology stack
- Explore existing codebase for:
-
Generate Design
- Create implementation approach
- Identify components to create/modify
- Define data models (if applicable)
- Design API contracts (if applicable)
- Document alternatives considered
- Map design elements to requirements
-
Validate Coverage
- Verify design addresses all requirements
- Check alignment with codebase conventions
- Identify risks and mitigation strategies
-
Save Design
- Save to
.specs/{feature-name}/design.md - Update specification with design reference
- Report design summary
- Save to
Arguments
$ARGUMENTS- Path to specification file
Examples
# From specification file
/spec-driven-development:plan .specs/user-auth/spec.md
# Auto-detect recent specification
/spec-driven-development:plan
Design Document Structure
# Design: {Feature Name}
## Overview
[High-level implementation approach]
## Components
### {Component 1}
- **Responsibility:** [What it does]
- **Location:** [File path]
- **Interfaces:** [How it connects]
## Data Model
[Entity definitions if applicable]
## API Design
[Endpoint specifications if applicable]
## Alternatives Considered
[Other approaches and why rejected]
## Requirements Coverage
| Requirement | Covered By |
| --- | --- |
| FR-1 | Component A |
| FR-2 | Component B |
Related Commands
/spec-driven-development:specify- Generate specification (Phase 1)/spec-driven-development:tasks- Generate task breakdown (Phase 3)/spec-driven-development:implement- Guide implementation (Phase 4)
More from melodic-software/claude-code-plugins
design-thinking
Design Thinking methodology for human-centered innovation. Covers the 5-phase IDEO/Stanford d.school approach (Empathize, Define, Ideate, Prototype, Test) with workshop facilitation and exercise templates.
191plantuml-syntax
Authoritative reference for PlantUML diagram syntax. Provides UML and non-UML diagram types, syntax patterns, examples, and setup guidance for generating accurate PlantUML diagrams.
161system-prompt-engineering
Design effective system prompts for custom agents. Use when creating agent system prompts, defining agent identity and rules, or designing high-impact prompts that shape agent behavior.
141architecture-documentation
Generate architecture documents using templates with diagram integration. Use for creating C4 diagrams, viewpoint documents, and technical overviews.
126data-modeling
Data modeling with Entity-Relationship Diagrams (ERDs), data dictionaries, and conceptual/logical/physical models. Documents data structures, relationships, and attributes.
101resume-optimization
Resume structure, achievement bullet formulas, ATS optimization, and job-targeted tailoring for software engineers. Use when reviewing resumes, crafting achievement bullets, extracting keywords from job descriptions, or tailoring content for specific roles.
93