kyro-ai 3.2.1 → 3.2.2

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 (55) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +8 -11
  3. package/WORKFLOW.yaml +1 -1
  4. package/commands/forge.md +22 -44
  5. package/commands/status.md +21 -79
  6. package/commands/wrap-up.md +18 -74
  7. package/dist/cli/adapters/codex.js +1 -1
  8. package/dist/cli/adapters/codex.js.map +1 -1
  9. package/dist/cli/adapters/command-skills.js +1 -1
  10. package/dist/cli/adapters/command-skills.js.map +1 -1
  11. package/dist/cli/app.js +1 -1
  12. package/dist/cli/app.js.map +1 -1
  13. package/dist/cli/commands/doctor.d.ts +2 -1
  14. package/dist/cli/commands/doctor.d.ts.map +1 -1
  15. package/dist/cli/commands/doctor.js +8 -4
  16. package/dist/cli/commands/doctor.js.map +1 -1
  17. package/dist/cli/commands/token-audit.d.ts +3 -0
  18. package/dist/cli/commands/token-audit.d.ts.map +1 -0
  19. package/dist/cli/commands/token-audit.js +141 -0
  20. package/dist/cli/commands/token-audit.js.map +1 -0
  21. package/dist/cli/commands/tui.js +3 -3
  22. package/dist/cli/commands/tui.js.map +1 -1
  23. package/dist/cli/help.d.ts.map +1 -1
  24. package/dist/cli/help.js +3 -0
  25. package/dist/cli/help.js.map +1 -1
  26. package/dist/cli/options.d.ts.map +1 -1
  27. package/dist/cli/options.js +5 -0
  28. package/dist/cli/options.js.map +1 -1
  29. package/dist/cli/types.d.ts +1 -0
  30. package/dist/cli/types.d.ts.map +1 -1
  31. package/docs/HOW-TO-USE-CODEX.md +28 -60
  32. package/docs/HOW-TO-USE-OPENCODE.md +26 -72
  33. package/docs/agent-adapters.md +40 -118
  34. package/docs/architecture.md +7 -2
  35. package/docs/cli.md +20 -2
  36. package/docs/commands-reference.md +22 -32
  37. package/docs/getting-started.md +65 -115
  38. package/package.json +1 -1
  39. package/skills/sprint-forge/SKILL.md +9 -8
  40. package/skills/sprint-forge/assets/README.md +27 -17
  41. package/skills/sprint-forge/assets/helpers/metrics.md +4 -4
  42. package/skills/sprint-forge/assets/helpers/reentry-generator.md +4 -4
  43. package/skills/sprint-forge/assets/modes/INIT.md +68 -169
  44. package/skills/sprint-forge/assets/modes/SPRINT.md +20 -246
  45. package/skills/sprint-forge/assets/modes/STATUS.md +46 -128
  46. package/skills/sprint-forge/assets/modes/close-sprint.md +29 -0
  47. package/skills/sprint-forge/assets/modes/execute-task.md +26 -0
  48. package/skills/sprint-forge/assets/modes/plan-sprint.md +29 -0
  49. package/skills/sprint-forge/assets/modes/recover.md +23 -0
  50. package/skills/sprint-forge/assets/modes/review-task.md +25 -0
  51. package/skills/sprint-forge/assets/templates/DEBT.summary.json +12 -0
  52. package/skills/sprint-forge/assets/templates/ROADMAP.summary.json +15 -0
  53. package/skills/sprint-forge/assets/templates/SPRINT.summary.json +16 -0
  54. package/skills/sprint-forge/assets/templates/index.json +15 -0
  55. package/skills/sprint-forge/assets/templates/state.json +11 -0
@@ -38,7 +38,7 @@ allowed-tools: Read, Edit, Write, Glob, Grep, Bash, Task
38
38
 
39
39
  This skill uses a modular assets architecture. Detailed workflows, helpers, and templates are in the [assets/](assets/) directory:
40
40
 
41
- - **[assets/modes/](assets/modes/)** — INIT, SPRINT, and STATUS mode workflows
41
+ - **[assets/modes/](assets/modes/)** — lightweight routers plus focused INIT, planning, execution, review, close, recover, and STATUS workflows
42
42
  - **[assets/helpers/](assets/helpers/)** — Analysis guide, debt tracker, sprint generator, re-entry generator
