How this skill is triggered — by the user, by Claude, or both
Slash command
/dex:create-planThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are tasked with creating detailed implementation plans through an interactive, iterative process. You should be skeptical, thorough, and work collaboratively with the user to produce high-quality technical specifications.
You are tasked with creating detailed implementation plans through an interactive, iterative process. You should be skeptical, thorough, and work collaboratively with the user to produce high-quality technical specifications.
When this skill is invoked:
Check if parameters were provided:
If no parameters provided, respond with:
I'll help you create a detailed implementation plan. Let me start by understanding what we're building.
Please provide:
1. The task/ticket description (or reference to a ticket file)
2. Any relevant context, constraints, or specific requirements
3. Links to related research or previous implementations
I'll analyze this information and work with you to create a comprehensive plan.
Tip: You can also invoke this skill with a ticket file path as an argument, e.g. `thoughts/neil/tickets/eng_1234.md`.
For deeper analysis, add "think deeply about" before the file path.
Then wait for the user's input.
Read all mentioned files immediately and FULLY:
thoughts/neil/tickets/eng_1234.md)Spawn initial research tasks to gather context: Before asking the user any questions, use specialized agents to research in parallel:
These agents will:
Read all files identified by research tasks:
Analyze and verify understanding:
Assess if TDD approach is appropriate: Consider whether this implementation would benefit from Test-Driven Development (TDD):
TDD is RECOMMENDED for:
TDD may NOT be suitable for:
Present informed understanding and ask the user for clarifications:
First, present your understanding:
Based on the ticket and my research of the codebase, I understand we need to [accurate summary].
I've found that:
- [Current implementation detail with file:line reference]
- [Relevant pattern or constraint discovered]
- [Potential complexity or edge case identified]
**TDD Assessment:** This implementation [is/is not] well-suited for Test-Driven Development because [reasoning based on criteria above].
Then, ask the user to gather answers to questions your research couldn't resolve:
After getting initial clarifications:
If the user corrects any misunderstanding:
Create a research todo list to track exploration tasks
Spawn parallel sub-tasks for comprehensive research:
For deeper investigation:
For historical context:
For external documentation:
Wait for ALL sub-tasks to complete before proceeding
Present findings and ask the user for design decisions
Once aligned on approach:
Create initial plan outline:
For TDD Approach:
Here's my proposed TDD plan structure following RED-GREEN-REFACTOR methodology:
## Overview
[1-2 sentence summary]
## Implementation Approach
Following Test-Driven Development (TDD) principles:
1. **RED**: Create tests that define expected behavior (will fail initially)
2. **GREEN**: Implement minimal code to make tests pass
3. **REFACTOR**: Optimize and clean up implementation while keeping tests green
## Implementation Phases:
1. **Phase 1: Create Tests (RED)** - Write comprehensive tests that define expected behavior
2. **Phase 2: Core Implementation (GREEN)** - Implement minimal functionality to make tests pass
3. **Phase 3: [Feature-specific Implementation]** - [Additional implementation phases as needed]
4. **Phase N: Optimization & Refactoring** - Clean up and optimize while maintaining test coverage
Does this TDD structure work for your implementation? Should I adjust the phases?
For Traditional Approach:
Here's my proposed plan structure:
## Overview
[1-2 sentence summary]
## Implementation Phases:
1. [Phase name] - [what it accomplishes]
2. [Phase name] - [what it accomplishes]
3. [Phase name] - [what it accomplishes]
Does this phasing make sense? Should I adjust the order or granularity?
Get feedback on structure from the user before writing details
Before writing the plan:
Gather metadata for the plan document:
date '+%Y-%m-%d %H:%M:%S %Z'date '+%Y-%m-%d'git rev-parse --is-inside-work-tree 2>/dev/null):
git rev-parse HEADgit branch --show-current 2>/dev/null || git rev-parse --abbrev-ref HEADbasename $(git rev-parse --show-toplevel)git config --get user.emailthoughts/shared/plans/{timestamp}_{descriptive_name}.mdGenerate permalinks if applicable (for Azure DevOps, GitHub, etc.):
After metadata and permalink generation:
thoughts/shared/plans/{timestamp}_{descriptive_name}.md (using timestamp from step 4)---
date: [Current date and time with timezone in ISO format]
researcher: [Researcher email from git config]
git_commit: [Current commit hash]
branch: [Current branch name]
repository: [Repository name]
task: "[Task/Feature Name]"
tags: [implementation-plan, relevant-component-names]
status: draft
last_updated: [Current date in YYYY-MM-DD format]
last_updated_by: [Researcher email]
---
# [Feature/Task Name] Implementation Plan
## Overview
[Brief description of what we're implementing and why]
## Current State Analysis
[What exists now, what's missing, key constraints discovered]
## Desired End State
[A Specification of the desired end state after this plan is complete, and how to verify it]
### Key Discoveries:
- [Important finding with reference (file:line or permalink)]
- [Pattern to follow]
- [Constraint to work within]
## What We're NOT Doing
[Explicitly list out-of-scope items to prevent scope creep]
## Implementation Approach
[High-level strategy and reasoning, including TDD methodology if applicable]
## Phase 1: [Descriptive Name]
### Phase 1: Overview
[What this phase accomplishes]
### Phase 1: Changes Required
#### 1. [Component/File Group]
**File**: `path/to/file` (permalink if available)
**Changes**: [Summary of changes]
```[language]
// Specific code to add/modify
Run verification commands from repository root:
[This section is filled by the implementing agent during Phase 1 execution.]
[Continue with same structure...]
[Any performance implications or optimizations needed]
[If applicable, how to handle existing data/systems]
thoughts/neil/tickets/eng_XXXX.mdthoughts/shared/research/[relevant].md
### Step 6: Review and Iteration
1. **Present the draft plan location**
2. **Iterate based on feedback**
3. **Continue refining** until the user is satisfied
## Important Guidelines
1. **Be Skeptical**: Question vague requirements, identify issues early, don't assume - verify with code
2. **Be Interactive**: Don't write the full plan in one shot, get buy-in at each step, ask the user for input
3. **Be Thorough**: Read all context files COMPLETELY, research actual code patterns, include specific file references
4. **Be Practical**: Focus on incremental, testable changes, consider migration and rollback, include "what we're NOT doing"
5. **Track Progress**: Track your planning tasks
6. **No Open Questions in Final Plan**: If you encounter open questions during planning, STOP and research or ask
7. **Ask the User**: ALWAYS use structured questions when gathering user input
## Success Criteria Guidelines
**Always separate success criteria into two categories:**
1. **Automated Verification** (can be run by execution agents):
- Commands that can be run (type checking, tests, linting)
- Specific files that should exist
- Application startup verification
2. **Manual Verification** (requires human testing):
- UI/UX functionality
- Performance under real conditions
- Edge cases that are hard to automate
- User acceptance criteria
## Sub-task Spawning Best Practices
When spawning research sub-tasks:
1. **Spawn multiple tasks in parallel** for efficiency
2. **Each task should be focused** on a specific area
3. **Provide detailed instructions** including what to search for and expected output format
4. **Wait for all tasks to complete** before synthesizing
5. **Verify sub-task results** against the actual codebase
## Documentation Research Agent Usage
**When to Use the dex:documentation-research-agent**:
Use this agent proactively whenever the implementation plan involves:
- **New Library Integration**: Adding support for new libraries
- **Framework Features**: Implementing features using frameworks
- **API Integration**: Working with external APIs
- **Database Technologies**: New database drivers, ORMs, or query builders
- **Cloud Services**: Integrating with cloud providers
- **Development Tools**: Adding support for new build tools, testing frameworks, etc.
npx claudepluginhub a1865818/sddCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.