@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
@@ -0,0 +1,279 @@
1
+ ---
2
+ name: kata-auditing-milestones
3
+ description: Use this skill to verify milestone achievement against its definition of done, checking requirements coverage, cross-phase integration, and end-to-end flows. Triggers include "audit milestone", "verify milestone", "check milestone", and "milestone audit". This skill reads existing phase verification files, aggregates technical debt and gaps, and spawns an integration checker for cross-phase wiring.
4
+ version: 0.1.0
5
+ user-invocable: false
6
+ disable-model-invocation: false
7
+ allowed-tools:
8
+ - Read
9
+ - Glob
10
+ - Grep
11
+ - Bash
12
+ - Task
13
+ - Write
14
+ ---
15
+
16
+ <objective>
17
+ Verify milestone achieved its definition of done. Check requirements coverage, cross-phase integration, and end-to-end flows.
18
+
19
+ **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.
20
+ </objective>
21
+
22
+ <execution_context>
23
+ <!-- Spawns kata-integration-checker agent which has all audit expertise baked in -->
24
+ </execution_context>
25
+
26
+ <context>
27
+ Version: $ARGUMENTS (optional — defaults to current milestone)
28
+
29
+ **Original Intent:**
30
+ @.planning/PROJECT.md
31
+ @.planning/REQUIREMENTS.md
32
+
33
+ **Planned Work:**
34
+ @.planning/ROADMAP.md
35
+ @.planning/config.json (if exists)
36
+
37
+ **Completed Work:**
38
+ Glob: .planning/phases/*/*-SUMMARY.md
39
+ Glob: .planning/phases/*/*-VERIFICATION.md
40
+ </context>
41
+
42
+ <process>
43
+
44
+ ## 0. Resolve Model Profile
45
+
46
+ Read model profile for agent spawning:
47
+
48
+ ```bash
49
+ MODEL_PROFILE=$(cat .planning/config.json 2>/dev/null | grep -o '"model_profile"[[:space:]]*:[[:space:]]*"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"' || echo "balanced")
50
+ ```
51
+
52
+ Default to "balanced" if not set.
53
+
54
+ **Model lookup table:**
55
+
56
+ | Agent | quality | balanced | budget |
57
+ |-------|---------|----------|--------|
58
+ | kata-integration-checker | sonnet | sonnet | haiku |
59
+
60
+ Store resolved model for use in Task call below.
61
+
62
+ ## 1. Determine Milestone Scope
63
+
64
+ ```bash
65
+ # Get phases in milestone
66
+ ls -d .planning/phases/*/ | sort -V
67
+ ```
68
+
69
+ - Parse version from arguments or detect current from ROADMAP.md
70
+ - Identify all phase directories in scope
71
+ - Extract milestone definition of done from ROADMAP.md
72
+ - Extract requirements mapped to this milestone from REQUIREMENTS.md
73
+
74
+ ## 2. Read All Phase Verifications
75
+
76
+ For each phase directory, read the VERIFICATION.md:
77
+
78
+ ```bash
79
+ cat .planning/phases/01-*/*-VERIFICATION.md
80
+ cat .planning/phases/02-*/*-VERIFICATION.md
81
+ # etc.
82
+ ```
83
+
84
+ From each VERIFICATION.md, extract:
85
+ - **Status:** passed | gaps_found
86
+ - **Critical gaps:** (if any — these are blockers)
87
+ - **Non-critical gaps:** tech debt, deferred items, warnings
88
+ - **Anti-patterns found:** TODOs, stubs, placeholders
89
+ - **Requirements coverage:** which requirements satisfied/blocked
90
+
91
+ If a phase is missing VERIFICATION.md, flag it as "unverified phase" — this is a blocker.
92
+
93
+ ## 3. Spawn Integration Checker
94
+
95
+ With phase context collected:
96
+
97
+ ```
98
+ Task(
99
+ prompt="Check cross-phase integration and E2E flows.
100
+
101
+ Phases: {phase_dirs}
102
+ Phase exports: {from SUMMARYs}
103
+ API routes: {routes created}
104
+
105
+ Verify cross-phase wiring and E2E user flows.",
106
+ subagent_type="kata-integration-checker",
107
+ model="{integration_checker_model}"
108
+ )
109
+ ```
110
+
111
+ ## 4. Collect Results
112
+
113
+ Combine:
114
+ - Phase-level gaps and tech debt (from step 2)
115
+ - Integration checker's report (wiring gaps, broken flows)
116
+
117
+ ## 5. Check Requirements Coverage
118
+
119
+ For each requirement in REQUIREMENTS.md mapped to this milestone:
120
+ - Find owning phase
121
+ - Check phase verification status
122
+ - Determine: satisfied | partial | unsatisfied
123
+
124
+ ## 6. Aggregate into v{version}-MILESTONE-AUDIT.md
125
+
126
+ Create `.planning/v{version}-v{version}-MILESTONE-AUDIT.md` with:
127
+
128
+ ```yaml
129
+ ---
130
+ milestone: {version}
131
+ audited: {timestamp}
132
+ status: passed | gaps_found | tech_debt
133
+ scores:
134
+ requirements: N/M
135
+ phases: N/M
136
+ integration: N/M
137
+ flows: N/M
138
+ gaps: # Critical blockers
139
+ requirements: [...]
140
+ integration: [...]
141
+ flows: [...]
142
+ tech_debt: # Non-critical, deferred
143
+ - phase: 01-auth
144
+ items:
145
+ - "TODO: add rate limiting"
146
+ - "Warning: no password strength validation"
147
+ - phase: 03-dashboard
148
+ items:
149
+ - "Deferred: mobile responsive layout"
150
+ ---
151
+ ```
152
+
153
+ Plus full markdown report with tables for requirements, phases, integration, tech debt.
154
+
155
+ **Status values:**
156
+ - `passed` — all requirements met, no critical gaps, minimal tech debt
157
+ - `gaps_found` — critical blockers exist
158
+ - `tech_debt` — no blockers but accumulated deferred items need review
159
+
160
+ ## 7. Present Results
161
+
162
+ Route by status (see `<offer_next>`).
163
+
164
+ </process>
165
+
166
+ <offer_next>
167
+ Output this markdown directly (not as a code block). Route based on status:
168
+
169
+ ---
170
+
171
+ **If passed:**
172
+
173
+ ## ✓ Milestone {version} — Audit Passed
174
+
175
+ **Score:** {N}/{M} requirements satisfied
176
+ **Report:** .planning/v{version}-MILESTONE-AUDIT.md
177
+
178
+ All requirements covered. Cross-phase integration verified. E2E flows complete.
179
+
180
+ ───────────────────────────────────────────────────────────────
181
+
182
+ ## ▶ Next Up
183
+
184
+ **Complete milestone** — archive and tag
185
+
186
+ /kata:complete-milestone {version}
187
+
188
+ <sub>/clear first → fresh context window</sub>
189
+
190
+ ───────────────────────────────────────────────────────────────
191
+
192
+ ---
193
+
194
+ **If gaps_found:**
195
+
196
+ ## ⚠ Milestone {version} — Gaps Found
197
+
198
+ **Score:** {N}/{M} requirements satisfied
199
+ **Report:** .planning/v{version}-MILESTONE-AUDIT.md
200
+
201
+ ### Unsatisfied Requirements
202
+
203
+ {For each unsatisfied requirement:}
204
+ - **{REQ-ID}: {description}** (Phase {X})
205
+ - {reason}
206
+
207
+ ### Cross-Phase Issues
208
+
209
+ {For each integration gap:}
210
+ - **{from} → {to}:** {issue}
211
+
212
+ ### Broken Flows
213
+
214
+ {For each flow gap:}
215
+ - **{flow name}:** breaks at {step}
216
+
217
+ ───────────────────────────────────────────────────────────────
218
+
219
+ ## ▶ Next Up
220
+
221
+ **Plan gap closure** — create phases to complete milestone
222
+
223
+ /kata:plan-milestone-gaps
224
+
225
+ <sub>/clear first → fresh context window</sub>
226
+
227
+ ───────────────────────────────────────────────────────────────
228
+
229
+ **Also available:**
230
+ - cat .planning/v{version}-MILESTONE-AUDIT.md — see full report
231
+ - /kata:complete-milestone {version} — proceed anyway (accept tech debt)
232
+
233
+ ───────────────────────────────────────────────────────────────
234
+
235
+ ---
236
+
237
+ **If tech_debt (no blockers but accumulated debt):**
238
+
239
+ ## ⚡ Milestone {version} — Tech Debt Review
240
+
241
+ **Score:** {N}/{M} requirements satisfied
242
+ **Report:** .planning/v{version}-MILESTONE-AUDIT.md
243
+
244
+ All requirements met. No critical blockers. Accumulated tech debt needs review.
245
+
246
+ ### Tech Debt by Phase
247
+
248
+ {For each phase with debt:}
249
+ **Phase {X}: {name}**
250
+ - {item 1}
251
+ - {item 2}
252
+
253
+ ### Total: {N} items across {M} phases
254
+
255
+ ───────────────────────────────────────────────────────────────
256
+
257
+ ## ▶ Options
258
+
259
+ **A. Complete milestone** — accept debt, track in backlog
260
+
261
+ /kata:complete-milestone {version}
262
+
263
+ **B. Plan cleanup phase** — address debt before completing
264
+
265
+ /kata:plan-milestone-gaps
266
+
267
+ <sub>/clear first → fresh context window</sub>
268
+
269
+ ───────────────────────────────────────────────────────────────
270
+ </offer_next>
271
+
272
+ <success_criteria>
273
+ - [ ] Milestone scope identified
274
+ - [ ] All phase VERIFICATION.md files read
275
+ - [ ] Tech debt and deferred gaps aggregated
276
+ - [ ] Integration checker spawned for cross-phase wiring
277
+ - [ ] v{version}-MILESTONE-AUDIT.md created
278
+ - [ ] Results presented with actionable next steps
279
+ </success_criteria>
@@ -1,13 +1,13 @@
1
1
  ---
