@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.
Files changed (89) hide show
  1. package/README.md +55 -28
  2. package/agents/kata-debugger.md +20 -1
  3. package/agents/kata-entity-generator.md +237 -0
  4. package/agents/kata-executor.md +31 -0
  5. package/agents/kata-phase-researcher.md +13 -4
  6. package/agents/kata-planner.md +19 -0
  7. package/agents/kata-project-researcher.md +5 -5
  8. package/agents/kata-research-synthesizer.md +9 -0
  9. package/bin/install.js +100 -38
  10. package/commands/kata/add-phase.md +8 -195
  11. package/commands/kata/add-todo.md +8 -170
  12. package/commands/kata/audit-milestone.md +10 -248
  13. package/commands/kata/check-todo.md +20 -0
  14. package/commands/kata/complete-milestone.md +8 -124
  15. package/commands/kata/debug.md +9 -138
  16. package/commands/kata/discuss-phase.md +13 -73
  17. package/commands/kata/execute-phase.md +9 -293
  18. package/commands/kata/help.md +13 -376
  19. package/commands/kata/insert-phase.md +8 -215
  20. package/commands/kata/list-phase-assumptions.md +10 -40
  21. package/commands/kata/map-codebase.md +10 -61
  22. package/commands/kata/pause-work.md +9 -112
  23. package/commands/kata/plan-milestone-gaps.md +9 -273
  24. package/commands/kata/plan-phase.md +9 -464
  25. package/commands/kata/progress.md +10 -346
  26. package/commands/kata/quick.md +20 -0
  27. package/commands/kata/remove-phase.md +8 -326
  28. package/commands/kata/research-phase.md +10 -170
  29. package/commands/kata/resume-work.md +10 -30
  30. package/commands/kata/set-profile.md +20 -0
  31. package/commands/kata/settings.md +20 -0
  32. package/commands/kata/start-milestone.md +20 -0
  33. package/commands/kata/start-new-milestone.md +20 -0
  34. package/commands/kata/start-project.md +20 -0
  35. package/commands/kata/update-kata.md +20 -0
  36. package/commands/kata/update.md +13 -219
  37. package/commands/kata/verify-work.md +10 -209
  38. package/commands/kata/whats-new.md +13 -117
  39. package/kata/references/checkpoints.md +318 -28
  40. package/kata/references/model-profiles.md +73 -0
  41. package/kata/references/planning-config.md +94 -0
  42. package/kata/references/ui-brand.md +2 -2
  43. package/kata/references/verification-patterns.md +17 -0
  44. package/kata/templates/codebase/architecture.md +2 -2
  45. package/kata/templates/codebase/structure.md +4 -4
  46. package/kata/templates/config.json +9 -0
  47. package/kata/templates/entity.md +173 -0
  48. package/kata/templates/phase-prompt.md +18 -27
  49. package/kata/workflows/complete-milestone.md +11 -0
  50. package/kata/workflows/diagnose-issues.md +12 -1
  51. package/kata/workflows/discovery-phase.md +5 -9
  52. package/kata/workflows/discuss-phase.md +11 -0
  53. package/kata/workflows/execute-phase.md +68 -9
  54. package/kata/workflows/execute-plan.md +47 -4
  55. package/kata/workflows/map-codebase.md +35 -2
  56. package/kata/workflows/resume-project.md +4 -0
  57. package/kata/workflows/verify-phase.md +2 -3
  58. package/kata/workflows/verify-work.md +36 -3
  59. package/package.json +12 -5
  60. package/skills/kata-adding-phases/SKILL.md +209 -0
  61. package/skills/kata-adding-todos/SKILL.md +195 -0
  62. package/skills/kata-auditing-milestones/SKILL.md +279 -0
  63. package/{commands/kata/check-todos.md → skills/kata-checking-todos/SKILL.md} +16 -5
  64. package/skills/kata-completing-milestones/SKILL.md +137 -0
  65. package/skills/kata-configuring-settings/SKILL.md +139 -0
  66. package/skills/kata-debugging/SKILL.md +170 -0
  67. package/skills/kata-discussing-phases/SKILL.md +85 -0
  68. package/skills/kata-executing-phases/SKILL.md +335 -0
  69. package/skills/kata-executing-quick-tasks/SKILL.md +306 -0
  70. package/skills/kata-inserting-phases/SKILL.md +229 -0
  71. package/skills/kata-listing-phase-assumptions/SKILL.md +51 -0
  72. package/skills/kata-mapping-codebases/SKILL.md +70 -0
  73. package/skills/kata-pausing-work/SKILL.md +137 -0
  74. package/skills/kata-planning-milestone-gaps/SKILL.md +295 -0
  75. package/skills/kata-planning-phases/SKILL.md +521 -0
  76. package/skills/kata-providing-help/SKILL.md +495 -0
  77. package/skills/kata-removing-phases/SKILL.md +350 -0
  78. package/skills/kata-researching-phases/SKILL.md +202 -0
  79. package/skills/kata-resuming-work/SKILL.md +41 -0
  80. package/skills/kata-setting-profiles/SKILL.md +109 -0
  81. package/skills/kata-showing-whats-new/SKILL.md +131 -0
  82. package/skills/kata-starting-milestones/SKILL.md +721 -0
  83. package/{commands/kata/new-milestone.md → skills/kata-starting-new-milestones/SKILL.md} +256 -272
  84. package/{commands/kata/new-project.md → skills/kata-starting-projects/SKILL.md} +138 -29
  85. package/skills/kata-tracking-progress/SKILL.md +365 -0
  86. package/skills/kata-updating/SKILL.md +179 -0
  87. package/skills/kata-updating-kata/SKILL.md +179 -0
  88. package/skills/kata-verifying-work/SKILL.md +217 -0
  89. /package/hooks/{statusline.js → kata-statusline.js} +0 -0