43
43
  - **[assets/templates/](assets/templates/)** — Roadmap, sprint, project README, and re-entry prompt templates
44
44
 
@@ -54,7 +54,7 @@ Kyro is an **adaptive sprint workflow** skill designed for iterative project exe
54
54
  - **Generates sprints one at a time** — each sprint feeds from the previous one's retro, recommendations, and accumulated debt
55
55
  - **Tracks debt formally** — an accumulated debt table that persists across sprints and never loses items
56
56
  - **Adapts the roadmap** — the plan evolves based on what execution reveals
57
- - **Persists context** — re-entry prompts allow a new agent (or new session) to recover full context
57
+ - **Persists context cheaply** — `state.json`, `index.json`, summaries, and re-entry prompts let new agents recover without rereading every Markdown file
58
58
 
59
59
  This skill works for **any** project type, language, or framework.
60
60
 
@@ -88,7 +88,7 @@ This skill works for **any** project type, language, or framework.
88
88
 
89
89
  > **RULE 7 — CONTEXT PERSISTENCE**
90
90
  >
91
- > After INIT and after each executed sprint, re-entry prompts are updated. These prompts allow any agent in any session to recover full project context and continue seamlessly.
91
+ > After INIT and after each executed sprint, update `state.json`, `index.json`, relevant `*.summary.json`, and re-entry prompts. Agents read structured state before opening long Markdown evidence.
92
92
 
93
93
  ---
94
94
 
@@ -100,6 +100,7 @@ This skill works for **any** project type, language, or framework.
100
100
  | Create vault structure | Yes | No | No |
101
101
  | Generate roadmap | Yes | No | No |
102
102
  | Generate/update re-entry prompts | Yes | Yes | No |
103
+ | Update state/index/summaries | Yes | Yes | Yes |
103
104
  | Generate sprint | No | Yes | No |
104
105
  | Execute sprint tasks | No | Yes | No |
105
106
  | Write/modify code | No | Yes | No |
@@ -120,7 +121,7 @@ This skill works for **any** project type, language, or framework.
120
121
  2. **INIT (first time)** — Ask the user where to save documents. Store the chosen path in `README.md` and `RE-ENTRY-PROMPTS.md`. These are the only sources of truth.
121
122
  3. **SPRINT/STATUS without re-entry prompt** — Auto-discover by scanning `.agents/kyro/scopes/` in `{cwd}`, or ask the user directly.
122
123
 
123
- No AGENTS.md. No branded blocks. The re-entry prompts and README carry the path across sessions.
124
+ The project state lives in `.agents/kyro/kyro.json`; scoped state lives in `.agents/kyro/scopes/{scope}/state.json` and `index.json`. Re-entry prompts and README remain human handoff aids, not startup requirements.
124
125
 
125
126
  ### Frontmatter Properties
126
127
 
@@ -149,7 +150,7 @@ After detecting the mode, read ONLY the assets listed for that mode. Do NOT read
149
150
  | Mode | Read These Assets | Do NOT Read |
150
151
  |------|-------------------|-------------|
151
152
  | **INIT** | `INIT.md`, `analysis-guide.md`, `reentry-generator.md` | SPRINT.md, STATUS.md, sprint-generator.md, debt-tracker.md |
152
- | **SPRINT** | `SPRINT.md`, `sprint-generator.md`, `debt-tracker.md`, `reentry-generator.md` | INIT.md, STATUS.md, analysis-guide.md |
153
+ | **SPRINT** | `SPRINT.md`, then exactly one routed mode: `plan-sprint.md`, `execute-task.md`, `review-task.md`, `close-sprint.md`, or `recover.md` | INIT.md, STATUS.md, unrelated modes/helpers/templates |
153
154
  | **STATUS** | `STATUS.md`, `debt-tracker.md` | INIT.md, SPRINT.md, analysis-guide.md, sprint-generator.md, reentry-generator.md, all templates |
154
155
 
155
156
  **On-demand assets**: Templates are loaded as each workflow step references them, not upfront.
@@ -184,9 +185,9 @@ Or to generate and immediately execute:
184
185
  Generate and execute the next sprint.
