bokata 2.0.0 → 3.0.0-beta.3

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 (43) hide show
  1. package/{commands/task-parallel/feature-map.md → .agents/skills/bokata-feature-map/SKILL.md} +80 -79
  2. package/.agents/skills/bokata-feature-map/resources/features-template.md +83 -0
  3. package/.agents/skills/bokata-feature-slicer/SKILL.md +171 -182
  4. package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +13 -0
  5. package/.agents/skills/bokata-feature-slicer/resources/output-template-increments.md +9 -12
  6. package/.agents/skills/bokata-feature-slicer/resources/output-template-steps.md +6 -22
  7. package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +43 -49
  8. package/.agents/skills/bokata-feature-slicer/resources/phase-3-baby-steps.md +90 -249
  9. package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +138 -0
  10. package/.agents/skills/bokata-plan/SKILL.md +104 -0
  11. package/.agents/skills/bokata-plan/resources/plan-template.md +33 -0
  12. package/.agents/skills/bokata-refactor/SKILL.md +69 -0
  13. package/.agents/skills/bokata-refactor/resources/smells.md +47 -0
  14. package/.agents/skills/bokata-refactor/resources/tidyings.md +31 -0
  15. package/.agents/skills/bokata-render/SKILL.md +144 -0
  16. package/.agents/skills/bokata-render/resources/story-map-template.md +835 -0
  17. package/.agents/skills/bokata-shape/SKILL.md +117 -0
  18. package/.agents/skills/bokata-shape/resources/adr-template.md +24 -0
  19. package/.agents/skills/bokata-shape/resources/breadboarding.md +47 -0
  20. package/.agents/skills/bokata-shape/resources/pitch-template.md +42 -0
  21. package/.agents/skills/bokata-slice/SKILL.md +475 -0
  22. package/.agents/skills/bokata-slice/resources/slice-template.md +117 -0
  23. package/.agents/skills/bokata-status/SKILL.md +65 -0
  24. package/.agents/skills/bokata-tdd/SKILL.md +109 -0
  25. package/.agents/skills/bokata-tdd/resources/evidence-rules.md +27 -0
  26. package/README.md +210 -92
  27. package/agents/bokata-product-designer.md +48 -16
  28. package/agents/bokata-product-engineer.md +48 -15
  29. package/agents/bokata-product-manager.md +48 -16
  30. package/agents/code-executor.md +53 -0
  31. package/agents/design-reviewer.md +40 -0
  32. package/agents/feature-slicer.md +42 -0
  33. package/agents/story-map-renderer.md +19 -0
  34. package/bin/bokata.js +27 -12
  35. package/package.json +20 -7
  36. package/src/agents.js +114 -0
  37. package/src/config.js +75 -0
  38. package/src/install.js +173 -205
  39. package/commands/codex/feature-map.md +0 -263
  40. package/commands/codex/slice-feature.md +0 -291
  41. package/commands/task-parallel/resources/html-template.md +0 -560
  42. package/commands/task-parallel/resources/story-map-template.md +0 -495
  43. package/commands/task-parallel/slice-feature.md +0 -301
@@ -1,31 +1,45 @@
1
1
  ---
2
- name: "Bokata: Feature Map"
3
- description: Generate a Features Backbone and Functional Acceptance Criteria using the Product Trio (PM, Designer, Engineer). Outputs as .md and .html under docs/initiatives/[name]/.
4
- allowed-tools: Read, Write, Skill, Task, AskUserQuestion, Bash
5
- category: Workflow
6
- tags: [bokata, product-trio, feature-mapping, acceptance-criteria]
2
+ name: bokata-feature-map
3
+ description: Generate a Features Backbone and Functional Acceptance Criteria using the Product Trio (PM, Designer, Engineer), written as one features.md plus the initiative's story-map.html dashboard under the initiative folder. Accepts any input — a bokata pitch, a PRD, notes — and only asks about the gaps it leaves. Use it when the user wants a feature map, a backbone, a story map, or to break a large initiative into features.
7
4
  ---