@@ -1,356 +1,20 @@
1
1
  ---
2
- name: kata:progress
2
+ name: progress
3
3
  description: Check project progress, show context, and route to next action (execute or plan)
4
+ argument-hint: <description>
5
+ version: 0.1.0
6
+ disable-model-invocation: true
4
7
  allowed-tools:
5
8
  - Read
9
+ - Write
6
10
  - Bash
7
- - Grep
8
- - Glob
9
- - SlashCommand
10
11
  ---
11
12
 
12
- <objective>
13
- Check project progress, summarize recent work and what's ahead, then intelligently route to the next action - either executing an existing plan or creating the next one.
13
+ ## Step 1: Parse Context
14
14
 
15
- Provides situational awareness before continuing work.
16
- </objective>
15
+ Arguments: "$ARGUMENTS"
17
16
 
17
+ ## Step 2: Invoke Skill
18
18
 
19
- <process>
20
-
21
- <step name="verify">
22
- **Verify planning structure exists:**
23
-
24
- If no `.planning/` directory:
25
-
26
- ```
27
- No planning structure found.
28
-
29
- Run /kata:new-project to start a new project.
30
- ```
31
-
32
- Exit.
33
-
34
- If missing STATE.md: suggest `/kata:new-project`.
35
-
36
- **If ROADMAP.md missing but PROJECT.md exists:**
37
-
38
- This means a milestone was completed and archived. Go to **Route F** (between milestones).
39
-
40
- If missing both ROADMAP.md and PROJECT.md: suggest `/kata:new-project`.
41
- </step>
42
-
43
- <step name="load">
44
- **Load full project context:**
45
-
46
- - Read `.planning/STATE.md` for living memory (position, decisions, issues)
47
- - Read `.planning/ROADMAP.md` for phase structure and objectives
48
- - Read `.planning/PROJECT.md` for current state (What This Is, Core Value, Requirements)
49
- </step>
50
-
51
- <step name="recent">
52
- **Gather recent work context:**
53
-
54
- - Find the 2-3 most recent SUMMARY.md files
55
- - Extract from each: what was accomplished, key decisions, any issues logged
56
- - This shows "what we've been working on"
57
- </step>
58
-
59
- <step name="position">
60
- **Parse current position:**
61
-
62
- - From STATE.md: current phase, plan number, status
63
- - Calculate: total plans, completed plans, remaining plans
64
- - Note any blockers or concerns
65
- - Check for CONTEXT.md: For phases without PLAN.md files, check if `{phase}-CONTEXT.md` exists in phase directory
66
- - Count pending todos: `ls .planning/todos/pending/*.md 2>/dev/null | wc -l`
67
- - Check for active debug sessions: `ls .planning/debug/*.md 2>/dev/null | grep -v resolved | wc -l`
68
- </step>
69
-
70
- <step name="report">
71
- **Present rich status report:**
72
-
73
- ```
74
- # [Project Name]
75
-
76
- **Progress:** [████████░░] 8/10 plans complete
77
-
78
- ## Recent Work
79
- - [Phase X, Plan Y]: [what was accomplished - 1 line]
80
- - [Phase X, Plan Z]: [what was accomplished - 1 line]
81
-
82
- ## Current Position
83
- Phase [N] of [total]: [phase-name]
84
- Plan [M] of [phase-total]: [status]
85
- CONTEXT: [✓ if CONTEXT.md exists | - if not]
86
-
87
- ## Key Decisions Made
88
- - [decision 1 from STATE.md]
89
- - [decision 2]
90
-
91
- ## Blockers/Concerns
92
- - [any blockers or concerns from STATE.md]
93
-
94
- ## Pending Todos
95
- - [count] pending — /kata:check-todos to review
96
-
97
- ## Active Debug Sessions
98
- - [count] active — /kata:debug to continue
99
- (Only show this section if count > 0)
100
-
101
- ## What's Next
102
- [Next phase/plan objective from ROADMAP]
103
- ```
104
-
105
- </step>
106
-
107
- <step name="route">
108
- **Determine next action based on verified counts.**
109
-
110
- **Step 1: Count plans, summaries, and issues in current phase**
111
-
112
- List files in the current phase directory:
113
-
114
- ```bash
115
- ls -1 .planning/phases/[current-phase-dir]/*-PLAN.md 2>/dev/null | wc -l
116
- ls -1 .planning/phases/[current-phase-dir]/*-SUMMARY.md 2>/dev/null | wc -l
117
- ls -1 .planning/phases/[current-phase-dir]/*-UAT.md 2>/dev/null | wc -l
118
- ```
119
-
120
- State: "This phase has {X} plans, {Y} summaries."
121
-
122
- **Step 1.5: Check for unaddressed UAT gaps**
123
-
124
- Check for UAT.md files with status "diagnosed" (has gaps needing fixes).
125
-
126
- ```bash
127
- # Check for diagnosed UAT with gaps
128
- grep -l "status: diagnosed" .planning/phases/[current-phase-dir]/*-UAT.md 2>/dev/null
129
- ```
130
-
131
- Track:
132
- - `uat_with_gaps`: UAT.md files with status "diagnosed" (gaps need fixing)
133
-
134
- **Step 2: Route based on counts**
135
-
136
- | Condition | Meaning | Action |
137
- |-----------|---------|--------|
138
- | uat_with_gaps > 0 | UAT gaps need fix plans | Go to **Route E** |
139
- | summaries < plans | Unexecuted plans exist | Go to **Route A** |
140
- | summaries = plans AND plans > 0 | Phase complete | Go to Step 3 |
141
- | plans = 0 | Phase not yet planned | Go to **Route B** |
142
-
143
- ---
144
-
145
- **Route A: Unexecuted plan exists**
146
-
147
- Find the first PLAN.md without matching SUMMARY.md.
148
- Read its `<objective>` section.
149
-
150
- ```
151
- ---
152
-
153
- ## ▶ Next Up
154
-
155
- **{phase}-{plan}: [Plan Name]** — [objective summary from PLAN.md]
156
-
157
- `/kata:execute-phase {phase}`
158
-
159
- <sub>`/clear` first → fresh context window</sub>
160
-
161
- ---
162
- ```
163
-
164
- ---
165
-
166
- **Route B: Phase needs planning**
167
-
168
- Check if `{phase}-CONTEXT.md` exists in phase directory.
169
-
170
- **If CONTEXT.md exists:**
171
-
172
- ```
173
- ---
174
-
175
- ## ▶ Next Up
176
-
177
- **Phase {N}: {Name}** — {Goal from ROADMAP.md}
178
- <sub>✓ Context gathered, ready to plan</sub>
179
-
180
- `/kata:plan-phase {phase-number}`
181
-
182
- <sub>`/clear` first → fresh context window</sub>
183
-
184
- ---
185
- ```
186
-
187
- **If CONTEXT.md does NOT exist:**
188
-
189
- ```
190
- ---
191
-
192
- ## ▶ Next Up
193
-
194
- **Phase {N}: {Name}** — {Goal from ROADMAP.md}
195
-
196
- `/kata:discuss-phase {phase}` — gather context and clarify approach
197
-
198
- <sub>`/clear` first → fresh context window</sub>
199
-
200
- ---
201
-
202
- **Also available:**
203
- - `/kata:plan-phase {phase}` — skip discussion, plan directly
204
- - `/kata:list-phase-assumptions {phase}` — see Claude's assumptions
205
-
206
- ---
207
- ```
208
-
209
- ---
210
-
211
- **Route E: UAT gaps need fix plans**
212
-
213
- UAT.md exists with gaps (diagnosed issues). User needs to plan fixes.
214
-
215
- ```
216
- ---
217
-
218
- ## ⚠ UAT Gaps Found
219
-
220
- **{phase}-UAT.md** has {N} gaps requiring fixes.
221
-
222
- `/kata:plan-phase {phase} --gaps`
223
-
224
- <sub>`/clear` first → fresh context window</sub>
225
-
226
- ---
227
-
228
- **Also available:**
229
- - `/kata:execute-phase {phase}` — execute phase plans
230
- - `/kata:verify-work {phase}` — run more UAT testing
231
-
232
- ---
233
- ```
234
-
235
- ---
236
-
237
- **Step 3: Check milestone status (only when phase complete)**
238
-
239
- Read ROADMAP.md and identify:
240
- 1. Current phase number
241
- 2. All phase numbers in the current milestone section
242
-
243
- Count total phases and identify the highest phase number.
244
-
245
- State: "Current phase is {X}. Milestone has {N} phases (highest: {Y})."
246
-
247
- **Route based on milestone status:**
248
-
249
- | Condition | Meaning | Action |
250
- |-----------|---------|--------|
251
- | current phase < highest phase | More phases remain | Go to **Route C** |
252
- | current phase = highest phase | Milestone complete | Go to **Route D** |
253
-
254
- ---
255
-
256
- **Route C: Phase complete, more phases remain**
257
-
258
- Read ROADMAP.md to get the next phase's name and goal.
259
-
260
- ```
261
- ---
262
-
263
- ## ✓ Phase {Z} Complete
264
-
265
- ## ▶ Next Up
266
-
267
- **Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
268
-
269
- `/kata:discuss-phase {Z+1}` — gather context and clarify approach
270
-
271
- <sub>`/clear` first → fresh context window</sub>
272
-
273
- ---
274
-
275
- **Also available:**
276
- - `/kata:plan-phase {Z+1}` — skip discussion, plan directly
277
- - `/kata:verify-work {Z}` — user acceptance test before continuing
278
-
279
- ---
280
- ```
281
-
282
- ---
283
-
284
- **Route D: Milestone complete**
285
-
286
- ```
287
- ---
288
-
289
- ## 🎉 Milestone Complete
290
-
291
- All {N} phases finished!
292
-
293
- ## ▶ Next Up
294
-
295
- **Complete Milestone** — archive and prepare for next
296
-
297
- `/kata:complete-milestone`
298
-
299
- <sub>`/clear` first → fresh context window</sub>
300
-
301
- ---
302
-
303
- **Also available:**
304
- - `/kata:verify-work` — user acceptance test before completing milestone
305
-
306
- ---
307
- ```
308
-
309
- ---
310
-
311
- **Route F: Between milestones (ROADMAP.md missing, PROJECT.md exists)**
312
-
313
- A milestone was completed and archived. Ready to start the next milestone cycle.
314
-
315
- Read MILESTONES.md to find the last completed milestone version.
316
-
317
- ```
318
- ---
319
-
320
- ## ✓ Milestone v{X.Y} Complete
321
-
322
- Ready to plan the next milestone.
323
-
324
- ## ▶ Next Up
325
-
326
- **Start Next Milestone** — questioning → research → requirements → roadmap
327
-
328
- `/kata:new-milestone`
329
-
330
- <sub>`/clear` first → fresh context window</sub>
331
-
332
- ---
333
- ```
334
-
335
- </step>
336
-
337
- <step name="edge_cases">
338
- **Handle edge cases:**
339
-
340
- - Phase complete but next phase not planned → offer `/kata:plan-phase [next]`
341
- - All work complete → offer milestone completion
342
- - Blockers present → highlight before offering to continue
343
- - Handoff file exists → mention it, offer `/kata:resume-work`
344
- </step>
345
-
346
- </process>
347
-
348
- <success_criteria>
349
-
350
- - [ ] Rich context provided (recent work, decisions, issues)
351
- - [ ] Current position clear with visual progress
352
- - [ ] What's next clearly explained
353
- - [ ] Smart routing: /kata:execute-phase if plans exist, /kata:plan-phase if not
354
- - [ ] User confirms before any action
355
- - [ ] Seamless handoff to appropriate gsd command
356
- </success_criteria>
19
+ Run the following skill:
20
+ `Skill("kata-tracking-progress")`
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: quick
3
+ description: Execute a quick task with Kata guarantees (atomic commits, state tracking) but skip optional agents
4
+ argument-hint: <description>
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-executing-quick-tasks")`