185
186
  ```
186
187
 
187
- This will: read the roadmap and previous sprint, build the disposition table, generate phases, and optionally execute task by task.
188
+ This will: read structured state first, route to planning or execution, and load only the mode/helper files needed for the current step.
188
189
 
189
- **Full workflow:** See [assets/modes/SPRINT.md](assets/modes/SPRINT.md)
190
+ **Router:** See [assets/modes/SPRINT.md](assets/modes/SPRINT.md)
190
191
 
191
192
  ### STATUS Mode
192
193
 
@@ -196,7 +197,7 @@ Use to check project progress:
196
197
  Show me the project status and technical debt.
197
198
  ```
198
199
 
199
- This will: read all sprints, calculate metrics, display progress and accumulated debt.
200
+ This will: read summaries first, calculate metrics, and open Markdown only when summaries are missing or a full report requires evidence.
200
201
 
201
202
  **Full workflow:** See [assets/modes/STATUS.md](assets/modes/STATUS.md)
202
203
 
@@ -1,31 +1,41 @@
1
1
  # Kyro — Assets
2
2
 
3
- This directory contains the modular components of the `kyro-ai` skill.
3
+ Kyro assets are designed for progressive disclosure: load the router first, then only the mode/helper/template needed for the current action.
4
4
 
5
- ## Directory Structure
6
-
7
- ### modes/ (3 files)
5
+ ## modes/
8
6
 
9
7
  | File | Description |
10
8
  |------|-------------|
11
- | [INIT.md](modes/INIT.md) | Analysis, roadmap creation, and vault scaffolding workflow |
12
- | [SPRINT.md](modes/SPRINT.md) | Sprint generation and execution workflow |
13
- | [STATUS.md](modes/STATUS.md) | Project progress reporting workflow |
9
+ | [INIT.md](modes/INIT.md) | Analysis, roadmap, scoped state, summaries, and scaffolding |
10
+ | [SPRINT.md](modes/SPRINT.md) | Lightweight sprint router |
11
+ | [plan-sprint.md](modes/plan-sprint.md) | Generate the next sprint |
12
+ | [execute-task.md](modes/execute-task.md) | Execute active sprint tasks |
13
+ | [review-task.md](modes/review-task.md) | Validate task or phase quality |
14
+ | [close-sprint.md](modes/close-sprint.md) | Retro, debt, summaries, and re-entry closeout |
15
+ | [recover.md](modes/recover.md) | Rebuild state/summaries after interruption |
16
+ | [STATUS.md](modes/STATUS.md) | Summary-first progress reporting |
14
17
 
15
- ### helpers/ (4 files)
18
+ ## helpers/
16
19
 
17
20
  | File | Description |
18
21
  |------|-------------|
19
- | [analysis-guide.md](helpers/analysis-guide.md) | How to analyze different project types |
20
- | [debt-tracker.md](helpers/debt-tracker.md) | Rules for the accumulated debt table |
21
- | [sprint-generator.md](helpers/sprint-generator.md) | Algorithm for generating a sprint from inputs |
22
- | [reentry-generator.md](helpers/reentry-generator.md) | How to generate and update re-entry prompts |
22
+ | [analysis-guide.md](helpers/analysis-guide.md) | Analysis strategy per work type |
23
+ | [sprint-generator.md](helpers/sprint-generator.md) | Sprint generation algorithm |
24
+ | [debt-tracker.md](helpers/debt-tracker.md) | Accumulated debt rules |
25
+ | [reentry-generator.md](helpers/reentry-generator.md) | Re-entry prompt updates |
26
+ | [reviewer.md](helpers/reviewer.md) | Review classification |
27
+ | [handoff.md](helpers/handoff.md) | Session handoff format |
23
28
 
24
- ### templates/ (4 files)
29
+ ## templates/
25
30
 
26
31
  | File | Description |
27
32
  |------|-------------|