8
5
 
9
6
  Generate a Features Backbone (User Story Mapping) and Functional-Level Acceptance Criteria using the **Product Trio** — you act as the neutral coordinator, with PM, Designer, and Engineer reviewing from their lenses.
10
7
 
11
- All outputs (.md + .html) are saved under `docs/initiatives/<initiative-slug>/` and include trio reconciliation notes where conflicts arose.
8
+ All outputs are saved under `<docs>/<initiative-slug>/` and include trio reconciliation notes where conflicts arose.
9
+
10
+ ---
11
+
12
+ ## Configuration
13
+
14
+ Read `.bokata.json` at the project root if it exists. Defaults:
15
+
16
+ ```json
17
+ { "docs": "docs/initiatives",
18
+ "memory": { "constitution": "CONSTITUTION.md", "glossary": "GLOSSARY.md", "adrs": "docs/adrs" },
19
+ "methods": { "domain": "domain-modeling" },
20
+ "templates": { "features": null },
21
+ "story_map": true }
22
+ ```
23
+
24
+ `<docs>` below is the `docs` value. `templates.features: null` means [resources/features-template.md](resources/features-template.md). `story_map: false` skips `story-map.html`; the markdown is always written. The `constitution` is the file at `memory.constitution`; use the glossary's terms in every name.
12
25
 
13
26
  ---
14
27
 
15
28
  ## Input
16
29
 
17
30
  Accept either:
18
- 1. **Free-form initiative description** (what you want to build)
19
- 2. **Path to existing docs** (PRD, openspec proposal, features-backbone.md, etc.)
20
- 3. **Combination** (reference existing + add new context)
31
+ 1. **A bokata pitch** (`<docs>/<initiative-slug>/pitch.md`, from `bokata-shape`)
32
+ 2. **Free-form initiative description** (what you want to build)
33
+ 3. **Path to existing docs** (PRD, proposal, features-backbone.md, etc.)
34
+ 4. **Combination** (reference existing + add new context)
21
35
 
22
36
  ---
23
37
 
24
38
  ## Step 1: Resolve Initiative Slug & Create Folder
25
39
 
26
- 1. Ask the user for the initiative name / title if not provided via argument
40
+ 1. Ask the user for the initiative name / title if not provided via argument (a pitch already has one)
27
41
  2. Derive `<initiative-slug>` (kebab-case, max 50 chars, no spaces)
28
- 3. Create folder: `docs/initiatives/<initiative-slug>/` (use `mkdir -p` via Bash)
42
+ 3. Create folder: `<docs>/<initiative-slug>/` (use `mkdir -p` via Bash)
29
43
  4. Proceed with confirmed slug in subsequent steps
30
44
 
31
45
  ---
@@ -34,12 +48,14 @@ Accept either:
34
48
 
35
49
  Instead of each skill asking its own Phase 0 questions, consolidate once here.
36
50
 
37
- Ask clarifying questions that would affect **Feature scope, actors, flows, or business constraints** — merge the categories from:
51
+ Ask clarifying questions in **rounds** (every question you can ask now, numbered, each with your recommended answer and worded so "yes" accepts it; wait for the answers before the next round) that would affect **Feature scope, actors, flows, or business constraints** — merge the categories from:
38
52
  - `bokata-feature-mapper`'s categories: Scope, Actors, Flows, Constraints
39
53
  - Later AC phases: Business rules that affect Feature framing (e.g., "must curator-verify stories before public visibility" — is that a Feature boundary or an internal rule?)
40
54
 
41
- If the input is already rich (existing backbone/spec provided), acknowledge that explicitly:
42
- > "You provided [specs/geolocation-discovery/spec.md], which resolves Scope and Constraints. Skipping those categories; asking only about [missing categories]."
55
+ If the input is already rich (pitch, existing backbone/spec provided), acknowledge that explicitly and ask **only about the gaps**:
56
+ > "You provided [pitch.md], which resolves Scope and Constraints. Skipping those categories; asking only about [missing categories]."
57
+
58
+ **A pitch's decisions are not re-opened here** — its chosen approach, no-gos and cuts are settled. If the user wants to change one of them, point them back to `bokata-shape`.
43
59
 
