@gannonh/kata 1.1.0 → 1.1.1
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/agents/kata-codebase-mapper.md +10 -10
- package/agents/kata-debugger.md +4 -4
- package/agents/kata-entity-generator.md +1 -1
- package/agents/kata-executor.md +2 -2
- package/agents/kata-integration-checker.md +2 -2
- package/agents/kata-phase-researcher.md +7 -7
- package/agents/kata-plan-checker.md +6 -6
- package/agents/kata-planner.md +19 -19
- package/agents/kata-project-researcher.md +3 -3
- package/agents/kata-research-synthesizer.md +3 -3
- package/agents/kata-roadmapper.md +5 -5
- package/agents/kata-verifier.md +13 -13
- package/agents/references/execute-plan.md +16 -16
- package/package.json +1 -1
- package/skills/kata-adding-phases/SKILL.md +9 -9
- package/skills/kata-adding-todos/SKILL.md +5 -5
- package/skills/kata-auditing-milestones/SKILL.md +5 -5
- package/skills/kata-checking-todos/SKILL.md +11 -11
- package/skills/kata-completing-milestones/SKILL.md +7 -7
- package/skills/kata-completing-milestones/references/milestone-complete.md +6 -6
- package/skills/kata-configuring-settings/SKILL.md +7 -7
- package/skills/kata-debugging/SKILL.md +2 -2
- package/skills/kata-discussing-phases/references/phase-discuss.md +5 -5
- package/skills/kata-executing-phases/SKILL.md +11 -11
- package/skills/kata-executing-phases/references/execute-plan.md +16 -16
- package/skills/kata-executing-phases/references/phase-execute.md +14 -14
- package/skills/kata-executing-phases/references/planning-config.md +5 -5
- package/skills/kata-executing-quick-tasks/SKILL.md +3 -3
- package/skills/kata-inserting-phases/SKILL.md +7 -7
- package/skills/kata-listing-phase-assumptions/references/phase-assumptions.md +4 -4
- package/skills/kata-mapping-codebases/SKILL.md +3 -3
- package/skills/kata-mapping-codebases/references/project-analyze.md +3 -3
- package/skills/kata-pausing-work/SKILL.md +1 -1
- package/skills/kata-planning-milestone-gaps/SKILL.md +9 -9
- package/skills/kata-planning-phases/SKILL.md +11 -11
- package/skills/kata-providing-help/SKILL.md +82 -82
- package/skills/kata-removing-phases/SKILL.md +11 -11
- package/skills/kata-researching-phases/SKILL.md +7 -7
- package/skills/kata-resuming-work/references/continuation-format.md +16 -16
- package/skills/kata-resuming-work/references/resume-project.md +12 -12
- package/skills/kata-setting-profiles/SKILL.md +4 -4
- package/skills/kata-showing-whats-new/SKILL.md +2 -2
- package/skills/kata-starting-milestones/SKILL.md +4 -4
- package/skills/kata-starting-milestones/references/project-template.md +1 -1
- package/skills/kata-starting-projects/SKILL.md +8 -8
- package/skills/kata-starting-projects/references/project-template.md +1 -1
- package/skills/kata-tracking-progress/SKILL.md +28 -28
- package/skills/kata-updating/SKILL.md +2 -2
- package/skills/kata-verifying-work/SKILL.md +12 -12
- package/skills/kata-verifying-work/references/UAT-template.md +3 -3
- package/skills/kata-verifying-work/references/diagnose-issues.md +1 -1
- package/skills/kata-verifying-work/references/verify-work.md +10 -10
|
@@ -8,7 +8,7 @@ color: cyan
|
|
|
8
8
|
<role>
|
|
9
9
|
You are a Kata codebase mapper. You explore a codebase for a specific focus area and write analysis documents directly to `.planning/codebase/`.
|
|
10
10
|
|
|
11
|
-
You are spawned by `/kata:
|
|
11
|
+
You are spawned by `/kata:mapping-codebases` with one of four focus areas:
|
|
12
12
|
- **tech**: Analyze technology stack and external integrations → write STACK.md and INTEGRATIONS.md
|
|
13
13
|
- **arch**: Analyze architecture and file structure → write ARCHITECTURE.md and STRUCTURE.md
|
|
14
14
|
- **quality**: Analyze coding conventions and testing patterns → write CONVENTIONS.md and TESTING.md
|
|
@@ -20,7 +20,7 @@ Your job: Explore thoroughly, then write document(s) directly. Return confirmati
|
|
|
20
20
|
<why_this_matters>
|
|
21
21
|
**These documents are consumed by other Kata commands:**
|
|
22
22
|
|
|
23
|
-
**`/kata:
|
|
23
|
+
**`/kata:planning-phases`** loads relevant codebase docs when creating implementation plans:
|
|
24
24
|
| Phase Type | Documents Loaded |
|
|
25
25
|
| ------------------------- | ------------------------------- |
|
|
26
26
|
| UI, frontend, components | CONVENTIONS.md, STRUCTURE.md |
|
|
@@ -31,7 +31,7 @@ Your job: Explore thoroughly, then write document(s) directly. Return confirmati
|
|
|
31
31
|
| refactor, cleanup | CONCERNS.md, ARCHITECTURE.md |
|
|
32
32
|
| setup, config | STACK.md, STRUCTURE.md |
|
|
33
33
|
|
|
34
|
-
**`/kata:
|
|
34
|
+
**`/kata:executing-phases`** references codebase docs to:
|
|
35
35
|
- Follow existing conventions when writing code
|
|
36
36
|
- Know where to place new files (STRUCTURE.md)
|
|
37
37
|
- Match testing patterns (TESTING.md)
|
|
@@ -82,11 +82,11 @@ Explore the codebase thoroughly for your focus area.
|
|
|
82
82
|
**For tech focus:**
|
|
83
83
|
```bash
|
|
84
84
|
# Package manifests
|
|
85
|
-
ls package.json requirements.txt Cargo.toml go.mod pyproject.toml 2>/dev/null
|
|
85
|
+
(ls package.json requirements.txt Cargo.toml go.mod pyproject.toml 2>/dev/null || true) || true
|
|
86
86
|
cat package.json 2>/dev/null | head -100
|
|
87
87
|
|
|
88
88
|
# Config files
|
|
89
|
-
ls -la *.config.* .env* tsconfig.json .nvmrc .python-version 2>/dev/null
|
|
89
|
+
(ls -la *.config.* .env* tsconfig.json .nvmrc .python-version 2>/dev/null || true) || true
|
|
90
90
|
|
|
91
91
|
# Find SDK/API imports
|
|
92
92
|
grep -r "import.*stripe\|import.*supabase\|import.*aws\|import.*@" src/ --include="*.ts" --include="*.tsx" 2>/dev/null | head -50
|
|
@@ -98,7 +98,7 @@ grep -r "import.*stripe\|import.*supabase\|import.*aws\|import.*@" src/ --includ
|
|
|
98
98
|
find . -type d -not -path '*/node_modules/*' -not -path '*/.git/*' | head -50
|
|
99
99
|
|
|
100
100
|
# Entry points
|
|
101
|
-
ls src/index.* src/main.* src/app.* src/server.* app/page.* 2>/dev/null
|
|
101
|
+
(ls src/index.* src/main.* src/app.* src/server.* app/page.* 2>/dev/null || true) || true
|
|
102
102
|
|
|
103
103
|
# Import patterns to understand layers
|
|
104
104
|
grep -r "^import" src/ --include="*.ts" --include="*.tsx" 2>/dev/null | head -100
|
|
@@ -107,15 +107,15 @@ grep -r "^import" src/ --include="*.ts" --include="*.tsx" 2>/dev/null | head -10
|
|
|
107
107
|
**For quality focus:**
|
|
108
108
|
```bash
|
|
109
109
|
# Linting/formatting config
|
|
110
|
-
ls .eslintrc* .prettierrc* eslint.config.* biome.json 2>/dev/null
|
|
111
|
-
cat .prettierrc 2>/dev/null
|
|
110
|
+
(ls .eslintrc* .prettierrc* eslint.config.* biome.json 2>/dev/null || true) || true
|
|
111
|
+
cat .prettierrc 2>/dev/null || true
|
|
112
112
|
|
|
113
113
|
# Test files and config
|
|
114
|
-
ls jest.config.* vitest.config.* 2>/dev/null
|
|
114
|
+
(ls jest.config.* vitest.config.* 2>/dev/null || true) || true
|
|
115
115
|
find . -name "*.test.*" -o -name "*.spec.*" | head -30
|
|
116
116
|
|
|
117
117
|
# Sample source files for convention analysis
|
|
118
|
-
ls src/**/*.ts 2>/dev/null | head -10
|
|
118
|
+
(ls src/**/*.ts 2>/dev/null || true) | head -10
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
**For concerns focus:**
|
package/agents/kata-debugger.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kata-debugger
|
|
3
|
-
description: Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by /kata:
|
|
3
|
+
description: Investigates bugs using scientific method, manages debug sessions, handles checkpoints. Spawned by /kata:debugging orchestrator.
|
|
4
4
|
tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch
|
|
5
5
|
color: orange
|
|
6
6
|
---
|
|
@@ -10,7 +10,7 @@ You are a Kata debugger. You investigate bugs using systematic scientific method
|
|
|
10
10
|
|
|
11
11
|
You are spawned by:
|
|
12
12
|
|
|
13
|
-
- `/kata:
|
|
13
|
+
- `/kata:debugging` command (interactive debugging)
|
|
14
14
|
- `diagnose-issues` workflow (parallel UAT diagnosis)
|
|
15
15
|
|
|
16
16
|
Your job: Find the root cause through hypothesis testing, maintain debug file state, optionally fix and verify (depending on mode).
|
|
@@ -826,7 +826,7 @@ The file IS the debugging brain.
|
|
|
826
826
|
**First:** Check for active debug sessions.
|
|
827
827
|
|
|
828
828
|
```bash
|
|
829
|
-
ls .planning/debug/*.md 2>/dev/null | grep -v resolved
|
|
829
|
+
(ls .planning/debug/*.md 2>/dev/null || true) | grep -v resolved
|
|
830
830
|
```
|
|
831
831
|
|
|
832
832
|
**If active sessions exist AND no $ARGUMENTS:**
|
|
@@ -894,7 +894,7 @@ Gather symptoms through questioning. Update file after EACH answer.
|
|
|
894
894
|
- Otherwise -> proceed to fix_and_verify
|
|
895
895
|
- **ELIMINATED:** Append to Eliminated section, form new hypothesis, return to Phase 2
|
|
896
896
|
|
|
897
|
-
**Context management:** After 5+ evidence entries, ensure Current Focus is updated. Suggest "/clear - run /kata:
|
|
897
|
+
**Context management:** After 5+ evidence entries, ensure Current Focus is updated. Suggest "/clear - run /kata:debugging to resume" if context filling up.
|
|
898
898
|
</step>
|
|
899
899
|
|
|
900
900
|
<step name="resume_from_file">
|
|
@@ -79,7 +79,7 @@ For each file path:
|
|
|
79
79
|
|
|
80
80
|
4. **Check if entity exists:**
|
|
81
81
|
```bash
|
|
82
|
-
ls .planning/intel/entities/{slug}.md 2>/dev/null
|
|
82
|
+
(ls .planning/intel/entities/{slug}.md 2>/dev/null || true) || true
|
|
83
83
|
```
|
|
84
84
|
If exists, increment already_existed and skip to next file.
|
|
85
85
|
|
package/agents/kata-executor.md
CHANGED
|
@@ -8,7 +8,7 @@ color: yellow
|
|
|
8
8
|
<role>
|
|
9
9
|
You are a Kata plan executor. You execute PLAN.md files atomically, creating per-task commits, handling deviations automatically, pausing at checkpoints, and producing SUMMARY.md files.
|
|
10
10
|
|
|
11
|
-
You are spawned by `/kata:
|
|
11
|
+
You are spawned by `/kata:executing-phases` orchestrator.
|
|
12
12
|
|
|
13
13
|
Your job: Execute the plan completely, commit each task, create SUMMARY.md, update STATE.md.
|
|
14
14
|
</role>
|
|
@@ -19,7 +19,7 @@ Your job: Execute the plan completely, commit each task, create SUMMARY.md, upda
|
|
|
19
19
|
Before any operation, read project state:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
cat .planning/STATE.md 2>/dev/null
|
|
22
|
+
cat .planning/STATE.md 2>/dev/null || true
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
**If file exists:** Parse and internalize:
|
|
@@ -59,7 +59,7 @@ For each phase, extract what it provides and what it should consume.
|
|
|
59
59
|
# Key exports from each phase
|
|
60
60
|
for summary in .planning/phases/*/*-SUMMARY.md; do
|
|
61
61
|
echo "=== $summary ==="
|
|
62
|
-
grep -A 10 "Key Files\|Exports\|Provides" "$summary" 2>/dev/null
|
|
62
|
+
grep -A 10 "Key Files\|Exports\|Provides" "$summary" 2>/dev/null || true
|
|
63
63
|
done
|
|
64
64
|
```
|
|
65
65
|
|
|
@@ -176,7 +176,7 @@ Check that routes requiring auth actually check auth.
|
|
|
176
176
|
protected_patterns="dashboard|settings|profile|account|user"
|
|
177
177
|
|
|
178
178
|
# Find components/pages matching these patterns
|
|
179
|
-
grep -r -l "$protected_patterns" src/ --include="*.tsx" 2>/dev/null
|
|
179
|
+
grep -r -l "$protected_patterns" src/ --include="*.tsx" 2>/dev/null || true
|
|
180
180
|
```
|
|
181
181
|
|
|
182
182
|
**Check auth usage in protected areas:**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kata-phase-researcher
|
|
3
|
-
description: Researches how to implement a phase before planning. Produces RESEARCH.md consumed by kata-planner. Spawned by /kata:
|
|
3
|
+
description: Researches how to implement a phase before planning. Produces RESEARCH.md consumed by kata-planner. Spawned by /kata:planning-phases orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob, WebSearch, WebFetch, mcp__context7__*
|
|
5
5
|
color: cyan
|
|
6
6
|
---
|
|
@@ -10,8 +10,8 @@ You are a Kata phase researcher. You research how to implement a specific phase
|
|
|
10
10
|
|
|
11
11
|
You are spawned by:
|
|
12
12
|
|
|
13
|
-
- `/kata:
|
|
14
|
-
- `/kata:
|
|
13
|
+
- `/kata:planning-phases` orchestrator (integrated research before planning)
|
|
14
|
+
- `/kata:researching-phases` orchestrator (standalone research)
|
|
15
15
|
|
|
16
16
|
Your job: Answer "What do I need to know to PLAN this phase well?" Produce a single RESEARCH.md file that the planner consumes immediately.
|
|
17
17
|
|
|
@@ -24,7 +24,7 @@ Your job: Answer "What do I need to know to PLAN this phase well?" Produce a sin
|
|
|
24
24
|
</role>
|
|
25
25
|
|
|
26
26
|
<upstream_input>
|
|
27
|
-
**CONTEXT.md** (if exists) — User decisions from `/kata:
|
|
27
|
+
**CONTEXT.md** (if exists) — User decisions from `/kata:discussing-phases`
|
|
28
28
|
|
|
29
29
|
| Section | How You Use It |
|
|
30
30
|
| ------------------------ | ------------------------------------------------- |
|
|
@@ -446,10 +446,10 @@ Orchestrator provides:
|
|
|
446
446
|
```bash
|
|
447
447
|
# Match both zero-padded (05-*) and unpadded (5-*) folders
|
|
448
448
|
PADDED_PHASE=$(printf "%02d" ${PHASE} 2>/dev/null || echo "${PHASE}")
|
|
449
|
-
PHASE_DIR=$(ls -d .planning/phases/${PADDED_PHASE}-* .planning/phases/${PHASE}-* 2>/dev/null | head -1)
|
|
449
|
+
PHASE_DIR=$((ls -d .planning/phases/${PADDED_PHASE}-* .planning/phases/${PHASE}-* 2>/dev/null || true) | head -1)
|
|
450
450
|
|
|
451
|
-
# Read CONTEXT.md if exists (from /kata:
|
|
452
|
-
cat "${PHASE_DIR}"/*-CONTEXT.md 2>/dev/null
|
|
451
|
+
# Read CONTEXT.md if exists (from /kata:discussing-phases)
|
|
452
|
+
cat "${PHASE_DIR}"/*-CONTEXT.md 2>/dev/null || true
|
|
453
453
|
|
|
454
454
|
# Check if planning docs should be committed (default: true)
|
|
455
455
|
COMMIT_PLANNING_DOCS=$(cat .planning/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kata-plan-checker
|
|
3
|
-
description: Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality. Spawned by /kata:
|
|
3
|
+
description: Verifies plans will achieve phase goal before execution. Goal-backward analysis of plan quality. Spawned by /kata:planning-phases orchestrator.
|
|
4
4
|
tools: Read, Bash, Glob, Grep
|
|
5
5
|
color: green
|
|
6
6
|
---
|
|
@@ -10,7 +10,7 @@ You are a Kata plan checker. You verify that plans WILL achieve the phase goal,
|
|
|
10
10
|
|
|
11
11
|
You are spawned by:
|
|
12
12
|
|
|
13
|
-
- `/kata:
|
|
13
|
+
- `/kata:planning-phases` orchestrator (after planner creates PLAN.md files)
|
|
14
14
|
- Re-verification (after planner revises based on your feedback)
|
|
15
15
|
|
|
16
16
|
Your job: Goal-backward verification of PLANS before execution. Start from what the phase SHOULD deliver, verify the plans address it.
|
|
@@ -246,16 +246,16 @@ Gather verification context from the phase directory and project state.
|
|
|
246
246
|
```bash
|
|
247
247
|
# Normalize phase and find directory
|
|
248
248
|
PADDED_PHASE=$(printf "%02d" ${PHASE_ARG} 2>/dev/null || echo "${PHASE_ARG}")
|
|
249
|
-
PHASE_DIR=$(ls -d .planning/phases/${PADDED_PHASE}-* .planning/phases/${PHASE_ARG}-* 2>/dev/null | head -1)
|
|
249
|
+
PHASE_DIR=$((ls -d .planning/phases/${PADDED_PHASE}-* .planning/phases/${PHASE_ARG}-* 2>/dev/null || true) | head -1)
|
|
250
250
|
|
|
251
251
|
# List all PLAN.md files
|
|
252
|
-
ls "$PHASE_DIR"/*-PLAN.md 2>/dev/null
|
|
252
|
+
(ls "$PHASE_DIR"/*-PLAN.md 2>/dev/null || true) || true
|
|
253
253
|
|
|
254
254
|
# Get phase goal from ROADMAP
|
|
255
255
|
grep -A 10 "Phase ${PHASE_NUM}" .planning/ROADMAP.md | head -15
|
|
256
256
|
|
|
257
257
|
# Get phase brief if exists
|
|
258
|
-
ls "$PHASE_DIR"/*-BRIEF.md 2>/dev/null
|
|
258
|
+
(ls "$PHASE_DIR"/*-BRIEF.md 2>/dev/null || true) || true
|
|
259
259
|
```
|
|
260
260
|
|
|
261
261
|
**Extract:**
|
|
@@ -658,7 +658,7 @@ When all checks pass:
|
|
|
658
658
|
|
|
659
659
|
### Ready for Execution
|
|
660
660
|
|
|
661
|
-
Plans verified. Run `/kata:
|
|
661
|
+
Plans verified. Run `/kata:executing-phases {phase}` to proceed.
|
|
662
662
|
```
|
|
663
663
|
|
|
664
664
|
## ISSUES FOUND
|
package/agents/kata-planner.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kata-planner
|
|
3
|
-
description: Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification. Spawned by /kata:
|
|
3
|
+
description: Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification. Spawned by /kata:planning-phases orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Glob, Grep, WebFetch, mcp__context7__*
|
|
5
5
|
color: green
|
|
6
6
|
---
|
|
@@ -10,9 +10,9 @@ You are a Kata planner. You create executable phase plans with task breakdown, d
|
|
|
10
10
|
|
|
11
11
|
You are spawned by:
|
|
12
12
|
|
|
13
|
-
- `/kata:
|
|
14
|
-
- `/kata:
|
|
15
|
-
- `/kata:
|
|
13
|
+
- `/kata:planning-phases` orchestrator (standard phase planning)
|
|
14
|
+
- `/kata:planning-phases --gaps` orchestrator (gap closure planning from verification failures)
|
|
15
|
+
- `/kata:planning-phases` orchestrator in revision mode (updating plans based on checker feedback)
|
|
16
16
|
|
|
17
17
|
Your job: Produce PLAN.md files that Claude executors can implement without interpretation. Plans are prompts, not documents that become prompts.
|
|
18
18
|
|
|
@@ -112,7 +112,7 @@ Discovery is MANDATORY unless you can prove current context exists.
|
|
|
112
112
|
- Level 2+: New library not in package.json, external API, "choose/select/evaluate" in description
|
|
113
113
|
- Level 3: "architecture/design/system", multiple external services, data modeling, auth design
|
|
114
114
|
|
|
115
|
-
For niche domains (3D, games, audio, shaders, ML), suggest `/kata:
|
|
115
|
+
For niche domains (3D, games, audio, shaders, ML), suggest `/kata:researching-phases` before phase-plan.
|
|
116
116
|
|
|
117
117
|
</discovery_levels>
|
|
118
118
|
|
|
@@ -810,13 +810,13 @@ Triggered by `--gaps` flag. Creates plans to address verification or UAT failure
|
|
|
810
810
|
```bash
|
|
811
811
|
# Match both zero-padded (05-*) and unpadded (5-*) folders
|
|
812
812
|
PADDED_PHASE=$(printf "%02d" ${PHASE_ARG} 2>/dev/null || echo "${PHASE_ARG}")
|
|
813
|
-
PHASE_DIR=$(ls -d .planning/phases/${PADDED_PHASE}-* .planning/phases/${PHASE_ARG}-* 2>/dev/null | head -1)
|
|
813
|
+
PHASE_DIR=$((ls -d .planning/phases/${PADDED_PHASE}-* .planning/phases/${PHASE_ARG}-* 2>/dev/null || true) | head -1)
|
|
814
814
|
|
|
815
815
|
# Check for VERIFICATION.md (code verification gaps)
|
|
816
|
-
ls "$PHASE_DIR"/*-VERIFICATION.md 2>/dev/null
|
|
816
|
+
(ls "$PHASE_DIR"/*-VERIFICATION.md 2>/dev/null || true) || true
|
|
817
817
|
|
|
818
818
|
# Check for UAT.md with diagnosed status (user testing gaps)
|
|
819
|
-
grep -l "status: diagnosed" "$PHASE_DIR"/*-UAT.md 2>/dev/null
|
|
819
|
+
grep -l "status: diagnosed" "$PHASE_DIR"/*-UAT.md 2>/dev/null || true
|
|
820
820
|
```
|
|
821
821
|
|
|
822
822
|
**2. Parse gaps:**
|
|
@@ -1019,7 +1019,7 @@ Store `COMMIT_PLANNING_DOCS` for use in git operations.
|
|
|
1019
1019
|
Check for codebase map:
|
|
1020
1020
|
|
|
1021
1021
|
```bash
|
|
1022
|
-
ls .planning/codebase/*.md 2>/dev/null
|
|
1022
|
+
(ls .planning/codebase/*.md 2>/dev/null || true) || true
|
|
1023
1023
|
```
|
|
1024
1024
|
|
|
1025
1025
|
If exists, load relevant documents based on phase type:
|
|
@@ -1095,16 +1095,16 @@ Understand:
|
|
|
1095
1095
|
```bash
|
|
1096
1096
|
# Match both zero-padded (05-*) and unpadded (5-*) folders
|
|
1097
1097
|
PADDED_PHASE=$(printf "%02d" ${PHASE} 2>/dev/null || echo "${PHASE}")
|
|
1098
|
-
PHASE_DIR=$(ls -d .planning/phases/${PADDED_PHASE}-* .planning/phases/${PHASE}-* 2>/dev/null | head -1)
|
|
1098
|
+
PHASE_DIR=$((ls -d .planning/phases/${PADDED_PHASE}-* .planning/phases/${PHASE}-* 2>/dev/null || true) | head -1)
|
|
1099
1099
|
|
|
1100
|
-
# Read CONTEXT.md if exists (from /kata:
|
|
1101
|
-
cat "${PHASE_DIR}"/*-CONTEXT.md 2>/dev/null
|
|
1100
|
+
# Read CONTEXT.md if exists (from /kata:discussing-phases)
|
|
1101
|
+
cat "${PHASE_DIR}"/*-CONTEXT.md 2>/dev/null || true
|
|
1102
1102
|
|
|
1103
|
-
# Read RESEARCH.md if exists (from /kata:
|
|
1104
|
-
cat "${PHASE_DIR}"/*-RESEARCH.md 2>/dev/null
|
|
1103
|
+
# Read RESEARCH.md if exists (from /kata:researching-phases)
|
|
1104
|
+
cat "${PHASE_DIR}"/*-RESEARCH.md 2>/dev/null || true
|
|
1105
1105
|
|
|
1106
1106
|
# Read DISCOVERY.md if exists (from mandatory discovery)
|
|
1107
|
-
cat "${PHASE_DIR}"/*-DISCOVERY.md 2>/dev/null
|
|
1107
|
+
cat "${PHASE_DIR}"/*-DISCOVERY.md 2>/dev/null || true
|
|
1108
1108
|
```
|
|
1109
1109
|
|
|
1110
1110
|
**If CONTEXT.md exists:** Honor user's vision, prioritize their essential features, respect stated boundaries. These are locked decisions - do not revisit.
|
|
@@ -1208,7 +1208,7 @@ Update ROADMAP.md to finalize phase placeholders created by phase-add or phase-i
|
|
|
1208
1208
|
|
|
1209
1209
|
**Plans** (always update):
|
|
1210
1210
|
- `**Plans:** 0 plans` → `**Plans:** {N} plans`
|
|
1211
|
-
- `**Plans:** (created by /kata:
|
|
1211
|
+
- `**Plans:** (created by /kata:planning-phases)` → `**Plans:** {N} plans`
|
|
1212
1212
|
|
|
1213
1213
|
**Plan list** (always update):
|
|
1214
1214
|
- Replace `Plans:\n- [ ] TBD ...` with actual plan checkboxes:
|
|
@@ -1271,7 +1271,7 @@ Return structured planning outcome to orchestrator.
|
|
|
1271
1271
|
|
|
1272
1272
|
### Next Steps
|
|
1273
1273
|
|
|
1274
|
-
Execute: `/kata:
|
|
1274
|
+
Execute: `/kata:executing-phases {phase}`
|
|
1275
1275
|
|
|
1276
1276
|
<sub>`/clear` first - fresh context window</sub>
|
|
1277
1277
|
```
|
|
@@ -1315,7 +1315,7 @@ Execute: `/kata:phase-execute {phase}`
|
|
|
1315
1315
|
|
|
1316
1316
|
### Next Steps
|
|
1317
1317
|
|
|
1318
|
-
Execute: `/kata:
|
|
1318
|
+
Execute: `/kata:executing-phases {phase} --gaps-only`
|
|
1319
1319
|
```
|
|
1320
1320
|
|
|
1321
1321
|
## Revision Complete
|
|
@@ -1381,6 +1381,6 @@ Planning complete when:
|
|
|
1381
1381
|
- [ ] PLAN file(s) exist with gap_closure: true
|
|
1382
1382
|
- [ ] Each plan: tasks derived from gap.missing items
|
|
1383
1383
|
- [ ] PLAN file(s) committed to git
|
|
1384
|
-
- [ ] User knows to run `/kata:
|
|
1384
|
+
- [ ] User knows to run `/kata:executing-phases {X}` next
|
|
1385
1385
|
|
|
1386
1386
|
</success_criteria>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kata-project-researcher
|
|
3
|
-
description: Researches domain ecosystem before roadmap creation. Produces files in .planning/research/ consumed during roadmap creation. Spawned by /kata:
|
|
3
|
+
description: Researches domain ecosystem before roadmap creation. Produces files in .planning/research/ consumed during roadmap creation. Spawned by /kata:starting-projects or /kata:starting-milestones orchestrators.
|
|
4
4
|
tools: Read, Write, Bash, Grep, Glob, WebSearch, WebFetch, mcp__context7__*
|
|
5
5
|
color: cyan
|
|
6
6
|
---
|
|
@@ -10,8 +10,8 @@ You are a Kata project researcher. You research the domain ecosystem before road
|
|
|
10
10
|
|
|
11
11
|
You are spawned by:
|
|
12
12
|
|
|
13
|
-
- `/kata:
|
|
14
|
-
- `/kata:
|
|
13
|
+
- `/kata:starting-projects` orchestrator (Phase 6: Research)
|
|
14
|
+
- `/kata:starting-milestones` orchestrator (Phase 6: Research)
|
|
15
15
|
|
|
16
16
|
Your job: Answer "What does this domain ecosystem look like?" Produce research files that inform roadmap creation.
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kata-research-synthesizer
|
|
3
|
-
description: Synthesizes research outputs from parallel researcher agents into SUMMARY.md. Spawned by /kata:
|
|
3
|
+
description: Synthesizes research outputs from parallel researcher agents into SUMMARY.md. Spawned by /kata:starting-projects after 4 researcher agents complete.
|
|
4
4
|
tools: Read, Write, Bash
|
|
5
5
|
color: purple
|
|
6
6
|
---
|
|
@@ -10,7 +10,7 @@ You are a Kata research synthesizer. You read the outputs from 4 parallel resear
|
|
|
10
10
|
|
|
11
11
|
You are spawned by:
|
|
12
12
|
|
|
13
|
-
- `/kata:
|
|
13
|
+
- `/kata:starting-projects` orchestrator (after STACK, FEATURES, ARCHITECTURE, PITFALLS research completes)
|
|
14
14
|
|
|
15
15
|
Your job: Create a unified research summary that informs roadmap creation. Extract key findings, identify patterns across research files, and produce roadmap implications.
|
|
16
16
|
|
|
@@ -106,7 +106,7 @@ This is the most important section. Based on combined research:
|
|
|
106
106
|
- Which pitfalls it must avoid
|
|
107
107
|
|
|
108
108
|
**Add research flags:**
|
|
109
|
-
- Which phases likely need `/kata:
|
|
109
|
+
- Which phases likely need `/kata:researching-phases` during planning?
|
|
110
110
|
- Which phases have well-documented patterns (skip research)?
|
|
111
111
|
|
|
112
112
|
## Step 5: Assess Confidence
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kata-roadmapper
|
|
3
|
-
description: Creates project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation. Spawned by /kata:
|
|
3
|
+
description: Creates project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation. Spawned by /kata:starting-projects orchestrator.
|
|
4
4
|
tools: Read, Write, Bash, Glob, Grep
|
|
5
5
|
color: purple
|
|
6
6
|
---
|
|
@@ -10,7 +10,7 @@ You are a Kata roadmapper. You create project roadmaps that map requirements to
|
|
|
10
10
|
|
|
11
11
|
You are spawned by:
|
|
12
12
|
|
|
13
|
-
- `/kata:
|
|
13
|
+
- `/kata:starting-projects` orchestrator (unified project initialization)
|
|
14
14
|
|
|
15
15
|
Your job: Transform requirements into a phase structure that delivers the project. Every v1 requirement maps to exactly one phase. Every phase has observable success criteria.
|
|
16
16
|
|
|
@@ -24,7 +24,7 @@ Your job: Transform requirements into a phase structure that delivers the projec
|
|
|
24
24
|
</role>
|
|
25
25
|
|
|
26
26
|
<downstream_consumer>
|
|
27
|
-
Your ROADMAP.md is consumed by `/kata:
|
|
27
|
+
Your ROADMAP.md is consumed by `/kata:planning-phases` which uses it to:
|
|
28
28
|
|
|
29
29
|
| Output | How phase-plan Uses It |
|
|
30
30
|
| -------------------- | -------------------------------- |
|
|
@@ -182,7 +182,7 @@ Track coverage as you go.
|
|
|
182
182
|
**Integer phases (1, 2, 3):** Planned milestone work.
|
|
183
183
|
|
|
184
184
|
**Decimal phases (2.1, 2.2):** Urgent insertions after planning.
|
|
185
|
-
- Created via `/kata:
|
|
185
|
+
- Created via `/kata:inserting-phases`
|
|
186
186
|
- Execute between integers: 1 → 1.1 → 1.2 → 2
|
|
187
187
|
|
|
188
188
|
**Starting number:**
|
|
@@ -515,7 +515,7 @@ After incorporating user feedback and updating files:
|
|
|
515
515
|
|
|
516
516
|
### Ready for Planning
|
|
517
517
|
|
|
518
|
-
Next: `/kata:
|
|
518
|
+
Next: `/kata:planning-phases 1`
|
|
519
519
|
```
|
|
520
520
|
|
|
521
521
|
## Roadmap Blocked
|
package/agents/kata-verifier.md
CHANGED
|
@@ -34,7 +34,7 @@ Then verify each level against the actual codebase.
|
|
|
34
34
|
Before starting fresh, check if a previous VERIFICATION.md exists:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
cat "$PHASE_DIR"/*-VERIFICATION.md 2>/dev/null
|
|
37
|
+
cat "$PHASE_DIR"/*-VERIFICATION.md 2>/dev/null || true
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
**If previous verification exists with `gaps:` section → RE-VERIFICATION MODE:**
|
|
@@ -57,14 +57,14 @@ Gather all verification context from the phase directory and project state.
|
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
59
|
# Phase directory (provided in prompt)
|
|
60
|
-
ls "$PHASE_DIR"/*-PLAN.md 2>/dev/null
|
|
61
|
-
ls "$PHASE_DIR"/*-SUMMARY.md 2>/dev/null
|
|
60
|
+
(ls "$PHASE_DIR"/*-PLAN.md 2>/dev/null || true) || true
|
|
61
|
+
(ls "$PHASE_DIR"/*-SUMMARY.md 2>/dev/null || true) || true
|
|
62
62
|
|
|
63
63
|
# Phase goal from ROADMAP
|
|
64
64
|
grep -A 5 "Phase ${PHASE_NUM}" .planning/ROADMAP.md
|
|
65
65
|
|
|
66
66
|
# Requirements mapped to this phase
|
|
67
|
-
grep -E "^| ${PHASE_NUM}" .planning/REQUIREMENTS.md 2>/dev/null
|
|
67
|
+
grep -E "^| ${PHASE_NUM}" .planning/REQUIREMENTS.md 2>/dev/null || true
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
Extract phase goal from ROADMAP.md. This is the outcome to verify, not the tasks.
|
|
@@ -78,7 +78,7 @@ Determine what must be verified. In re-verification mode, must-haves come from S
|
|
|
78
78
|
Check if any PLAN.md has `must_haves` in frontmatter:
|
|
79
79
|
|
|
80
80
|
```bash
|
|
81
|
-
grep -l "must_haves:" "$PHASE_DIR"/*-PLAN.md 2>/dev/null
|
|
81
|
+
grep -l "must_haves:" "$PHASE_DIR"/*-PLAN.md 2>/dev/null || true
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
If found, extract and use:
|
|
@@ -372,7 +372,7 @@ verify_state_render_link() {
|
|
|
372
372
|
If REQUIREMENTS.md exists and has requirements mapped to this phase:
|
|
373
373
|
|
|
374
374
|
```bash
|
|
375
|
-
grep -E "Phase ${PHASE_NUM}" .planning/REQUIREMENTS.md 2>/dev/null
|
|
375
|
+
grep -E "Phase ${PHASE_NUM}" .planning/REQUIREMENTS.md 2>/dev/null || true
|
|
376
376
|
```
|
|
377
377
|
|
|
378
378
|
For each requirement:
|
|
@@ -406,13 +406,13 @@ scan_antipatterns() {
|
|
|
406
406
|
[ -f "$file" ] || continue
|
|
407
407
|
|
|
408
408
|
# TODO/FIXME comments
|
|
409
|
-
grep -n -E "TODO|FIXME|XXX|HACK" "$file" 2>/dev/null
|
|
409
|
+
grep -n -E "TODO|FIXME|XXX|HACK" "$file" 2>/dev/null || true
|
|
410
410
|
|
|
411
411
|
# Placeholder content
|
|
412
|
-
grep -n -E "placeholder|coming soon|will be here" "$file" -i 2>/dev/null
|
|
412
|
+
grep -n -E "placeholder|coming soon|will be here" "$file" -i 2>/dev/null || true
|
|
413
413
|
|
|
414
414
|
# Empty implementations
|
|
415
|
-
grep -n -E "return null|return \{\}|return \[\]|=> \{\}" "$file" 2>/dev/null
|
|
415
|
+
grep -n -E "return null|return \{\}|return \[\]|=> \{\}" "$file" 2>/dev/null || true
|
|
416
416
|
|
|
417
417
|
# Console.log only implementations
|
|
418
418
|
grep -n -B 2 -A 2 "console\.log" "$file" 2>/dev/null | grep -E "^\s*(const|function|=>)"
|
|
@@ -486,7 +486,7 @@ score = (verified_truths / total_truths)
|
|
|
486
486
|
|
|
487
487
|
## Step 10: Structure Gap Output (If Gaps Found)
|
|
488
488
|
|
|
489
|
-
When gaps are found, structure them for consumption by `/kata:
|
|
489
|
+
When gaps are found, structure them for consumption by `/kata:planning-phases --gaps`.
|
|
490
490
|
|
|
491
491
|
**Output structured gaps in YAML frontmatter:**
|
|
492
492
|
|
|
@@ -527,7 +527,7 @@ gaps:
|
|
|
527
527
|
- `artifacts`: Which files have issues and what's wrong
|
|
528
528
|
- `missing`: Specific things that need to be added/fixed
|
|
529
529
|
|
|
530
|
-
The planner (`/kata:
|
|
530
|
+
The planner (`/kata:planning-phases --gaps`) reads this gap analysis and creates appropriate plans.
|
|
531
531
|
|
|
532
532
|
**Group related gaps by concern** when possible — if multiple truths fail because of the same root cause (e.g., "Chat component is a stub"), note this in the reason to help the planner create focused plans.
|
|
533
533
|
|
|
@@ -648,7 +648,7 @@ All must-haves verified. Phase goal achieved. Ready to proceed.
|
|
|
648
648
|
2. **{Truth 2}** — {reason}
|
|
649
649
|
- Missing: {what needs to be added}
|
|
650
650
|
|
|
651
|
-
Structured gaps in VERIFICATION.md frontmatter for `/kata:
|
|
651
|
+
Structured gaps in VERIFICATION.md frontmatter for `/kata:planning-phases --gaps`.
|
|
652
652
|
|
|
653
653
|
{If human_needed:}
|
|
654
654
|
|
|
@@ -674,7 +674,7 @@ Automated checks passed. Awaiting human verification.
|
|
|
674
674
|
|
|
675
675
|
**DO NOT skip key link verification.** This is where 80% of stubs hide. The pieces exist but aren't connected.
|
|
676
676
|
|
|
677
|
-
**Structure gaps in YAML frontmatter.** The planner (`/kata:
|
|
677
|
+
**Structure gaps in YAML frontmatter.** The planner (`/kata:planning-phases --gaps`) creates plans from your analysis.
|
|
678
678
|
|
|
679
679
|
**DO flag for human verification when uncertain.** If you can't verify programmatically (visual, real-time, external service), say so explicitly.
|
|
680
680
|
|
|
@@ -33,7 +33,7 @@ Store resolved model for use in Task calls below.
|
|
|
33
33
|
Before any operation, read project state:
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
cat .planning/STATE.md 2>/dev/null
|
|
36
|
+
cat .planning/STATE.md 2>/dev/null || true
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
**If file exists:** Parse and internalize:
|
|
@@ -78,8 +78,8 @@ Find the next plan to execute:
|
|
|
78
78
|
cat .planning/ROADMAP.md
|
|
79
79
|
# Look for phase with "In progress" status
|
|
80
80
|
# Then find plans in that phase
|
|
81
|
-
ls .planning/phases/XX-name/*-PLAN.md 2>/dev/null | sort
|
|
82
|
-
ls .planning/phases/XX-name/*-SUMMARY.md 2>/dev/null | sort
|
|
81
|
+
(ls .planning/phases/XX-name/*-PLAN.md 2>/dev/null || true) | sort
|
|
82
|
+
(ls .planning/phases/XX-name/*-SUMMARY.md 2>/dev/null || true) | sort
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
**Logic:**
|
|
@@ -111,7 +111,7 @@ Confirm with user if ambiguous.
|
|
|
111
111
|
|
|
112
112
|
<config-check>
|
|
113
113
|
```bash
|
|
114
|
-
cat .planning/config.json 2>/dev/null
|
|
114
|
+
cat .planning/config.json 2>/dev/null || true
|
|
115
115
|
```
|
|
116
116
|
</config-check>
|
|
117
117
|
|
|
@@ -564,7 +564,7 @@ Before executing, check if previous phase had issues:
|
|
|
564
564
|
|
|
565
565
|
```bash
|
|
566
566
|
# Find previous phase summary
|
|
567
|
-
ls .planning/phases/*/SUMMARY.md 2>/dev/null | sort -r | head -2 | tail -1
|
|
567
|
+
(ls .planning/phases/*/SUMMARY.md 2>/dev/null || true) | sort -r | head -2 | tail -1
|
|
568
568
|
```
|
|
569
569
|
|
|
570
570
|
If previous phase SUMMARY.md has "Issues Encountered" != "None" or "Next Phase Readiness" mentions blockers:
|
|
@@ -1630,7 +1630,7 @@ Check what changed across all task commits in this plan:
|
|
|
1630
1630
|
FIRST_TASK=$(git log --oneline --grep="feat({phase}-{plan}):" --grep="fix({phase}-{plan}):" --grep="test({phase}-{plan}):" --reverse | head -1 | cut -d' ' -f1)
|
|
1631
1631
|
|
|
1632
1632
|
# Get all changes from first task through now
|
|
1633
|
-
git diff --name-only ${FIRST_TASK}^..HEAD 2>/dev/null
|
|
1633
|
+
git diff --name-only ${FIRST_TASK}^..HEAD 2>/dev/null || true
|
|
1634
1634
|
```
|
|
1635
1635
|
|
|
1636
1636
|
**Update only if structural changes occurred:**
|
|
@@ -1695,8 +1695,8 @@ This warning appears BEFORE "Plan complete" messaging. User sees setup requireme
|
|
|
1695
1695
|
List files in the phase directory:
|
|
1696
1696
|
|
|
1697
1697
|
```bash
|
|
1698
|
-
ls -1 .planning/phases/[current-phase-dir]/*-PLAN.md 2>/dev/null | wc -l
|
|
1699
|
-
ls -1 .planning/phases/[current-phase-dir]/*-SUMMARY.md 2>/dev/null | wc -l
|
|
1698
|
+
(ls -1 .planning/phases/[current-phase-dir]/*-PLAN.md 2>/dev/null || true) | wc -l
|
|
1699
|
+
(ls -1 .planning/phases/[current-phase-dir]/*-SUMMARY.md 2>/dev/null || true) | wc -l
|
|
1700
1700
|
```
|
|
1701
1701
|
|
|
1702
1702
|
State the counts: "This phase has [X] plans and [Y] summaries."
|
|
@@ -1744,14 +1744,14 @@ Summary: .planning/phases/{phase-dir}/{phase}-{plan}-SUMMARY.md
|
|
|
1744
1744
|
|
|
1745
1745
|
**{phase}-{next-plan}: [Plan Name]** — [objective from next PLAN.md]
|
|
1746
1746
|
|
|
1747
|
-
`/kata:
|
|
1747
|
+
`/kata:executing-phases {phase}`
|
|
1748
1748
|
|
|
1749
1749
|
<sub>`/clear` first → fresh context window</sub>
|
|
1750
1750
|
|
|
1751
1751
|
---
|
|
1752
1752
|
|
|
1753
1753
|
**Also available:**
|
|
1754
|
-
- `/kata:
|
|
1754
|
+
- `/kata:verifying-work {phase}-{plan}` — manual acceptance testing before continuing
|
|
1755
1755
|
- Review what was built before continuing
|
|
1756
1756
|
|
|
1757
1757
|
---
|
|
@@ -1805,15 +1805,15 @@ All {Y} plans finished.
|
|
|
1805
1805
|
|
|
1806
1806
|
**Phase {Z+1}: {Next Phase Name}** — {Goal from ROADMAP.md}
|
|
1807
1807
|
|
|
1808
|
-
`/kata:
|
|
1808
|
+
`/kata:planning-phases {Z+1}`
|
|
1809
1809
|
|
|
1810
1810
|
<sub>`/clear` first → fresh context window</sub>
|
|
1811
1811
|
|
|
1812
1812
|
---
|
|
1813
1813
|
|
|
1814
1814
|
**Also available:**
|
|
1815
|
-
- `/kata:
|
|
1816
|
-
- `/kata:
|
|
1815
|
+
- `/kata:verifying-work {Z}` — manual acceptance testing before continuing
|
|
1816
|
+
- `/kata:discussing-phases {Z+1}` — gather context first
|
|
1817
1817
|
- Review phase accomplishments before continuing
|
|
1818
1818
|
|
|
1819
1819
|
---
|
|
@@ -1843,15 +1843,15 @@ All {Y} plans finished.
|
|
|
1843
1843
|
|
|
1844
1844
|
**Complete Milestone** — archive and prepare for next
|
|
1845
1845
|
|
|
1846
|
-
`/kata:
|
|
1846
|
+
`/kata:completing-milestones`
|
|
1847
1847
|
|
|
1848
1848
|
<sub>`/clear` first → fresh context window</sub>
|
|
1849
1849
|
|
|
1850
1850
|
---
|
|
1851
1851
|
|
|
1852
1852
|
**Also available:**
|
|
1853
|
-
- `/kata:
|
|
1854
|
-
- `/kata:
|
|
1853
|
+
- `/kata:verifying-work` — manual acceptance testing before completing milestone
|
|
1854
|
+
- `/kata:adding-phases <description>` — add another phase before completing
|
|
1855
1855
|
- Review accomplishments before archiving
|
|
1856
1856
|
|
|
1857
1857
|
---
|