You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll help you create a comprehensive implementation plan through detailed conversation.
37
+
What would you like to plan?
34
38
35
-
First, I need to understand what you're planning to implement:
36
-
37
-
**What would you like to plan?**
38
-
39
-
Please describe in detail:
40
-
- The feature, fix, or system you want to implement
41
-
- The problem it solves or requirement it fulfills
42
-
- Your current technical environment and constraints
43
-
- Any specific approaches or technologies you're considering
44
-
45
-
The more detail you provide about the implementation context and requirements, the better I can help create a plan that perfectly fits your project's needs and constraints.
46
-
47
-
Take your time - this initial context is crucial for creating an actionable implementation plan.
39
+
Please describe:
40
+
- What you want to implement
41
+
- The problem it solves
42
+
- Your current tech setup
48
43
```
49
44
50
-
### Step 2: Extensive Interactive Discovery
51
-
52
-
Based on the user's response, engage in a **fully interactive, extensive dialogue** to understand every implementation aspect:
53
-
54
-
**Technical Context Deep-Dive:**
55
-
- Current tech stack and framework versions
56
-
- Existing architecture and patterns
57
-
- Database and infrastructure setup
58
-
- Authentication and security requirements
59
-
- Performance and scalability needs
60
-
- Testing and deployment processes
61
-
62
-
**Implementation Requirements Discovery:**
63
-
- Specific functionality and user stories
64
-
- Technical design and architecture decisions
65
-
- Files and modules that need changes
66
-
- Dependencies and integrations required
67
-
- Error handling and edge cases
68
-
- Success metrics and validation criteria
69
-
70
-
### Step 3: Implementation Planning
71
-
72
-
After thorough discovery, determine the plan structure based on implementation type:
73
-
74
-
**For New Features:**
75
-
- User stories and acceptance criteria
76
-
- Technical architecture and design patterns
77
-
- Database schema changes
78
-
- API endpoints and interfaces
79
-
- Frontend components and user flows
80
-
- Integration points and data flow
81
-
- Testing strategy and scenarios
82
-
83
-
**For Bug Fixes:**
84
-
- Root cause analysis and diagnosis
85
-
- Impact assessment and affected systems
86
-
- Fix strategy and implementation approach
87
-
- Testing and validation requirements
88
-
- Deployment and rollback considerations
89
-
90
-
**For Performance/Refactoring:**
91
-
- Current bottlenecks and target metrics
92
-
- Refactoring strategy and migration steps
93
-
- Backward compatibility considerations
94
-
- Monitoring and observability improvements
95
-
- Rollout and validation approach
96
-
97
-
### Step 4: Create Implementation Plan
98
-
99
-
Execute CLI command to create the plan:
45
+
**CRITICAL: After every user response, analyze what implementation details are still missing and ask deeper questions. NEVER stop asking until you know exactly how to implement everything.**
46
+
47
+
**Self-Assessment Questions - Ask yourself after each user response:**
48
+
- "What files exactly need to be created or modified?"
49
+
- "What specific code changes are required?"
50
+
- "What dependencies need to be installed?"
51
+
- "What configuration changes are needed?"
52
+
- "How will this integrate with existing code?"
53
+
- "What testing approach should be used?"
54
+
55
+
**Continuous Implementation Deep-Dive Pattern:**
56
+
- If user says "add authentication" → Ask: Which files handle auth? What database changes? JWT or sessions? Middleware needed? Registration flow? Password reset?
57
+
- If user says "improve performance" → Ask: What specific bottlenecks? Which components are slow? Database queries? Frontend rendering? API endpoints? Caching strategy?
58
+
- If user says "refactor components" → Ask: Which exact components? What's the new structure? How to maintain backwards compatibility? Migration steps?
59
+
60
+
**Keep Digging Until You Know:**
61
+
- Exact file paths that need changes
62
+
- Specific functions/components to create/modify
63
+
- Complete dependency list with versions
64
+
- Step-by-step implementation sequence
65
+
- All configuration changes required
66
+
- Comprehensive testing strategy
67
+
- Success criteria with measurable outcomes
68
+
69
+
**Signs You Need More Implementation Details:**
70
+
- You don't know exact file paths → ASK MORE
71
+
- You're unsure about code structure → ASK MORE
72
+
- Dependencies are unclear → ASK MORE
73
+
- Implementation steps are vague → DRILL DOWN
74
+
- Testing approach is undefined → ASK MORE
75
+
- You can't write specific todo items → ASK MORE
76
+
77
+
**ONLY create the plan when you can confidently say: "I know exactly which files to modify, what code to write, what dependencies to install, and how to test everything."**
78
+
79
+
After complete implementation understanding, create the plan using:
100
80
101
81
```bash
102
82
npx -y cc-self-refer plan create "<plan-title>"<<'EOF'
103
-
<comprehensive-plan-content>
83
+
<plan-content>
104
84
EOF
105
85
```
106
86
107
-
### Interactive Q&A Strategy
108
-
109
-
**Start broad, then get specific based on answers:**
110
-
111
-
Example for "implement rate limiting":
112
-
```
113
-
Round 1 - Context:
114
-
- What's your API framework?
115
-
- Do you have Redis available?
116
-
- Current traffic patterns?
117
-
118
-
Round 2 - Requirements (based on Round 1):
119
-
- Rate limit thresholds?
120
-
- Different limits per user type?
121
-
- Which endpoints to protect?
122
-
123
-
Round 3 - Implementation:
124
-
- User identification method?
125
-
- Response when exceeded?
126
-
- Monitoring needs?
127
-
128
-
[Continue until all details clear]
129
-
```
130
-
131
87
## Plan Document Template
132
88
89
+
**IMPORTANT: the following implementation details are just example. The content of implementation section will vary depend on the plan requirement. **
0 commit comments