44
60
  Produce one `## Discovery Context — Backbone` block with sections: Actors Confirmed / Scope Boundaries / Flow Clarifications / Constraints Confirmed / Assumptions.
45
61
 
@@ -53,8 +69,8 @@ Produce one `## Discovery Context — Backbone` block with sections: Actors Conf
53
69
 
54
70
  Invoke the `bokata-feature-mapper` skill:
55
71
  ```
56
- /bokata:feature-mapper
57
- Input: [initiative description / PRD / existing docs]
72
+ bokata-feature-mapper
73
+ Input: [pitch / initiative description / PRD / existing docs]
58
74
  Discovery Context: [from Step 2]
59
75
  Instruction: "Skip your own Phase 0 discovery — the Discovery Context has been pre-resolved upstream. Proceed directly to Step 1 (Extract Requirements) through Step 6 (Organize Dependencies). Return the ## Features Backbone markdown section."
60
76
  ```
@@ -63,9 +79,9 @@ You receive the draft backbone.
63
79
 
64
80
  ### 3b. Trio Review via Parallel Subagents
65
81
 
66
- **Execution constraint (critical):** Issue all three Task calls together in a **single assistant message** (three tool-use blocks in one turn) — never separately. Set **all three to foreground/blocking execution** (not background/async) so the turn does NOT end until all three results are in hand. Do not proceed, consolidate, or stop until every subagent has returned its result in this same exchange.
82
+ **Execution constraint (critical):** Issue all three subagent calls together in a **single assistant message** (three tool-use blocks in one turn) — never separately. Use your harness's subagent tool (Task/Agent in Claude Code, `task` in OpenCode, `spawn_agents` in Codex, subagents in Cursor). Set **all three to foreground/blocking execution** (not background/async) so the turn does NOT end until all three results are in hand. Do not proceed, consolidate, or stop until every subagent has returned its result in this same exchange. If your harness has no subagents, run the three lenses yourself one after another, each as a separate pass, and say so.
67
83
 
68
- Spawn three Task subagents in parallel to review the backbone:
84
+ Spawn three subagents in parallel to review the backbone:
69
85
 
70
86
  **Task 1: bokata-product-manager**
71
87
  ```
@@ -104,26 +120,26 @@ Do NOT ask the user questions. Focus on: Feature boundary coupling, data model i
104
120
  You act as the **neutral coordinator** — you do not add a fourth opinion and you do not arbitrate product trade-offs yourself. Classify each finding from the PM, Designer, and Engineer reviews into one bucket (use each reviewer's `Type` tag, but verify it):
105
121
 
106
122
  - **(a) Non-conflicting improvement** — incorporate directly into the backbone markdown.
107
- - **(b) Factual / scope conflict** — decidable against an existing artifact (the input spec/PRD, the Discovery Context, or the project `constitution`). Resolve it deterministically by checking that artifact, apply the fix, and record a one-line entry in `## Trio Reconciliation Notes` citing the artifact. Do not ask the user.
123
+ - **(b) Factual / scope conflict** — decidable against an existing artifact (the input pitch/spec/PRD, the Discovery Context, or the project `constitution`). Resolve it deterministically by checking that artifact, apply the fix, and record a one-line entry in `## Trio Reconciliation Notes` citing the artifact. Do not ask the user.
108
124
  - **(c) Genuine product trade-off** — a scope/UX/sustainability judgment with no ground truth in any artifact (e.g., Engineer: "split Feature A into two"; Designer: "keep as one for UX coherence"). This is the human's decision.
109
125
 
110
126
  **Handling bucket (c):** collect all trade-offs first (never a per-conflict drip). For each, prepare the two positions (attributed to their lens), the one-sentence crux, and a **recommended default** grounded in the `constitution` / Fast Feedback Principle.
