bokata 3.0.0-beta.3 → 3.0.0-beta.5
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/skills/bokata-acceptance-criteria/SKILL.md +6 -7
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template-functional.md +3 -3
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template.md +1 -1
- package/.agents/skills/bokata-feature-map/SKILL.md +10 -11
- package/.agents/skills/bokata-feature-mapper/SKILL.md +4 -5
- package/.agents/skills/bokata-feature-mapper/resources/output-template.md +1 -1
- package/.agents/skills/bokata-feature-slicer/SKILL.md +16 -12
- package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +12 -4
- package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +29 -51
- package/.agents/skills/bokata-feature-slicer/resources/{phase-3-baby-steps.md → phase-3-skeleton.md} +3 -3
- package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +8 -7
- package/.agents/skills/bokata-plan/SKILL.md +21 -15
- package/.agents/skills/bokata-plan/resources/plan-template.md +7 -5
- package/.agents/skills/bokata-render/SKILL.md +71 -138
- package/.agents/skills/bokata-render/assets/story-map.html +590 -0
- package/.agents/skills/bokata-render/scripts/render.mjs +784 -0
- package/.agents/skills/bokata-shape/SKILL.md +12 -2
- package/.agents/skills/bokata-shape/resources/pitch-template.md +3 -0
- package/.agents/skills/bokata-slice/SKILL.md +193 -100
- package/.agents/skills/bokata-slice/resources/inc-template.md +36 -0
- package/.agents/skills/bokata-slice/resources/slice-template.md +36 -84
- package/.agents/skills/bokata-status/SKILL.md +27 -15
- package/.agents/skills/bokata-tdd/resources/evidence-rules.md +2 -2
- package/LICENSE +21 -0
- package/README.md +54 -40
- package/agents/bokata-product-designer.md +2 -2
- package/agents/bokata-product-engineer.md +2 -2
- package/agents/bokata-product-manager.md +3 -3
- package/agents/code-executor.md +27 -16
- package/agents/design-reviewer.md +2 -2
- package/agents/feature-slicer.md +21 -9
- package/bin/bokata.js +17 -5
- package/package.json +1 -1
- package/src/agents.js +36 -11
- package/src/config.js +8 -7
- package/src/install.js +12 -3
- package/.agents/skills/bokata-render/resources/story-map-template.md +0 -835
- package/agents/story-map-renderer.md +0 -19
|
@@ -64,7 +64,9 @@ Sketch two or three approaches at the right altitude: concrete enough to judge,
|
|
|
64
64
|
to leave room for design. Follow [resources/breadboarding.md](resources/breadboarding.md):
|
|
65
65
|
|
|
66
66
|
- every approach gets a **Mermaid breadboard** (places, affordances, connections);
|
|
67
|
-
- add a **low-fi fat-marker sketch** (HTML) only when spatial layout is part of the decision
|
|
67
|
+
- add a **low-fi fat-marker sketch** (HTML) only when spatial layout is part of the decision;
|
|
68
|
+
- keep them in `<docs>/<slug>/approaches.md` while you work: the narrowed problem, then one section
|
|
69
|
+
per approach with its breadboard (and a link to its sketch). Step 4 decides what becomes of it.
|
|
68
70
|
|
|
69
71
|
## 3. Trio pass over the approaches
|
|
70
72
|
|
|
@@ -101,6 +103,14 @@ Write `<docs>/<slug>/pitch.md` from the template. No time estimates or appetite
|
|
|
101
103
|
instead write one **ambition** line (for example "minimum a coach can use in a real match"
|
|
102
104
|
or "fully polished"). It is the tie-breaker when choosing between two solutions.
|
|
103
105
|
|
|
106
|
+
**What becomes of `approaches.md`.** The pitch keeps one line per approach (`### Approaches
|
|
107
|
+
considered`: the chosen one and why, the others and why not) and the breadboard of the chosen one.
|
|
108
|
+
- If those lines say it all, **delete `approaches.md`**: the pitch and the Discovery Context of
|
|
109
|
+
`bokata-slice` carry the decision.
|
|
110
|
+
- If the approaches need more than a line each — a breadboard per approach, a sketch, a comparison
|
|
111
|
+
someone will want to reread — **keep it as an annex** and link it from `### Approaches considered`.
|
|
112
|
+
It is a record of what was weighed: no other bokata skill reads it, so nothing downstream pays for it.
|
|
113
|
+
|
|
104
114
|
Self-review before you show it: no placeholders, no contradictions, every rabbit hole has an
|
|
105
115
|
outcome, every no-go is explicit.
|
|
106
116
|
|
|
@@ -111,7 +121,7 @@ Propose a size and let the user confirm it:
|
|
|
111
121
|
| Size | Meaning | Next |
|
|
112
122
|
|---|---|---|
|
|
113
123
|
| **S** | A fix or a tweak; no pitch was really needed | Plan mode + `bokata-tdd` |
|
|
114
|
-
| **M** | One clear feature | `bokata-slice` (single
|
|
124
|
+
| **M** | One clear feature | `bokata-slice` (single mode, the pitch is the feature) |
|
|
115
125
|
| **L** | Several features | `bokata-feature-map` |
|
|
116
126
|
|
|
117
127
|
Record the size in the pitch and end with one line: `Next: <skill> <slug>`.
|
|
@@ -22,6 +22,9 @@ flowchart LR
|
|
|
22
22
|
|
|
23
23
|
### Approaches considered
|
|
24
24
|
|
|
25
|
+
<!-- One line per approach. If they need more (a breadboard each, a sketch), keep that in an annex
|
|
26
|
+
and link it here: [approaches](approaches.md). Otherwise delete approaches.md. -->
|
|
27
|
+
|
|
25
28
|
- **A — <name>** ← chosen: <why>
|
|
26
29
|
- **B — <name>**: <why not>
|
|
27
30
|
|
|
@@ -4,19 +4,42 @@ description: Create and grow a vertical slice of 1-4 Features — slice each Fea
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Create and grow a **vertical slice**: a group of 1–4 Features that together give the user a
|
|
7
|
-
usable flow. The slice
|
|
7
|
+
usable flow. The slice holds everything about it — how each Feature was sliced, the
|
|
8
8
|
increments built so far, and the backlog left — and grows one increment at a time, Walking
|
|
9
|
-
Skeleton first.
|
|
9
|
+
Skeleton first. It is a short **index** plus a folder of files, so that no operation has to read
|
|
10
|
+
the whole history (see [The slice layout](#the-slice-layout)). You are the neutral coordinator; the slicing comes from `feature-slicer`
|
|
10
11
|
subagents, and the PM, Designer and Engineer review from their lenses.
|
|
11
12
|
|
|
12
13
|
```
|
|
13
14
|
Slice 1–4 Features → a usable flow, end to end; open until the user marks it done
|
|
14
15
|
├ Slicing per Feature: User Task → Step → options (F1-2.3), pruned, with a target per Step
|
|
15
16
|
├ Increment the Walking Skeleton (Inc 1) or one or more bites the user can see or use
|
|
16
|
-
│ └ Plan steps in the initiative's plan.md: written by bokata-plan, checked off by the executor
|
|
17
|
-
|
|
17
|
+
│ └ Plan steps in the initiative's plan.md: written by bokata-plan, checked off by the executor,
|
|
18
|
+
│ deleted when the Inc is done
|
|
19
|
+
└ Bites F1-a …: INVEST groups of options, per User Task, each titled for the user; an Inc
|
|
20
|
+
takes some, the rest stay in the Backlog for as long as the slice lives
|
|
18
21
|
```
|
|
19
22
|
|
|
23
|
+
### The slice layout
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
slices/<nn>-<name>.md INDEX: header, Increments (outcome + bites), Backlog (bite lines, proposed increments), links
|
|
27
|
+
slices/<nn>-<name>/inc-<n>.md one Increment: State, Unknowns, Gherkin, rules, its decisions, Pending
|
|
28
|
+
slices/<nn>-<name>/slicing/F<k>.md one Feature's trace (User Task → Step → options)
|
|
29
|
+
slices/<nn>-<name>/context.md the Discovery Context, then the slice-wide Notes and the Trio notes
|
|
30
|
+
slices/<nn>-<name>/pruned.md the Pruned list, one line per option with its reason
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
- **Say it once.** An option, a bite, an outcome or a decision lives in one place. The index repeats
|
|
34
|
+
nothing of an Inc but its name, outcome and bite IDs; the Inc's options are the options of its bites.
|
|
35
|
+
- **State lives only in `inc-<n>.md`** (`State: sliced | planned | done`; `building` is derived from
|
|
36
|
+
the checked steps in `plan.md`). A `done` slice shows every Inc as done.
|
|
37
|
+
- **A decision about one Inc goes in that Inc's file** (`## Decisions and notes of this Inc`);
|
|
38
|
+
`context.md` (its `## Notes`) holds only what concerns the whole slice. Slices cut earlier have `notes.md` and
|
|
39
|
+
`discovery.md` side by side instead of `context.md`: read them the same way.
|
|
40
|
+
- Templates: [slice-template.md](resources/slice-template.md) (the index) and
|
|
41
|
+
[inc-template.md](resources/inc-template.md).
|
|
42
|
+
|
|
20
43
|
- **Option ≠ bite ≠ increment.** An option is one way to do one Step. A bite groups the
|
|
21
44
|
options of one or several Steps that make sense together (small, INVEST). An increment is the
|
|
22
45
|
Walking Skeleton or one or more bites — whatever lets the user see or do something new.
|
|
@@ -46,8 +69,8 @@ Read `.bokata.json` at the project root if it exists. Defaults:
|
|
|
46
69
|
```
|
|
47
70
|
|
|
48
71
|
`<docs>` below is the `docs` value. `templates.slice: null` means
|
|
49
|
-
[resources/slice-template.md](resources/slice-template.md). The story map is
|
|
50
|
-
`
|
|
72
|
+
[resources/slice-template.md](resources/slice-template.md). The story map is drawn by the
|
|
73
|
+
`bokata-render` script from the markdown; this skill only runs it.
|
|
51
74
|
|
|
52
75
|
## Operations
|
|
53
76
|
|
|
@@ -55,6 +78,7 @@ Read `.bokata.json` at the project root if it exists. Defaults:
|
|
|
55
78
|
|------|------|
|
|
56
79
|
| `bokata-slice [<features…>]` | **New slice**: Steps 1–6 below |
|
|
57
80
|
| `bokata-slice <nn> --next` | **Next increment** of an open slice — see [Next increment](#next-increment---next) |
|
|
81
|
+
| `bokata-slice <nn> --check` | Validate the slice and the initiative's markdown (runs the render script's `--check`) |
|
|
58
82
|
| `bokata-slice <nn> --done` | Mark the slice **done** — see [Done](#done---done) |
|
|
59
83
|
|
|
60
84
|
## Mode
|
|
@@ -65,8 +89,9 @@ Read `.bokata.json` at the project root if it exists. Defaults:
|
|
|
65
89
|
`features.md` carrying `<!-- Mode: single -->`. The pitch is the one Feature. Still dispatch
|
|
66
90
|
one `feature-slicer` subagent; run every trio step yourself, one lens at a time. The first
|
|
67
91
|
time, create `features.md` from the features template with **only** that Feature (name and
|
|
68
|
-
`Purpose` from the pitch, its User
|
|
69
|
-
put `<!-- Mode: single -->` under its header comment.
|
|
92
|
+
`Purpose` from the pitch, its User Tasks from [Step 1b](#step-1b-single-mode-only-derive-the-user-tasks))
|
|
93
|
+
and its `**Slice:**` line, and put `<!-- Mode: single -->` under its header comment. There are
|
|
94
|
+
no functional ACs in single mode: the Coverage check is skipped (see the gate).
|
|
70
95
|
|
|
71
96
|
The user can force either mode.
|
|
72
97
|
|
|
@@ -84,7 +109,19 @@ order) and never change. Option IDs build on them: `F2-3.1` = Feature 2, Step 3,
|
|
|
84
109
|
given. For the first slice, recommend the group that makes the journey usable end to end. A
|
|
85
110
|
Feature that already has a slice cannot be picked again — offer `bokata-slice <nn> --next` on
|
|
86
111
|
that slice instead.
|
|
87
|
-
3. `mkdir -p
|
|
112
|
+
3. Number the new slice (`01`, `02`, … after the existing ones) and `mkdir -p
|
|
113
|
+
<docs>/<initiative-slug>/slices/<nn>-wip/work`. This **work folder** holds the discovery and the
|
|
114
|
+
slicers' output while the slice is being made; Step 5 turns it into the final layout and deletes it.
|
|
115
|
+
Every subagent below receives **paths into it, never pasted content**.
|
|
116
|
+
|
|
117
|
+
## Step 1b: Single mode only — derive the User Tasks
|
|
118
|
+
|
|
119
|
+
A pitch has no User Tasks, and the slicer needs them as input. Before Step 2, read the pitch's
|
|
120
|
+
Solution and Problem and propose **3–6 User Tasks** (`[Verb] [Object]`, no actor, each something
|
|
121
|
+
the user does that has observable value, in the journey order). Show them as one numbered round
|
|
122
|
+
with your recommendation ("yes" accepts the list; the user can rename, merge, split or add).
|
|
123
|
+
The confirmed list is what the slicer receives and what goes into `features.md`. Skip this step
|
|
124
|
+
in trio mode: the backbone already has them.
|
|
88
125
|
|
|
89
126
|
---
|
|
90
127
|
|
|
@@ -108,7 +145,8 @@ If the input is already rich, say so and ask only about what is missing:
|
|
|
108
145
|
|
|
109
146
|
Produce one `## Discovery Context — Slicer: [Feature Names]` block: Technical Clarifications /
|
|
110
147
|
Layer Decisions / Increment Boundaries / Deferred (scope cuts) / Dependencies Confirmed /
|
|
111
|
-
Constraints Noted / Assumptions
|
|
148
|
+
Constraints Noted / Assumptions, and **write it to `slices/<nn>-wip/work/context.md`** (it is the first
|
|
149
|
+
section of that file; the Notes and Trio notes are appended to it at the end). Every subagent below receives its path.
|
|
112
150
|
|
|
113
151
|
---
|
|
114
152
|
|
|
@@ -127,23 +165,31 @@ agent, which runs the `bokata-feature-slicer` skill with its resources.
|
|
|
127
165
|
```
|
|
128
166
|
subagent_type: feature-slicer
|
|
129
167
|
prompt: "Slice this Feature. Feature code: F<n>.
|
|
130
|
-
- Feature: [name
|
|
131
|
-
|
|
168
|
+
- Feature: [name and ID] — its Purpose, User Tasks and System Tasks are in <docs>/<slug>/features.md
|
|
169
|
+
(in single mode, the confirmed list of Step 1b was written there)
|
|
170
|
+
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
|
|
132
171
|
- Constitution / glossary paths: [from .bokata.json]
|
|
133
|
-
- Functional ACs — open ONLY for the Phase 3 coverage check:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
172
|
+
- Functional ACs — open ONLY for the Phase 3 coverage check: this Feature's Requirements + Scenarios
|
|
173
|
+
in features.md [in single mode: "none — skip the coverage check"]
|
|
174
|
+
- Output file (the only file you may write): <docs>/<slug>/slices/<nn>-wip/work/F<n>.md
|
|
175
|
+
Read the skill and all its resources first (they are in .agents/skills/bokata-feature-slicer/). Run all four phases, including Phase 4 (prune with a
|
|
176
|
+
reason, a target per Step, INVEST bites). Write the full output (Slicing trace, Coverage,
|
|
177
|
+
Walking Skeleton proposal, Pruned, Bites, Self-check, Assumptions) to the output file and reply in at most
|
|
178
|
+
8 lines: the path and the Self-check counts."
|
|
137
179
|
```
|
|
138
180
|
|
|
139
181
|
### 3b. Gate — check each trace before anyone reviews it
|
|
140
182
|
|
|
141
|
-
|
|
183
|
+
Read each `work/F<n>.md` once and, for every trace, check mechanically (count, do not judge):
|
|
142
184
|
- [ ] Every User Task of the Feature has Steps, each with a layer
|
|
143
|
-
- [ ] Every Step
|
|
185
|
+
- [ ] Every Step had ≥3 options **before pruning**: its live options in the trace plus its entries
|
|
186
|
+
in `### Pruned` (the Step is the number in the option ID, `F5-4.1` → Step 4) add up to ≥3,
|
|
187
|
+
and the Self-check's `min n/Step` agrees. Pruning deliberately leaves fewer than 3 in the trace.
|
|
188
|
+
- [ ] Every Step has a `strategies:` line with ≥2 strategies
|
|
144
189
|
- [ ] Every Step has a cheap-family option (crutch, fake/hardcoded data, zero/one/many, simplified
|
|
145
190
|
workflow, basic utility) or a one-line reason why not
|
|
146
|
-
- [ ] Every Requirement of the Feature appears in `### Coverage`
|
|
191
|
+
- [ ] Every Requirement of the Feature appears in `### Coverage` (single mode has none:
|
|
192
|
+
`### Coverage` says `none — no functional ACs`)
|
|
147
193
|
- [ ] Every `Deferred` item from the Discovery Context appears as a `deferred` option
|
|
148
194
|
- [ ] The Walking Skeleton proposal uses option IDs and covers every User Task
|
|
149
195
|
- [ ] Every pruned option appears in `### Pruned` with one of the four reasons, is gone from the
|
|
@@ -155,22 +201,35 @@ For every returned trace, check mechanically (count, do not judge):
|
|
|
155
201
|
- [ ] `deferred` options sit in their own bites; no dependency cycle between bites
|
|
156
202
|
- [ ] The Self-check counts match the trace
|
|
157
203
|
|
|
158
|
-
If a trace fails, re-dispatch **that** slicer with the failed items listed ("S4
|
|
159
|
-
S7 has no cheap option; R3 missing from Coverage; F5-6.4 is in no bite; Step S9
|
|
160
|
-
|
|
204
|
+
If a trace fails, re-dispatch **that** slicer with the failed items listed ("S4 had 2 options
|
|
205
|
+
before pruning; S7 has no cheap option; R3 missing from Coverage; F5-6.4 is in no bite; Step S9
|
|
206
|
+
has no target") **and the path of its previous output**: the new subagent has no memory, so it fixes that
|
|
207
|
+
file instead of slicing again from scratch. Do not patch the trace yourself. At most two retries; then
|
|
208
|
+
show the user what is still missing.
|
|
209
|
+
|
|
210
|
+
### 3b-bis. Resolve cross-Feature dependencies
|
|
211
|
+
|
|
212
|
+
Each slicer sees only its own Feature, so a bite that needs another Feature says
|
|
213
|
+
`depends on: F7 (<what it needs>)`, never a bite ID of F7. Once every trace passes the gate, edit the
|
|
214
|
+
work files to replace
|
|
215
|
+
each such reference with the ID of the bite of that Feature that provides what is needed (or
|
|
216
|
+
`Inc 1` if its skeleton does). If no bite does, note it under `## Trio notes` as a gap and ask the
|
|
217
|
+
user in the decision point of 3d. Then check there is no dependency cycle across Features.
|
|
161
218
|
|
|
162
219
|
### 3c. Wave 2 — Trio review of the full traces (parallel)
|
|
163
220
|
|
|
164
221
|
The trio reviews **the complete traces and the bites**, not a summary: they can only miss
|
|
165
|
-
options they can see, and only object to a pruning they can read.
|
|
222
|
+
options they can see, and only object to a pruning they can read. They are given the **paths** of the
|
|
223
|
+
files (`work/F<n>.md`, `work/context.md`, `features.md`) and read them themselves: you never paste a
|
|
224
|
+
trace into a prompt, so the traces are not written out again three times.
|
|
166
225
|
|
|
167
226
|
**Task 1: bokata-product-manager**
|
|
168
227
|
```
|
|
169
228
|
subagent_type: bokata-product-manager
|
|
170
229
|
prompt: "Review the slicing of [Features] from the value/viability lens. You have:
|
|
171
|
-
- Full slicing traces (Steps, options, coverage, Walking Skeleton proposal, Pruned, Bites): [
|
|
172
|
-
- Backbone + functional ACs: [
|
|
173
|
-
- Discovery Context:
|
|
230
|
+
- Full slicing traces (Steps, options, coverage, Walking Skeleton proposal, Pruned, Bites), one file per Feature: [the paths of every work/F<n>.md]
|
|
231
|
+
- Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
|
|
232
|
+
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
|
|
174
233
|
Do NOT ask the user questions. Focus on: Is the skeleton the minimum that still gives observable
|
|
175
234
|
value end to end? Is a cheaper option (fake data, manual crutch, one case only) missing for any
|
|
176
235
|
Step — propose it with its Step ID. Which options unlock the most value next? Also review the
|
|
@@ -184,9 +243,9 @@ your review in the format specified in your agent file (Bites section included).
|
|
|
184
243
|
```
|
|
185
244
|
subagent_type: bokata-product-designer
|
|
186
245
|
prompt: "Review the slicing of [Features] from the UX/UI lens. You have:
|
|
187
|
-
- Full slicing traces: [
|
|
188
|
-
- Backbone + functional ACs: [
|
|
189
|
-
- Discovery Context:
|
|
246
|
+
- Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
|
|
247
|
+
- Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
|
|
248
|
+
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
|
|
190
249
|
Do NOT ask the user questions. Focus on: Does the skeleton combine into a coherent minimal
|
|
191
250
|
experience across the Features? Which UI states are essential to the skeleton and which can wait?
|
|
192
251
|
Is a cheaper UI option (static screen, one state only, existing component) missing for any Step —
|
|
@@ -201,9 +260,9 @@ specified in your agent file (Bites section included)."
|
|
|
201
260
|
```
|
|
202
261
|
subagent_type: bokata-product-engineer
|
|
203
262
|
prompt: "Review the slicing of [Features] from the feasibility/technical-sustainability lens. You have:
|
|
204
|
-
- Full slicing traces: [
|
|
205
|
-
- Backbone + functional ACs: [
|
|
206
|
-
- Discovery Context:
|
|
263
|
+
- Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
|
|
264
|
+
- Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
|
|
265
|
+
- Discovery Context: <docs>/<slug>/slices/<nn>-wip/work/context.md
|
|
207
266
|
Do NOT ask the user questions. Focus on: Are Steps and layers sound? Is each skeleton option
|
|
208
267
|
reversible, and which shortcuts are safe to revisit vs dangerous? Is a cheaper technical option
|
|
209
268
|
(in-memory, hardcoded, existing service, manual step) missing for any Step — propose it with its
|
|
@@ -254,6 +313,11 @@ across the picked Features, so the flow works end to end. Then:
|
|
|
254
313
|
- Options the user moves into Inc 1 leave their bite; if that empties a bite, remove it; if
|
|
255
314
|
it breaks another bite's `depends on`, repoint it to `Inc 1`. The bites left stay the
|
|
256
315
|
backlog.
|
|
316
|
+
- **Group the skeleton into skeleton bites.** An Inc is always made of bites, so that the story map
|
|
317
|
+
draws it as cards. Make one **skeleton bite per User Task** the skeleton covers: ID `F<n>-w<k>`
|
|
318
|
+
(`F1-w1`, `F1-w2`, … — the `w` plus a digit never collides with a slicer's letter IDs), a title with
|
|
319
|
+
a subject that says what the user does in that User Task *with the shortcut* ("Ana picks a hardcoded
|
|
320
|
+
clip"), tagged `(skeleton)`, its options, `→ Inc 1`. Show the titles to the user with the rest of Inc 1.
|
|
257
321
|
|
|
258
322
|
### Proposed increments
|
|
259
323
|
|
|
@@ -279,6 +343,12 @@ next", the Engineer's dependencies); you add no new opinion on value.
|
|
|
279
343
|
Used by a new slice (for Inc 1) and by `--next` (for the new increment). Never write concrete ACs
|
|
280
344
|
for options still in the backlog.
|
|
281
345
|
|
|
346
|
+
**Subagents get paths, not pasted content.** Where the prompts below say *the trace files* and *the
|
|
347
|
+
Discovery Context*, give the paths: for a new slice `slices/<nn>-wip/work/F<n>.md` and
|
|
348
|
+
`slices/<nn>-wip/work/context.md`; for `--next` the final `slices/<nn>-<name>/slicing/F<n>.md` and
|
|
349
|
+
`slices/<nn>-<name>/context.md`. The increments already in the slice are the `## Increments` of the
|
|
350
|
+
index.
|
|
351
|
+
|
|
282
352
|
### 4a. Trio contributes Rules (Subagents, Parallel)
|
|
283
353
|
|
|
284
354
|
One message, three foreground calls, wait for all three:
|
|
@@ -287,10 +357,10 @@ One message, three foreground calls, wait for all three:
|
|
|
287
357
|
```
|
|
288
358
|
subagent_type: bokata-product-manager
|
|
289
359
|
prompt: "Contribute business-rule Rules for increment [Inc n] of slice [nn], from the viability/value lens. You have:
|
|
290
|
-
- The increment: [
|
|
291
|
-
- Increments already in the slice (for context):
|
|
292
|
-
- Backbone + functional ACs of the touched User Tasks: [
|
|
293
|
-
- Discovery Context: [
|
|
360
|
+
- The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
|
|
361
|
+
- Increments already in the slice (for context): the `## Increments` of <index path>
|
|
362
|
+
- Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
|
|
363
|
+
- Discovery Context: [path of context.md]
|
|
294
364
|
Do NOT ask the user questions. Give launch-blocking rules for this increment and the value it
|
|
295
365
|
unlocks. Respect its shortcuts: an option marked fake/hardcoded/manual gets rules for what the user
|
|
296
366
|
sees, not for the real thing. Format per your agent file (Contributed Rules — PM Lens)."
|
|
@@ -300,10 +370,10 @@ sees, not for the real thing. Format per your agent file (Contributed Rules —
|
|
|
300
370
|
```
|
|
301
371
|
subagent_type: bokata-product-designer
|
|
302
372
|
prompt: "Contribute UX/UI Rules for increment [Inc n] of slice [nn], from the usability/craft lens. You have:
|
|
303
|
-
- The increment: [
|
|
304
|
-
- Increments already in the slice:
|
|
305
|
-
- Backbone + functional ACs of the touched User Tasks: [
|
|
306
|
-
- Discovery Context: [
|
|
373
|
+
- The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
|
|
374
|
+
- Increments already in the slice: the `## Increments` of <index path>
|
|
375
|
+
- Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
|
|
376
|
+
- Discovery Context: [path of context.md]
|
|
307
377
|
Do NOT ask the user questions. Give the UI states, component reuse and interaction patterns this
|
|
308
378
|
increment needs — no more than its options promise. Format per your agent file (Contributed Rules — Designer Lens)."
|
|
309
379
|
```
|
|
@@ -312,10 +382,10 @@ increment needs — no more than its options promise. Format per your agent file
|
|
|
312
382
|
```
|
|
313
383
|
subagent_type: bokata-product-engineer
|
|
314
384
|
prompt: "Contribute technical Rules for increment [Inc n] of slice [nn], from the feasibility/sustainability lens. You have:
|
|
315
|
-
- The increment: [
|
|
316
|
-
- Increments already in the slice:
|
|
317
|
-
- Backbone + functional ACs of the touched User Tasks: [
|
|
318
|
-
- Discovery Context: [
|
|
385
|
+
- The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
|
|
386
|
+
- Increments already in the slice: the `## Increments` of <index path>
|
|
387
|
+
- Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
|
|
388
|
+
- Discovery Context: [path of context.md]
|
|
319
389
|
Do NOT ask the user questions. Give data shape, contracts, guards and boundary rules for this
|
|
320
390
|
increment, and whether it builds on earlier increments or reshapes them. Format per your agent
|
|
321
391
|
file (Contributed Rules — Engineer Lens)."
|
|
@@ -326,9 +396,9 @@ file (Contributed Rules — Engineer Lens)."
|
|
|
326
396
|
Merge the three contributions into one enrichment block (de-duplicated). Then:
|
|
327
397
|
```
|
|
328
398
|
bokata-acceptance-criteria --concrete
|
|
329
|
-
Input: [the increment:
|
|
399
|
+
Input: [the increment: outcome, bites (ID and title), option IDs; the trace files hold what each option means: <paths>]
|
|
330
400
|
Enrichment: [consolidated Rules]
|
|
331
|
-
Discovery Context: [
|
|
401
|
+
Discovery Context: [path of context.md]
|
|
332
402
|
Instruction: "Skip your own Phase 0 discovery — it has been resolved upstream. Proceed directly to
|
|
333
403
|
Phase 1 (Input Analysis) through Phase 3 (Generate Output), using --concrete depth. Write
|
|
334
404
|
scenarios only for this increment, with concrete example data. Return the ## Acceptance Criteria
|
|
@@ -352,35 +422,41 @@ and formats in `.bokata.json` win over the domain skill's own.
|
|
|
352
422
|
|
|
353
423
|
## Step 5: Write the Slice & the Summary
|
|
354
424
|
|
|
355
|
-
1.
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
-
|
|
373
|
-
|
|
425
|
+
1. Name the slice (the user chose the name in 3e), rename `slices/<nn>-wip` to `slices/<nn>-<name>`,
|
|
426
|
+
`mkdir -p slices/<nn>-<name>/slicing`, and **write** the files of [The slice layout](#the-slice-layout)
|
|
427
|
+
from the (reconciled) files in `work/`. **Copy, do not retype**: cut each section out of
|
|
428
|
+
`work/F<k>.md` with the shell (`sed -n`, `awk`, `node -e`) or your editor instead of writing it out
|
|
429
|
+
again — a trace is tens of KB.
|
|
430
|
+
- `slices/<nn>-<name>/slicing/F<k>.md` — one per Feature: the `## Slicing` … `### Coverage` part of
|
|
431
|
+
`work/F<k>.md` (the Walking Skeleton proposal, Pruned, Bites and Self-check go elsewhere; the
|
|
432
|
+
Assumptions to the `## Notes` of `context.md`): its reconciled trace (Steps, options,
|
|
433
|
+
strategies, targets, bite of each live option, Coverage) exactly as the slicer wrote it plus the
|
|
434
|
+
trio's added options; append `→ Inc 1` to every option Inc 1 took (replacing the slicer's
|
|
435
|
+
`skeleton` marker);
|
|
436
|
+
- `slices/<nn>-<name>/inc-1.md` from [inc-template.md](resources/inc-template.md): `State: sliced`,
|
|
437
|
+
`Unknowns:`, an empty `Parallel-safe:` and the concrete ACs (fixtures, Rules, Gherkin) exactly as
|
|
438
|
+
returned. The Inc's name, outcome and bites are **not** repeated here — they are in the index;
|
|
439
|
+
- `slices/<nn>-<name>/pruned.md` (the full `### Pruned` list, with its count by reason),
|
|
440
|
+
`context.md` (`work/context.md`, moved, with `## Notes` and `## Trio notes` appended after the Discovery Context);
|
|
441
|
+
then **delete `work/`**;
|
|
442
|
+
- the index `slices/<nn>-<name>.md` from [slice-template.md](resources/slice-template.md):
|
|
443
|
+
header with `Status: open`; `## Increments` with `### Inc 1 — Walking skeleton`, its
|
|
444
|
+
`Outcome:` (one sentence in user language), `Bites:` (the skeleton bites of 3e) and `Detail:` link;
|
|
445
|
+
`## Backlog` with **every bite**, grouped by Feature and User Task and ordered by value (must-have
|
|
446
|
+
first, `~nice-to-have` after), each on one line **copied as the slicer returned it** (the
|
|
447
|
+
canonical bite line of `output-template-bites.md`; never reformat it), the skeleton bites as
|
|
448
|
+
`(skeleton) → Inc 1` lines and `→ Inc n` after the priority tag of every bite an Inc took;
|
|
449
|
+
`deferred` bites (`F1-d1`, …) in their own group; never a flat list of option IDs. Put
|
|
450
|
+
**`### Proposed increments`** above the bites: see [Proposed increments](#proposed-increments);
|
|
451
|
+
and `## Files` linking everything above.
|
|
374
452
|
2. In `features.md`, set each picked Feature's `**Slice:**` line:
|
|
375
453
|
`**Slice:** → <nn>-<name> · <taken>/<total> options · next: <bite ID> <bite title>`.
|
|
376
454
|
Nothing else about the slicing goes into `features.md`.
|
|
377
|
-
3. **
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
```
|
|
381
|
-
subagent → story-map-renderer (bokata-render)
|
|
382
|
-
input: <docs>/<initiative-slug>/ — operation: slice-added — slice: slices/<nn>-<name>.md — increment: Inc 1
|
|
455
|
+
3. **Refresh the story map** (if `story_map`): run the `bokata-render` script, in the foreground:
|
|
456
|
+
```bash
|
|
457
|
+
node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug>
|
|
383
458
|
```
|
|
459
|
+
If it prints a `file:line: problem`, the slice or `features.md` broke the format: fix it and run it again.
|
|
384
460
|
|
|
385
461
|
---
|
|
386
462
|
|
|
@@ -389,17 +465,17 @@ and formats in `.bokata.json` win over the domain skill's own.
|
|
|
389
465
|
- [ ] Every picked Feature was sliced by a `feature-slicer` subagent and passed the gate
|
|
390
466
|
- [ ] The trio reviewed the full traces and the bites; their added options are in the Slicing
|
|
391
467
|
and each in exactly one bite
|
|
392
|
-
- [ ] The slice
|
|
393
|
-
|
|
468
|
+
- [ ] The slice has its index (Inc 1 with outcome and skeleton bites, Backlog of bites) and its
|
|
469
|
+
folder: `inc-1.md` with concrete Gherkin, `slicing/F<k>.md` per Feature, `context.md`, `pruned.md`
|
|
394
470
|
- [ ] `features.md` gained only a `**Slice:**` line per picked Feature
|
|
395
|
-
- [ ] The
|
|
471
|
+
- [ ] The `bokata-render` script ran without errors (if `story_map`)
|
|
396
472
|
|
|
397
473
|
Print:
|
|
398
474
|
```
|
|
399
475
|
## ✓ Slice Ready
|
|
400
476
|
|
|
401
477
|
**Slice:** <nn>-<name> — Features: {{FEATURES}} · open
|
|
402
|
-
**Location:** <docs>/{{INITIATIVE_SLUG}}/slices/<nn>-<name>.md
|
|
478
|
+
**Location:** <docs>/{{INITIATIVE_SLUG}}/slices/<nn>-<name>.md (+ the folder <nn>-<name>/)
|
|
403
479
|
|
|
404
480
|
**Inc 1 (Walking Skeleton):** {{ONE_LINE}} · {{NUM_OPTIONS}} options · {{NUM_GHERKIN_BLOCKS}} scenarios
|
|
405
481
|
**Slicing:** {{NUM_STEPS}} Steps · {{NUM_OPTIONS_TOTAL}} options ({{NUM_PRUNED}} pruned) · {{NUM_BITES}} bites in the backlog ({{NUM_MUST}} must-have · {{NUM_NICE}} nice-to-have · {{NUM_DEFERRED}} deferred)
|
|
@@ -418,44 +494,57 @@ After Inc 1 is built: `bokata-slice <nn> --next`.
|
|
|
418
494
|
For an **open** slice whose current increment is built (or when the user wants to queue the next
|
|
419
495
|
one):
|
|
420
496
|
|
|
421
|
-
1. Read the
|
|
422
|
-
|
|
497
|
+
1. Read the **index** (`Increments`, `Backlog` — the bites), `context.md`, `pruned.md`, and the
|
|
498
|
+
`slicing/F<k>.md` of the Features whose bites you may take; read an `inc-<n>.md` only for an Inc
|
|
499
|
+
you must reason about (its `Pending` and decisions). Also the functional ACs of the Features from
|
|
500
|
+
`features.md`. Do not read the Gherkin of the Incs already built.
|
|
423
501
|
2. Propose the next increment as **one or several bites** (of one or several User Tasks) that
|
|
424
502
|
unlock the most value on top of what is built; start from the first row of
|
|
425
503
|
`### Proposed increments` and adjust it to what is built and pruned: respect `depends on`, take must-have before
|
|
426
504
|
nice-to-have, keep it small. Show 2–3 candidates, each as one line of what the user can do +
|
|
427
|
-
bite IDs and titles
|
|
505
|
+
bite IDs and titles, with your recommendation first. The user picks, edits
|
|
428
506
|
or writes their own. One increment per call. Bites are already reviewed by the trio; you
|
|
429
507
|
compose between them, you do not untie 180 loose options again.
|
|
430
508
|
3. If the user asks for something no bite has, add it as a new option to its Step (next free
|
|
431
509
|
ID, with its strategy) **and to a bite** (new or existing) before using it — the Slicing
|
|
432
510
|
stays the source of truth.
|
|
433
511
|
4. **Re-prune.** The increment just chosen raises the floor for its Steps: any live option, in any
|
|
434
|
-
bite, that now sits below what the increment builds is `obsolete`.
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
whose value shrank is reworded or merged. A removal that would take value away from a bite
|
|
512
|
+
bite, that now sits below what the increment builds is `obsolete`. Delete it from its
|
|
513
|
+
`slicing/F<k>.md` and list it in `pruned.md` with its reason. **Never prune an option an Inc
|
|
514
|
+
has taken** (`→ Inc n`): the story map resolves each Inc's options through the Slicing, so
|
|
515
|
+
those stay. Bites left with no options go away; a bite whose value shrank is reworded or merged. A removal that would take value away from a bite
|
|
438
516
|
goes to the user as one decision point, with your recommended default.
|
|
439
517
|
5. Run **Step 4** (trio Rules → concrete ACs → domain pass) for this increment only.
|
|
440
518
|
6. **Redo `### Proposed increments`** for the bites that are left (drop the row of the Inc just
|
|
441
|
-
added, reorder the rest if the pruning or what was built changed it).
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
519
|
+
added, reorder the rest if the pruning or what was built changed it). Add to the index
|
|
520
|
+
`### Inc <n> — <short name>` with its `Outcome:` (one sentence, user language), `Bites:` and `Detail:`
|
|
521
|
+
link; append `→ Inc <n>` to the bites it took in `## Backlog` (after the priority tag) and to the
|
|
522
|
+
options in their `slicing/F<k>.md`; write `slices/<nn>-<name>/inc-<n>.md` from
|
|
523
|
+
[inc-template.md](resources/inc-template.md) with `State: sliced` and the concrete ACs.
|
|
446
524
|
7. Update each touched Feature's `**Slice:**` line in `features.md` (`next: <bite ID> <title>`).
|
|
447
|
-
8.
|
|
525
|
+
8. Run the `bokata-render` script (Step 5.3).
|
|
448
526
|
9. Print the Inc line, scenarios count, bites left in the backlog, what was pruned, and the next
|
|
449
527
|
step (`bokata-plan`).
|
|
450
528
|
|
|
451
529
|
## Done (`--done`)
|
|
452
530
|
|
|
453
|
-
Only when the user asks — nothing marks a slice done by itself.
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
531
|
+
Only when the user asks — nothing marks a slice done by itself. First **sweep**: read every
|
|
532
|
+
`inc-<n>.md` and `plan.md`'s section for this slice and **list what is still open** — an Inc whose
|
|
533
|
+
`State` is not `done`, unchecked steps in `plan.md`, a `## Pending` item — and ask the user whether to
|
|
534
|
+
go on. Then set `Status: done` in the index header, add a closing line to the `## Notes` of `context.md` (what is built,
|
|
535
|
+
which bites stay in the backlog), delete this slice's section from `plan.md` if it still has one,
|
|
536
|
+
update the `**Slice:**` lines in `features.md` with `· done`, and run the `bokata-render` script. The
|
|
537
|
+
backlog stays in the index; to build more of these Features later, the user reopens this slice
|
|
538
|
+
(`Status: open`) — never a new slice for the same Feature. A done *slice* is not a done *increment*: the
|
|
539
|
+
`State: done` of an Inc is set by the executor, and a done slice renders all its Incs as done.
|
|
540
|
+
|
|
541
|
+
## Check (`--check`)
|
|
542
|
+
|
|
543
|
+
Run `node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug> --check`: it parses
|
|
544
|
+
`features.md`, the slices and `plan.md` with the same parser the story map uses and prints every
|
|
545
|
+
`file:line: problem` (an Inc naming a bite that has no line, a bite whose option is not in the
|
|
546
|
+
Slicing, an Inc with no `inc-<n>.md`, an unknown `State`, …) without writing anything. Report them; fix
|
|
547
|
+
the markdown, never the parser.
|
|
459
548
|
|
|
460
549
|
---
|
|
461
550
|
|
|
@@ -463,13 +552,17 @@ a done *increment*: the header's `Current increment: Inc <n> — done` is set by
|
|
|
463
552
|
|
|
464
553
|
- [ ] Discovery Context present; scope cuts recorded as Deferred, not removed
|
|
465
554
|
- [ ] Wave 1 issued in one message, one `feature-slicer` per Feature; no Feature sliced inline
|
|
466
|
-
- [ ] Every trace passed the gate (≥3 options and ≥2 strategies per Step, cheap option,
|
|
467
|
-
pruned with a reason, a target per Step, every live option in exactly one bite)
|
|
555
|
+
- [ ] Every trace passed the gate (≥3 options before pruning and ≥2 strategies per Step, cheap option,
|
|
556
|
+
full Coverage, pruned with a reason, a target per Step, every live option in exactly one bite)
|
|
557
|
+
- [ ] Cross-Feature `depends on: F<n> (…)` references were resolved to bite IDs, with no cycle
|
|
468
558
|
- [ ] Wave 2 (trio) saw the full traces and the bites and completed before reconciliation
|
|
469
|
-
- [ ] The Backlog lists bites with user-language titles, never loose option IDs
|
|
559
|
+
- [ ] The Backlog lists bites with user-language titles, never loose option IDs; every Inc (Inc 1 too) is made of bites
|
|
560
|
+
- [ ] Nothing is said twice: an Inc's outcome and bites only in the index, its State only in its `inc-<n>.md`, its decisions in that file
|
|
470
561
|
- [ ] `### Proposed increments` exists: every must-have bite in exactly one row, dependencies respected, a reason per row
|
|
471
|
-
- [ ] Inc 1 covers every User Task of the picked Features, as
|
|
472
|
-
- [ ] Concrete ACs exist only for the increment being added, in full Gherkin with concrete data
|
|
562
|
+
- [ ] Inc 1 covers every User Task of the picked Features, as skeleton bites
|
|
563
|
+
- [ ] Concrete ACs exist only for the increment being added (in its `inc-<n>.md`), in full Gherkin with concrete data
|
|
473
564
|
- [ ] No duration written anywhere
|
|
474
565
|
- [ ] `features.md` holds only the summary `**Slice:**` line per Feature
|
|
475
|
-
- [ ]
|
|
566
|
+
- [ ] No subagent prompt contains a pasted trace, report or Discovery Context: only paths
|
|
567
|
+
- [ ] The `work/` folder is gone and `slices/<nn>-wip` was renamed
|
|
568
|
+
- [ ] The `bokata-render` script ran right after the slice was final
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!-- ONE INCREMENT: slices/<nn>-<name>/inc-<n>.md. Written by `bokata-slice` when the Inc enters; after
|
|
2
|
+
that the owner edits Unknowns and decisions, `bokata-plan` sets the State to planned, and the
|
|
3
|
+
executor sets it to done. The Inc's name, outcome and bites are in the slice index: do not copy
|
|
4
|
+
them here. -->
|
|
5
|
+
|
|
6
|
+
# Inc <n> — <short name>
|
|
7
|
+
|
|
8
|
+
- State: sliced | planned | done <!-- sliced: ACs written · planned: bokata-plan wrote its steps · done: built (the executor sets it). "building" is not written: it is derived from the checked steps of plan.md -->
|
|
9
|
+
- Unknowns: <open questions, or "none">
|
|
10
|
+
- Parallel-safe: <yes | no — set by bokata-plan>
|
|
11
|
+
|
|
12
|
+
<concrete Acceptance Criteria returned by bokata-acceptance-criteria --concrete: the fixtures, the
|
|
13
|
+
Rules and, under `#### [<User Task>]`, the Gherkin scenarios — kept exactly as returned>
|
|
14
|
+
|
|
15
|
+
```gherkin
|
|
16
|
+
Scenario: <concrete name>
|
|
17
|
+
Given <concrete data>
|
|
18
|
+
When <action>
|
|
19
|
+
Then <observable result>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Decisions and notes of this Inc
|
|
23
|
+
|
|
24
|
+
<!-- What the owner and the trio decided about THIS increment, and what building it discovered.
|
|
25
|
+
Slice-wide decisions go in context.md (## Notes). Optional until there is something to say. -->
|
|
26
|
+
|
|
27
|
+
- Owner decision: <…>
|
|
28
|
+
|
|
29
|
+
## Pending
|
|
30
|
+
|
|
31
|
+
<!-- Added by the executor when the Inc is closed: only what is NOT in the code — a manual or owner check
|
|
32
|
+
still to do (a phone test, a real-device walkthrough), a scenario no automated test covers. The
|
|
33
|
+
plan.md section of a done Inc is deleted; this is all that survives of it. Omit the section when
|
|
34
|
+
nothing is pending. -->
|
|
35
|
+
|
|
36
|
+
- <manual check not done yet>
|