Planning Skill
Overview
This skill provides comprehensive planning workflows for features and system changes. It focuses on the research and clarification phase - gathering context, exploring architecture, and asking good questions before spec generation.
When to Use This Skill
Use this skill when:
- In planning/plan mode (auto-trigger if possible)
- User says: "plan this", "research this feature", "help me understand"
- User asks: "what do I need to know before implementing X?"
- Before generating specs with
/cmd:generate-spec
- Need to explore codebase patterns and architecture
Core Workflow
1. Research Phase
- Explore codebase for similar existing features
- Identify which domain/area this belongs in
- Locate related types, schemas, services, routes
- Check test patterns in relevant areas
- Review database models (if applicable)
- Use
references/research-checklist.md for systematic exploration
2. Context Gathering
- Internal docs: Check
.agent/docs/ for relevant patterns
- CLAUDE.md: Review project conventions and rules
- context7 MCP (if available): Fetch external library docs
- Check for
mcp__context7__* tools
- Use for React, Fastify, Prisma, etc. documentation
- Fall back to WebFetch/WebSearch if not available
- See
references/context-sources.md for detailed guidance
3. Clarification (If Needed)
Ask clarifying questions ONE AT A TIME if implementation approach is unclear:
4. Complexity Assessment
- Estimate file count and scope
- Identify cross-cutting concerns
- Assess if new patterns needed or extending existing
- Determine context requirements for implementation
- Flag if complexity suggests breaking into smaller features
- See
references/complexity-assessment.md for detailed rubric
5. Handoff to Spec Generation
Prepare clear summary for /cmd:generate-spec:
- What was found during research
- Existing patterns to follow
- Recommended architecture approach
- Initial complexity estimate
- Unresolved questions (if any)
- Suggest: "Ready to generate spec with
/cmd:generate-spec?"
Key Principles
Do
- ✅ Research deeply - explore codebase thoroughly
- ✅ Ask questions conversationally (text-based, ONE AT A TIME)
- ✅ Document findings clearly
- ✅ Leverage context7 MCP when available for external docs
- ✅ Check
.agent/docs/ for internal patterns
- ✅ Provide architecture recommendations with rationale
- ✅ Prepare handoff context for spec generation
Don't
- ❌ Use AskUserQuestion tool (breaks exploratory flow)
- ❌ Create specs or files (that's
/cmd:generate-spec's job)
- ❌ Ask multiple questions at once
- ❌ Skip research phase
- ❌ Make assumptions without checking codebase first
Complementary to Slash Commands
This skill complements existing spec generation:
User request → Planning skill (research) → /cmd:generate-spec (spec creation)
- Planning skill: Research, clarification, architecture exploration
- /cmd:generate-spec: Spec writing, file creation, index updates
- /generate-prd: PRD creation for larger features
- /generate-feature: Alternative spec format
Level of Involvement
Moderate - Balance depth with efficiency:
- Research deeply: Explore codebase, find patterns, identify constraints
- Ask strategically: ONE question at a time with context-based suggestions
- Document findings: Summarize architecture, existing patterns, complexity
- Prepare handoff: Create clear context for spec generation
- Don't overstep: Leave spec writing and file creation to slash commands
References
See references/ directory for detailed guidance:
research-checklist.md - Systematic codebase exploration
clarification-questions.md - Question templates and examples
complexity-assessment.md - Complexity rubric and indicators
context-sources.md - How to leverage context7, internal docs, codebase
Example Usage
User: "Plan adding user notifications feature"
Planning skill workflow:
1. Research: Find existing notification patterns (grep for "notification", "alert", etc.)
2. Check: `.agent/docs/` for notification architecture (if exists)
3. Context7: Fetch WebSocket or push notification docs (if needed)
4. Ask: "What type of notifications? In-app, email, push, or all three?"
Suggestions:
1. In-app only (recommended - simpler, use WebSocket pattern)
2. Email integration (adds complexity, need mail service)
3. Other - user specifies
5. Wait for answer, continue clarification as needed
6. Assess: Initial complexity ~5-6/10 (multiple files, WebSocket integration)
7. Output: "Found WebSocket handler pattern in X, session events in Y.
Recommend: Extend existing WebSocket system, add Notification model,
create UI toast component. Estimated 5-6/10 complexity."
8. Suggest: "Ready to generate spec with /cmd:generate-spec?"
Integration Notes
- context7 MCP: Optional but recommended for external docs
- Permission mode: Works best in plan mode (read-only exploration)
- Output: Text summary, not files (spec generation creates files)
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: planning-53description: This skill should be used when in planning/plan mode, or when the user wants to plan features, research implementations, or understand the codebase before generating specs. Use this for exploratory research and clarification before implementation. Use when this capability is needed.4---56# Planning Skill78## Overview910This skill provides comprehensive planning workflows for features and system changes. It focuses on the **research and clarification phase** - gathering context, exploring architecture, and asking good questions before spec generation.1112## When to Use This Skill1314Use this skill when:15- **In planning/plan mode** (auto-trigger if possible)16- User says: "plan this", "research this feature", "help me understand"17- User asks: "what do I need to know before implementing X?"18- Before generating specs with `/cmd:generate-spec`19- Need to explore codebase patterns and architecture2021## Core Workflow2223### 1. Research Phase24- Explore codebase for similar existing features25- Identify which domain/area this belongs in26- Locate related types, schemas, services, routes27- Check test patterns in relevant areas28- Review database models (if applicable)29- Use `references/research-checklist.md` for systematic exploration3031### 2. Context Gathering32- **Internal docs**: Check `.agent/docs/` for relevant patterns33- **CLAUDE.md**: Review project conventions and rules34- **context7 MCP** (if available): Fetch external library docs35 - Check for `mcp__context7__*` tools36 - Use for React, Fastify, Prisma, etc. documentation37 - Fall back to WebFetch/WebSearch if not available38- See `references/context-sources.md` for detailed guidance3940### 3. Clarification (If Needed)41Ask clarifying questions ONE AT A TIME if implementation approach is unclear:42- **Don't use the Question tool**43- Use this template:44 ```md45 **Question**: [Your question]46 **Suggestions**:4748 1. [Option 1] (recommended - why)49 2. [Option 2]50 3. Other - user specifies51 ```52- See `references/clarification-questions.md` for examples and templates5354### 4. Complexity Assessment55- Estimate file count and scope56- Identify cross-cutting concerns57- Assess if new patterns needed or extending existing58- Determine context requirements for implementation59- Flag if complexity suggests breaking into smaller features60- See `references/complexity-assessment.md` for detailed rubric6162### 5. Handoff to Spec Generation63Prepare clear summary for `/cmd:generate-spec`:64- What was found during research65- Existing patterns to follow66- Recommended architecture approach67- Initial complexity estimate68- Unresolved questions (if any)69- Suggest: "Ready to generate spec with `/cmd:generate-spec`?"7071## Key Principles7273### Do74- ✅ Research deeply - explore codebase thoroughly75- ✅ Ask questions conversationally (text-based, ONE AT A TIME)76- ✅ Document findings clearly77- ✅ Leverage context7 MCP when available for external docs78- ✅ Check `.agent/docs/` for internal patterns79- ✅ Provide architecture recommendations with rationale80- ✅ Prepare handoff context for spec generation8182### Don't83- ❌ Use AskUserQuestion tool (breaks exploratory flow)84- ❌ Create specs or files (that's `/cmd:generate-spec`'s job)85- ❌ Ask multiple questions at once86- ❌ Skip research phase87- ❌ Make assumptions without checking codebase first8889## Complementary to Slash Commands9091This skill **complements** existing spec generation:9293```94User request → Planning skill (research) → /cmd:generate-spec (spec creation)95```9697- **Planning skill**: Research, clarification, architecture exploration98- **/cmd:generate-spec**: Spec writing, file creation, index updates99- **/generate-prd**: PRD creation for larger features100- **/generate-feature**: Alternative spec format101102## Level of Involvement103104**Moderate** - Balance depth with efficiency:105- **Research deeply**: Explore codebase, find patterns, identify constraints106- **Ask strategically**: ONE question at a time with context-based suggestions107- **Document findings**: Summarize architecture, existing patterns, complexity108- **Prepare handoff**: Create clear context for spec generation109- **Don't overstep**: Leave spec writing and file creation to slash commands110111## References112113See `references/` directory for detailed guidance:114- `research-checklist.md` - Systematic codebase exploration115- `clarification-questions.md` - Question templates and examples116- `complexity-assessment.md` - Complexity rubric and indicators117- `context-sources.md` - How to leverage context7, internal docs, codebase118119## Example Usage120121```122User: "Plan adding user notifications feature"123124Planning skill workflow:1251. Research: Find existing notification patterns (grep for "notification", "alert", etc.)1262. Check: `.agent/docs/` for notification architecture (if exists)1273. Context7: Fetch WebSocket or push notification docs (if needed)1284. Ask: "What type of notifications? In-app, email, push, or all three?"129 Suggestions:130 1. In-app only (recommended - simpler, use WebSocket pattern)131 2. Email integration (adds complexity, need mail service)132 3. Other - user specifies1335. Wait for answer, continue clarification as needed1346. Assess: Initial complexity ~5-6/10 (multiple files, WebSocket integration)1357. Output: "Found WebSocket handler pattern in X, session events in Y.136 Recommend: Extend existing WebSocket system, add Notification model,137 create UI toast component. Estimated 5-6/10 complexity."1388. Suggest: "Ready to generate spec with /cmd:generate-spec?"139```140141## Integration Notes142143- **context7 MCP**: Optional but recommended for external docs144 - Install: https://context7.com/145 - Check availability before use146 - Graceful fallback to WebFetch/WebSearch147- **Permission mode**: Works best in plan mode (read-only exploration)148- **Output**: Text summary, not files (spec generation creates files)149150---151> Converted and distributed by [TomeVault](https://tomevault.io/claim/jnarowski) — claim your Tome and manage your conversions.152<!-- tomevault:4.0:skill_md:2026-04-11 -->