111
- - **Interactive mode (default):** present all trade-offs as a single numbered decision point and wait for the user's choice before writing. Use `AskUserQuestion` if your harness provides it (one question per conflict; options = each lens position plus your recommended default, marked as recommended). If your harness has no such tool, present the same as a numbered plain-text prompt and wait for the reply. Apply the user's selections.
127
+ - **Interactive mode (default):** present all trade-offs as a single numbered decision point and wait for the user's choice before writing. Use your harness's question tool if it provides one (`AskUserQuestion` in Claude Code, `question` in OpenCode; one question per conflict; options = each lens position plus your recommended default, marked as recommended). If your harness has no such tool, present the same as a numbered plain-text prompt and wait for the reply. Apply the user's selections.
112
128
  - **Non-interactive mode** (`--no-interactive` flag present, or a headless/automation run): do not block — apply the recommended default for each and record every trade-off in `## Trio Reconciliation Notes` with its two positions, the applied default, and a `⚠ flagged for human review` marker.
113
129
 
114
- **System Task guard (critical):** If a reviewer finding describes system/backend behavior, do NOT default to adding it as a new standalone System Task. Apply the System Task trigger test from `methodology.md`: is this triggered by a direct user action already covered by an existing User Task? If yes — embed it as a note on that User Task's description instead. Only create a new standalone System Task if the finding describes a genuine autonomous workflow transition.
130
+ **System Task guard (critical):** If a reviewer finding describes system/backend behavior, do NOT default to adding it as a new standalone System Task. Apply the System Task trigger test from `bokata-feature-mapper`'s `methodology.md`: is this triggered by a direct user action already covered by an existing User Task? If yes — embed it as a note on that User Task's description instead. Only create a new standalone System Task if the finding describes a genuine autonomous workflow transition.
115
131
 
116
- Produce final `backbone.md` with (a) incorporated, (b) resolved-and-cited, and (c) resolved-by-user-or-default — all (b)/(c) outcomes captured in `## Trio Reconciliation Notes`.
132
+ Produce the final backbone with (a) incorporated, (b) resolved-and-cited, and (c) resolved-by-user-or-default — all (b)/(c) outcomes captured in `## Trio Reconciliation Notes`.
117
133
 
118
134
  ---
119
135
 
120
136
  ## Step 4: Stage 2 — Functional Acceptance Criteria (Trio Contribution)
121
137
 
122
- ### 4a. Trio Contributes Rules from Their Lenses (Task Subagents, Parallel)
138
+ ### 4a. Trio Contributes Rules from Their Lenses (Subagents, Parallel)
123
139
 
124
- **Execution constraint (critical):** Issue all three Task calls together in a **single assistant message** (three tool-use blocks in one turn) — never separately. Set **all three to foreground/blocking execution** (not background/async) so the turn does NOT end until all three results are in hand. Do not proceed, consolidate, or stop until every subagent has returned its result in this same exchange.
140
+ **Execution constraint (critical):** Issue all three subagent calls together in a **single assistant message** (three tool-use blocks in one turn) — never separately. Set **all three to foreground/blocking execution** (not background/async) so the turn does NOT end until all three results are in hand. Do not proceed, consolidate, or stop until every subagent has returned its result in this same exchange.
125
141
 
126
- Spawn three Task subagents in parallel, each contributing Rules from their lens — they do NOT generate Scenarios themselves, only Rules:
142
+ Spawn three subagents in parallel, each contributing Rules from their lens — they do NOT generate Scenarios themselves, only Rules:
127
143
 
128
144
  **Task 1: PM Contribution**
129
145
  ```
@@ -163,8 +179,8 @@ Read all three contributions. Merge them into a single enrichment block (equival
163
179
 
164
180
  Invoke `bokata-acceptance-criteria`:
165
181
  ```