28
- | [ROADMAP.md](templates/ROADMAP.md) | Adaptive roadmap template |
29
- | [SPRINT.md](templates/SPRINT.md) | Sprint document template |
30
- | [PROJECT-README.md](templates/PROJECT-README.md) | Project working directory README template |
31
- | [REENTRY-PROMPTS.md](templates/REENTRY-PROMPTS.md) | Re-entry prompts template |
33
+ | [ROADMAP.md](templates/ROADMAP.md) | Human roadmap evidence |
34
+ | [SPRINT.md](templates/SPRINT.md) | Human sprint evidence |
35
+ | [PROJECT-README.md](templates/PROJECT-README.md) | Scope README |
36
+ | [REENTRY-PROMPTS.md](templates/REENTRY-PROMPTS.md) | Human handoff prompts |
37
+ | [state.json](templates/state.json) | Scoped routing state |
38
+ | [index.json](templates/index.json) | Fast agent routing index |
39
+ | [ROADMAP.summary.json](templates/ROADMAP.summary.json) | Roadmap summary cache |
40
+ | [SPRINT.summary.json](templates/SPRINT.summary.json) | Sprint summary cache |
41
+ | [DEBT.summary.json](templates/DEBT.summary.json) | Debt summary cache |
@@ -66,14 +66,14 @@ Score: 72/100 (Good)
66
66
 
67
67
  ## Data Sources
68
68
 
69
- - Sprint files: task counts, completion status, retro data
70
- - Debt tables: accumulated across all sprints
71
- - Roadmap: planned vs actual sprint scope
69
+ - Sprint summaries first: task counts, completion status, retro highlights
70
+ - Debt summary or latest debt table: accumulated debt state
71
+ - Roadmap summary first, roadmap Markdown when summary is missing
72
72
  - Rules file: estimation adjustment rules
73
73
 
74
74
  ## Calculation
75
75
 
76
- Read all sprint files in `{output_kyro_dir}/phases/` and compute:
76
+ Read `index.json` and available `*.summary.json` files first. Open sprint Markdown only for missing fields, then compute:
77
77
 
78
78
  1. Count tasks per sprint (total, completed, blocked, skipped, carry-over)
79
79
  2. Map debt items to source directories
@@ -22,10 +22,10 @@ Each re-entry prompt covers a specific scenario:
22
22
 
23
23
  | # | Scenario | When to Use | Key Context Needed |
24
24
  |---|----------|-------------|-------------------|
25
- | 1 | First Sprint | After INIT, before any sprint | README, ROADMAP, findings |
26
- | 2 | Sprint N (next) | After completing Sprint N-1 | README, ROADMAP, last sprint (retro + recommendations + debt), next finding |
27
- | 3 | Execute Sprint | Sprint generated but not executed | README, ROADMAP, current sprint file |
28
- | 4 | Status | Any time, for progress report | README, ROADMAP, all sprint files |
25
+ | 1 | First Sprint | After INIT, before any sprint | state.json, index.json, roadmap summary, selected findings |
26
+ | 2 | Sprint N (next) | After completing Sprint N-1 | state.json, index.json, last sprint summary, roadmap summary |
27
+ | 3 | Execute Sprint | Sprint generated but not executed | state.json, index.json, current sprint summary |
28
+ | 4 | Status | Any time, for progress report | state.json, index.json, summaries; Markdown only as fallback |
29
29
 
30
30
  ---
31
31
 
@@ -1,204 +1,103 @@
1
- # INIT Mode — Analysis, Roadmap & Scaffolding
1
+ # INIT Mode — Analysis, Roadmap & Scoped State
2
2
 
3
- This mode performs deep analysis of a project, generates findings, creates an adaptive roadmap, scaffolds the working directory, and generates re-entry prompts.
3
+ Use INIT when a scope has no Kyro roadmap yet. INIT creates human-readable evidence plus structured routing files so future commands do not reread everything.
4
4
 
5
- ---
5
+ ## Inputs
6
6
 
7
- ## When This Mode Activates
7
+ - User request and current repository path.
8
+ - `.agents/kyro/kyro.json` if present.
9
+ - `../helpers/analysis-guide.md` for analysis strategy.
10
+ - Templates only when writing their artifact.
8
11
 
9
- | EN Signals | ES Signals |
10
- |-----------|-----------|
11
- | "analyze", "audit", "start project", "create roadmap", "analyze codebase" | "analiza", "audita", "inicia proyecto", "crea roadmap", "analiza el codebase" |
12
+ ## Step 1 Resolve scope
12
13
 
