@gannonh/kata 0.1.4 → 0.2.0
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/README.md +55 -28
- package/agents/kata-debugger.md +20 -1
- package/agents/kata-entity-generator.md +237 -0
- package/agents/kata-executor.md +31 -0
- package/agents/kata-phase-researcher.md +13 -4
- package/agents/kata-planner.md +19 -0
- package/agents/kata-project-researcher.md +5 -5
- package/agents/kata-research-synthesizer.md +9 -0
- package/bin/install.js +100 -38
- package/commands/kata/add-phase.md +8 -195
- package/commands/kata/add-todo.md +8 -170
- package/commands/kata/audit-milestone.md +10 -248
- package/commands/kata/check-todo.md +20 -0
- package/commands/kata/complete-milestone.md +8 -124
- package/commands/kata/debug.md +9 -138
- package/commands/kata/discuss-phase.md +13 -73
- package/commands/kata/execute-phase.md +9 -293
- package/commands/kata/help.md +13 -376
- package/commands/kata/insert-phase.md +8 -215
- package/commands/kata/list-phase-assumptions.md +10 -40
- package/commands/kata/map-codebase.md +10 -61
- package/commands/kata/pause-work.md +9 -112
- package/commands/kata/plan-milestone-gaps.md +9 -273
- package/commands/kata/plan-phase.md +9 -464
- package/commands/kata/progress.md +10 -346
- package/commands/kata/quick.md +20 -0
- package/commands/kata/remove-phase.md +8 -326
- package/commands/kata/research-phase.md +10 -170
- package/commands/kata/resume-work.md +10 -30
- package/commands/kata/set-profile.md +20 -0
- package/commands/kata/settings.md +20 -0
- package/commands/kata/start-milestone.md +20 -0
- package/commands/kata/start-new-milestone.md +20 -0
- package/commands/kata/start-project.md +20 -0
- package/commands/kata/update-kata.md +20 -0
- package/commands/kata/update.md +13 -219
- package/commands/kata/verify-work.md +10 -209
- package/commands/kata/whats-new.md +13 -117
- package/kata/references/checkpoints.md +318 -28
- package/kata/references/model-profiles.md +73 -0
- package/kata/references/planning-config.md +94 -0
- package/kata/references/ui-brand.md +2 -2
- package/kata/references/verification-patterns.md +17 -0
- package/kata/templates/codebase/architecture.md +2 -2
- package/kata/templates/codebase/structure.md +4 -4
- package/kata/templates/config.json +9 -0
- package/kata/templates/entity.md +173 -0
- package/kata/templates/phase-prompt.md +18 -27
- package/kata/workflows/complete-milestone.md +11 -0
- package/kata/workflows/diagnose-issues.md +12 -1
- package/kata/workflows/discovery-phase.md +5 -9
- package/kata/workflows/discuss-phase.md +11 -0
- package/kata/workflows/execute-phase.md +68 -9
- package/kata/workflows/execute-plan.md +47 -4
- package/kata/workflows/map-codebase.md +35 -2
- package/kata/workflows/resume-project.md +4 -0
- package/kata/workflows/verify-phase.md +2 -3
- package/kata/workflows/verify-work.md +36 -3
- package/package.json +12 -5
- package/skills/kata-adding-phases/SKILL.md +209 -0
- package/skills/kata-adding-todos/SKILL.md +195 -0
- package/skills/kata-auditing-milestones/SKILL.md +279 -0
- package/{commands/kata/check-todos.md → skills/kata-checking-todos/SKILL.md} +16 -5
- package/skills/kata-completing-milestones/SKILL.md +137 -0
- package/skills/kata-configuring-settings/SKILL.md +139 -0
- package/skills/kata-debugging/SKILL.md +170 -0
- package/skills/kata-discussing-phases/SKILL.md +85 -0
- package/skills/kata-executing-phases/SKILL.md +335 -0
- package/skills/kata-executing-quick-tasks/SKILL.md +306 -0
- package/skills/kata-inserting-phases/SKILL.md +229 -0
- package/skills/kata-listing-phase-assumptions/SKILL.md +51 -0
- package/skills/kata-mapping-codebases/SKILL.md +70 -0
- package/skills/kata-pausing-work/SKILL.md +137 -0
- package/skills/kata-planning-milestone-gaps/SKILL.md +295 -0
- package/skills/kata-planning-phases/SKILL.md +521 -0
- package/skills/kata-providing-help/SKILL.md +495 -0
- package/skills/kata-removing-phases/SKILL.md +350 -0
- package/skills/kata-researching-phases/SKILL.md +202 -0
- package/skills/kata-resuming-work/SKILL.md +41 -0
- package/skills/kata-setting-profiles/SKILL.md +109 -0
- package/skills/kata-showing-whats-new/SKILL.md +131 -0
- package/skills/kata-starting-milestones/SKILL.md +721 -0
- package/{commands/kata/new-milestone.md → skills/kata-starting-new-milestones/SKILL.md} +256 -272
- package/{commands/kata/new-project.md → skills/kata-starting-projects/SKILL.md} +138 -29
- package/skills/kata-tracking-progress/SKILL.md +365 -0
- package/skills/kata-updating/SKILL.md +179 -0
- package/skills/kata-updating-kata/SKILL.md +179 -0
- package/skills/kata-verifying-work/SKILL.md +217 -0
- /package/hooks/{statusline.js → kata-statusline.js} +0 -0
|
@@ -1,258 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: audit-milestone
|
|
3
3
|
description: Audit milestone completion against original intent before archiving
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: [version]
|
|
5
|
+
version: 0.1.0
|
|
6
|
+
disable-model-invocation: true
|
|
5
7
|
allowed-tools:
|
|
6
8
|
- Read
|
|
7
|
-
- Glob
|
|
8
|
-
- Grep
|
|
9
|
-
- Bash
|
|
10
|
-
- Task
|
|
11
9
|
- Write
|
|
10
|
+
- Bash
|
|
12
11
|
---
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
Verify milestone achieved its definition of done. Check requirements coverage, cross-phase integration, and end-to-end flows.
|
|
16
|
-
|
|
17
|
-
**This command IS the orchestrator.** Reads existing VERIFICATION.md files (phases already verified during execute-phase), aggregates tech debt and deferred gaps, then spawns integration checker for cross-phase wiring.
|
|
18
|
-
</objective>
|
|
19
|
-
|
|
20
|
-
<execution_context>
|
|
21
|
-
<!-- Spawns kata-integration-checker agent which has all audit expertise baked in -->
|
|
22
|
-
</execution_context>
|
|
23
|
-
|
|
24
|
-
<context>
|
|
25
|
-
Version: $ARGUMENTS (optional — defaults to current milestone)
|
|
26
|
-
|
|
27
|
-
**Original Intent:**
|
|
28
|
-
@.planning/PROJECT.md
|
|
29
|
-
@.planning/REQUIREMENTS.md
|
|
30
|
-
|
|
31
|
-
**Planned Work:**
|
|
32
|
-
@.planning/ROADMAP.md
|
|
33
|
-
@.planning/config.json (if exists)
|
|
34
|
-
|
|
35
|
-
**Completed Work:**
|
|
36
|
-
Glob: .planning/phases/*/*-SUMMARY.md
|
|
37
|
-
Glob: .planning/phases/*/*-VERIFICATION.md
|
|
38
|
-
</context>
|
|
39
|
-
|
|
40
|
-
<process>
|
|
41
|
-
|
|
42
|
-
## 1. Determine Milestone Scope
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
# Get phases in milestone
|
|
46
|
-
ls -d .planning/phases/*/ | sort -V
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
- Parse version from arguments or detect current from ROADMAP.md
|
|
50
|
-
- Identify all phase directories in scope
|
|
51
|
-
- Extract milestone definition of done from ROADMAP.md
|
|
52
|
-
- Extract requirements mapped to this milestone from REQUIREMENTS.md
|
|
53
|
-
|
|
54
|
-
## 2. Read All Phase Verifications
|
|
55
|
-
|
|
56
|
-
For each phase directory, read the VERIFICATION.md:
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
cat .planning/phases/01-*/*-VERIFICATION.md
|
|
60
|
-
cat .planning/phases/02-*/*-VERIFICATION.md
|
|
61
|
-
# etc.
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
From each VERIFICATION.md, extract:
|
|
65
|
-
- **Status:** passed | gaps_found
|
|
66
|
-
- **Critical gaps:** (if any — these are blockers)
|
|
67
|
-
- **Non-critical gaps:** tech debt, deferred items, warnings
|
|
68
|
-
- **Anti-patterns found:** TODOs, stubs, placeholders
|
|
69
|
-
- **Requirements coverage:** which requirements satisfied/blocked
|
|
70
|
-
|
|
71
|
-
If a phase is missing VERIFICATION.md, flag it as "unverified phase" — this is a blocker.
|
|
72
|
-
|
|
73
|
-
## 3. Spawn Integration Checker
|
|
74
|
-
|
|
75
|
-
With phase context collected:
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
Task(
|
|
79
|
-
prompt="Check cross-phase integration and E2E flows.
|
|
80
|
-
|
|
81
|
-
Phases: {phase_dirs}
|
|
82
|
-
Phase exports: {from SUMMARYs}
|
|
83
|
-
API routes: {routes created}
|
|
84
|
-
|
|
85
|
-
Verify cross-phase wiring and E2E user flows.",
|
|
86
|
-
subagent_type="kata-integration-checker"
|
|
87
|
-
)
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## 4. Collect Results
|
|
91
|
-
|
|
92
|
-
Combine:
|
|
93
|
-
- Phase-level gaps and tech debt (from step 2)
|
|
94
|
-
- Integration checker's report (wiring gaps, broken flows)
|
|
95
|
-
|
|
96
|
-
## 5. Check Requirements Coverage
|
|
97
|
-
|
|
98
|
-
For each requirement in REQUIREMENTS.md mapped to this milestone:
|
|
99
|
-
- Find owning phase
|
|
100
|
-
- Check phase verification status
|
|
101
|
-
- Determine: satisfied | partial | unsatisfied
|
|
102
|
-
|
|
103
|
-
## 6. Aggregate into v{version}-MILESTONE-AUDIT.md
|
|
104
|
-
|
|
105
|
-
Create `.planning/v{version}-v{version}-MILESTONE-AUDIT.md` with:
|
|
106
|
-
|
|
107
|
-
```yaml
|
|
108
|
-
---
|
|
109
|
-
milestone: {version}
|
|
110
|
-
audited: {timestamp}
|
|
111
|
-
status: passed | gaps_found | tech_debt
|
|
112
|
-
scores:
|
|
113
|
-
requirements: N/M
|
|
114
|
-
phases: N/M
|
|
115
|
-
integration: N/M
|
|
116
|
-
flows: N/M
|
|
117
|
-
gaps: # Critical blockers
|
|
118
|
-
requirements: [...]
|
|
119
|
-
integration: [...]
|
|
120
|
-
flows: [...]
|
|
121
|
-
tech_debt: # Non-critical, deferred
|
|
122
|
-
- phase: 01-auth
|
|
123
|
-
items:
|
|
124
|
-
- "TODO: add rate limiting"
|
|
125
|
-
- "Warning: no password strength validation"
|
|
126
|
-
- phase: 03-dashboard
|
|
127
|
-
items:
|
|
128
|
-
- "Deferred: mobile responsive layout"
|
|
129
|
-
---
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
Plus full markdown report with tables for requirements, phases, integration, tech debt.
|
|
133
|
-
|
|
134
|
-
**Status values:**
|
|
135
|
-
- `passed` — all requirements met, no critical gaps, minimal tech debt
|
|
136
|
-
- `gaps_found` — critical blockers exist
|
|
137
|
-
- `tech_debt` — no blockers but accumulated deferred items need review
|
|
138
|
-
|
|
139
|
-
## 7. Present Results
|
|
140
|
-
|
|
141
|
-
Route by status (see `<offer_next>`).
|
|
142
|
-
|
|
143
|
-
</process>
|
|
144
|
-
|
|
145
|
-
<offer_next>
|
|
146
|
-
Output this markdown directly (not as a code block). Route based on status:
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
**If passed:**
|
|
151
|
-
|
|
152
|
-
## ✓ Milestone {version} — Audit Passed
|
|
153
|
-
|
|
154
|
-
**Score:** {N}/{M} requirements satisfied
|
|
155
|
-
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
156
|
-
|
|
157
|
-
All requirements covered. Cross-phase integration verified. E2E flows complete.
|
|
158
|
-
|
|
159
|
-
───────────────────────────────────────────────────────────────
|
|
160
|
-
|
|
161
|
-
## ▶ Next Up
|
|
162
|
-
|
|
163
|
-
**Complete milestone** — archive and tag
|
|
164
|
-
|
|
165
|
-
/kata:complete-milestone {version}
|
|
166
|
-
|
|
167
|
-
<sub>/clear first → fresh context window</sub>
|
|
168
|
-
|
|
169
|
-
───────────────────────────────────────────────────────────────
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
**If gaps_found:**
|
|
174
|
-
|
|
175
|
-
## ⚠ Milestone {version} — Gaps Found
|
|
176
|
-
|
|
177
|
-
**Score:** {N}/{M} requirements satisfied
|
|
178
|
-
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
179
|
-
|
|
180
|
-
### Unsatisfied Requirements
|
|
181
|
-
|
|
182
|
-
{For each unsatisfied requirement:}
|
|
183
|
-
- **{REQ-ID}: {description}** (Phase {X})
|
|
184
|
-
- {reason}
|
|
185
|
-
|
|
186
|
-
### Cross-Phase Issues
|
|
187
|
-
|
|
188
|
-
{For each integration gap:}
|
|
189
|
-
- **{from} → {to}:** {issue}
|
|
190
|
-
|
|
191
|
-
### Broken Flows
|
|
192
|
-
|
|
193
|
-
{For each flow gap:}
|
|
194
|
-
- **{flow name}:** breaks at {step}
|
|
195
|
-
|
|
196
|
-
───────────────────────────────────────────────────────────────
|
|
197
|
-
|
|
198
|
-
## ▶ Next Up
|
|
199
|
-
|
|
200
|
-
**Plan gap closure** — create phases to complete milestone
|
|
201
|
-
|
|
202
|
-
/kata:plan-milestone-gaps
|
|
203
|
-
|
|
204
|
-
<sub>/clear first → fresh context window</sub>
|
|
205
|
-
|
|
206
|
-
───────────────────────────────────────────────────────────────
|
|
207
|
-
|
|
208
|
-
**Also available:**
|
|
209
|
-
- cat .planning/v{version}-MILESTONE-AUDIT.md — see full report
|
|
210
|
-
- /kata:complete-milestone {version} — proceed anyway (accept tech debt)
|
|
211
|
-
|
|
212
|
-
───────────────────────────────────────────────────────────────
|
|
213
|
-
|
|
214
|
-
---
|
|
215
|
-
|
|
216
|
-
**If tech_debt (no blockers but accumulated debt):**
|
|
217
|
-
|
|
218
|
-
## ⚡ Milestone {version} — Tech Debt Review
|
|
219
|
-
|
|
220
|
-
**Score:** {N}/{M} requirements satisfied
|
|
221
|
-
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
222
|
-
|
|
223
|
-
All requirements met. No critical blockers. Accumulated tech debt needs review.
|
|
224
|
-
|
|
225
|
-
### Tech Debt by Phase
|
|
226
|
-
|
|
227
|
-
{For each phase with debt:}
|
|
228
|
-
**Phase {X}: {name}**
|
|
229
|
-
- {item 1}
|
|
230
|
-
- {item 2}
|
|
231
|
-
|
|
232
|
-
### Total: {N} items across {M} phases
|
|
233
|
-
|
|
234
|
-
───────────────────────────────────────────────────────────────
|
|
235
|
-
|
|
236
|
-
## ▶ Options
|
|
237
|
-
|
|
238
|
-
**A. Complete milestone** — accept debt, track in backlog
|
|
239
|
-
|
|
240
|
-
/kata:complete-milestone {version}
|
|
241
|
-
|
|
242
|
-
**B. Plan cleanup phase** — address debt before completing
|
|
243
|
-
|
|
244
|
-
/kata:plan-milestone-gaps
|
|
13
|
+
## Step 1: Parse Context
|
|
245
14
|
|
|
246
|
-
|
|
15
|
+
Arguments: "$ARGUMENTS"
|
|
247
16
|
|
|
248
|
-
|
|
249
|
-
</offer_next>
|
|
17
|
+
## Step 2: Invoke Skill
|
|
250
18
|
|
|
251
|
-
|
|
252
|
-
-
|
|
253
|
-
- [ ] All phase VERIFICATION.md files read
|
|
254
|
-
- [ ] Tech debt and deferred gaps aggregated
|
|
255
|
-
- [ ] Integration checker spawned for cross-phase wiring
|
|
256
|
-
- [ ] v{version}-MILESTONE-AUDIT.md created
|
|
257
|
-
- [ ] Results presented with actionable next steps
|
|
258
|
-
</success_criteria>
|
|
19
|
+
Run the following skill:
|
|
20
|
+
`Skill("kata-auditing-milestones")`
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: check-todo
|
|
3
|
+
description: List pending todos and select one to work on
|
|
4
|
+
argument-hint: [area filter]
|
|
5
|
+
version: 0.1.0
|
|
6
|
+
disable-model-invocation: true
|
|
7
|
+
allowed-tools:
|
|
8
|
+
- Read
|
|
9
|
+
- Write
|
|
10
|
+
- Bash
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Step 1: Parse Context
|
|
14
|
+
|
|
15
|
+
Arguments: "$ARGUMENTS"
|
|
16
|
+
|
|
17
|
+
## Step 2: Invoke Skill
|
|
18
|
+
|
|
19
|
+
Run the following skill:
|
|
20
|
+
`Skill("kata-checking-todos")`
|
|
@@ -1,136 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
name: kata:complete-milestone
|
|
2
|
+
name: complete-milestone
|
|
4
3
|
description: Archive completed milestone and prepare for next version
|
|
5
4
|
argument-hint: <version>
|
|
5
|
+
version: 0.1.0
|
|
6
|
+
disable-model-invocation: true
|
|
6
7
|
allowed-tools:
|
|
7
8
|
- Read
|
|
8
9
|
- Write
|
|
9
10
|
- Bash
|
|
10
11
|
---
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
Mark milestone {{version}} complete, archive to milestones/, and update ROADMAP.md and REQUIREMENTS.md.
|
|
13
|
+
## Step 1: Parse Context
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.
|
|
17
|
-
</objective>
|
|
15
|
+
Arguments: "$ARGUMENTS"
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
**Load these files NOW (before proceeding):**
|
|
17
|
+
## Step 2: Invoke Skill
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</execution_context>
|
|
25
|
-
|
|
26
|
-
<context>
|
|
27
|
-
**Project files:**
|
|
28
|
-
- `.planning/ROADMAP.md`
|
|
29
|
-
- `.planning/REQUIREMENTS.md`
|
|
30
|
-
- `.planning/STATE.md`
|
|
31
|
-
- `.planning/PROJECT.md`
|
|
32
|
-
|
|
33
|
-
**User input:**
|
|
34
|
-
|
|
35
|
-
- Version: {{version}} (e.g., "1.0", "1.1", "2.0")
|
|
36
|
-
</context>
|
|
37
|
-
|
|
38
|
-
<process>
|
|
39
|
-
|
|
40
|
-
**Follow complete-milestone.md workflow:**
|
|
41
|
-
|
|
42
|
-
0. **Check for audit:**
|
|
43
|
-
|
|
44
|
-
- Look for `.planning/v{{version}}-MILESTONE-AUDIT.md`
|
|
45
|
-
- If missing or stale: recommend `/kata:audit-milestone` first
|
|
46
|
-
- If audit status is `gaps_found`: recommend `/kata:plan-milestone-gaps` first
|
|
47
|
-
- If audit status is `passed`: proceed to step 1
|
|
48
|
-
|
|
49
|
-
```markdown
|
|
50
|
-
## Pre-flight Check
|
|
51
|
-
|
|
52
|
-
{If no v{{version}}-MILESTONE-AUDIT.md:}
|
|
53
|
-
⚠ No milestone audit found. Run `/kata:audit-milestone` first to verify
|
|
54
|
-
requirements coverage, cross-phase integration, and E2E flows.
|
|
55
|
-
|
|
56
|
-
{If audit has gaps:}
|
|
57
|
-
⚠ Milestone audit found gaps. Run `/kata:plan-milestone-gaps` to create
|
|
58
|
-
phases that close the gaps, or proceed anyway to accept as tech debt.
|
|
59
|
-
|
|
60
|
-
{If audit passed:}
|
|
61
|
-
✓ Milestone audit passed. Proceeding with completion.
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
1. **Verify readiness:**
|
|
65
|
-
|
|
66
|
-
- Check all phases in milestone have completed plans (SUMMARY.md exists)
|
|
67
|
-
- Present milestone scope and stats
|
|
68
|
-
- Wait for confirmation
|
|
69
|
-
|
|
70
|
-
2. **Gather stats:**
|
|
71
|
-
|
|
72
|
-
- Count phases, plans, tasks
|
|
73
|
-
- Calculate git range, file changes, LOC
|
|
74
|
-
- Extract timeline from git log
|
|
75
|
-
- Present summary, confirm
|
|
76
|
-
|
|
77
|
-
3. **Extract accomplishments:**
|
|
78
|
-
|
|
79
|
-
- Read all phase SUMMARY.md files in milestone range
|
|
80
|
-
- Extract 4-6 key accomplishments
|
|
81
|
-
- Present for approval
|
|
82
|
-
|
|
83
|
-
4. **Archive milestone:**
|
|
84
|
-
|
|
85
|
-
- Create `.planning/milestones/v{{version}}-ROADMAP.md`
|
|
86
|
-
- Extract full phase details from ROADMAP.md
|
|
87
|
-
- Fill milestone-archive.md template
|
|
88
|
-
- Update ROADMAP.md to one-line summary with link
|
|
89
|
-
|
|
90
|
-
5. **Archive requirements:**
|
|
91
|
-
|
|
92
|
-
- Create `.planning/milestones/v{{version}}-REQUIREMENTS.md`
|
|
93
|
-
- Mark all v1 requirements as complete (checkboxes checked)
|
|
94
|
-
- Note requirement outcomes (validated, adjusted, dropped)
|
|
95
|
-
- Delete `.planning/REQUIREMENTS.md` (fresh one created for next milestone)
|
|
96
|
-
|
|
97
|
-
6. **Update PROJECT.md:**
|
|
98
|
-
|
|
99
|
-
- Add "Current State" section with shipped version
|
|
100
|
-
- Add "Next Milestone Goals" section
|
|
101
|
-
- Archive previous content in `<details>` (if v1.1+)
|
|
102
|
-
|
|
103
|
-
7. **Commit and tag:**
|
|
104
|
-
|
|
105
|
-
- Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files
|
|
106
|
-
- Commit: `chore: archive v{{version}} milestone`
|
|
107
|
-
- Tag: `git tag -a v{{version}} -m "[milestone summary]"`
|
|
108
|
-
- Ask about pushing tag
|
|
109
|
-
|
|
110
|
-
8. **Offer next steps:**
|
|
111
|
-
- `/kata:new-milestone` — start next milestone (questioning → research → requirements → roadmap)
|
|
112
|
-
|
|
113
|
-
</process>
|
|
114
|
-
|
|
115
|
-
<success_criteria>
|
|
116
|
-
|
|
117
|
-
- Milestone archived to `.planning/milestones/v{{version}}-ROADMAP.md`
|
|
118
|
-
- Requirements archived to `.planning/milestones/v{{version}}-REQUIREMENTS.md`
|
|
119
|
-
- `.planning/REQUIREMENTS.md` deleted (fresh for next milestone)
|
|
120
|
-
- ROADMAP.md collapsed to one-line entry
|
|
121
|
-
- PROJECT.md updated with current state
|
|
122
|
-
- Git tag v{{version}} created
|
|
123
|
-
- Commit successful
|
|
124
|
-
- User knows next steps (including need for fresh requirements)
|
|
125
|
-
</success_criteria>
|
|
126
|
-
|
|
127
|
-
<critical_rules>
|
|
128
|
-
|
|
129
|
-
- **Load workflow first:** Read complete-milestone.md before executing
|
|
130
|
-
- **Verify completion:** All phases must have SUMMARY.md files
|
|
131
|
-
- **User confirmation:** Wait for approval at verification gates
|
|
132
|
-
- **Archive before deleting:** Always create archive files before updating/deleting originals
|
|
133
|
-
- **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link
|
|
134
|
-
- **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
|
|
135
|
-
- **Fresh requirements:** Next milestone starts with `/kata:new-milestone` which includes requirements definition
|
|
136
|
-
</critical_rules>
|
|
19
|
+
Run the following skill:
|
|
20
|
+
`Skill("kata-completing-milestones")`
|
package/commands/kata/debug.md
CHANGED
|
@@ -1,149 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: debug
|
|
3
3
|
description: Systematic debugging with persistent state across context resets
|
|
4
4
|
argument-hint: [issue description]
|
|
5
|
+
version: 0.1.0
|
|
6
|
+
disable-model-invocation: true
|
|
5
7
|
allowed-tools:
|
|
6
8
|
- Read
|
|
9
|
+
- Write
|
|
7
10
|
- Bash
|
|
8
|
-
- Task
|
|
9
|
-
- AskUserQuestion
|
|
10
11
|
---
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
Debug issues using scientific method with subagent isolation.
|
|
13
|
+
## Step 1: Parse Context
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Arguments: "$ARGUMENTS"
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
</objective>
|
|
17
|
+
## Step 2: Invoke Skill
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Check for active sessions:
|
|
24
|
-
```bash
|
|
25
|
-
ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
|
|
26
|
-
```
|
|
27
|
-
</context>
|
|
28
|
-
|
|
29
|
-
<process>
|
|
30
|
-
|
|
31
|
-
## 1. Check Active Sessions
|
|
32
|
-
|
|
33
|
-
If active sessions exist AND no $ARGUMENTS:
|
|
34
|
-
- List sessions with status, hypothesis, next action
|
|
35
|
-
- User picks number to resume OR describes new issue
|
|
36
|
-
|
|
37
|
-
If $ARGUMENTS provided OR user describes new issue:
|
|
38
|
-
- Continue to symptom gathering
|
|
39
|
-
|
|
40
|
-
## 2. Gather Symptoms (if new issue)
|
|
41
|
-
|
|
42
|
-
Use AskUserQuestion for each:
|
|
43
|
-
|
|
44
|
-
1. **Expected behavior** - What should happen?
|
|
45
|
-
2. **Actual behavior** - What happens instead?
|
|
46
|
-
3. **Error messages** - Any errors? (paste or describe)
|
|
47
|
-
4. **Timeline** - When did this start? Ever worked?
|
|
48
|
-
5. **Reproduction** - How do you trigger it?
|
|
49
|
-
|
|
50
|
-
After all gathered, confirm ready to investigate.
|
|
51
|
-
|
|
52
|
-
## 3. Spawn kata-debugger Agent
|
|
53
|
-
|
|
54
|
-
Fill prompt and spawn:
|
|
55
|
-
|
|
56
|
-
```markdown
|
|
57
|
-
<objective>
|
|
58
|
-
Investigate issue: {slug}
|
|
59
|
-
|
|
60
|
-
**Summary:** {trigger}
|
|
61
|
-
</objective>
|
|
62
|
-
|
|
63
|
-
<symptoms>
|
|
64
|
-
expected: {expected}
|
|
65
|
-
actual: {actual}
|
|
66
|
-
errors: {errors}
|
|
67
|
-
reproduction: {reproduction}
|
|
68
|
-
timeline: {timeline}
|
|
69
|
-
</symptoms>
|
|
70
|
-
|
|
71
|
-
<mode>
|
|
72
|
-
symptoms_prefilled: true
|
|
73
|
-
goal: find_and_fix
|
|
74
|
-
</mode>
|
|
75
|
-
|
|
76
|
-
<debug_file>
|
|
77
|
-
Create: .planning/debug/{slug}.md
|
|
78
|
-
</debug_file>
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
Task(
|
|
83
|
-
prompt=filled_prompt,
|
|
84
|
-
subagent_type="kata-debugger",
|
|
85
|
-
description="Debug {slug}"
|
|
86
|
-
)
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
## 4. Handle Agent Return
|
|
90
|
-
|
|
91
|
-
**If `## ROOT CAUSE FOUND`:**
|
|
92
|
-
- Display root cause and evidence summary
|
|
93
|
-
- Offer options:
|
|
94
|
-
- "Fix now" - spawn fix subagent
|
|
95
|
-
- "Plan fix" - suggest /kata:plan-phase --gaps
|
|
96
|
-
- "Manual fix" - done
|
|
97
|
-
|
|
98
|
-
**If `## CHECKPOINT REACHED`:**
|
|
99
|
-
- Present checkpoint details to user
|
|
100
|
-
- Get user response
|
|
101
|
-
- Spawn continuation agent (see step 5)
|
|
102
|
-
|
|
103
|
-
**If `## INVESTIGATION INCONCLUSIVE`:**
|
|
104
|
-
- Show what was checked and eliminated
|
|
105
|
-
- Offer options:
|
|
106
|
-
- "Continue investigating" - spawn new agent with additional context
|
|
107
|
-
- "Manual investigation" - done
|
|
108
|
-
- "Add more context" - gather more symptoms, spawn again
|
|
109
|
-
|
|
110
|
-
## 5. Spawn Continuation Agent (After Checkpoint)
|
|
111
|
-
|
|
112
|
-
When user responds to checkpoint, spawn fresh agent:
|
|
113
|
-
|
|
114
|
-
```markdown
|
|
115
|
-
<objective>
|
|
116
|
-
Continue debugging {slug}. Evidence is in the debug file.
|
|
117
|
-
</objective>
|
|
118
|
-
|
|
119
|
-
<prior_state>
|
|
120
|
-
Debug file: @.planning/debug/{slug}.md
|
|
121
|
-
</prior_state>
|
|
122
|
-
|
|
123
|
-
<checkpoint_response>
|
|
124
|
-
**Type:** {checkpoint_type}
|
|
125
|
-
**Response:** {user_response}
|
|
126
|
-
</checkpoint_response>
|
|
127
|
-
|
|
128
|
-
<mode>
|
|
129
|
-
goal: find_and_fix
|
|
130
|
-
</mode>
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
```
|
|
134
|
-
Task(
|
|
135
|
-
prompt=continuation_prompt,
|
|
136
|
-
subagent_type="kata-debugger",
|
|
137
|
-
description="Continue debug {slug}"
|
|
138
|
-
)
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
</process>
|
|
142
|
-
|
|
143
|
-
<success_criteria>
|
|
144
|
-
- [ ] Active sessions checked
|
|
145
|
-
- [ ] Symptoms gathered (if new)
|
|
146
|
-
- [ ] kata-debugger spawned with context
|
|
147
|
-
- [ ] Checkpoints handled correctly
|
|
148
|
-
- [ ] Root cause confirmed before fixing
|
|
149
|
-
</success_criteria>
|
|
19
|
+
Run the following skill:
|
|
20
|
+
`Skill("kata-debugging")`
|
|
@@ -1,80 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: discuss-phase
|
|
3
3
|
description: Gather phase context through adaptive questioning before planning
|
|
4
|
-
argument-hint:
|
|
5
|
-
|
|
4
|
+
argument-hint: <phase>
|
|
5
|
+
version: 0.1.0
|
|
6
|
+
disable-model-invocation: true
|
|
7
|
+
allowed-tools:
|
|
8
|
+
- Read
|
|
9
|
+
- Write
|
|
10
|
+
- Bash
|
|
6
11
|
---
|
|
7
12
|
|
|
8
|
-
|
|
9
|
-
Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.
|
|
13
|
+
## Step 1: Parse Context
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
1. Analyze the phase to identify gray areas (UI, UX, behavior, etc.)
|
|
13
|
-
2. Present gray areas — user selects which to discuss
|
|
14
|
-
3. Deep-dive each selected area until satisfied
|
|
15
|
-
4. Create CONTEXT.md with decisions that guide research and planning
|
|
15
|
+
Arguments: "$ARGUMENTS"
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
</objective>
|
|
17
|
+
## Step 2: Invoke Skill
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@~/.claude/kata/templates/context.md
|
|
23
|
-
</execution_context>
|
|
24
|
-
|
|
25
|
-
<context>
|
|
26
|
-
Phase number: $ARGUMENTS (required)
|
|
27
|
-
|
|
28
|
-
**Load project state:**
|
|
29
|
-
@.planning/STATE.md
|
|
30
|
-
|
|
31
|
-
**Load roadmap:**
|
|
32
|
-
@.planning/ROADMAP.md
|
|
33
|
-
</context>
|
|
34
|
-
|
|
35
|
-
<process>
|
|
36
|
-
1. Validate phase number (error if missing or not in roadmap)
|
|
37
|
-
2. Check if CONTEXT.md exists (offer update/view/skip if yes)
|
|
38
|
-
3. **Analyze phase** — Identify domain and generate phase-specific gray areas
|
|
39
|
-
4. **Present gray areas** — Multi-select: which to discuss? (NO skip option)
|
|
40
|
-
5. **Deep-dive each area** — 4 questions per area, then offer more/next
|
|
41
|
-
6. **Write CONTEXT.md** — Sections match areas discussed
|
|
42
|
-
7. Offer next steps (research or plan)
|
|
43
|
-
|
|
44
|
-
**CRITICAL: Scope guardrail**
|
|
45
|
-
- Phase boundary from ROADMAP.md is FIXED
|
|
46
|
-
- Discussion clarifies HOW to implement, not WHETHER to add more
|
|
47
|
-
- If user suggests new capabilities: "That's its own phase. I'll note it for later."
|
|
48
|
-
- Capture deferred ideas — don't lose them, don't act on them
|
|
49
|
-
|
|
50
|
-
**Domain-aware gray areas:**
|
|
51
|
-
Gray areas depend on what's being built. Analyze the phase goal:
|
|
52
|
-
- Something users SEE → layout, density, interactions, states
|
|
53
|
-
- Something users CALL → responses, errors, auth, versioning
|
|
54
|
-
- Something users RUN → output format, flags, modes, error handling
|
|
55
|
-
- Something users READ → structure, tone, depth, flow
|
|
56
|
-
- Something being ORGANIZED → criteria, grouping, naming, exceptions
|
|
57
|
-
|
|
58
|
-
Generate 3-4 **phase-specific** gray areas, not generic categories.
|
|
59
|
-
|
|
60
|
-
**Probing depth:**
|
|
61
|
-
- Ask 4 questions per area before checking
|
|
62
|
-
- "More questions about [area], or move to next?"
|
|
63
|
-
- If more → ask 4 more, check again
|
|
64
|
-
- After all areas → "Ready to create context?"
|
|
65
|
-
|
|
66
|
-
**Do NOT ask about (Claude handles these):**
|
|
67
|
-
- Technical implementation
|
|
68
|
-
- Architecture choices
|
|
69
|
-
- Performance concerns
|
|
70
|
-
- Scope expansion
|
|
71
|
-
</process>
|
|
72
|
-
|
|
73
|
-
<success_criteria>
|
|
74
|
-
- Gray areas identified through intelligent analysis
|
|
75
|
-
- User chose which areas to discuss
|
|
76
|
-
- Each selected area explored until satisfied
|
|
77
|
-
- Scope creep redirected to deferred ideas
|
|
78
|
-
- CONTEXT.md captures decisions, not vague vision
|
|
79
|
-
- User knows next steps
|
|
80
|
-
</success_criteria>
|
|
19
|
+
Run the following skill:
|
|
20
|
+
`Skill("kata-discussing-phases")`
|