spec-driven-development
Systematic three-phase approach to feature development using Requirements, Design, and Tasks phases. Transforms vague feature ideas into well-defined, implementable solutions that reduce ambiguity, improve quality, and enable effective AI collaboration.
What this skill does
# Spec-Driven Development A comprehensive methodology for systematic software feature development that ensures quality, maintainability, and successful delivery through structured planning. ## When to Use This Skill **Ideal scenarios:** - Complex features with multiple components, integrations, or user interactions - High-stakes projects where rework costs are significant - Team collaboration requiring shared understanding - AI-assisted development where clear structure improves output quality - Knowledge preservation for future maintainers **Less suitable:** - Simple bug fixes with obvious solutions - Experimental prototypes for rapid iteration - Time-critical hotfixes requiring immediate action - Well-established patterns with minimal ambiguity ## The Three-Phase Workflow ### Phase 1: Requirements Gathering **Purpose:** Transform vague feature ideas into clear, testable requirements **Process:** 1. Capture user stories expressing value and purpose 2. Define acceptance criteria using EARS format (Easy Approach to Requirements Syntax) 3. Identify edge cases and constraints 4. Validate completeness and feasibility **EARS Format Patterns:** ``` WHEN [event] THEN [system] SHALL [response] IF [precondition] THEN [system] SHALL [response] WHEN [event] AND [condition] THEN [system] SHALL [response] ``` **Example:** ```markdown **User Story:** As a new user, I want to create an account, so that I can access personalized features. **Acceptance Criteria:** 1. WHEN user provides valid email and password THEN system SHALL create new account 2. WHEN user provides existing email THEN system SHALL display "email already registered" error 3. WHEN user provides password shorter than 8 characters THEN system SHALL display "password too short" error 4. WHEN account creation succeeds THEN system SHALL send confirmation email ``` ### Phase 2: Design Documentation **Purpose:** Create a comprehensive technical plan for implementation **Process:** 1. Research technical approaches and constraints 2. Define system architecture and component interactions 3. Specify data models and interfaces 4. Plan error handling and testing strategies **Design Document Structure:** ```markdown ## Overview [High-level summary of approach] ## Architecture [System components and their relationships] ## Components and Interfaces [Detailed component descriptions] ## Data Models [Data structures and validation rules] ## Error Handling [Error scenarios and response strategies] ## Testing Strategy [Testing approach for different layers] ``` **Decision Documentation:** ```markdown ### Decision: [Title] **Context:** [Situation requiring decision] **Options Considered:** 1. [Option 1] - Pros: [benefits] / Cons: [drawbacks] 2. [Option 2] - Pros: [benefits] / Cons: [drawbacks] **Decision:** [Chosen option] **Rationale:** [Why this was selected] ``` ### Phase 3: Task Planning **Purpose:** Break design into actionable, sequential implementation steps **Process:** 1. Convert design elements into specific coding tasks 2. Sequence tasks to enable incremental progress 3. Define clear objectives and completion criteria 4. Reference requirements for traceability **Task Structure:** ```markdown - [ ] 1. [Epic/Major Component] - [ ] 1.1 [Specific implementation task] - [Implementation details] - [Files/components to create] - _Requirements: [Requirement references]_ ``` **Task Sequencing Strategies:** - **Foundation-First:** Core interfaces before dependent components - **Feature-Slice:** End-to-end vertical slices for early validation - **Risk-First:** Tackle uncertain areas early - **Hybrid:** Combine approaches based on project needs ## Quality Checklists ### Requirements Checklist - [ ] All user roles identified and addressed - [ ] Normal, edge, and error cases covered - [ ] Requirements are testable and measurable - [ ] No conflicting requirements - [ ] EARS format used consistently ### Design Checklist - [ ] All requirements addressed in design - [ ] Component responsibilities well-defined - [ ] Interfaces between components specified - [ ] Error handling covers expected failures - [ ] Security considerations addressed ### Tasks Checklist - [ ] All design components have implementation tasks - [ ] Tasks ordered to respect dependencies - [ ] Each task produces testable code - [ ] Requirements references included - [ ] Scope is appropriate (2-4 hours each) ## Integration with AI Workflows **For Claude Code / AI Assistants:** 1. **Start with context:** Provide project background, constraints, and goals 2. **Work in phases:** Complete requirements before design, design before tasks 3. **Iterate:** Refine outputs through conversation rather than single requests 4. **Validate:** Ask AI to review outputs against checklists 5. **Trace:** Maintain links between requirements, design, and tasks **Example prompt for starting a spec:** ``` I'm working on [project context]. We need to add [feature description]. Context: - Technology: [stack] - Users: [target audience] - Constraints: [key limitations] Please help me develop requirements using the EARS format, starting with user stories and acceptance criteria. ``` ## Common Pitfalls to Avoid 1. **Skipping phases:** Each phase builds on the previous; shortcuts create problems 2. **Vague requirements:** "System should be fast" vs specific, measurable criteria 3. **Implementation details in requirements:** Focus on what, not how 4. **Over-engineering design:** Solve current requirements, not hypothetical future ones 5. **Monolithic tasks:** Break down into 2-4 hour increments 6. **Missing error cases:** Always consider what happens when things go wrong ## Next Steps After completing a spec: 1. Begin implementation following task sequence 2. Track progress by marking tasks complete 3. Update spec if implementation reveals gaps 4. Validate completed work against requirements 5. Document learnings for future specs
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.