13
- ---
14
+ Determine:
14
15
 
15
- ## Prerequisites
16
+ | Field | Rule |
17
+ |-------|------|
18
+ | scope | Short kebab-case work topic, not the repo name. |
19
+ | codebasePath | Usually current working directory. |
20
+ | outputDir | Default `.agents/kyro/scopes/{scope}/`. |
16
21
 
17
- - Access to the codebase (local path or repository)
18
- - No previous kyro-ai work for this project (if resuming, use SPRINT or STATUS mode)
22
+ If scope or output directory is ambiguous, ask once. Then create the scoped directory structure.
19
23
 
20
- ---
24
+ ## Step 2 — Detect work type
21
25
 
22
- ## Workflow
26
+ Classify the request as audit/refactor, feature, bugfix, new project, or tech debt. If unclear, ask before analysis.
23
27
 
24
- ### Step 1Detect Work Type
28
+ ## Step 3Analyze
25
29
 
26
- Determine the type of work from the user's request:
30
+ Use project search/read tools to inspect only what the work type requires:
27
31
 
28
- | Work Type | Signals |
29
- |-----------|---------|
30
- | Audit / Refactor | "analyze", "audit", "refactor", "review the codebase" |
31
- | New Feature | "add feature", "implement", "build" |
32
- | Bugfix | "fix", "broken", "error", "regression" |
33
- | New Project | "start from scratch", "new project", "create project" |
34
- | Tech Debt | "clean up", "deprecated", "reduce debt", "missing tests" |
32
+ - Audit/refactor: broad architecture and quality scan.
33
+ - Feature: integration points and missing behavior.
34
+ - Bugfix: reproduce, root cause, blast radius.
35
+ - New project: requirements and comparable patterns.
36
+ - Tech debt: debt indicators and cleanup targets.
35
37
 
36
- **Reference**: See [analysis-guide.md](../helpers/analysis-guide.md) for detailed guidance per work type.
38
+ Let evidence determine findings. Do not force a fixed category list.
37
39
 
38
- If the work type is ambiguous, ask the user:
40
+ ## Step 4 Write findings
39
41
 
40
- > "Is this an audit/refactor, a new feature, a bugfix, a new project, or tech debt cleanup?"
42
+ Write each distinct finding to `{outputDir}/findings/NN-descriptive-slug.md`.
41
43
 
42
- ### Step 2 Resolve Configuration
44
+ Each finding needs summary, severity, affected files, details, and recommendations. Use `analysis-guide.md` for the detailed format.
43
45
 
44
- Gather or detect the following configuration:
46
+ ## Step 5 Write roadmap
45
47
 
46
- | Config | How to Resolve |
47
- |--------|---------------|
48
- | **Scope** | Ask the user. A short kebab-case name for the work topic (e.g., `oauth-implementation`, `ui-redesign`, `q2-growth`). NOT the repo name — the repo is already `{cwd}`. |
49
- | **Codebase Path** | The absolute path to the codebase. Usually the current working directory. |
50
- | **Sprint Output Dir** | `{output_kyro_dir}/phases/` (automatic, resolved below) |
48
+ Load `../templates/ROADMAP.md` only now. Write `{outputDir}/ROADMAP.md` with:
51
49
 
52
- **Resolve `{output_kyro_dir}`** — ask the user:
50
+ - project paths
51
+ - finding-to-sprint map
52
+ - sprint dependencies
53
+ - sprint title/focus/type/version target
54
+ - suggested phases
55
+ - sprint summary table
53
56
 
54
- > "Where should I save kyro-ai documents for **{scope}**?
55
- >
56
- > 1. **Default** (Recommended) — `.agents/kyro/scopes/{scope}/`
57
- > 2. **Custom path** — provide your preferred directory"
57
+ ## Step 6 Scaffold human artifacts
58
58
 
59
- Set `{output_kyro_dir}` based on the choice. This path will be embedded in `README.md` and `RE-ENTRY-PROMPTS.md` — those are the only sources of truth. No other persistence needed.
59
+ Load templates only when writing:
60
60
 
