bokata 3.0.0-beta.5 → 3.0.0-beta.6
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 +2 -2
- package/.agents/skills/bokata-feature-map/resources/features-template.md +2 -2
- package/.agents/skills/bokata-feature-slicer/SKILL.md +2 -2
- package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +1 -1
- package/.agents/skills/bokata-inc/SKILL.md +244 -0
- package/.agents/skills/{bokata-slice → bokata-inc}/resources/inc-template.md +5 -5
- package/.agents/skills/bokata-plan/SKILL.md +6 -4
- package/.agents/skills/bokata-render/SKILL.md +8 -8
- package/.agents/skills/bokata-render/assets/story-map.html +6 -6
- package/.agents/skills/bokata-render/scripts/render.mjs +35 -5
- package/.agents/skills/bokata-slice/SKILL.md +99 -224
- package/.agents/skills/bokata-slice/resources/proposed-increments.md +42 -0
- package/.agents/skills/bokata-slice/resources/slice-template.md +24 -23
- package/.agents/skills/bokata-status/SKILL.md +20 -14
- package/README.md +175 -33
- package/agents/bokata-product-designer.md +6 -4
- package/agents/bokata-product-engineer.md +6 -4
- package/agents/bokata-product-manager.md +6 -4
- package/agents/code-executor.md +1 -1
- package/package.json +1 -1
- package/src/install.js +3 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bokata-status
|
|
3
|
-
description: Read-only summary of where a bokata initiative stands — phase, open slices,
|
|
3
|
+
description: Read-only summary of where a bokata initiative stands — phase, open slices, each increment's state (proposed, specified, planned, building, done) and next step, open unknowns, each slice's backlog of bites, and features not yet sliced. Use it when the user asks "where am I", "what's next", "status of <initiative>", or resumes work in a new session or another tool.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# bokata-status
|
|
@@ -15,7 +15,8 @@ Read `.bokata.json` at the project root if it exists (`docs` defaults to `docs/i
|
|
|
15
15
|
## What to read
|
|
16
16
|
|
|
17
17
|
`<docs>/<slug>/`: `pitch.md`, `features.md`, the slice **indexes** `slices/<nn>-<name>.md`, the
|
|
18
|
-
`slices/<nn>-<name>/inc-<n>.md` of the increments that are not done (`State`, `Unknowns`, `Pending
|
|
18
|
+
`slices/<nn>-<name>/inc-<n>.md` of the increments that are not done (`State`, `Unknowns`, `Pending`; a proposed
|
|
19
|
+
increment has none: read its row of `### Proposed increments`) and
|
|
19
20
|
the `Pending` of the done ones, and `plan.md` (only what is in flight). Do not open `slicing/`,
|
|
20
21
|
`context.md` or the Gherkin: status never needs them. If no slug is given, list the
|
|
21
22
|
initiatives under `<docs>/` that have a `pitch.md`, `features.md` or `slices/`, and ask
|
|
@@ -30,22 +31,26 @@ Answer in the user's language, in this shape and nothing more:
|
|
|
30
31
|
Pitch: <size>, <ambition> (if a pitch exists)
|
|
31
32
|
Features: <n> · sliced: <list of features with a slice> · not yet: <list>
|
|
32
33
|
Slice <nn>-<name> (open | done) — Features F1, F2
|
|
33
|
-
✔ <built increments> ▶ Inc <n> <name> — next step
|
|
34
|
+
✔ <built increments> ▶ Inc <n> <name> — <specified | planned | building>: next step "<first unchecked step>"
|
|
34
35
|
▲ <k> unknowns: <first one> | ▼ no unknowns
|
|
35
36
|
⏳ <k> pending (not in the code): <first one>
|
|
36
37
|
~ <open nice-to-have scenarios>
|
|
38
|
+
◇ Proposed: Inc <n> <name> (<bite IDs>) · Inc <m> <name> (<bite IDs>) … (the next one first)
|
|
37
39
|
Backlog: <k> bites (<m> must-have · <d> deferred) — <first two, by ID and title>
|
|
38
40
|
Next: <the skill or hand-off to run next>
|
|
39
41
|
```
|
|
40
42
|
|
|
41
43
|
Rules:
|
|
42
|
-
- **State of an increment**:
|
|
43
|
-
`
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`
|
|
48
|
-
|
|
44
|
+
- **State of an increment**: with no `inc-<n>.md` it is **proposed**: only a row of `### Proposed
|
|
45
|
+
increments` (the table is in the index's `## Backlog`; the first row is the next one). Otherwise
|
|
46
|
+
`State: done` in its `inc-<n>.md` → done (also every Inc of a slice with `Status: done`); else its
|
|
47
|
+
section in `plan.md` (the checkboxes under `## Slice <nn>` → `### Inc <n>`): some checked →
|
|
48
|
+
building, none → planned; no section → its own `State` (`specified` or `planned`; an old `sliced`
|
|
49
|
+
means `specified`). `plan.md` is temporary: a done Inc has no section there, and that is normal.
|
|
50
|
+
- **Phase** comes from what exists: pitch only → shaped; features → mapped; a slice with no Inc
|
|
51
|
+
specified yet (only proposed ones), or an Inc in `specified` (no plan yet) → slicing; Incs planned
|
|
52
|
+
and none building → planned; some Inc building → building; every slice done and no Feature left
|
|
53
|
+
without a slice → done. A `features.md` carrying `<!-- Mode: single -->` was written by
|
|
49
54
|
`bokata-slice` in single mode, not by a feature map: it never makes the phase "mapped".
|
|
50
55
|
- One block per slice, open slices first; done slices get one line (`Slice <nn> done —
|
|
51
56
|
<k> bites left`). **Backlog** is the slice's `## Backlog` section: its bites that no `Inc` has taken
|
|
@@ -55,10 +60,11 @@ Rules:
|
|
|
55
60
|
- **▲ / ▼** is the `Unknowns` line of the increment in flight (its `inc-<n>.md`): open questions mean it
|
|
56
61
|
still needs the user (▲), none means only execution is left (▼). **⏳** counts the `## Pending` items
|
|
57
62
|
of any Inc, done ones included: manual or owner checks that are not in the code.
|
|
58
|
-
- **Next** is the first that applies: unknowns open → resolve them with the user;
|
|
59
|
-
|
|
60
|
-
`bokata-
|
|
61
|
-
|
|
63
|
+
- **Next** is the first that applies: unknowns open → resolve them with the user; an Inc `specified`
|
|
64
|
+
with no plan → `bokata-plan`; unchecked steps → the executor hand-off line; no Inc in flight and a
|
|
65
|
+
proposed increment left → `bokata-inc` (the first proposed row; the user may review the proposal in the
|
|
66
|
+
index first), or `--done` (`bokata-slice <nn> --done`) if the user is finished with the slice;
|
|
67
|
+
Features without a slice → `bokata-slice` on them; nothing left → done.
|
|
62
68
|
- Quote steps and unknowns exactly as written. If a file is malformed, say which and where;
|
|
63
69
|
never guess its content.
|
|
64
70
|
|
package/README.md
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
Claude Code, OpenCode, Codex and Cursor, built on Teresa Torres' Product Trio.
|
|
5
5
|
|
|
6
6
|
```
|
|
7
|
-
shape → feature map → slice → plan
|
|
8
|
-
pitch features
|
|
7
|
+
shape → feature map → slice → inc → plan → code (TDD)
|
|
8
|
+
pitch features bites and one increment: checklist commits
|
|
9
|
+
a roadmap bites + ACs
|
|
9
10
|
```
|
|
10
11
|
|
|
11
12
|
- **Skills only, no commands.** Every phase is a skill you invoke by name. Use all of them or
|
|
@@ -44,10 +45,11 @@ npx bokata@latest sync # regenerate agents after editing .bokata.jso
|
|
|
44
45
|
| Size | Path |
|
|
45
46
|
|---|---|
|
|
46
47
|
| **S** — a fix or tweak | plan mode → `bokata-tdd` (no documents) |
|
|
47
|
-
| **M** — one clear feature | `bokata-shape` → `bokata-slice` (single mode: the pitch is the one feature; the bite-sized backlog lives in the slice) → `bokata-plan` → `code-executor` |
|
|
48
|
-
| **L** — several features | `bokata-shape` → `bokata-feature-map` → `bokata-slice` (1–4 features) → `bokata-plan` → `code-executor` |
|
|
48
|
+
| **M** — one clear feature | `bokata-shape` → `bokata-slice` (single mode: the pitch is the one feature; the bite-sized backlog lives in the slice) → `bokata-inc` → `bokata-plan` → `code-executor` |
|
|
49
|
+
| **L** — several features | `bokata-shape` → `bokata-feature-map` → `bokata-slice` (1–4 features) → `bokata-inc` → `bokata-plan` → `code-executor` |
|
|
49
50
|
|
|
50
|
-
`bokata-shape` proposes the size; you confirm it.
|
|
51
|
+
`bokata-shape` proposes the size; you confirm it. After the slice, every increment — the Walking
|
|
52
|
+
Skeleton too — goes through the same loop: `bokata-inc` → `bokata-plan` → `code-executor`.
|
|
51
53
|
|
|
52
54
|
### Skills
|
|
53
55
|
|
|
@@ -55,11 +57,12 @@ npx bokata@latest sync # regenerate agents after editing .bokata.jso
|
|
|
55
57
|
|---|---|---|
|
|
56
58
|
| `bokata-shape` | Grill (the configured method) + Shape Up shaping: narrow the problem, 2–3 approaches as Mermaid breadboards (low-fi HTML sketch when layout matters), one trio pass, rabbit holes and no-gos | `pitch.md` |
|
|
57
59
|
| `bokata-feature-map` | Features Backbone + functional ACs with the trio; asks only about gaps in its input | `features.md` + the initiative's `story-map.html` dashboard (drawn by the `bokata-render` script) |
|
|
58
|
-
| `bokata-slice` | Pick 1–4 features → one `feature-slicer` per feature writes Steps and 3+ options per Step, prunes them (each drop with a reason), and groups the rest into small INVEST bites per User Task → the trio reviews the full trace and the bites →
|
|
59
|
-
| `bokata-
|
|
60
|
+
| `bokata-slice` | Pick 1–4 features → one `feature-slicer` per feature writes Steps and 3+ options per Step, prunes them (each drop with a reason), and groups the rest into small INVEST bites per User Task → the trio reviews the full trace and the bites → it **proposes** the Walking Skeleton (as skeleton bites) and a roadmap of increments (`### Proposed increments`). **No specs yet**: you review the index and edit it by hand — move bites between increments, add or drop, reorder. `--check` validates it; `--done` marks the slice done | `slices/<nn>-<name>.md` (the index: the backlog of bites and the proposed increments) + `slices/<nn>-<name>/` (`slicing/`, `context.md`, `pruned.md`); a one-line `**Slice:**` summary per feature in `features.md`; the proposed increments and the backlog in `story-map.html` |
|
|
61
|
+
| `bokata-inc` | **Specifies one increment**, Inc 1 included: `bokata-inc` takes the next proposed one (the first row), `bokata-inc 3` the one labelled Inc 3, `bokata-inc F1-b F2-c` builds a new one out of those bites (`--slice <nn>` when several slices are open). It re-prunes what the increment makes obsolete, the trio contributes rules, concrete ACs (Gherkin) are written **only for it**, and **you approve them** before anything is planned | `slices/<nn>-<name>/inc-<n>.md` (`State: specified`); the Inc in the index, its bites marked `→ Inc n`, the proposed increments redone |
|
|
62
|
+
| `bokata-plan` | A contract for your harness's own plan mode: the plan of a *specified* increment becomes a checklist, starting with its acceptance test (a proposed increment is sent back to `bokata-inc`) | the initiative's `plan.md`; redraws `story-map.html` |
|
|
60
63
|
| `bokata-tdd` | Default code method: an acceptance test per increment, then strict small-step TDD with evidence rules | commits |
|
|
61
64
|
| `bokata-refactor` | Default refactor method: Kent Beck's four rules of simple design, tidyings, code smells mapped to the move that fixes each | `refactor` commits |
|
|
62
|
-
| `bokata-status` | Read-only: phase, open slices, each increment's state and next step, open unknowns, pending checks, each slice's backlog of bites, features not yet sliced; redraws the story map if it lags |
|
|
65
|
+
| `bokata-status` | Read-only: phase, open slices, each increment's state (proposed, specified, planned, building, done) and next step, open unknowns, pending checks, each slice's backlog of bites, features not yet sliced; redraws the story map if it lags | — |
|
|
63
66
|
| `bokata-render` | Draws `story-map.html` from the markdown with a script — no model: Features and User Tasks as columns, a band of bite cards per increment, a Backlog band, a minimap and a page per increment, bite, User Task and Feature. `--check` validates the markdown. Run by the other skills and `code-executor`, or by you with `npx bokata render <docs>/<slug>` | `story-map.html` |
|
|
64
67
|
| `bokata-feature-mapper`, `bokata-feature-slicer`, `bokata-acceptance-criteria` | The methods the phases use; usable on their own | — |
|
|
65
68
|
|
|
@@ -67,7 +70,7 @@ npx bokata@latest sync # regenerate agents after editing .bokata.jso
|
|
|
67
70
|
|
|
68
71
|
| Agent | Role | Access |
|
|
69
72
|
|---|---|---|
|
|
70
|
-
| `bokata-product-manager` / `-designer` / `-engineer` | Product Trio reviewers and rule contributors | read |
|
|
73
|
+
| `bokata-product-manager` / `-designer` / `-engineer` | Product Trio reviewers (`bokata-slice`) and rule contributors (`bokata-inc`) | read |
|
|
71
74
|
| `code-executor` | Builds a slice's planned increment with `methods.code`; checks off `plan.md` as it goes and, when the Inc is done, sets `State: done`, moves what is not in the code to `Pending` and deletes its plan section; never pushes | write |
|
|
72
75
|
| `design-reviewer` | Reviews one step's diff with `methods.refactor` and the coding standards | read |
|
|
73
76
|
| `feature-slicer` | Loads `bokata-feature-slicer` and slices one feature into Steps and options, writing its output to the one file it is given; `bokata-slice` dispatches one per feature, in parallel | write-own |
|
|
@@ -88,17 +91,22 @@ Initiative (pitch.md)
|
|
|
88
91
|
└ Slice (slices/<nn>-<name>.md — a short index; 1–4 features → usable end to end; open until you mark it done)
|
|
89
92
|
├ Slicing (slices/<nn>-<name>/slicing/F<k>.md — per feature: User Task → Step → options F1-2.3,
|
|
90
93
|
│ with strategy and coverage; pruned with a reason in pruned.md, a target per Step)
|
|
91
|
-
├
|
|
92
|
-
│
|
|
93
|
-
|
|
94
|
-
│
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
├ Bites (F1-a… in the index's Backlog: INVEST groups of options per User Task, titled for the
|
|
95
|
+
│ user; the skeleton bites are F1-w1… — they stay in the Backlog while the slice lives)
|
|
96
|
+
├ Proposed increments (### Proposed increments in the index — the roadmap: the bites grouped into the
|
|
97
|
+
│ increments to build, Inc 1 first; a proposal you edit by hand, no specs yet)
|
|
98
|
+
└ Increment (slices/<nn>-<name>/inc-<n>.md — one or more bites the user can see; Inc 1 = the
|
|
99
|
+
│ skeleton bites; written by bokata-inc with concrete ACs you approve; proposed → State:
|
|
100
|
+
│ specified | planned | done; Unknowns ▲ / none ▼; Pending = what is not in the code)
|
|
101
|
+
└ Plan steps (in the initiative's plan.md while the Inc is in flight; checked off commit by
|
|
102
|
+
commit; deleted when the Inc is done)
|
|
98
103
|
```
|
|
99
104
|
|
|
105
|
+
New to slicing? [The method](#the-method-vertical-slicing-iterative-and-incremental) explains why
|
|
106
|
+
the levels are these and how a slice grows.
|
|
107
|
+
|
|
100
108
|
The index is short on purpose, and nothing is said twice: an Inc's outcome and bites live in the
|
|
101
|
-
index, its state and decisions in its own file, so
|
|
109
|
+
index, its state and decisions in its own file, so `bokata-inc`, the plan and the executor read a few
|
|
102
110
|
KB instead of the whole history, and Incs built in parallel worktrees never edit the same file.
|
|
103
111
|
`npx bokata render <docs>/<slug>` draws the whole initiative as one page you can open in a
|
|
104
112
|
browser, and `--check` validates the markdown.
|
|
@@ -107,23 +115,131 @@ A feature belongs to one slice only. An **option** is one way to do one Step; a
|
|
|
107
115
|
the options of one or several Steps that make sense together (small, INVEST); an **increment** is
|
|
108
116
|
the walking skeleton or one or more bites — whatever lets the user see or do something new.
|
|
109
117
|
Options are explored widely and then pruned (`obsolete`, `dominated`, `filler`, `contradicts`),
|
|
110
|
-
so you prioritize a handful of bites instead of a hundred option IDs.
|
|
111
|
-
`bokata-slice <nn> --next` adds the next increment to the same slice; when you are done with it,
|
|
112
|
-
`bokata-slice <nn> --done`.
|
|
118
|
+
so you prioritize a handful of bites instead of a hundred option IDs.
|
|
113
119
|
|
|
114
|
-
**
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
120
|
+
**The life of an increment** is one loop, the Walking Skeleton included. `bokata-slice` leaves it
|
|
121
|
+
*proposed*: a row of the roadmap, made of bites, with no specs. You review it and edit it by hand if
|
|
122
|
+
you want. `bokata-inc` makes it *specified*: it takes the next row, the row you number or the bites
|
|
123
|
+
you name, writes its concrete ACs and waits for your approval. `bokata-plan` makes it *planned*,
|
|
124
|
+
the executor builds it and sets it *done*, and you call `bokata-inc` again. When you are done with
|
|
125
|
+
the slice, `bokata-slice <nn> --done`.
|
|
118
126
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
127
|
+
| State | What it is | Who moves it | Where it lives |
|
|
128
|
+
|---|---|---|---|
|
|
129
|
+
| **proposed** | a row of the roadmap: some bites, a name, a reason; no specs | `bokata-slice` writes it, **you edit it** | `### Proposed increments` in the slice index |
|
|
130
|
+
| **specified** | its bites are fixed and its concrete ACs are approved | `bokata-inc` (you approve the ACs) | `inc-<n>.md` (`State: specified`) + the Inc in the index |
|
|
131
|
+
| **planned** | it has a checklist, starting with its acceptance test | `bokata-plan` | `plan.md` + `State: planned` |
|
|
132
|
+
| **building** | some steps are checked | `code-executor`, commit by commit | derived from `plan.md`; nobody writes it |
|
|
133
|
+
| **done** | built; what is not in the code is in `Pending` | `code-executor` | `State: done`; its section of `plan.md` is deleted |
|
|
125
134
|
|
|
126
|
-
|
|
135
|
+
## The method: vertical slicing, iterative and incremental
|
|
136
|
+
|
|
137
|
+
This section is the "why" behind the [hierarchy](#hierarchy). You do not need it to run the
|
|
138
|
+
skills, but it is the quickest way to learn the practice bokata automates.
|
|
139
|
+
|
|
140
|
+
### Vertical, not horizontal
|
|
141
|
+
|
|
142
|
+
A **horizontal** split cuts by technical layer: first the database, then the API, then the screens.
|
|
143
|
+
Nothing works until the last layer lands, and you learn nothing until then. A **vertical** slice
|
|
144
|
+
cuts through every layer for a thin piece of behaviour, so each slice works end to end and can be
|
|
145
|
+
shown, tested and corrected. Jeff Patton calls the first one a *release slice* of the story map
|
|
146
|
+
and Alistair Cockburn a *walking skeleton*: the thinnest thing that really runs from the user's
|
|
147
|
+
action to the stored result.
|
|
148
|
+
|
|
149
|
+
### Iterative and incremental are two different moves
|
|
150
|
+
|
|
151
|
+
They are often used as one word. They are not (Cockburn, *Using Both Incremental and Iterative
|
|
152
|
+
Development*; Larman and Basili, *Iterative and Incremental Development: A Brief History*):
|
|
153
|
+
|
|
154
|
+
| | Incremental | Iterative |
|
|
155
|
+
|---|---|---|
|
|
156
|
+
| Strategy | **Staging**: grow the product piece by piece, each piece finished | **Rework**: come back to something already built and improve it |
|
|
157
|
+
| Question | "What do we add next?" | "What did we learn that makes us revisit it?" |
|
|
158
|
+
| Patton's picture | Paint the Mona Lisa one finished square at a time | Sketch the whole Mona Lisa, then refine it in passes |
|
|
159
|
+
| In bokata | `bokata-inc` specifies the next increment | Reopening a slice, or a new increment that takes a better option of a Step already built |
|
|
160
|
+
|
|
161
|
+
Bokata has **no "iteration" level** on purpose. An iteration is a unit of *time* (a Sprint, a Shape
|
|
162
|
+
Up cycle, XP's weekly cycle) and bokata plans *scope*. A time box can finish half an increment or
|
|
163
|
+
three; mixing the two makes the plan depend on the calendar. Iterating is something you *do* to
|
|
164
|
+
a slice, not a layer it contains.
|
|
165
|
+
|
|
166
|
+
### The levels
|
|
167
|
+
|
|
168
|
+
| Level | It answers | It is | Close relatives |
|
|
169
|
+
|---|---|---|---|
|
|
170
|
+
| **Initiative** | Why are we doing this, and what is out? | `pitch.md`: the shaped problem, the chosen approach, rabbit holes and no-gos | Shape Up pitch, epic |
|
|
171
|
+
| **Feature** | What can the user achieve? | A goal split into User Tasks, with functional ACs (`features.md`) | Story map backbone (Patton) |
|
|
172
|
+
| **Slice** | Which part of the map do we make work, end to end? | A horizontal cut over 1–4 Features; open until *you* say it is enough | Release slice (Patton), walking skeleton (Cockburn) |
|
|
173
|
+
| **Increment** | What does the user see or do that is new? | A step that thickens the slice: Inc 1 is the skeleton, the rest add to it | Scrum Increment, minimum marketable feature |
|
|
174
|
+
| **Bite** | What is the smallest worthwhile thing to pick? | A group of options of one or several Steps that make sense together (INVEST) | User story (Wake's INVEST), Adzic's hamburger layer choices |
|
|
175
|
+
|
|
176
|
+
Read it top to bottom as **why → what for → where → in what order → which pieces**.
|
|
177
|
+
|
|
178
|
+
### How a slice lives
|
|
179
|
+
|
|
180
|
+
1. **A slice is the minimum that works.** Its Inc 1 is the thinnest version that goes end to end
|
|
181
|
+
(the walking skeleton): fake or hardcoded where that is cheaper, but the whole path runs.
|
|
182
|
+
2. **Increments thicken the slice.** Each one adds something the user can see or use, made of one
|
|
183
|
+
bite or several. If a group of bites cannot be used or shown on its own, it is part of an
|
|
184
|
+
increment, not one.
|
|
185
|
+
They are *proposed* first, all at once, as a roadmap you can rearrange, and *specified* one at a
|
|
186
|
+
time (`bokata-inc`), so a change of mind costs a table edit and not a rewrite of ACs.
|
|
187
|
+
3. **Enough is a valid ending.** You will often stop with increments and bites left in the
|
|
188
|
+
backlog because the initiative does not need them. That is the appetite of Shape Up and
|
|
189
|
+
Patton's "build less, learn more". Nothing is lost: the untaken bites stay in the slice's
|
|
190
|
+
backlog and on the story map as dashed cards. `bokata-slice <nn> --done` records the decision.
|
|
191
|
+
4. **You can go back.** If what you learn says an earlier slice needs more, set its `Status: open`
|
|
192
|
+
again and specify more increments with `bokata-inc`. Never open a second slice for the same Feature.
|
|
193
|
+
5. **Another slice, another cut.** When the first slice works, the next one takes other Features
|
|
194
|
+
(or other Steps) and again starts with its own thin skeleton.
|
|
195
|
+
|
|
196
|
+
### From Feature to code: where options, bites and ACs fit
|
|
197
|
+
|
|
198
|
+
```
|
|
199
|
+
Feature ─ User Tasks what the user wants functional ACs (a few Requirements)
|
|
200
|
+
└ Step one responsibility, one layer
|
|
201
|
+
└ Options F1-2.1 … F1-2.n 3+ ways to do that Step, cheapest first (the explored space)
|
|
202
|
+
│ prune (obsolete, dominated, filler, contradicts), a target per Step
|
|
203
|
+
└ Bites F1-a … the survivors grouped, titled for the user (the backlog)
|
|
204
|
+
│ proposed increments: the bites grouped into a roadmap — you edit it
|
|
205
|
+
└ Increment bokata-inc: the bites you pick to build now
|
|
206
|
+
└ concrete ACs (Gherkin) — written only when the Inc is picked, you approve them
|
|
207
|
+
└ plan steps → TDD commits → State: done
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
- **Options** are the wide part. A Step is explored with several strategies (Richard Lawrence's
|
|
211
|
+
story-splitting patterns, Gojko Adzic's hamburger method: layers are Steps, the choices in each
|
|
212
|
+
layer are options of rising quality) so the cheap ways are not missed.
|
|
213
|
+
- **Pruning** narrows it, and every drop gets a reason, so you read a handful of bites and not a
|
|
214
|
+
hundred option IDs.
|
|
215
|
+
- **ACs come in two depths.** *Functional* ACs describe the rule per Feature, before any slicing,
|
|
216
|
+
and never depend on an increment. *Concrete* ACs (Given/When/Then, edge cases, errors) are
|
|
217
|
+
written for **one increment** and only for what its options promise: a fake option gets
|
|
218
|
+
scenarios for what the user sees, not for the real thing. `bokata-inc` writes them, and writing
|
|
219
|
+
them any earlier is waste (you may never build that increment).
|
|
220
|
+
- **Proposing is not committing.** `bokata-slice` proposes increments and `bokata-inc` commits to
|
|
221
|
+
one. Between the two, the roadmap is plain markdown you can rearrange; the story map shows it as
|
|
222
|
+
dashed increments and `bokata-slice <nn> --check` validates your edits.
|
|
223
|
+
- **Plan and code** only exist while an increment is in flight: the checklist is deleted when it is
|
|
224
|
+
done, because the tests and the code are the record.
|
|
225
|
+
|
|
226
|
+
### Rules of thumb
|
|
227
|
+
|
|
228
|
+
- If you cannot demo it, it is not an increment.
|
|
229
|
+
- A bite belongs to one User Task. If it touches several, it is too big or badly grouped: split it
|
|
230
|
+
per User Task.
|
|
231
|
+
- Prefer the cheapest option that still makes the path run, then thicken. Replace "later" with the
|
|
232
|
+
name of the bite that will do it.
|
|
233
|
+
- Do not size in days. "Simplest" means fewest dependencies, least infrastructure, most reversible.
|
|
234
|
+
- Do not write ACs for increments you have not picked.
|
|
235
|
+
- Treat `done` as "enough for now", not "everything built".
|
|
236
|
+
|
|
237
|
+
**Further reading.** Jeff Patton, *User Story Mapping* · Alistair Cockburn, *Using Both Incremental
|
|
238
|
+
and Iterative Development* · Craig Larman and Victor Basili, *Iterative and Incremental Development:
|
|
239
|
+
A Brief History* · Kent Beck, *Extreme Programming Explained* (2nd ed., weekly and quarterly
|
|
240
|
+
cycles, incremental design) · Gojko Adzic, *Fifty Quick Ideas to Improve Your User Stories* and
|
|
241
|
+
"Splitting User Stories — the hamburger method" · Richard Lawrence, *Patterns for Splitting User
|
|
242
|
+
Stories* · Ryan Singer, *Shape Up* · Bill Wake, *INVEST in Good Stories*.
|
|
127
243
|
|
|
128
244
|
## Running the harness
|
|
129
245
|
|
|
@@ -134,7 +250,9 @@ the harness. Install first (`npx bokata@latest install`), then:
|
|
|
134
250
|
|---|---|---|
|
|
135
251
|
| Shape | "Shape this idea: …" (loads `bokata-shape`) | `pitch.md` |
|
|
136
252
|
| Feature map (L initiatives) | "bokata-feature-map <slug>" | `features.md`; the dashboard is drawn by the `bokata-render` script |
|
|
137
|
-
| Slice | "bokata-slice <slug>" — pick 1–4 features
|
|
253
|
+
| Slice | "bokata-slice <slug>" — pick 1–4 features | `slices/<nn>-<name>.md` (bites and proposed increments, no specs) + folder `<nn>-<name>/` |
|
|
254
|
+
| *Review* | Edit the proposed increments in the index: move bites, add or drop, reorder rows; then `bokata-slice <nn> --check` | the roadmap you want |
|
|
255
|
+
| Increment | "bokata-inc" (the next one), "bokata-inc 3" (Inc 3) or "bokata-inc F1-b F2-c" (a new one from those bites) — you approve its ACs | `slices/<nn>-<name>/inc-<n>.md` with `State: specified`; the Inc in the index |
|
|
138
256
|
| Plan | In your harness's plan agent: "bokata-plan docs/initiatives/<slug>/slices/<nn>-<name>.md" | checklists in `plan.md`, `State: planned` in the Inc's file |
|
|
139
257
|
| Build | Run `code-executor` with the hand-off line the plan printed | commits, checkboxes, story map kept current |
|
|
140
258
|
| Check | "bokata-status <slug>" | phase, next step; redraws the story map if it lags |
|
|
@@ -209,7 +327,7 @@ Bokata decides **what** each phase produces and **where** it goes; a method skil
|
|
|
209
327
|
| Slot | Default | Loaded by | The job |
|
|
210
328
|
|---|---|---|---|
|
|
211
329
|
| `grill` | `grill-with-docs` | `bokata-shape` | Interview the user until the problem is narrow |
|
|
212
|
-
| `domain` | `domain-modeling` | `bokata-shape`, `bokata-feature-map`, `bokata-
|
|
330
|
+
| `domain` | `domain-modeling` | `bokata-shape`, `bokata-feature-map`, `bokata-inc`; `bokata-plan` only for a concept the glossary lacks | Challenge terms against the glossary; write glossary terms and ADRs as they settle |
|
|
213
331
|
| `code` | `bokata-tdd` | `code-executor` | Turn plan steps into tested commits |
|
|
214
332
|
| `refactor` | `bokata-refactor` | `bokata-tdd`, `design-reviewer` | Change structure without changing behaviour, and name what to change |
|
|
215
333
|
|
|
@@ -244,6 +362,30 @@ Set a role to `null` to use the harness's own default model instead.
|
|
|
244
362
|
Cursor's agent format is generated on a best-effort basis (`name`, `description`, `model`,
|
|
245
363
|
`readonly`); skills work in Cursor either way.
|
|
246
364
|
|
|
365
|
+
## Upgrading
|
|
366
|
+
|
|
367
|
+
Re-run `npx bokata@latest install` after every upgrade: it is safe, and it installs the new skills and agents and removes what a version retired. Then, by the version you come from:
|
|
368
|
+
|
|
369
|
+
**From 3.0.0-beta.5 or earlier:** specifying moved out of `bokata-slice`. The old `--next` flag of
|
|
370
|
+
`bokata-slice` is now `bokata-inc`, and Inc 1 goes through it too: a new slice no longer comes with
|
|
371
|
+
`inc-1.md` and its ACs, it comes with Inc 1 as the first row of the proposed increments. Re-run
|
|
372
|
+
`npx bokata@latest install` to get the new skill. Slices already written keep working: an increment
|
|
373
|
+
state called `sliced` is read as `specified`, and the increments already in `## Increments` stay as they are.
|
|
374
|
+
|
|
375
|
+
**From 3.0.0-beta.3 or earlier:** the story map is now drawn by a script, not by an agent. Re-run `npx bokata@latest install`: it removes the generated `story-map-renderer` agent and the `render` model from `.bokata.json`. The first skill that touches the initiative, or `npx bokata render <docs>/<slug>`, redraws the board; if a slice file breaks the format, the script says which `file:line`.
|
|
376
|
+
|
|
377
|
+
**Slices written as one file** (every earlier bokata): `bokata render` reads only the split layout
|
|
378
|
+
(index + `<nn>-<name>/` folder, see above). Split each slice by hand or with a one-off script: the
|
|
379
|
+
`## Slicing` details to `slicing/F<k>.md`, each `### Inc <n>` body to `inc-<n>.md` with a `State:` line,
|
|
380
|
+
Pruned to `pruned.md`, the Discovery Context, Notes and Trio notes to `context.md`, and
|
|
381
|
+
leave in the index only each Inc's outcome and bites plus the Backlog. Drop the `Plan:` / `Tests:` of
|
|
382
|
+
built Incs and keep whatever is not in the code as `## Pending`. (`closed` is still read as `done`.)
|
|
383
|
+
|
|
384
|
+
**An initiative sliced with bokata ≤ 2.0** (scopes per feature, `Increment options`
|
|
385
|
+
in `features.md`): re-run `npx bokata@latest install` so the `feature-slicer` agent is installed,
|
|
386
|
+
let the old slices finish as they are, and slice the remaining features with the new
|
|
387
|
+
`bokata-slice`. The story map is redrawn from the markdown by the next skill that touches it (or `npx bokata render <docs>/<slug>`).
|
|
388
|
+
|
|
247
389
|
## Development
|
|
248
390
|
|
|
249
391
|
```bash
|
|
@@ -56,9 +56,9 @@ You contribute Rules and Scenarios from the UX/UI lens:
|
|
|
56
56
|
|
|
57
57
|
You are invoked in parallel with PM and Engineer, told to use `--functional` depth mode and to skip discovery (already resolved). Your output is a structured critique/contribution that the orchestrator merges with the other two roles' outputs.
|
|
58
58
|
|
|
59
|
-
### In `bokata-slice` (Slicing review
|
|
59
|
+
### In `bokata-slice` (Slicing review)
|
|
60
60
|
|
|
61
|
-
**
|
|
61
|
+
**Slicing Review — Reviewer:**
|
|
62
62
|
The coordinator dispatches one `feature-slicer` subagent per Feature and gives you the **full
|
|
63
63
|
traces**: every User Task → Steps → options (with strategy and coverage) and the Walking Skeleton
|
|
64
64
|
proposal as option IDs, plus the **Pruned** list and the **Bites** (INVEST groups of options,
|
|
@@ -81,8 +81,10 @@ From the UX/UI lens:
|
|
|
81
81
|
|
|
82
82
|
Contribute a brief **UI Coherence Assessment**: per User Task, whether its skeleton picks form a coherent experience (1-10), the missing cheaper UI options, and the bite titles or splits you propose.
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
### In `bokata-inc` (Concrete ACs for one increment)
|
|
85
|
+
|
|
86
|
+
**Concrete ACs — Contributor:**
|
|
87
|
+
You contribute Rules and Scenarios from the UX/UI lens for **one increment** — the one `bokata-inc` is specifying (Inc 1, the Walking Skeleton, or a later one):
|
|
86
88
|
- The UI states, component reuse and interaction patterns it needs — no more than its options promise
|
|
87
89
|
- The UI/UX capability it unlocks (e.g., "Inc 3 adds a configurable radius slider — a new interaction pattern")
|
|
88
90
|
- All error/empty/loading state Rules for each item
|
|
@@ -57,9 +57,9 @@ You contribute Rules and Scenarios from the feasibility/sustainability lens:
|
|
|
57
57
|
|
|
58
58
|
You are invoked in parallel with PM and Designer, told to use `--functional` depth mode and to skip discovery (already resolved). Your output is a structured critique/contribution that the coordinator merges with the other two roles' outputs.
|
|
59
59
|
|
|
60
|
-
### In `bokata-slice` (Slicing review
|
|
60
|
+
### In `bokata-slice` (Slicing review)
|
|
61
61
|
|
|
62
|
-
**
|
|
62
|
+
**Slicing Review — Reviewer:**
|
|
63
63
|
The coordinator dispatches one `feature-slicer` subagent per Feature and gives you the **full
|
|
64
64
|
traces**: every User Task → Steps → options (with strategy and coverage) and the Walking Skeleton
|
|
65
65
|
proposal as option IDs, plus the **Pruned** list and the **Bites** (INVEST groups of options,
|
|
@@ -82,8 +82,10 @@ From the sustainability lens:
|
|
|
82
82
|
|
|
83
83
|
Contribute a brief **Technical Sustainability Assessment**: per skeleton pick, reversibility and shortcut notes, the missing cheaper technical options, and the dependency or size problems in the bites.
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
### In `bokata-inc` (Concrete ACs for one increment)
|
|
86
|
+
|
|
87
|
+
**Concrete ACs — Contributor:**
|
|
88
|
+
You contribute Rules and Scenarios from the feasibility/sustainability lens for **one increment** — the one `bokata-inc` is specifying (Inc 1, the Walking Skeleton, or a later one):
|
|
87
89
|
- Data model shape, contracts, concurrency/permission guards, offline/sync expectations it needs
|
|
88
90
|
- Whether it builds on earlier increments as they are, or needs to reshape them
|
|
89
91
|
- Boundary condition Rules (e.g., "stories >= 3 paragraphs, <= 5 paragraphs")
|
|
@@ -51,9 +51,9 @@ You contribute Rules and Scenarios from the viability/value lens:
|
|
|
51
51
|
|
|
52
52
|
You are invoked in parallel with Designer and Engineer, told to use `--functional` depth mode and to skip discovery (already resolved). Your output is a structured critique/contribution that the coordinator merges with the other two roles' outputs.
|
|
53
53
|
|
|
54
|
-
### In `bokata-slice` (Slicing review
|
|
54
|
+
### In `bokata-slice` (Slicing review)
|
|
55
55
|
|
|
56
|
-
**
|
|
56
|
+
**Slicing Review — Reviewer:**
|
|
57
57
|
The coordinator dispatches one `feature-slicer` subagent per Feature and gives you the **full
|
|
58
58
|
traces**: every User Task → Steps → options (with strategy and coverage) and the Walking Skeleton
|
|
59
59
|
proposal as option IDs, plus the **Pruned** list and the **Bites** (INVEST groups of options,
|
|
@@ -75,8 +75,10 @@ From the value lens:
|
|
|
75
75
|
|
|
76
76
|
Contribute a brief **Value Assessment**: skeleton picks that ship no value, missing cheaper options, the 2–3 bites you would build next, and the bites you would reorder or reclassify.
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
### In `bokata-inc` (Concrete ACs for one increment)
|
|
79
|
+
|
|
80
|
+
**Concrete ACs — Contributor:**
|
|
81
|
+
You contribute Rules for **one increment** — the one `bokata-inc` is specifying (Inc 1, the Walking Skeleton, or a later one):
|
|
80
82
|
- Priority/launch-blocking rules for that increment
|
|
81
83
|
- The value it unlocks (what becomes possible / measurable / valuable once it ships)
|
|
82
84
|
- Respect its shortcuts: an option that is fake, hardcoded or manual gets rules for what the user sees, not for the real thing
|
package/agents/code-executor.md
CHANGED
|
@@ -55,7 +55,7 @@ contract below, whatever the method.
|
|
|
55
55
|
4. write the deviations and decisions of the build under `## Decisions and notes of this Inc`.
|
|
56
56
|
Then report: commits, deviations, open `~` items and what is in `Pending`. Never mark the slice done —
|
|
57
57
|
the user does that with `bokata-slice <nn> --done`; the next increment comes from
|
|
58
|
-
`bokata-
|
|
58
|
+
`bokata-inc`.
|
|
59
59
|
|
|
60
60
|
## Stop and ask
|
|
61
61
|
|
package/package.json
CHANGED
package/src/install.js
CHANGED
|
@@ -10,6 +10,7 @@ const SKILLS = [
|
|
|
10
10
|
'bokata-shape',
|
|
11
11
|
'bokata-feature-map',
|
|
12
12
|
'bokata-slice',
|
|
13
|
+
'bokata-inc',
|
|
13
14
|
'bokata-plan',
|
|
14
15
|
'bokata-tdd',
|
|
15
16
|
'bokata-refactor',
|
|
@@ -242,7 +243,8 @@ function printSummary(config, activeKeys) {
|
|
|
242
243
|
console.log('Skills (invoke them by name in any harness):');
|
|
243
244
|
console.log(' bokata-shape grill + shape an idea into a pitch');
|
|
244
245
|
console.log(' bokata-feature-map features + functional ACs (large initiatives)');
|
|
245
|
-
console.log(' bokata-slice cut a vertical slice from 1-
|
|
246
|
+
console.log(' bokata-slice cut a vertical slice from 1-4 features; proposes the increments');
|
|
247
|
+
console.log(' bokata-inc specify one increment: its bites and concrete ACs');
|
|
246
248
|
console.log(' bokata-plan write the plan into the slice, inside your plan mode');
|
|
247
249
|
console.log(' bokata-status where an initiative stands');
|
|
248
250
|
console.log('');
|