Create and execute a phases-based plan for complex tasks. Divides work into structured phases with individual step tracking.
Commands are custom slash commands that extend Claude Code's functionality. They're markdown files in .claude/commands/ that define reusable prompts or workflows. Invoke them with /command-name in Claude Code. Commands can accept arguments and automate complex multi-step tasks.
Save this file as `.claude/commands/plan-phases.md` and invoke with `/plan-phases`
Create a structured phases-based implementation plan:
1. **Analyze Requirements**
- Review the task scope and complexity
- Identify dependencies and blockers
2. **Create Plan Structure**
- Create `plan-main.md` in `.claude/plans/` directory
- List all phases with status (pending/in_progress/completed)
- Include brief description for each phase
3. **Create Phase Files**
- Create individual `phase-{n}-{name}.md` files
- Include detailed steps for each phase
- Add checkboxes for progress tracking
4. **Execute Sequentially**
- Read next pending phase from plan-main.md
- Complete all steps in that phase
- Mark phase as completed
- Proceed to next phase
File Structure:
```
.claude/plans/
├── plan-main.md # Master plan with all phases
├── phase-1-setup.md # Detailed steps for phase 1
├── phase-2-core.md # Detailed steps for phase 2
└── phase-n-name.md # Additional phases
```Generate comprehensive documentation for code, APIs, or components. Creates markdown docs following best practices.
Generate conventional commit messages following the project style. Analyzes staged changes and creates properly formatted commits.
Generate comprehensive test cases for functions, components, or modules. Creates unit tests following testing best practices.