Guides intelligent planning strategies with automatic phase detection and complexity assessment. Auto-activates when users mention epic breakdown, feature decomposition, scope estimation, dependency analysis, risk identification, or ask "how do I plan this complex task", "break down this feature", "what's the scope", "estimate effort", "identify dependencies", or "planning strategy". Provides interactive planning mode with 6 planning phases (complexity assessment, scope definition, dependency analysis, risk identification, task breakdown, effort estimation). Works with sequential-thinking for complex decomposition, docs-seeker for research, pm-workflow-guide for command suggestions, and linear-subagent-guide for Linear integration.
Guides intelligent planning strategies with automatic phase detection and complexity assessment.
/plugin marketplace add duongdev/ccpm/plugin install ccpm@duongdev-ccpm-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
supporting-docs/complexity-rubric.mdsupporting-docs/examples.mdExpert planning assistant that helps you decompose complex tasks, assess complexity, identify dependencies, and create comprehensive implementation plans.
This skill auto-activates when:
This skill guides you through 6 planning phases for comprehensive task decomposition:
Purpose: Evaluate task complexity to determine planning approach
Complexity Rubric:
Simple (1-2 files, clear scope)
Medium (3-8 files, some unknowns)
Complex (9+ files, research needed, multiple systems)
Questions to ask:
Purpose: Clearly define boundaries and deliverables
Key elements:
Questions to ask:
Purpose: Identify dependencies and proper execution order
Dependency types:
Questions to ask:
Purpose: Identify potential challenges and mitigation strategies
Common risk categories:
For each risk:
Purpose: Decompose feature into actionable subtasks
Breakdown principles:
Example breakdown:
Epic: User Authentication
├── Feature: Login Flow
│ ├── Task: Create login API endpoint
│ ├── Task: Add JWT token generation
│ ├── Task: Implement password validation
│ └── Task: Add login UI form
├── Feature: Session Management
│ ├── Task: Add token refresh logic
│ └── Task: Handle session expiration
└── Feature: Security
├── Task: Add rate limiting
└── Task: Implement 2FA support
Purpose: Estimate time and resources needed
Estimation approaches:
Factors to consider:
Buffer rule: Add 20-30% buffer for unknowns
This skill enhances the following CCPM commands:
/ccpm:plan - Smart planning with phase detection
/ccpm:plan - Extended planning with research
/ccpm:plan - Plan modifications
/ccpm:plan - Spec-first development
/ccpm:plan - Epic/feature decomposition
This skill integrates with:
sequential-thinking - For complex task decomposition
docs-seeker - For research during planning
pm-workflow-guide - For command recommendations
linear-subagent-guide - For updating Linear
external-system-safety - For Jira/Confluence reads
workflow-state-tracking - For state transitions
When user mentions planning-related keywords, activate and assess their need:
User: "I need to plan this complex payment integration"
↓
[planning-strategy-guide activates]
↓
Assess: Type of planning needed (epic breakdown? complexity assessment?)
Use AskUserQuestion to gather context:
AskUserQuestion({
questions: [{
question: "What type of planning assistance do you need?",
header: "Planning Type",
multiSelect: false,
options: [
{
label: "Break down large feature",
description: "Decompose epic/feature into tasks"
},
{
label: "Assess complexity",
description: "Evaluate technical complexity and effort"
},
{
label: "Identify dependencies",
description: "Map task dependencies and order"
},
{
label: "Analyze risks",
description: "Identify potential challenges"
}
]
}]
});
Based on user's selection, run relevant phases:
For epic breakdown:
For complexity assessment:
For scope definition:
Based on complexity, invoke complementary skills:
Complex tasks → Invoke sequential-thinking:
Task(sequential-thinking): "Break down this complex payment integration..."
Research needed → Invoke docs-seeker:
Skill: docs-seeker
Query: "Find Stripe API documentation and best practices"
Command suggestion needed → Let pm-workflow-guide activate:
[pm-workflow-guide auto-activates]
Suggests: "/ccpm:plan epic 'Payment Integration'"
Use linear-subagent-guide patterns:
Task(ccpm:linear-operations): `
operation: update_issue_description
params:
issueId: "${issueId}"
description: |
## Implementation Checklist
${generatedChecklist}
> **Complexity**: ${complexity} | **Estimated**: ${estimate}
## Dependencies
${dependencyList}
## Risks & Mitigation
${risksList}
---
${originalDescription}
context:
command: "planning-strategy-guide"
cache: true
`
Show user what to do next:
✅ Planning Complete!
📊 Results:
• Complexity: Medium
• Tasks: 8 subtasks identified
• Dependencies: 3 hard dependencies
• Risks: 2 medium risks identified
• Estimate: 2-3 days
💡 Next Steps:
1. Review the plan in Linear
2. Start implementation: /ccpm:work ${issueId}
3. Create spec if complex: /ccpm:plan
User: "Help me plan this payment gateway integration"
Claude: [planning-strategy-guide activates]
I'll help you plan the payment gateway integration. Let me start by assessing the complexity.
[Asks clarifying questions via AskUserQuestion]
Based on your answers, this is a **Complex** task (9+ files, external API integration).
Let me run the 6 planning phases:
**Phase 1: Complexity Assessment**
- External API integration (Stripe)
- Security considerations (PCI compliance)
- Multiple payment methods
- Webhook handling
→ Complexity: High
**Phase 2: Scope Definition**
In scope:
• Credit card payments
• Stripe integration
• Basic webhook handling
Out of scope:
• PayPal integration (defer to Phase 2)
• Subscription management (defer)
**Phase 3: Dependency Analysis**
Hard dependencies:
1. Stripe account setup (external)
2. Security review approval (external)
3. Database schema for payments
Parallel work:
• Frontend payment form
• Backend API endpoints
• Webhook handlers
**Phase 4: Risk Identification**
1. **PCI Compliance** (High impact, Medium likelihood)
- Mitigation: Use Stripe.js (no card data touches server)
2. **Webhook reliability** (Medium impact, Medium likelihood)
- Mitigation: Implement idempotency keys
3. **API rate limits** (Low impact, Low likelihood)
- Mitigation: Add exponential backoff
**Phase 5: Task Breakdown**
Epic: Payment Gateway Integration
├── Set up Stripe account and API keys
├── Implement payment API endpoints
│ ├── Create payment intent endpoint
│ ├── Confirm payment endpoint
│ └── Refund payment endpoint
├── Build frontend payment form
│ ├── Integrate Stripe.js
│ ├── Add card input component
│ └── Handle payment errors
├── Add webhook handlers
│ ├── payment_intent.succeeded
│ ├── payment_intent.failed
│ └── refund.updated
├── Add database schema
│ ├── payments table
│ └── payment_events table
├── Write tests
│ ├── API endpoint tests
│ ├── Webhook handler tests
│ └── Integration tests
└── Security review
**Phase 6: Effort Estimation**
- Total: 12 tasks
- Estimate: 5-7 days (with 20% buffer)
- Story points: 21 points
✅ Planning complete! Would you like me to:
1. Create Linear issue with this plan: /ccpm:plan
2. Create spec document: /ccpm:plan
3. Start implementation: /ccpm:work
User: "How complex is adding a logout button?"
Claude: [planning-strategy-guide activates - lightweight mode]
Let me assess the complexity:
**Phase 1: Complexity Assessment**
- Files to modify: 2 (logout button component, API endpoint)
- Clear requirements: Yes
- External dependencies: None
- Research needed: Minimal
→ **Complexity: Simple** (1-2 hours)
**Quick Plan**:
1. Add logout button to UI (30 min)
2. Call logout API endpoint (15 min)
3. Clear session/cookies (15 min)
4. Test (30 min)
**Estimate**: 1-2 hours
Since this is simple, you can start immediately:
/ccpm:plan "Add logout button"
User: "What order should I implement these features?"
Claude: [planning-strategy-guide activates - Phase 3]
Let me analyze the dependencies:
**Phase 3: Dependency Analysis**
Your features:
1. User authentication
2. Profile page
3. Settings page
4. Admin dashboard
Dependency graph:
┌─────────────────┐ │ Authentication │ (Must be first) └────────┬────────┘ │ ┌────┴────┬────────────┐ │ │ │ ┌───▼──┐ ┌───▼──┐ ┌─────▼──────┐ │Profile│ │Settings│ │Admin Dash│ └──────┘ └────────┘ └────────────┘ (parallel work possible)
**Execution order**:
1. **First**: Implement authentication (blocker for all others)
2. **Then in parallel**:
- Profile page (Team A)
- Settings page (Team B)
- Admin dashboard (Team C)
**Critical path**: Authentication → Any feature (all equal)
**Recommendation**:
- Start with: /ccpm:plan "User authentication"
- After auth done, all 3 can proceed in parallel
User: "What could go wrong with this API migration?"
Claude: [planning-strategy-guide activates - Phase 4]
Let me identify risks for your API migration:
**Phase 4: Risk Identification**
**1. Breaking Changes** (High impact, High likelihood)
- Impact: Existing clients break
- Mitigation:
• Implement API versioning (/v1, /v2)
• Maintain backward compatibility
• Provide migration guide
- Contingency: Rollback plan with feature flags
**2. Data Migration Issues** (High impact, Medium likelihood)
- Impact: Data loss or corruption
- Mitigation:
• Test migration on staging
• Backup all data before migration
• Implement migration rollback scripts
- Contingency: Restore from backup
**3. Performance Degradation** (Medium impact, Medium likelihood)
- Impact: Slower API responses
- Mitigation:
• Load test new API
• Add caching layer
• Optimize database queries
- Contingency: Scale infrastructure
**4. Third-party Dependencies** (Low impact, High likelihood)
- Impact: New libraries have bugs
- Mitigation:
• Use stable versions
• Test thoroughly
• Have alternative libraries ready
- Contingency: Fall back to old implementation
**Recommendation**:
Create detailed migration plan with /ccpm:plan
Include rollback procedures and monitoring
User: "Estimate effort for these 5 tasks"
Claude: [planning-strategy-guide activates - Phase 6]
**Phase 6: Effort Estimation**
Using T-shirt sizing:
| Task | Size | Effort | Reasoning |
|------|------|--------|-----------|
| Add search bar | **XS** | 1-2h | Simple UI component |
| Implement search API | **S** | 4-6h | Straightforward endpoint |
| Add search filters | **M** | 1-2d | Multiple filter types |
| Full-text search (Elasticsearch) | **L** | 3-5d | New tech, complex setup |
| Search analytics | **M** | 1-2d | Logging + dashboard |
**Total estimate**: 6-10 days (with 20% buffer: 7-12 days)
**Story points breakdown**:
- XS: 1 point → 1 point
- S: 2 points → 2 points
- M: 5 points → 10 points
- L: 8 points → 8 points
**Total**: 21 story points
**Recommendation**:
- Sprint 1: Search bar + API (3 points)
- Sprint 2: Filters + Analytics (10 points)
- Sprint 3: Elasticsearch (8 points)
Would you like me to create tasks in Linear?
/ccpm:plan (will break down into subtasks)
Don't dive into detailed planning without understanding complexity:
❌ Bad: Immediately create 20 subtasks without assessment ✅ Good: Assess complexity first, then plan depth accordingly
Match planning depth to task complexity:
Planning is not one-and-done:
Initial plan → Implementation → Learning → Update plan
Use /ccpm:plan to refine plans based on learnings.
Make assumptions explicit:
**Assumptions**:
- Stripe API is stable (confirmed with docs)
- PCI compliance handled by Stripe.js (verified)
- Payment volume < 1000/day (confirmed with product)
For complex tasks, evaluate alternatives:
**Approach A: Use Stripe**
Pros: Well-documented, PCI compliant
Cons: Monthly fees, vendor lock-in
**Approach B: Use PayPal**
Pros: Wider adoption, familiar to users
Cons: Complex API, less flexible
**Recommendation**: Approach A (Stripe)
Rationale: Better developer experience, clearer documentation
For scope definition, ask:
Always include:
Dependency graphs, workflow diagrams, and architecture sketches help:
[User] → [Frontend] → [API Gateway] → [Payment Service] → [Stripe]
↓
[Database]
↓
[Webhook Handler]
When: Large feature spanning multiple sprints
Phases to use: 1, 2, 3, 5, 6
Output: Hierarchical task structure in Linear
Integration:
/ccpm:plan epic first (create spec)/ccpm:plan (use this skill's Phase 5)When: Unsure how complex a task is
Phases to use: 1, 4, 6
Output: Complexity rating + estimate + risks
Integration:
/ccpm:plan (quick assessment)When: Multiple interconnected tasks
Phases to use: 3, 5
Output: Dependency graph + execution order
Integration:
/ccpm:work (visualize)When: High-stakes or unfamiliar territory
Phases to use: 1, 4
Output: Risk register + mitigation strategies
Integration:
/ccpm:plan <doc-id> securityThe Planning Strategy Guide is your intelligent planning assistant, providing:
✅ 6 comprehensive planning phases for thorough task analysis ✅ Complexity assessment to match planning depth to task needs ✅ Dependency analysis to identify proper execution order ✅ Risk identification to anticipate and mitigate challenges ✅ Task breakdown to create actionable, testable subtasks ✅ Effort estimation with multiple approaches (t-shirt, story points, time)
Plan smart, not hard: Match planning depth to task complexity. Simple tasks get quick assessments, complex tasks get comprehensive analysis.
Iterate and refine: Planning is continuous. Use learnings from implementation to update plans.
Integrate seamlessly: Works alongside sequential-thinking, docs-seeker, pm-workflow-guide, and other CCPM skills.
Stay practical: Focus on actionable outputs that help you start coding, not just documentation.
For quick complexity check:
For epic breakdown:
For comprehensive planning:
Integration commands:
/ccpm:plan - Smart planning (uses this skill)/ccpm:plan - Spec-first (uses Phase 2, 5)/ccpm:plan - Refine plan (re-runs relevant phases)Remember: Good planning makes implementation smooth. Take time to plan well, then execute confidently.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.