61
- Confirm with the user:
61
+ - `../templates/PROJECT-README.md` `{outputDir}/README.md`
62
+ - `../templates/REENTRY-PROMPTS.md` → `{outputDir}/RE-ENTRY-PROMPTS.md`
62
63
 
63
- > **Scope**: {scope}
64
- > **Codebase**: `{codebase_path}`
65
- > **Output**: `{output_kyro_dir}`
66
- >
67
- > Proceed with this configuration?
64
+ Create `{outputDir}/phases/` empty. Sprints are generated later.
68
65
 
69
- ### Step 3Deep Analysis
66
+ ## Step 7Write structured routing files
70
67
 
71
- Perform thorough analysis based on the work type. This is the most critical step.
68
+ Create:
72
69
 
73
- **Strategy**:
74
- 1. Use the **Explore agent** (Task tool with subagent_type=Explore) for broad codebase exploration
75
- 2. Use **Glob** to find files by pattern
76
- 3. Use **Grep** to search for specific patterns
77
- 4. Use **Read** to examine specific files in detail
70
+ - `{outputDir}/state.json` from `../templates/state.json`
71
+ - `{outputDir}/index.json` from `../templates/index.json`
72
+ - `{outputDir}/ROADMAP.summary.json` from `../templates/ROADMAP.summary.json`
78
73
 
79
- **Analysis depth depends on work type**:
80
- - **Audit/Refactor**: Explore the entire codebase. Every directory, every major file. Identify all areas of concern.
81
- - **New Feature**: Focus on the integration points. Understand what exists and what gaps need filling.
82
- - **Bugfix**: Trace the bug path. Reproduce, identify root cause, assess blast radius.
83
- - **New Project**: Research requirements, comparable solutions, stack decisions.
84
- - **Tech Debt**: Scan for debt indicators across the codebase.
74
+ Initial values:
85
75
 