166
- /bokata:acceptance-criteria --functional
167
- Input: [final backbone.md]
182
+ bokata-acceptance-criteria --functional
183
+ Input: [final backbone]
168
184
  Enrichment: [consolidated Rules from PM/Designer/Engineer]
169
185
  Discovery Context: [from Step 2]
170
186
  Instruction: "Skip your own Phase 0 discovery — it has been resolved upstream. Use the provided Discovery Context and Enrichment (consolidated Rules from the Product Trio). Proceed directly to Phase 1 (Input Analysis) through Phase 3 (Generate Output), using the --functional depth mode. Return the ## Acceptance Criteria (Functional) section."
@@ -172,86 +188,71 @@ Instruction: "Skip your own Phase 0 discovery — it has been resolved upstream.
172
188
 
173
189
  You receive the functional ACs.
174
190
 
175
- ---
176
-
177
- ## Step 5: Write Backbone Markdown & Render HTML
191
+ ### 4c. Domain Pass (Interactive)
178
192
 
179
- Right after reconciling (Step 3) and handling any trade-offs:
193
+ Load the skill named in `methods.domain` (default `domain-modeling`; skip this pass if it is
194
+ `null` or not installed) and run it over the functional ACs you just received, against the
195
+ glossary at `memory.glossary`. Scenarios are where new words slip in, and the trio uses its
196
+ own:
180
197
 
181
- 1. **Write** `docs/initiatives/<initiative-slug>/backbone.md` (the final reconciled markdown)
198
+ - A term the glossary lists under _Avoid_ → replace it with the canonical term.
199
+ - Two words for one concept, or one word for two → ask the user which, then use the answer
200
+ everywhere.
201
+ - A new concept the scenarios need → settle its name with the user and add it to the glossary
202
+ inline (terms only, no implementation detail).
203
+ - An ADR only at `memory.adrs`, and only when it is hard to reverse, surprising without
204
+ context, and the result of a real trade-off.
182
205
 
183
- 2. **Render & Write** `docs/initiatives/<initiative-slug>/backbone.html`:
184
- - Using the `html-template.md` conversion rules from the command's resources directory (markdown → semantic HTML)
185
- - Build title: `"{{INITIATIVE_NAME}} — Features Backbone"`
186
- - Build subtitle: `"User Story Mapping + Trio-Reviewed"`
187
- - Convert Features, User Tasks, System Tasks per the template's table
188
- - Footer: `"{{INITIATIVE_NAME}} Features Backbone | Generated [DATE] | Command: /bokata:feature-map | Source: [input description]"`
206
+ Ask every naming question of the pass in one round, numbered, each with your recommended
207
+ answer.
189
208
 
