بنقرة واحدة
create-plan
Create detailed implementation plans through interactive research and iteration
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create detailed implementation plans through interactive research and iteration
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Dynamic agent composition and management system. USE WHEN you need specialized agents, parallel work, or custom expertise combinations.
Start a systematic debugging session with structured diagnostic protocol
Universal execution engine using scientific method to achieve ideal state. USE WHEN complex tasks, multi-step work, "run the algorithm", "use the algorithm", OR any non-trivial request that benefits from structured execution with ISC (Ideal State Criteria) tracking.
| name | create_plan |
| description | Create detailed implementation plans through interactive research and iteration |
| model | opus |
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 command 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.
Then wait for the user's input.
Read mentioned files in chunks (only what you need):
Research the codebase:
Present informed understanding and focused questions:
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]
Questions that my research couldn't answer:
- [Specific technical question that requires human judgment]
- [Business logic clarification]
- [Design preference that affects implementation]
Only ask questions that you genuinely cannot answer through code investigation.
After getting initial clarifications:
If the user corrects any misunderstanding:
Present findings and design options:
Based on my research, here's what I found:
**Current State:**
- [Key discovery about existing code]
- [Pattern or convention to follow]
**Design Options:**
1. [Option A] - [pros/cons]
2. [Option B] - [pros/cons]
**Open Questions:**
- [Technical uncertainty]
- [Design decision needed]
Which approach aligns best with your vision?
Once aligned on approach:
Create initial plan outline:
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 before writing details
After structure approval:
mkdir -p docs/plans or appropriate locationdocs/plans/YYYY-MM-DD-description.md# [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
[Specification of the desired end state and how to verify it]
### Key Discoveries:
- [Important finding with file:line reference]
- [Pattern to follow]
- [Constraint to work within]
## Plan Metadata (Required)
```yaml
plan_metadata:
version: 1
plan_id: "YYYY-MM-DD-short-name"
status: draft|approved|in_progress|complete|abandoned|superseded
owner: "coordinator"
created_at: "YYYY-MM-DD"
last_updated: "YYYY-MM-DD"
branch: "feature/branch-name"
pr: ""
```
## Plan Relationships (Prior Work)
Record the plan search and any overlaps/supersession.
If you supersede a plan, update the older plan with `status: superseded` and a "SUPERSEDED BY" note.
```yaml
plan_relationships:
version: 1
search_terms: []
plans_reviewed: []
related_plans: []
# related_plans:
# - plan: "docs/plans/old-plan.md"
# relationship: SUPERSEDED|PARTIAL_MERGE|RELATED|NONE
# deferred_items: [] # use ["ALL"] for full supersession
# approval_quote: "" # required for SUPERSEDED or PARTIAL_MERGE
```
## Plan Registry (Required)
Add or update the registry entry in `docs/plans/plan-registry.yaml` for this plan.
```yaml
plan_registry:
version: 1
plans:
- plan_id: "YYYY-MM-DD-short-name"
path: "docs/plans/YYYY-MM-DD-short-name.md"
status: draft|approved|in_progress|complete|abandoned|superseded
owner: "coordinator"
created_at: "YYYY-MM-DD"
last_updated: "YYYY-MM-DD"
branch: "feature/branch-name"
pr: ""
superseded_by: ""
user_confirmed: true|false
approval_quote: ""
```
## What We're NOT Doing
[Explicitly list out-of-scope items to prevent scope creep]
## Scope Exclusions & Deferrals (Approval Required)
Include this block even if empty. Any listed item requires a `reason` plus explicit user approval in `approval_quote`.
```yaml
scope_exclusions:
version: 1
items: []
# items:
# - item: "Not implementing X"
# reason: "Required: why this is excluded"
# phase: "Phase 1"
# user_approval: true
# approval_quote: "yes, exclude X from this plan"
```
## Implementation Approach
[High-level strategy and reasoning]
## Phase 1: [Descriptive Name]
### Overview
[What this phase accomplishes]
### Changes Required:
#### 1. [Component/File Group]
**File**: `path/to/file.ext`
**Changes**: [Summary of changes]
```[language]
// Specific code to add/modify
```
### Tasks (Plan Contract - Required)
Include per-task verification for every task in the phase.
```yaml
task:
id: T1
owner_agent: backend-agent
summary: "Short task description"
depends_on: []
verification:
type: command|manual|api|ui|doc
command: "" # required when type == command
steps: [] # required when type != command
expected: ""
fallback: ""
```
### Success Criteria:
#### Automated Verification:
- [ ] Build passes
- [ ] Tests pass
- [ ] Type checking passes
- [ ] Linting passes
#### Manual Verification:
- [ ] Feature works as expected when tested via UI
- [ ] No regressions in related features
---
## Phase 2: [Descriptive Name]
[Similar structure...]
---
## Testing Strategy
### Unit Tests:
- [What to test]
- [Key edge cases]
### Integration Tests:
- [End-to-end scenarios]
## Risks & Considerations
[Any risks or considerations]
## References
- Related files: `[file:line]`
ALWAYS write your plan to:
$CLAUDE_PROJECT_DIR/.claude/cache/agents/plan-agent/latest-output.md
Also save to persistent location:
$CLAUDE_PROJECT_DIR/docs/plans/[descriptive-name].md
Source: Continuous-Claude create_plan/SKILL.md:1-485