86
- **Reference**: See [analysis-guide.md](../helpers/analysis-guide.md) for the complete analysis strategy.
87
-
88
- **Key Principle**: The analysis determines the structure. Do NOT start with a fixed list of categories. Let the project tell you what matters.
89
-
90
- ### Step 4 — Generate Findings
91
-
92
- Write each distinct finding as a separate file:
93
-
94
- **Location**: `{output_kyro_dir}/findings/`
95
-
96
- **Naming**: `NN-descriptive-slug.md` (e.g., `01-architecture-issues.md`)
97
-
98
- **Content per file**: YAML frontmatter properties (following the template in analysis-guide.md) + Summary, severity, details with code examples, affected files, recommendations.
99
-
100
- **Number of findings**: VARIABLE. Determined entirely by what the analysis reveals:
101
- - Small project: 2-4 findings
102
- - Medium refactor: 5-8 findings
103
- - Major audit: 10-20+ findings
104
-
105
- **Reference**: See [analysis-guide.md](../helpers/analysis-guide.md) → Step 3 for the finding file format.
106
-
107
- ### Step 5 — Create Roadmap
108
-
109
- Using the [ROADMAP.md template](../templates/ROADMAP.md), create the adaptive roadmap:
110
-
111
- 1. Fill in project paths (codebase, output dir, findings, phases)
112
- 2. Map each finding to a suggested sprint:
113
- - Finding 01 → Sprint 1 (usually, but not always)
114
- - Related findings may be grouped into a single sprint
115
- - Large findings may be split across multiple sprints
116
- 3. Define sprint dependencies (which sprints must complete before others)
117
- 4. For each sprint, define:
118
- - Title and focus
119
- - Source finding file(s)
120
- - Version target (if applicable)
121
- - Type (audit/refactor/feature/bugfix/debt)
122
- - Suggested phases (2-5 phases per sprint)
123
- 5. Fill in the Sprint Summary table
124
- 6. Write the dependency map
125
-
126
- **Location**: `{output_kyro_dir}/ROADMAP.md`
127
-
128
- ### Step 6 — Scaffold Working Directory
129
-
130
- Create the full directory structure:
131
-
132
- ```
133
- {output_kyro_dir}/
134
- ├── README.md ← From PROJECT-README.md template
135
- ├── ROADMAP.md ← Created in Step 5
136
- ├── RE-ENTRY-PROMPTS.md ← Created in Step 7
137
- ├── findings/ ← Created in Step 4
138
- │ ├── 01-*.md
139
- │ ├── 02-*.md
140
- │ └── ...
141
- └── phases/ ← Empty directory, sprints created later
142
- ```
143
-
144
- **README.md**: Use the [PROJECT-README.md template](../templates/PROJECT-README.md). Fill in the frontmatter properties with actual values, then fill in:
145
- - Project name, type, date
146
- - Description of the work
147
- - All absolute paths
148
- - Baseline metrics (if applicable)
149
- - Initial sprint map from the roadmap
150
-
151
- ### Step 7 — Generate Re-entry Prompts
152
-
153
- Using the [reentry-generator.md](../helpers/reentry-generator.md) helper:
154
-
155
- 1. Use the [REENTRY-PROMPTS.md template](../templates/REENTRY-PROMPTS.md)
156
- 2. Fill in all template variables with actual values:
157
- - `{scope}`, `{codebase_path}`, `{output_kyro_dir}`
158
- - `{current_sprint}` = 1 (no sprints yet)
159
- - Sprint 1 finding file path
160
- 3. Generate all 4 scenario prompts with real paths
161
- 4. Write to `{output_kyro_dir}/RE-ENTRY-PROMPTS.md`
162
-
163
- ## Output Summary
164
-
165
- At the end of INIT, present a summary:
166
-
167
- ```
168
- ## INIT Complete
169
-
170
- **Scope**: {scope}
171
- **Type**: {work_type}
172
- **Findings**: {N} files in findings/
173
- **Sprints Planned**: {M} sprints in roadmap
174
- **Files Created**:
175
- - {output_kyro_dir}/README.md
176
- - {output_kyro_dir}/ROADMAP.md
177
- - {output_kyro_dir}/RE-ENTRY-PROMPTS.md
178
- - {output_kyro_dir}/findings/01-{slug}.md
179
- - {output_kyro_dir}/findings/02-{slug}.md
180
- - ...
181
-
182
- **Next Step**: Generate Sprint 1 using `/kyro:forge` or copy the re-entry prompt from RE-ENTRY-PROMPTS.md → Scenario 1.
76
+ ```json
77
+ {
78
+ "status": "planning",
79
+ "activeSprint": null,
80
+ "currentPhase": "init",
81
+ "nextAction": "plan_sprint"
82
+ }
183
83
  ```
184
84
 
185
- ---
85
+ Update `.agents/kyro/kyro.json` so `scopes` includes this scope and `activeScope` points to it when appropriate.
186
86
 
187
- ## Error Handling
87
+ ## Output
188
88
 
189
- | Error | Action |
190
- |-------|--------|
191
- | Codebase path not found | Ask user for the correct path |
192
- | Output directory already exists | Ask user: overwrite, use different name, or resume |
193
- | No meaningful findings | Inform user — the codebase may be in good shape. Generate a minimal roadmap with maintenance sprints. |
194
- | Analysis scope too large | Break into phases. Analyze the most critical areas first, note others as "needs deeper analysis" finding. |
89
+ Report:
195
90
 
196
- ---
91
+ - scope
92
+ - work type
93
+ - number of findings
94
+ - planned sprint count
95
+ - files created
96
+ - next action: run `kyro-forge` to plan Sprint 1
197
97
 
198
- ## References
98
+ ## Rules
199
99
 
200
- - [analysis-guide.md](../helpers/analysis-guide.md) Analysis strategy per work type
201
- - [ROADMAP.md template](../templates/ROADMAP.md) Roadmap structure
202
- - [PROJECT-README.md template](../templates/PROJECT-README.md) Project README structure
203
- - [REENTRY-PROMPTS.md template](../templates/REENTRY-PROMPTS.md) Re-entry prompts structure
204
- - [reentry-generator.md](../helpers/reentry-generator.md) — How to generate re-entry prompts
100
+ - `kyro install` never creates scoped `state.json`; INIT does.
101
+ - Markdown is durable evidence; JSON is the fast routing index.
102
+ - Do not load sprint templates, debt tracker, or execution modes during INIT.
103
+ - If the output directory already exists, ask whether to resume or choose a different scope.