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.
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +8 -11
- package/WORKFLOW.yaml +1 -1
- package/commands/forge.md +22 -44
- package/commands/status.md +21 -79
- package/commands/wrap-up.md +18 -74
- package/dist/cli/adapters/codex.js +1 -1
- package/dist/cli/adapters/codex.js.map +1 -1
- package/dist/cli/adapters/command-skills.js +1 -1
- package/dist/cli/adapters/command-skills.js.map +1 -1
- package/dist/cli/app.js +1 -1
- package/dist/cli/app.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts +2 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +8 -4
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/token-audit.d.ts +3 -0
- package/dist/cli/commands/token-audit.d.ts.map +1 -0
- package/dist/cli/commands/token-audit.js +141 -0
- package/dist/cli/commands/token-audit.js.map +1 -0
- package/dist/cli/commands/tui.js +3 -3
- package/dist/cli/commands/tui.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +3 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/options.d.ts.map +1 -1
- package/dist/cli/options.js +5 -0
- package/dist/cli/options.js.map +1 -1
- package/dist/cli/types.d.ts +1 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/docs/HOW-TO-USE-CODEX.md +28 -60
- package/docs/HOW-TO-USE-OPENCODE.md +26 -72
- package/docs/agent-adapters.md +40 -118
- package/docs/architecture.md +7 -2
- package/docs/cli.md +20 -2
- package/docs/commands-reference.md +22 -32
- package/docs/getting-started.md +65 -115
- package/package.json +1 -1
- package/skills/sprint-forge/SKILL.md +9 -8
- package/skills/sprint-forge/assets/README.md +27 -17
- package/skills/sprint-forge/assets/helpers/metrics.md +4 -4
- package/skills/sprint-forge/assets/helpers/reentry-generator.md +4 -4
- package/skills/sprint-forge/assets/modes/INIT.md +68 -169
- package/skills/sprint-forge/assets/modes/SPRINT.md +20 -246
- package/skills/sprint-forge/assets/modes/STATUS.md +46 -128
- package/skills/sprint-forge/assets/modes/close-sprint.md +29 -0
- package/skills/sprint-forge/assets/modes/execute-task.md +26 -0
- package/skills/sprint-forge/assets/modes/plan-sprint.md +29 -0
- package/skills/sprint-forge/assets/modes/recover.md +23 -0
- package/skills/sprint-forge/assets/modes/review-task.md +25 -0
- package/skills/sprint-forge/assets/templates/DEBT.summary.json +12 -0
- package/skills/sprint-forge/assets/templates/ROADMAP.summary.json +15 -0
- package/skills/sprint-forge/assets/templates/SPRINT.summary.json +16 -0
- package/skills/sprint-forge/assets/templates/index.json +15 -0
- 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,
|
|
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
|
|
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,
|
|
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
|
-
|
|
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-
|
|
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
|
|
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
|
-
**
|
|
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
|
|
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
|
-
|
|
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
|
-
##
|
|
6
|
-
|
|
7
|
-
### modes/ (3 files)
|
|
5
|
+
## modes/
|
|
8
6
|
|
|
9
7
|
| File | Description |
|
|
10
8
|
|------|-------------|
|
|
11
|
-
| [INIT.md](modes/INIT.md) | Analysis, roadmap
|
|
12
|
-
| [SPRINT.md](modes/SPRINT.md) |
|
|
13
|
-
| [
|
|
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
|
-
|
|
18
|
+
## helpers/
|
|
16
19
|
|
|
17
20
|
| File | Description |
|
|
18
21
|
|------|-------------|
|
|
19
|
-
| [analysis-guide.md](helpers/analysis-guide.md) |
|
|
20
|
-
| [
|
|
21
|
-
| [
|
|
22
|
-
| [reentry-generator.md](helpers/reentry-generator.md) |
|
|
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
|
-
|
|
29
|
+
## templates/
|
|
25
30
|
|
|
26
31
|
| File | Description |
|
|
27
32
|
|------|-------------|
|
|
28
|
-
| [ROADMAP.md](templates/ROADMAP.md) |
|
|
29
|
-
| [SPRINT.md](templates/SPRINT.md) |
|
|
30
|
-
| [PROJECT-README.md](templates/PROJECT-README.md) |
|
|
31
|
-
| [REENTRY-PROMPTS.md](templates/REENTRY-PROMPTS.md) |
|
|
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
|
|
70
|
-
- Debt
|
|
71
|
-
- Roadmap
|
|
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
|
|
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 |
|
|
26
|
-
| 2 | Sprint N (next) | After completing Sprint N-1 |
|
|
27
|
-
| 3 | Execute Sprint | Sprint generated but not executed |
|
|
28
|
-
| 4 | Status | Any time, for progress report |
|
|
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 &
|
|
1
|
+
# INIT Mode — Analysis, Roadmap & Scoped State
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
26
|
+
Classify the request as audit/refactor, feature, bugfix, new project, or tech debt. If unclear, ask before analysis.
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
## Step 3 — Analyze
|
|
25
29
|
|
|
26
|
-
|
|
30
|
+
Use project search/read tools to inspect only what the work type requires:
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
38
|
+
Let evidence determine findings. Do not force a fixed category list.
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
## Step 4 — Write findings
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
Write each distinct finding to `{outputDir}/findings/NN-descriptive-slug.md`.
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
Each finding needs summary, severity, affected files, details, and recommendations. Use `analysis-guide.md` for the detailed format.
|
|
43
45
|
|
|
44
|
-
|
|
46
|
+
## Step 5 — Write roadmap
|
|
45
47
|
|
|
46
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
59
|
+
Load templates only when writing:
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
- `../templates/PROJECT-README.md` → `{outputDir}/README.md`
|
|
62
|
+
- `../templates/REENTRY-PROMPTS.md` → `{outputDir}/RE-ENTRY-PROMPTS.md`
|
|
62
63
|
|
|
63
|
-
|
|
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
|
-
|
|
66
|
+
## Step 7 — Write structured routing files
|
|
70
67
|
|
|
71
|
-
|
|
68
|
+
Create:
|
|
72
69
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
##
|
|
87
|
+
## Output
|
|
188
88
|
|
|
189
|
-
|
|
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
|
-
##
|
|
98
|
+
## Rules
|
|
199
99
|
|
|
200
|
-
-
|
|
201
|
-
-
|
|
202
|
-
-
|
|
203
|
-
-
|
|
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.
|