--- name: feature description: Generate a comprehensive feature implementation plan with user story, phases, and testing strategy. Use when planning new functionality before implementation. argument-hint: allowed-tools: Read, Write, Glob, Grep, Bash --- # Feature Planning Create a new plan in `specs/*.md` to implement the Feature using the exact specified markdown Plan Format. Follow the Instructions to create the plan, use the Relevant Files to understand existing patterns. ## Instructions - You are writing a plan to implement a feature, NOT implementing it yet - Use your reasoning model: THINK HARD about the architecture and implementation approach - Read the codebase to understand existing patterns, styles, and conventions - Focus on the files in the Relevant Files section when designing the implementation - Fill in EVERY section of the Plan Format - especially Testing Strategy - Break the Implementation Plan into Foundation, Core, and Integration phases - Include validation commands that prove the feature works end-to-end - Consider edge cases and error scenarios in your planning ## Relevant Files Focus on the following files to understand the codebase: - README.md (project structure and conventions) - CLAUDE.md (agent instructions if present) - src/**or app/** (source code patterns to follow) - tests/** (testing patterns and conventions) - package.json or pyproject.toml (dependencies) - docs/** (existing documentation style) ## Plan Format Write the plan to `specs/feature-.md` using this exact format: ```markdown # Feature: ## Feature Description ## User Story As a , I want so that . ## Problem Statement ## Solution Statement ## Relevant Files ### New Files - (purpose) ### Modified Files - (what changes) ## Implementation Plan ### Foundation Phase ### Core Phase
### Integration Phase ## Step by Step Tasks 1. 2. ## Testing Strategy ### Unit Tests ### Integration Tests ### Edge Cases ## Acceptance Criteria - [ ] - [ ] - [ ] ## Validation Commands - Run `` to verify unit tests pass - Run `` to verify integration tests pass - Run `` to verify build succeeds - Manual verification: ## Notes ``` ## Feature $ARGUMENTS