aiblueprint-cli 1.4.23 → 1.4.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/claude-code-config/skills/git-commit/SKILL.md +42 -0
- package/claude-code-config/{commands/git/create-pr.md → skills/git-create-pr/SKILL.md} +12 -18
- package/claude-code-config/skills/git-fix-pr-comments/SKILL.md +51 -0
- package/claude-code-config/skills/git-merge/SKILL.md +68 -0
- package/claude-code-config/skills/{claude-memory → meta-claude-memory}/SKILL.md +7 -2
- package/claude-code-config/skills/meta-claude-memory/references/rules-directory-guide.md +298 -0
- package/claude-code-config/skills/meta-prompt-creator/SKILL.md +285 -0
- package/claude-code-config/skills/meta-prompt-creator/references/anthropic-best-practices.md +126 -0
- package/claude-code-config/skills/meta-prompt-creator/references/anti-patterns.md +57 -0
- package/claude-code-config/skills/meta-prompt-creator/references/clarity-principles.md +54 -0
- package/claude-code-config/skills/meta-prompt-creator/references/context-management.md +389 -0
- package/claude-code-config/skills/meta-prompt-creator/references/few-shot-patterns.md +47 -0
- package/claude-code-config/skills/meta-prompt-creator/references/openai-best-practices.md +50 -0
- package/claude-code-config/skills/meta-prompt-creator/references/prompt-templates.md +110 -0
- package/claude-code-config/skills/meta-prompt-creator/references/reasoning-techniques.md +52 -0
- package/claude-code-config/skills/meta-prompt-creator/references/system-prompt-patterns.md +48 -0
- package/claude-code-config/skills/meta-prompt-creator/references/xml-structure.md +36 -0
- package/claude-code-config/skills/meta-skill-creator/LICENSE.txt +202 -0
- package/claude-code-config/skills/meta-skill-creator/SKILL.md +421 -0
- package/claude-code-config/skills/meta-skill-creator/package.json +5 -0
- package/claude-code-config/skills/meta-skill-creator/references/output-patterns.md +82 -0
- package/claude-code-config/skills/meta-skill-creator/references/progressive-disclosure-patterns.md +374 -0
- package/claude-code-config/skills/meta-skill-creator/references/prompting-integration.md +363 -0
- package/claude-code-config/skills/meta-skill-creator/references/real-world-examples.md +513 -0
- package/claude-code-config/skills/meta-skill-creator/references/script-patterns.md +385 -0
- package/claude-code-config/skills/meta-skill-creator/references/workflows.md +28 -0
- package/claude-code-config/skills/meta-skill-creator/references/xml-tag-guide.md +606 -0
- package/claude-code-config/skills/meta-skill-creator/scripts/init-skill.ts +214 -0
- package/claude-code-config/skills/meta-skill-creator/scripts/package-skill.ts +146 -0
- package/claude-code-config/skills/meta-skill-creator/scripts/validate.ts +138 -0
- package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/SKILL.md +41 -15
- package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-00-init.md +2 -3
- package/claude-code-config/skills/utils-fix-errors/SKILL.md +61 -0
- package/claude-code-config/skills/utils-fix-grammar/SKILL.md +59 -0
- package/claude-code-config/skills/utils-oneshot/SKILL.md +56 -0
- package/claude-code-config/skills/workflow-apex/SKILL.md +303 -0
- package/claude-code-config/skills/workflow-apex/scripts/setup-templates.sh +134 -0
- package/claude-code-config/skills/workflow-apex/scripts/update-progress.sh +80 -0
- package/claude-code-config/skills/workflow-apex/steps/step-00-init.md +288 -0
- package/claude-code-config/skills/workflow-apex/steps/step-00b-branch.md +126 -0
- package/claude-code-config/skills/workflow-apex/steps/step-00b-economy.md +244 -0
- package/claude-code-config/skills/workflow-apex/steps/step-00b-interactive.md +153 -0
- package/claude-code-config/skills/workflow-apex/steps/step-01-analyze.md +361 -0
- package/claude-code-config/skills/workflow-apex/steps/step-02-plan.md +264 -0
- package/claude-code-config/skills/workflow-apex/steps/step-03-execute.md +239 -0
- package/claude-code-config/skills/workflow-apex/steps/step-04-validate.md +264 -0
- package/claude-code-config/skills/workflow-apex/steps/step-05-examine.md +294 -0
- package/claude-code-config/skills/workflow-apex/steps/step-06-resolve.md +237 -0
- package/claude-code-config/skills/workflow-apex/steps/step-07-tests.md +250 -0
- package/claude-code-config/skills/workflow-apex/steps/step-08-run-tests.md +308 -0
- package/claude-code-config/skills/workflow-apex/steps/step-09-finish.md +193 -0
- package/claude-code-config/skills/workflow-apex/templates/00-context.md +51 -0
- package/claude-code-config/skills/workflow-apex/templates/01-analyze.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/02-plan.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/03-execute.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/04-validate.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/05-examine.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/06-resolve.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/07-tests.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/08-run-tests.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/09-finish.md +10 -0
- package/claude-code-config/skills/workflow-apex/templates/README.md +195 -0
- package/claude-code-config/skills/workflow-apex/templates/step-complete.md +7 -0
- package/claude-code-config/skills/workflow-apex-free/SKILL.md +261 -0
- package/claude-code-config/skills/workflow-apex-free/scripts/setup-templates.sh +100 -0
- package/claude-code-config/skills/workflow-apex-free/scripts/update-progress.sh +80 -0
- package/claude-code-config/skills/workflow-apex-free/steps/step-00-init.md +267 -0
- package/claude-code-config/skills/workflow-apex-free/steps/step-00b-branch.md +126 -0
- package/claude-code-config/skills/workflow-apex-free/steps/step-00b-economy.md +244 -0
- package/claude-code-config/skills/workflow-apex-free/steps/step-00b-interactive.md +153 -0
- package/claude-code-config/skills/workflow-apex-free/steps/step-01-analyze.md +361 -0
- package/claude-code-config/skills/workflow-apex-free/steps/step-02-plan.md +264 -0
- package/claude-code-config/skills/workflow-apex-free/steps/step-03-execute.md +239 -0
- package/claude-code-config/skills/workflow-apex-free/steps/step-04-validate.md +251 -0
- package/claude-code-config/skills/workflow-apex-free/templates/00-context.md +43 -0
- package/claude-code-config/skills/workflow-apex-free/templates/01-analyze.md +10 -0
- package/claude-code-config/skills/workflow-apex-free/templates/02-plan.md +10 -0
- package/claude-code-config/skills/workflow-apex-free/templates/03-execute.md +10 -0
- package/claude-code-config/skills/workflow-apex-free/templates/04-validate.md +10 -0
- package/claude-code-config/skills/workflow-apex-free/templates/README.md +176 -0
- package/claude-code-config/skills/workflow-apex-free/templates/step-complete.md +7 -0
- package/dist/cli.js +146 -9
- package/package.json +1 -1
- package/claude-code-config/commands/explore.md +0 -90
- package/claude-code-config/commands/git/commit.md +0 -60
- package/claude-code-config/commands/git/fix-pr-comments.md +0 -59
- package/claude-code-config/commands/oneshot.md +0 -57
- package/claude-code-config/skills/create-slash-commands/SKILL.md +0 -1110
- package/claude-code-config/skills/create-slash-commands/references/arguments.md +0 -273
- package/claude-code-config/skills/create-slash-commands/references/patterns.md +0 -947
- package/claude-code-config/skills/create-slash-commands/references/prompt-examples.md +0 -656
- package/claude-code-config/skills/create-slash-commands/references/tool-restrictions.md +0 -389
- /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/comprehensive-example.md +0 -0
- /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/project-patterns.md +0 -0
- /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/prompting-techniques.md +0 -0
- /package/claude-code-config/skills/{claude-memory → meta-claude-memory}/references/section-templates.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/context-management.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/debugging-agents.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/error-handling-and-recovery.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/evaluation-and-testing.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/orchestration-patterns.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/subagents.md +0 -0
- /package/claude-code-config/skills/{create-subagents → meta-subagent-creator}/references/writing-subagent-prompts.md +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/SKILL.md +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/scripts/setup.sh +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-01-interactive-prd.md +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-02-create-stories.md +0 -0
- /package/claude-code-config/skills/{setup-ralph → ralph-loop}/steps/step-03-finish.md +0 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: step-02-plan
|
|
3
|
+
description: Strategic planning - create detailed file-by-file implementation strategy
|
|
4
|
+
prev_step: steps/step-01-analyze.md
|
|
5
|
+
next_step: steps/step-03-execute.md
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Step 2: Plan (Strategic Design)
|
|
9
|
+
|
|
10
|
+
## MANDATORY EXECUTION RULES (READ FIRST):
|
|
11
|
+
|
|
12
|
+
- 🛑 NEVER start implementing - that's step 3
|
|
13
|
+
- 🛑 NEVER write or modify code in this step
|
|
14
|
+
- ✅ ALWAYS structure plan by FILE, not by feature
|
|
15
|
+
- ✅ ALWAYS include specific line numbers from analysis
|
|
16
|
+
- ✅ ALWAYS map acceptance criteria to file changes
|
|
17
|
+
- 📋 YOU ARE A PLANNER, not an implementer
|
|
18
|
+
- 💬 FOCUS on "What changes need to be made where?"
|
|
19
|
+
- 🚫 FORBIDDEN to use Edit, Write, or Bash tools
|
|
20
|
+
|
|
21
|
+
## EXECUTION PROTOCOLS:
|
|
22
|
+
|
|
23
|
+
- 🎯 ULTRA THINK before creating the plan
|
|
24
|
+
- 💾 Save plan to output file (if save_mode)
|
|
25
|
+
- 📖 Reference patterns from step-01 analysis
|
|
26
|
+
- 🚫 FORBIDDEN to proceed until user approves plan (unless auto_mode)
|
|
27
|
+
|
|
28
|
+
## CONTEXT BOUNDARIES:
|
|
29
|
+
|
|
30
|
+
- Context from step-01 (files, patterns, utilities) is available
|
|
31
|
+
- Implementation has NOT started
|
|
32
|
+
- User has NOT approved any changes yet
|
|
33
|
+
- Plan must be complete before execution
|
|
34
|
+
|
|
35
|
+
## YOUR TASK:
|
|
36
|
+
|
|
37
|
+
Transform analysis findings into a comprehensive, executable, file-by-file implementation plan.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
<available_state>
|
|
42
|
+
From previous steps:
|
|
43
|
+
|
|
44
|
+
| Variable | Description |
|
|
45
|
+
|----------|-------------|
|
|
46
|
+
| `{task_description}` | What to implement |
|
|
47
|
+
| `{task_id}` | Kebab-case identifier |
|
|
48
|
+
| `{acceptance_criteria}` | Success criteria from step-01 |
|
|
49
|
+
| `{auto_mode}` | Skip confirmations |
|
|
50
|
+
| `{save_mode}` | Save outputs to files |
|
|
51
|
+
| `{output_dir}` | Path to output (if save_mode) |
|
|
52
|
+
| Files found | From step-01 codebase exploration |
|
|
53
|
+
| Patterns | From step-01 pattern analysis |
|
|
54
|
+
| Utilities | From step-01 utility discovery |
|
|
55
|
+
</available_state>
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## EXECUTION SEQUENCE:
|
|
60
|
+
|
|
61
|
+
### 1. Initialize Save Output (if save_mode)
|
|
62
|
+
|
|
63
|
+
**If `{save_mode}` = true:**
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
bash {skill_dir}/scripts/update-progress.sh "{task_id}" "02" "plan" "in_progress"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Append plan to `{output_dir}/02-plan.md` as you work.
|
|
70
|
+
|
|
71
|
+
### 2. ULTRA THINK: Design Complete Strategy
|
|
72
|
+
|
|
73
|
+
**CRITICAL: Think through ENTIRE implementation before writing any plan.**
|
|
74
|
+
|
|
75
|
+
Mental simulation:
|
|
76
|
+
- Walk through the implementation step by step
|
|
77
|
+
- Identify all files that need changes
|
|
78
|
+
- Determine logical order (dependencies first)
|
|
79
|
+
- Consider edge cases and error handling
|
|
80
|
+
- Plan test coverage
|
|
81
|
+
|
|
82
|
+
### 3. Clarify Ambiguities
|
|
83
|
+
|
|
84
|
+
**If `{auto_mode}` = true:**
|
|
85
|
+
→ Use recommended option for any ambiguity, proceed automatically
|
|
86
|
+
|
|
87
|
+
**If `{auto_mode}` = false AND multiple valid approaches exist:**
|
|
88
|
+
|
|
89
|
+
```yaml
|
|
90
|
+
questions:
|
|
91
|
+
- header: "Approach"
|
|
92
|
+
question: "Multiple approaches are possible. Which should we use?"
|
|
93
|
+
options:
|
|
94
|
+
- label: "Approach A (Recommended)"
|
|
95
|
+
description: "Description and tradeoffs of A"
|
|
96
|
+
- label: "Approach B"
|
|
97
|
+
description: "Description and tradeoffs of B"
|
|
98
|
+
- label: "Approach C"
|
|
99
|
+
description: "Description and tradeoffs of C"
|
|
100
|
+
multiSelect: false
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### 4. Create Detailed Plan
|
|
104
|
+
|
|
105
|
+
**Structure by FILE, not by feature:**
|
|
106
|
+
|
|
107
|
+
```markdown
|
|
108
|
+
## Implementation Plan: {task_description}
|
|
109
|
+
|
|
110
|
+
### Overview
|
|
111
|
+
[1-2 sentences: High-level strategy and approach]
|
|
112
|
+
|
|
113
|
+
### Prerequisites
|
|
114
|
+
- [ ] Prerequisite 1 (if any)
|
|
115
|
+
- [ ] Prerequisite 2 (if any)
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
### File Changes
|
|
120
|
+
|
|
121
|
+
#### `src/path/file1.ts`
|
|
122
|
+
- Add `functionName` that handles X
|
|
123
|
+
- Extract logic from Y (follow pattern in `example.ts:45`)
|
|
124
|
+
- Handle error case: [specific scenario]
|
|
125
|
+
- Consider: [edge case or important context]
|
|
126
|
+
|
|
127
|
+
#### `src/path/file2.ts`
|
|
128
|
+
- Update imports to include new module
|
|
129
|
+
- Call `functionName` in existing flow at line ~42
|
|
130
|
+
- Update types: Add `NewType` interface
|
|
131
|
+
|
|
132
|
+
#### `src/path/file3.ts` (NEW FILE)
|
|
133
|
+
- Create utility for Z
|
|
134
|
+
- Export: `utilityFunction`, `HelperType`
|
|
135
|
+
- Pattern: Follow `similar-util.ts` structure
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
### Testing Strategy
|
|
140
|
+
|
|
141
|
+
**New tests:**
|
|
142
|
+
- `src/path/file1.test.ts` - Test functionName with:
|
|
143
|
+
- Happy path
|
|
144
|
+
- Error case
|
|
145
|
+
- Edge case
|
|
146
|
+
|
|
147
|
+
**Update existing:**
|
|
148
|
+
- `src/path/existing.test.ts` - Add test for new flow
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
### Acceptance Criteria Mapping
|
|
153
|
+
- [ ] AC1: Satisfied by changes in `file1.ts`
|
|
154
|
+
- [ ] AC2: Satisfied by changes in `file2.ts`
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
### Risks & Considerations
|
|
159
|
+
- Risk 1: [potential issue and mitigation]
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**If `{save_mode}` = true:** Append full plan to 02-plan.md
|
|
163
|
+
|
|
164
|
+
### 5. Verify Plan Completeness
|
|
165
|
+
|
|
166
|
+
Checklist:
|
|
167
|
+
- [ ] All files identified - nothing missing
|
|
168
|
+
- [ ] Logical order - dependencies handled first
|
|
169
|
+
- [ ] Clear actions - every step specific and actionable
|
|
170
|
+
- [ ] Test coverage - all paths have test strategy
|
|
171
|
+
- [ ] In scope - no scope creep
|
|
172
|
+
- [ ] AC mapped - every criterion has implementation
|
|
173
|
+
|
|
174
|
+
### 6. Present Plan for Approval
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
**Implementation Plan Ready**
|
|
178
|
+
|
|
179
|
+
**Overview:** [1 sentence summary]
|
|
180
|
+
|
|
181
|
+
**Files to modify:** {count} files
|
|
182
|
+
**New files:** {count} files
|
|
183
|
+
**Tests:** {count} test files
|
|
184
|
+
|
|
185
|
+
**Estimated changes:**
|
|
186
|
+
- `file1.ts` - Major changes (add function, handle errors)
|
|
187
|
+
- `file2.ts` - Minor changes (imports, single call)
|
|
188
|
+
- `file1.test.ts` - New test file
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**If `{auto_mode}` = true:**
|
|
192
|
+
→ Skip confirmation, proceed directly to execution
|
|
193
|
+
|
|
194
|
+
**If `{auto_mode}` = false:**
|
|
195
|
+
|
|
196
|
+
```yaml
|
|
197
|
+
questions:
|
|
198
|
+
- header: "Plan"
|
|
199
|
+
question: "Review the implementation plan. Ready to proceed?"
|
|
200
|
+
options:
|
|
201
|
+
- label: "Approve and execute (Recommended)"
|
|
202
|
+
description: "Plan looks good, start implementation"
|
|
203
|
+
- label: "Adjust plan"
|
|
204
|
+
description: "I want to modify specific parts"
|
|
205
|
+
- label: "Ask questions"
|
|
206
|
+
description: "I have questions about the plan"
|
|
207
|
+
- label: "Start over"
|
|
208
|
+
description: "Revise the entire plan"
|
|
209
|
+
multiSelect: false
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### 7. Complete Save Output (if save_mode)
|
|
213
|
+
|
|
214
|
+
**If `{save_mode}` = true:**
|
|
215
|
+
|
|
216
|
+
Append to `{output_dir}/02-plan.md`:
|
|
217
|
+
```markdown
|
|
218
|
+
---
|
|
219
|
+
## Step Complete
|
|
220
|
+
**Status:** ✓ Complete
|
|
221
|
+
**Files planned:** {count}
|
|
222
|
+
**Tests planned:** {count}
|
|
223
|
+
**Next:** step-03-execute.md
|
|
224
|
+
**Timestamp:** {ISO timestamp}
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## SUCCESS METRICS:
|
|
230
|
+
|
|
231
|
+
✅ Complete file-by-file plan created
|
|
232
|
+
✅ Logical dependency order established
|
|
233
|
+
✅ All acceptance criteria mapped to changes
|
|
234
|
+
✅ Test strategy defined
|
|
235
|
+
✅ User approved plan (or auto-approved)
|
|
236
|
+
✅ NO code written or modified
|
|
237
|
+
✅ Output saved (if save_mode)
|
|
238
|
+
|
|
239
|
+
## FAILURE MODES:
|
|
240
|
+
|
|
241
|
+
❌ Organizing by feature instead of file
|
|
242
|
+
❌ Vague actions like "add feature" or "fix issue"
|
|
243
|
+
❌ Missing test strategy
|
|
244
|
+
❌ Not mapping to acceptance criteria
|
|
245
|
+
❌ Starting to write code (that's step 3!)
|
|
246
|
+
❌ **CRITICAL**: Not using AskUserQuestion for approval
|
|
247
|
+
|
|
248
|
+
## PLANNING PROTOCOLS:
|
|
249
|
+
|
|
250
|
+
- Structure by FILE - each file is a section
|
|
251
|
+
- Include line number references from analysis
|
|
252
|
+
- Every action must be specific and actionable
|
|
253
|
+
- Map every AC to specific file changes
|
|
254
|
+
- Plan tests alongside implementation
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## NEXT STEP:
|
|
259
|
+
|
|
260
|
+
After user approves via AskUserQuestion (or auto-proceed), load `./step-03-execute.md`
|
|
261
|
+
|
|
262
|
+
<critical>
|
|
263
|
+
Remember: Planning is ONLY about designing the approach - save all implementation for step-03!
|
|
264
|
+
</critical>
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: step-03-execute
|
|
3
|
+
description: Todo-driven implementation - execute the plan file by file
|
|
4
|
+
prev_step: steps/step-02-plan.md
|
|
5
|
+
next_step: steps/step-04-validate.md
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Step 3: Execute (Implementation)
|
|
9
|
+
|
|
10
|
+
## MANDATORY EXECUTION RULES (READ FIRST):
|
|
11
|
+
|
|
12
|
+
- 🛑 NEVER deviate from the approved plan
|
|
13
|
+
- 🛑 NEVER add features not in the plan (scope creep)
|
|
14
|
+
- 🛑 NEVER modify files without reading them first
|
|
15
|
+
- ✅ ALWAYS follow the plan file-by-file
|
|
16
|
+
- ✅ ALWAYS mark todos complete immediately after each task
|
|
17
|
+
- ✅ ALWAYS read files BEFORE editing them
|
|
18
|
+
- 📋 YOU ARE AN IMPLEMENTER following a plan, not a designer
|
|
19
|
+
- 💬 FOCUS on executing the plan exactly as approved
|
|
20
|
+
- 🚫 FORBIDDEN to add "improvements" not in the plan
|
|
21
|
+
|
|
22
|
+
## EXECUTION PROTOCOLS:
|
|
23
|
+
|
|
24
|
+
- 🎯 Create todos from plan before starting
|
|
25
|
+
- 💾 Mark todos complete immediately after each task
|
|
26
|
+
- 📖 Read each file BEFORE modifying it
|
|
27
|
+
- 🚫 FORBIDDEN to have multiple todos in_progress simultaneously
|
|
28
|
+
|
|
29
|
+
## CONTEXT BOUNDARIES:
|
|
30
|
+
|
|
31
|
+
- Plan from step-02 is approved and must be followed
|
|
32
|
+
- Files to modify are known from the plan
|
|
33
|
+
- Patterns to follow are documented from step-01
|
|
34
|
+
- Don't add features - stick to the plan
|
|
35
|
+
|
|
36
|
+
## YOUR TASK:
|
|
37
|
+
|
|
38
|
+
Execute the approved implementation plan file-by-file, tracking progress with todos.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
<available_state>
|
|
43
|
+
From previous steps:
|
|
44
|
+
|
|
45
|
+
| Variable | Description |
|
|
46
|
+
|----------|-------------|
|
|
47
|
+
| `{task_description}` | What to implement |
|
|
48
|
+
| `{task_id}` | Kebab-case identifier |
|
|
49
|
+
| `{auto_mode}` | Skip confirmations |
|
|
50
|
+
| `{save_mode}` | Save outputs to files |
|
|
51
|
+
| `{output_dir}` | Path to output (if save_mode) |
|
|
52
|
+
| Implementation plan | File-by-file changes from step-02 |
|
|
53
|
+
| Patterns | How to implement from step-01 |
|
|
54
|
+
</available_state>
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## EXECUTION SEQUENCE:
|
|
59
|
+
|
|
60
|
+
### 1. Initialize Save Output (if save_mode)
|
|
61
|
+
|
|
62
|
+
**If `{save_mode}` = true:**
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
bash {skill_dir}/scripts/update-progress.sh "{task_id}" "03" "execute" "in_progress"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Append logs to `{output_dir}/03-execute.md` as you work.
|
|
69
|
+
|
|
70
|
+
### 2. Create Todos from Plan
|
|
71
|
+
|
|
72
|
+
Convert each file change from the plan into todos:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
Plan entry:
|
|
76
|
+
#### `src/auth/handler.ts`
|
|
77
|
+
- Add `validateToken` function
|
|
78
|
+
- Handle error case: expired token
|
|
79
|
+
|
|
80
|
+
Becomes:
|
|
81
|
+
- [ ] src/auth/handler.ts: Add validateToken function
|
|
82
|
+
- [ ] src/auth/handler.ts: Handle expired token error
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Use TodoWrite to create the full list.
|
|
86
|
+
|
|
87
|
+
### 3. Execute File by File
|
|
88
|
+
|
|
89
|
+
For each todo:
|
|
90
|
+
|
|
91
|
+
**3.1 Mark In Progress**
|
|
92
|
+
- Only ONE todo in_progress at a time
|
|
93
|
+
|
|
94
|
+
**3.2 Read Before Edit**
|
|
95
|
+
```
|
|
96
|
+
ALWAYS read the file before modifying:
|
|
97
|
+
- Understand current structure
|
|
98
|
+
- Find exact insertion points
|
|
99
|
+
- Verify patterns match expectations
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**3.3 Implement Changes**
|
|
103
|
+
```
|
|
104
|
+
Make changes specified in the plan:
|
|
105
|
+
- Follow patterns from step-01 analysis
|
|
106
|
+
- Use exact names from plan
|
|
107
|
+
- Handle error cases as specified
|
|
108
|
+
- NO comments unless truly necessary
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**3.4 Mark Complete Immediately**
|
|
112
|
+
- Mark todo complete RIGHT AFTER finishing
|
|
113
|
+
- Don't batch completions
|
|
114
|
+
|
|
115
|
+
**3.5 Log Progress (if save_mode)**
|
|
116
|
+
```markdown
|
|
117
|
+
### ✓ src/auth/handler.ts
|
|
118
|
+
- Added `validateToken` function (lines 45-78)
|
|
119
|
+
- Added error handling for expired tokens
|
|
120
|
+
**Timestamp:** {ISO}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### 4. Handle Blockers
|
|
124
|
+
|
|
125
|
+
**If `{auto_mode}` = true:**
|
|
126
|
+
→ Make reasonable decision and continue
|
|
127
|
+
|
|
128
|
+
**If `{auto_mode}` = false:**
|
|
129
|
+
|
|
130
|
+
```yaml
|
|
131
|
+
questions:
|
|
132
|
+
- header: "Blocker"
|
|
133
|
+
question: "Encountered an issue. How should we proceed?"
|
|
134
|
+
options:
|
|
135
|
+
- label: "Use alternative approach (Recommended)"
|
|
136
|
+
description: "Description of alternative"
|
|
137
|
+
- label: "Skip this part"
|
|
138
|
+
description: "Continue without this change"
|
|
139
|
+
- label: "Stop for discussion"
|
|
140
|
+
description: "I want to discuss before continuing"
|
|
141
|
+
multiSelect: false
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### 5. Verify Implementation
|
|
145
|
+
|
|
146
|
+
After completing all todos:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
pnpm run typecheck && pnpm run lint --fix
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Fix any errors immediately.
|
|
153
|
+
|
|
154
|
+
### 6. Implementation Summary
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
**Implementation Complete**
|
|
158
|
+
|
|
159
|
+
**Files Modified:**
|
|
160
|
+
- `src/auth/handler.ts` - Added validateToken, error handling
|
|
161
|
+
- `src/api/auth/route.ts` - Integrated token validation
|
|
162
|
+
|
|
163
|
+
**New Files:**
|
|
164
|
+
- `src/types/auth.ts` - Auth type definitions
|
|
165
|
+
|
|
166
|
+
**Todos:** {X}/{Y} complete
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**If `{auto_mode}` = true:**
|
|
170
|
+
→ Proceed to validation
|
|
171
|
+
|
|
172
|
+
**If `{auto_mode}` = false:**
|
|
173
|
+
|
|
174
|
+
```yaml
|
|
175
|
+
questions:
|
|
176
|
+
- header: "Execute"
|
|
177
|
+
question: "Implementation complete. Ready to validate?"
|
|
178
|
+
options:
|
|
179
|
+
- label: "Proceed to validation (Recommended)"
|
|
180
|
+
description: "Run typecheck, lint, and tests"
|
|
181
|
+
- label: "Review changes"
|
|
182
|
+
description: "I want to review what was changed"
|
|
183
|
+
- label: "Make adjustments"
|
|
184
|
+
description: "I want to modify something"
|
|
185
|
+
multiSelect: false
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### 7. Complete Save Output (if save_mode)
|
|
189
|
+
|
|
190
|
+
**If `{save_mode}` = true:**
|
|
191
|
+
|
|
192
|
+
Append to `{output_dir}/03-execute.md`:
|
|
193
|
+
```markdown
|
|
194
|
+
---
|
|
195
|
+
## Step Complete
|
|
196
|
+
**Status:** ✓ Complete
|
|
197
|
+
**Files modified:** {count}
|
|
198
|
+
**Todos completed:** {count}
|
|
199
|
+
**Next:** step-04-validate.md
|
|
200
|
+
**Timestamp:** {ISO timestamp}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## SUCCESS METRICS:
|
|
206
|
+
|
|
207
|
+
✅ All plan items implemented
|
|
208
|
+
✅ All todos marked complete
|
|
209
|
+
✅ No scope creep - only plan items
|
|
210
|
+
✅ Files read before modification
|
|
211
|
+
✅ Typecheck and lint pass
|
|
212
|
+
✅ Progress logged (if save_mode)
|
|
213
|
+
|
|
214
|
+
## FAILURE MODES:
|
|
215
|
+
|
|
216
|
+
❌ Adding features not in the plan
|
|
217
|
+
❌ Modifying files without reading first
|
|
218
|
+
❌ Not updating todos as you work
|
|
219
|
+
❌ Multiple todos in_progress simultaneously
|
|
220
|
+
❌ Ignoring type or lint errors
|
|
221
|
+
❌ **CRITICAL**: Not using AskUserQuestion for blockers
|
|
222
|
+
|
|
223
|
+
## EXECUTION PROTOCOLS:
|
|
224
|
+
|
|
225
|
+
- Follow the plan EXACTLY
|
|
226
|
+
- Read before write
|
|
227
|
+
- One file at a time
|
|
228
|
+
- Update todos in real-time
|
|
229
|
+
- Fix errors immediately
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## NEXT STEP:
|
|
234
|
+
|
|
235
|
+
After implementation complete, load `./step-04-validate.md`
|
|
236
|
+
|
|
237
|
+
<critical>
|
|
238
|
+
Remember: Execution is about following the plan - don't redesign or add features!
|
|
239
|
+
</critical>
|