feature-planning
npx machina-cli add skill mhattingpete/claude-skills-marketplace/feature-planning --openclawFeature Planning
Systematically analyze feature requests and create detailed, actionable implementation plans.
When to Use
- Requests new feature ("add user authentication", "build dashboard")
- Asks for enhancements ("improve performance", "add export")
- Describes complex multi-step changes
- Explicitly asks for planning ("plan how to implement X")
- Provides vague requirements needing clarification
Planning Workflow
1. Understand Requirements
Ask clarifying questions:
- What problem does this solve?
- Who are the users?
- Specific technical constraints?
- What does success look like?
Explore the codebase:
Use Task tool with subagent_type='Explore' and thoroughness='medium' to understand:
- Existing architecture and patterns
- Similar features to reference
- Where new code should live
- What will be affected
2. Analyze & Design
Identify components:
- Database changes (models, migrations, schemas)
- Backend logic (API endpoints, business logic, services)
- Frontend changes (UI, state, routing)
- Testing requirements
- Documentation updates
Consider architecture:
- Follow existing patterns (check CLAUDE.md)
- Identify reusable components
- Plan error handling and edge cases
- Consider performance implications
- Think about security and validation
Check dependencies:
- New packages/libraries needed
- Compatibility with existing stack
- Configuration changes required
3. Create Implementation Plan
Break feature into discrete, sequential tasks:
## Feature: [Feature Name]
### Overview
[Brief description of what will be built and why]
### Architecture Decisions
- [Key decision 1 and rationale]
- [Key decision 2 and rationale]
### Implementation Tasks
#### Task 1: [Component Name]
- **File**: `path/to/file.py:123`
- **Description**: [What needs to be done]
- **Details**:
- [Specific requirement 1]
- [Specific requirement 2]
- **Dependencies**: None (or list task numbers)
#### Task 2: [Component Name]
...
### Testing Strategy
- [What types of tests needed]
- [Critical test cases to cover]
### Integration Points
- [How this connects with existing code]
- [Potential impacts on other features]
Include specific references:
- File paths with line numbers (
src/utils/auth.py:45) - Existing patterns to follow
- Relevant documentation
4. Review Plan with User
Confirm:
- Does this match expectations?
- Missing requirements?
- Adjust priorities or approach?
- Ready to proceed?
5. Execute with plan-implementer
Launch plan-implementer agent for each task:
Task tool with:
- subagent_type: 'plan-implementer'
- description: 'Implement [task name]'
- prompt: Detailed task description from plan
Execution strategy:
- Implement sequentially (respect dependencies)
- Verify each task before next
- Adjust plan if issues discovered
- Let test-fixing skill handle failures
- Let git-pushing skill handle commits
Best Practices
Planning:
- Start broad, then specific
- Reference existing code patterns
- Include file paths and line numbers
- Think through edge cases upfront
- Keep tasks focused and atomic
Communication:
- Explain architectural decisions
- Highlight trade-offs and alternatives
- Be explicit about assumptions
- Provide context for future maintainers
Execution:
- Implement one task at a time
- Verify before moving forward
- Keep user informed
- Adapt based on discoveries
Integration
- plan-implementer agent: Receives task specs, implements
- test-fixing skill: Auto-triggered on test failures
- git-pushing skill: Triggered for commits
Source
git clone https://github.com/mhattingpete/claude-skills-marketplace/blob/main/engineering-workflow-plugin/skills/feature-planning/SKILL.mdView on GitHub Overview
Feature Planning systematically analyzes feature requests to produce detailed, actionable implementation plans. It guides clarification, architecture decisions, and a concrete task breakdown with testing and integration notes to reduce ambiguity and risk.
How This Skill Works
The process starts with clarifying questions about the problem, users, constraints, and success criteria. It then analyzes the codebase to identify components and dependencies, and finally generates a structured plan with discrete tasks, architecture decisions, testing strategy, and integration points.
When to Use It
- Requests a new feature (e.g., add user authentication, build a dashboard)
- Requests enhancements (e.g., improve performance, add export)
- Describes complex multi-step changes
- Explicitly asks for planning (e.g., plan how to implement X)
- Provides vague requirements needing clarification
Quick Start
- Step 1: Ask clarifying questions about problem, users, constraints, and what success looks like
- Step 2: Use the Task tool to explore the codebase and identify affected components
- Step 3: Create a Feature Plan with Overview, Architecture Decisions, Implementation Tasks, Testing Strategy, and Integration Points
Best Practices
- Start broad, then become specific; map ideas to concrete tasks
- Reference existing code patterns and include file paths/line numbers
- Identify architecture decisions and dependencies up front
- Think through edge cases, validation, security, and testing early
- Break work into discrete, atomic tasks and verify progress step by step
Example Use Cases
- Plan how to implement a user authentication feature with clear API and UI changes
- Plan a dashboard export feature, outlining data sources, formats, and permissions
- Plan a multi-step feature rollout with milestones and rollback considerations
- Plan clarifying questions for vague requirements before coding
- Plan integration with an external API, detailing endpoints, data mapping, and error handling