190
- 3. **Create & Render** `docs/initiatives/<initiative-slug>/story-map.html`:
191
- - Using the `story-map-template.md` from the command's resources directory — **the addressable/column unit is the User Task (Step), not the Feature.** Do not build a `.map-column` per Feature with tasks listed inside it; that structure is wrong (see the template file's own warning about this).
192
- - Build title: `"{{INITIATIVE_NAME}} — Story Mapping"`
193
- - Build subtitle: `"Backbone (Features) → Steps (User Tasks) → Releases (Increments, by priority)"`
194
- - Row 1: render each Feature as a `.feature-header` spanning its own User Task count (`grid-column: span N`), ordered by backbone journey — this is a header only, it holds no cards
195
- - Row 2: render each User Task as its own `.step-card` column (`data-task-id="{{TASK_ID}}"`), in the same order as listed under its parent Feature
196
- - Row 3: give every Step column exactly one `.release-cell` placeholder ("Not yet sliced") — one per User Task, not one per Feature
197
- - Set `{{TOTAL_STEP_COUNT}}` = total User Tasks across all Features (the grid's column count)
198
- - Footer: `"{{INITIATIVE_NAME}} Story Mapping | Generated [DATE] | Command: /bokata:feature-map | Features: {{NUM_FEATURES}} | Steps: {{NUM_TASKS}} | Sliced: 0/{{NUM_FEATURES}}"`
209
+ The paths and formats in `.bokata.json` win over the domain skill's own.
199
210
 
200
211
  ---
201
212
 
202
- ## Step 6: Write AC Markdown & Render HTML
213
+ ## Step 5: Write features.md & Render the Story Map
203
214
 
204
- Right after consolidating trio contributions and invoking AC skill (Step 4b above):
215
+ One file holds the backbone and its functional ACs, so a slice can be chosen from a single place:
205
216
 
206
- 1. **Write** `docs/initiatives/<initiative-slug>/acceptance-criteria-functional.md` (the AC markdown)
217
+ 1. **Write** `<docs>/<initiative-slug>/features.md` from the features template: the final reconciled backbone, the functional ACs of each User Task placed **under that User Task**, a `**Slice:** not sliced yet` line per Feature (filled later by `bokata-slice`; the slicing itself lives in the slice files, never here), and `## Trio Reconciliation Notes`.
207
218
 
208
- 2. **Render & Write** `docs/initiatives/<initiative-slug>/acceptance-criteria-functional.html`:
209
- - Using the `html-template.md` conversion rules from the command's resources directory
210
- - Build title: `"{{INITIATIVE_NAME}} — Acceptance Criteria (Functional)"`
211
- - Build subtitle: `"Requirements + Scenarios (Product-Level)"`
212
- - Convert Requirements, Scenarios per the template's table (`.requirement`, `.scenario`, Gherkin keywords)
213
- - Footer: `"{{INITIATIVE_NAME}} Acceptance Criteria (Functional) | Generated [DATE] | Command: /bokata:feature-map | Depth: functional | Source: Features Backbone"`
219
+ 2. **Dispatch the story-map render** (if `story_map` is true): after `features.md` is final, dispatch the `story-map-renderer` subagent (it loads the `bokata-render` skill), operation `create`, passing `<docs>/<initiative-slug>/`. It runs on its own cheap model role (`models.<harness>.render`) in background — rendering is mechanical and must not block the summary. Do not render the HTML yourself and do not wait for the subagent to finish:
220
+ ```
221
+ subagent → story-map-renderer (bokata-render)
222
+ input: <docs>/<initiative-slug>/ — operation: create
223
+ ```
224
+ The skill owns the whole render (Patton board, counters, banner, interactivity) from its [story-map-template.md](../bokata-render/resources/story-map-template.md). It renders the board from `features.md` with **the User Task (Step) as the addressable column unit**, never a Feature-as-column with tasks listed inside.
214
225
 
215
226
  ---
216
227
 
217
- ## Step 7: Verification Gate (No New Rendering Here)
228
+ ## Step 6: Verification Gate (No New Rendering Here)
218
229
 
219
- This step is now a **checklist verification** only — no new rendering work happens here:
230
+ This step is a **checklist verification** only — no rendering work happens here:
220
231
 
221
- - [ ] `docs/initiatives/<initiative-slug>/backbone.md` exists and is final
222
- - [ ] `docs/initiatives/<initiative-slug>/backbone.html` exists
223
- - [ ] `docs/initiatives/<initiative-slug>/story-map.html` exists
224
- - [ ] `docs/initiatives/<initiative-slug>/acceptance-criteria-functional.md` exists and is final
225
- - [ ] `docs/initiatives/<initiative-slug>/acceptance-criteria-functional.html` exists
226
-
227
- (All HTML rendering now happens immediately after its corresponding .md is finalized, not deferred to Step 7.)
232
+ - [ ] `<docs>/<initiative-slug>/features.md` exists and is final (backbone + functional ACs + a `**Slice:**` line per Feature)
233
+ - [ ] The `bokata-render` subagent was dispatched for `story-map.html` (if `story_map`)
228
234
 
229
235
  ---
230
236
 
231
- ## Step 8: Summary & Next Steps (Main Thread)
237
+ ## Step 7: Summary & Next Steps (Main Thread)
232
238
 
233
239
  Print to user:
234
240
  ```
235
241
  ## ✓ Feature Mapping Complete
236
242
 
237
243
  **Initiative:** {{INITIATIVE_NAME}}
238
- **Location:** docs/initiatives/{{INITIATIVE_SLUG}}/
244
+ **Location:** <docs>/{{INITIATIVE_SLUG}}/
239
245
 
240
246
  **Artifacts created:**
241
- - backbone.md / .html ✅ — {{NUM_FEATURES}} Features, {{NUM_TASKS}} User Tasks
242
- - acceptance-criteria-functional.md / .html ✅ — {{NUM_REQUIREMENTS}} Requirements, {{NUM_SCENARIOS}} Scenarios (functional depth)
243
- - story-map.html ✅ — Patton-style board (Features spanning the backbone header, User Tasks as individual Step columns, release tiers to be filled per-Step by slicing)
247
+ - features.md ✅ — {{NUM_FEATURES}} Features, {{NUM_TASKS}} User Tasks, {{NUM_REQUIREMENTS}} Requirements, {{NUM_SCENARIOS}} Scenarios (functional depth)
248
+ - story-map.html ✅ — dashboard being rendered by the bokata-render subagent (Patton board with statuses, next step and counters)
244
249
 
245
250
  **Trio Review Notes:**
246
- [If any reconciliation notes exist: "See backbone.md for [N] reconciliation notes flagged during PM/Designer/Engineer review."]
251
+ [If any reconciliation notes exist: "See features.md for [N] reconciliation notes flagged during PM/Designer/Engineer review."]
247
252
 
248
253
  ---
249
254
 
250
- **Next step:** Run `/bokata:slice-feature [feature name]` to decompose a Feature into a Walking Skeleton + Increments Backlog. The story-map will auto-update with each feature you slice.
251
-
252
- **Example:** `/bokata:slice-feature "Tourist Discovers Nearby Places"`
253
-
254
- **Story Map Note:** The story-map.html board will accumulate each feature's Walking Skeleton and Increments as you slice them — all in one living document. No need to manage multiple files.
255
+ **Next step:** Run `bokata-slice {{INITIATIVE_SLUG}}` and pick 1–3 Features that make sense together. Suggested first slice: [the thinnest group of Features that makes the journey usable end to end].
255
256
  ```
256
257
 
257
258
  ---
@@ -263,11 +264,11 @@ Print to user:
263
264
  - [ ] All User Tasks are in [Verb] [Object] format (no Actor)
264
265
  - [ ] **All System Tasks follow the workflow-transition test from methodology.md** (only autonomous state transitions remain standalone; all direct-user-action responses are embedded in User Task descriptions)
265
266
  - [ ] **System Tasks use naming format `System Task {N}.{M}: [Verb] [Object]`** (with explicit Trigger field)
266
- - [ ] **Features/User Tasks/System Tasks use correct heading levels:** `#### Feature`, `##### User Task`, `##### System Task` (not bold text)
267
+ - [ ] **Features/User Tasks/System Tasks use correct heading levels** as in the features template (not bold text)
267
268
  - [ ] Trio reviews are visibly mentioned in the narrative (or if they had no issues, explicitly state that)
268
269
  - [ ] Trio Reconciliation Notes section is present if any conflicts were resolved
269
270
  - [ ] Functional AC Requirements use SHALL/SHOULD language
270
271
  - [ ] Functional AC Scenarios use WHEN/THEN (Given implicit/optional)
271
- - [ ] Every `.html` was rendered and written immediately after its `.md` was finalized (not deferred to a final batch step)
272
- - [ ] `story-map.html` exists, with Features spanning the row-1 backbone header and each User Task as its own Step column underneath (not Features-as-columns with tasks listed inside)
272
+ - [ ] The `bokata-render` subagent was dispatched for `story-map.html` immediately after `features.md` was final (not deferred to a final batch step)
273
+ - [ ] `story-map.html` is built with Features spanning the row-1 backbone header and each User Task as its own Step column underneath (not Features-as-columns with tasks listed inside)
273
274
  - [ ] All parallel subagent reviews were issued together and completed before reconciliation began
@@ -0,0 +1,83 @@
1
+ <!-- Initiative: {initiative-name} | Date: {YYYY-MM-DD} | Source: {pitch.md | PRD | notes} -->
2
+
3
+ # {Initiative name} — Features
4
+
5
+ <!-- The backbone uses bokata-feature-mapper's output format unchanged; each User Task carries
6
+ its functional ACs (bokata-acceptance-criteria --functional) right below it, and each
7
+ Feature ends with a one-line `**Slice:**` summary that bokata-slice fills. This file is the
8
+ summary: the slicing (Steps, options, increments, backlog) lives in slices/<nn>-<name>.md.
9
+ Single mode (bokata-slice from a pitch) writes `<!-- Mode: single -->` and keeps only the
10
+ one Feature's header, Purpose, User Task names and Slice line. -->
11
+
12
+ ## Features Backbone
13
+
14
+ ### Feature Overview
15
+ [Brief narrative of the complete user journey, 2-3 sentences]
16
+
17
+ ---
18
+
19
+ ### Features Map
20
+
21
+ #### Feature: [Actor] [Verb] [Object]
22
+ <!-- ID: {PRJ}-FEAT-{hash} -->
23
+ **Purpose:** [What the user accomplishes with this feature]
24
+
25
+ ##### User Task: [Verb] [Object]
26
+ <!-- Task ID: {PRJ}-TASK-{hash} -->
27
+ [One-line description of what the user does]
28
+
29
+ ###### Requirement: [Requirement summary]
30
+ The system SHALL [requirement statement].
31
+
32
+ - **Scenario: [name]** — **WHEN** [trigger] **THEN** [observable result]
33
+ - **Scenario: [variant name]** — **WHEN** [alternate trigger] **THEN** [observable result]
34
+
35
+ ##### User Task: [Verb] [Object]
36
+ <!-- Task ID: {PRJ}-TASK-{hash} -->
37
+ [One-line description]
38
+
39
+ ###### Requirement: [Requirement summary]
40
+ The system SHALL [requirement statement].
41
+
42
+ - **Scenario: [name]** — **WHEN** [trigger] **THEN** [observable result]
43
+
44
+ ##### System Task {N}.{M}: [Verb] [Object]
45
+ **Trigger:** [workflow transition that fires it — e.g. "order confirmed", "session expired"]
46
+ The system [description of what it executes and what it produces].
47
+
48
+ ---
49
+
50
+ **UI States:**
51
+ - [State name]: [Description]
52
+ - [State name]: [Description]
53
+
54
+ **Slice:** not sliced yet
55
+ <!-- Set by bokata-slice: → {nn-name} · {taken}/{total} options · next: {bite ID} {bite title} [· done] -->
56
+
57
+ ---
58
+
59
+ #### Feature: [Actor] [Verb] [Object]
60
+ <!-- ID: {PRJ}-FEAT-{hash} -->
61
+ **Purpose:** [What the user accomplishes with this feature]
62
+
63
+ …
64
+
65
+ ---
66
+
67
+ ### Feature Dependencies
68
+ - **Critical**: [Feature X] must exist before [Feature Y]
69
+ - **Recommended**: [Feature A] before [Feature B]
70
+ - **Independent**: [Features] can be done in any order
71
+
72
+ ---
73
+
74
+ ### Constitution Compliance
75
+ - [ ] All Features align with stated architecture principles
76
+ - [ ] No prohibited patterns introduced
77
+ - [ ] Security requirements addressed
78
+ - [ ] Non-goals respected (no out-of-scope features added)
79
+
80
+ ---
81
+
82
+ ## Trio Reconciliation Notes
83
+ - [One line per (b)/(c) outcome, citing the artifact or the user's choice]