2
- name: kata:check-todos
3
- description: List pending todos and select one to work on
4
- argument-hint: [area filter]
2
+ name: kata-checking-todos
3
+ description: Use this skill when reviewing pending todos, selecting a todo to work on, filtering todos by area, or deciding what to work on next. Triggers include "check todos", "list todos", "what todos", "pending todos", "show todos", "view todos", and "select todo to work on".
4
+ version: 0.1.0
5
+ user-invocable: false
6
+ disable-model-invocation: false
5
7
  allowed-tools:
6
8
  - Read
7
9
  - Write
8
10
  - Bash
9
- - Glob
10
- - AskUserQuestion
11
11
  ---
12
12
 
13
13
  <objective>
@@ -177,6 +177,17 @@ Update STATE.md "### Pending Todos" section if exists.
177
177
  <step name="git_commit">
178
178
  If todo was moved to done/, commit the change:
179
179
 
180
+ **Check planning config:**
181
+
182
+ ```bash
183
+ COMMIT_PLANNING_DOCS=$(cat .planning/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
184
+ git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false
185
+ ```
186
+
187
+ **If `COMMIT_PLANNING_DOCS=false`:** Skip git operations, log "Todo moved (not committed - commit_docs: false)"
188
+
189
+ **If `COMMIT_PLANNING_DOCS=true` (default):**
190
+
180
191
  ```bash
181
192
  git add .planning/todos/done/[filename]
182
193
  git rm --cached .planning/todos/pending/[filename] 2>/dev/null || true
@@ -0,0 +1,137 @@
1
+ ---
2
+ name: kata-completing-milestones
3
+ description: Use this skill when archiving a completed milestone, preparing for the next version, marking a milestone complete, shipping a version, or wrapping up milestone work. Triggers include "complete milestone", "finish milestone", "archive milestone", "ship version", "mark milestone done", and "milestone complete".
4
+ version: 0.1.0
5
+ user-invocable: false
6
+ disable-model-invocation: false
7
+ allowed-tools:
8
+ - Read
9
+ - Write
10
+ - Bash
11
+ ---
12
+
13
+ <objective>
14
+ Mark milestone {{version}} complete, archive to milestones/, and update ROADMAP.md and REQUIREMENTS.md.
15
+
16
+ Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone.
17
+ Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.
18
+ </objective>
19
+
20
+ <execution_context>
21
+ **Load these files NOW (before proceeding):**
22
+
23
+ - @~/.claude/get-shit-done/workflows/complete-milestone.md (main workflow)
24
+ - @~/.claude/get-shit-done/templates/milestone-archive.md (archive template)
25
+ </execution_context>
26
+
27
+ <context>
28
+ **Project files:**
29
+ - `.planning/ROADMAP.md`
30
+ - `.planning/REQUIREMENTS.md`
31
+ - `.planning/STATE.md`
32
+ - `.planning/PROJECT.md`
33
+
34
+ **User input:**
35
+
36
+ - Version: {{version}} (e.g., "1.0", "1.1", "2.0")
37
+ </context>
38
+
39
+ <process>
40
+
41
+ **Follow complete-milestone.md workflow:**
42
+
43
+ 0. **Check for audit:**
44
+
45
+ - Look for `.planning/v{{version}}-MILESTONE-AUDIT.md`
46
+ - If missing or stale: recommend `/kata:audit-milestone` first
47
+ - If audit status is `gaps_found`: recommend `/kata:plan-milestone-gaps` first
48
+ - If audit status is `passed`: proceed to step 1
49
+
50
+ ```markdown
51
+ ## Pre-flight Check
52
+
53
+ {If no v{{version}}-MILESTONE-AUDIT.md:}
54
+ ⚠ No milestone audit found. Run `/kata:audit-milestone` first to verify
55
+ requirements coverage, cross-phase integration, and E2E flows.
56
+
57
+ {If audit has gaps:}
58
+ ⚠ Milestone audit found gaps. Run `/kata:plan-milestone-gaps` to create
59
+ phases that close the gaps, or proceed anyway to accept as tech debt.
60
+
61
+ {If audit passed:}
62
+ ✓ Milestone audit passed. Proceeding with completion.
63
+ ```
64
+
65
+ 1. **Verify readiness:**
66
+
67
+ - Check all phases in milestone have completed plans (SUMMARY.md exists)
68
+ - Present milestone scope and stats
69
+ - Wait for confirmation
70
+
71
+ 2. **Gather stats:**
72
+
73
+ - Count phases, plans, tasks
74
+ - Calculate git range, file changes, LOC
75
+ - Extract timeline from git log
76
+ - Present summary, confirm
77
+
78
+ 3. **Extract accomplishments:**
79
+
80
+ - Read all phase SUMMARY.md files in milestone range
81
+ - Extract 4-6 key accomplishments
82
+ - Present for approval
83
+
84
+ 4. **Archive milestone:**
85
+
86
+ - Create `.planning/milestones/v{{version}}-ROADMAP.md`
87
+ - Extract full phase details from ROADMAP.md
88
+ - Fill milestone-archive.md template
89
+ - Update ROADMAP.md to one-line summary with link
90
+
91
+ 5. **Archive requirements:**
92
+
93
+ - Create `.planning/milestones/v{{version}}-REQUIREMENTS.md`
94
+ - Mark all v1 requirements as complete (checkboxes checked)
95
+ - Note requirement outcomes (validated, adjusted, dropped)
96
+ - Delete `.planning/REQUIREMENTS.md` (fresh one created for next milestone)
97
+
98
+ 6. **Update PROJECT.md:**
99
+
100
+ - Add "Current State" section with shipped version
101
+ - Add "Next Milestone Goals" section
102
+ - Archive previous content in `<details>` (if v1.1+)
103
+
104
+ 7. **Commit and tag:**
105
+
106
+ - Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files
107
+ - Commit: `chore: archive v{{version}} milestone`
108
+ - Tag: `git tag -a v{{version}} -m "[milestone summary]"`
109
+ - Ask about pushing tag
110
+
111
+ 8. **Offer next steps:**
112
+ - `/kata:new-milestone` — start next milestone (questioning → research → requirements → roadmap)
113
+
114
+ </process>
115
+
116
+ <success_criteria>
117
+
118
+ - Milestone archived to `.planning/milestones/v{{version}}-ROADMAP.md`
119
+ - Requirements archived to `.planning/milestones/v{{version}}-REQUIREMENTS.md`
120
+ - `.planning/REQUIREMENTS.md` deleted (fresh for next milestone)
121
+ - ROADMAP.md collapsed to one-line entry
122
+ - PROJECT.md updated with current state
123
+ - Git tag v{{version}} created
124
+ - Commit successful
125
+ - User knows next steps (including need for fresh requirements)
126
+ </success_criteria>
127
+
128
+ <critical_rules>
129
+
130
+ - **Load workflow first:** Read complete-milestone.md before executing
131
+ - **Verify completion:** All phases must have SUMMARY.md files
132
+ - **User confirmation:** Wait for approval at verification gates
133
+ - **Archive before deleting:** Always create archive files before updating/deleting originals
134
+ - **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link
135
+ - **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
136
+ - **Fresh requirements:** Next milestone starts with `/kata:new-milestone` which includes requirements definition
137
+ </critical_rules>
@@ -0,0 +1,139 @@
1
+ ---
2
+ name: kata-configuring-settings
3
+ description: Use this skill when configure kata workflow toggles and model profile. Triggers include "settings".
4
+ version: 0.1.0
5
+ user-invocable: false
6
+ disable-model-invocation: false
7
+ allowed-tools:
8
+ - Read
9
+ - Write
10
+ - Bash
11
+ ---
12
+
13
+ <objective>
14
+ Allow users to toggle workflow agents on/off and select model profile via interactive settings.
15
+
16
+ Updates `.planning/config.json` with workflow preferences and model profile selection.
17
+ </objective>
18
+
19
+ <process>
20
+
21
+ ## 1. Validate Environment
22
+
23
+ ```bash
24
+ ls .planning/config.json 2>/dev/null
25
+ ```
26
+
27
+ **If not found:** Error - run `/kata:new-project` first.
28
+
29
+ ## 2. Read Current Config
30
+
31
+ ```bash
32
+ cat .planning/config.json
33
+ ```
34
+
35
+ Parse current values (default to `true` if not present):
36
+ - `workflow.research` — spawn researcher during plan-phase
37
+ - `workflow.plan_check` — spawn plan checker during plan-phase
38
+ - `workflow.verifier` — spawn verifier during execute-phase
39
+ - `model_profile` — which model each agent uses (default: `balanced`)
40
+
41
+ ## 3. Present Settings
42
+
43
+ Use AskUserQuestion with current values shown:
44
+
45
+ ```
46
+ AskUserQuestion([
47
+ {
48
+ question: "Which model profile for agents?",
49
+ header: "Model",
50
+ multiSelect: false,
51
+ options: [
52
+ { label: "Quality", description: "Opus everywhere except verification (highest cost)" },
53
+ { label: "Balanced (Recommended)", description: "Opus for planning, Sonnet for execution/verification" },
54
+ { label: "Budget", description: "Sonnet for writing, Haiku for research/verification (lowest cost)" }
55
+ ]
56
+ },
57
+ {
58
+ question: "Spawn Plan Researcher? (researches domain before planning)",
59
+ header: "Research",
60
+ multiSelect: false,
61
+ options: [
62
+ { label: "Yes", description: "Research phase goals before planning" },
63
+ { label: "No", description: "Skip research, plan directly" }
64
+ ]
65
+ },
66
+ {
67
+ question: "Spawn Plan Checker? (verifies plans before execution)",
68
+ header: "Plan Check",
69
+ multiSelect: false,
70
+ options: [
71
+ { label: "Yes", description: "Verify plans meet phase goals" },
72
+ { label: "No", description: "Skip plan verification" }
73
+ ]
74
+ },
75
+ {
76
+ question: "Spawn Execution Verifier? (verifies phase completion)",
77
+ header: "Verifier",
78
+ multiSelect: false,
79
+ options: [
80
+ { label: "Yes", description: "Verify must-haves after execution" },
81
+ { label: "No", description: "Skip post-execution verification" }
82
+ ]
83
+ }
84
+ ])
85
+ ```
86
+
87
+ **Pre-select based on current config values.**
88
+
89
+ ## 4. Update Config
90
+
91
+ Merge new settings into existing config.json:
92
+
93
+ ```json
94
+ {
95
+ ...existing_config,
96
+ "model_profile": "quality" | "balanced" | "budget",
97
+ "workflow": {
98
+ "research": true/false,
99
+ "plan_check": true/false,
100
+ "verifier": true/false
101
+ }
102
+ }
103
+ ```
104
+
105
+ Write updated config to `.planning/config.json`.
106
+
107
+ ## 5. Confirm Changes
108
+
109
+ Display:
110
+
111
+ ```
112
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
113
+ Kata ► SETTINGS UPDATED
114
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
115
+
116
+ | Setting | Value |
117
+ |----------------------|-------|
118
+ | Model Profile | {quality/balanced/budget} |
119
+ | Plan Researcher | {On/Off} |
120
+ | Plan Checker | {On/Off} |
121
+ | Execution Verifier | {On/Off} |
122
+
123
+ These settings apply to future /kata:plan-phase and /kata:execute-phase runs.
124
+
125
+ Quick commands:
126
+ - /kata:set-profile <profile> — switch model profile
127
+ - /kata:plan-phase --research — force research
128
+ - /kata:plan-phase --skip-research — skip research
129
+ - /kata:plan-phase --skip-verify — skip plan check
130
+ ```
131
+
132
+ </process>
133
+
134
+ <success_criteria>
135
+ - [ ] Current config read
136
+ - [ ] User presented with 4 settings (profile + 3 toggles)
137
+ - [ ] Config updated with model_profile and workflow section
138
+ - [ ] Changes confirmed to user
139
+ </success_criteria>