bokata 3.0.0-beta.6 → 3.0.0-beta.8

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 (38) hide show
  1. package/.agents/skills/bokata-acceptance-criteria/SKILL.md +6 -6
  2. package/.agents/skills/bokata-feature-map/SKILL.md +4 -4
  3. package/.agents/skills/bokata-feature-map/resources/features-template.md +5 -5
  4. package/.agents/skills/bokata-feature-mapper/SKILL.md +1 -1
  5. package/.agents/skills/bokata-feature-slicer/SKILL.md +18 -13
  6. package/.agents/skills/bokata-feature-slicer/resources/breakdown-strategies.md +15 -7
  7. package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +3 -3
  8. package/.agents/skills/bokata-feature-slicer/resources/{phase-2-increments.md → phase-2-options.md} +1 -1
  9. package/.agents/skills/bokata-feature-slicer/resources/phase-3-skeleton.md +7 -6
  10. package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +7 -7
  11. package/.agents/skills/bokata-plan/SKILL.md +30 -30
  12. package/.agents/skills/bokata-plan/resources/plan-template.md +13 -13
  13. package/.agents/skills/bokata-render/SKILL.md +20 -20
  14. package/.agents/skills/bokata-render/assets/story-map.html +86 -86
  15. package/.agents/skills/bokata-render/scripts/render.mjs +208 -178
  16. package/.agents/skills/bokata-shape/SKILL.md +2 -2
  17. package/.agents/skills/bokata-slice/SKILL.md +198 -120
  18. package/.agents/skills/bokata-slice/resources/appetite-template.md +71 -0
  19. package/.agents/skills/bokata-slice/resources/proposed-slices.md +50 -0
  20. package/.agents/skills/bokata-spec/SKILL.md +256 -0
  21. package/.agents/skills/bokata-spec/resources/slice-template.md +49 -0
  22. package/.agents/skills/bokata-status/SKILL.md +29 -29
  23. package/.agents/skills/bokata-tdd/SKILL.md +12 -12
  24. package/README.md +475 -320
  25. package/agents/bokata-product-designer.md +7 -7
  26. package/agents/bokata-product-engineer.md +10 -10
  27. package/agents/bokata-product-manager.md +8 -8
  28. package/agents/code-executor.md +25 -21
  29. package/agents/feature-slicer.md +1 -1
  30. package/bin/bokata.js +1 -1
  31. package/package.json +1 -1
  32. package/src/config.js +1 -1
  33. package/src/install.js +11 -4
  34. package/.agents/skills/bokata-inc/SKILL.md +0 -244
  35. package/.agents/skills/bokata-inc/resources/inc-template.md +0 -36
  36. package/.agents/skills/bokata-slice/resources/proposed-increments.md +0 -42
  37. package/.agents/skills/bokata-slice/resources/slice-template.md +0 -70
  38. /package/.agents/skills/bokata-feature-slicer/resources/{output-template-increments.md → output-template-options.md} +0 -0
package/README.md CHANGED
@@ -1,150 +1,160 @@
1
1
  # Bokata
2
2
 
3
- **Shape, slice and build in small steps** — a small, configurable set of agent skills for
4
- Claude Code, OpenCode, Codex and Cursor, built on Teresa Torres' Product Trio.
3
+ **Shape, slice and build in small steps.** A small, configurable set of agent skills for
4
+ Claude Code, OpenCode, Codex and Cursor.
5
5
 
6
+ Big features fail in a predictable way: you specify everything up front, build layer by layer,
7
+ and learn that something was wrong only when the last layer lands. Bokata does the opposite. You
8
+ decide how much you want in each round, your **appetite**; it cuts that into **thin vertical
9
+ slices that run end to end**, grows them **one slice at a time**, and writes the detailed spec
10
+ **only for the slice you are about to build**. You stop when it is enough.
11
+
12
+ Built on Ryan Singer's *Shape Up*, Jeff Patton's story mapping, Gojko Adzic's hamburger method,
13
+ Teresa Torres' Product Trio lenses, Kent Beck's TDD and more: see [Sources](#sources), which says
14
+ for each one what bokata takes and what it changes.
15
+
16
+ ```bash
17
+ npx bokata@latest install # then name a skill in your harness: "bokata-shape …"
6
18
  ```
7
- shape → feature map → slice → inc → plan → code (TDD)
8
- pitch features bites and one increment: checklist commits
9
- a roadmap bites + ACs
19
+
20
+ ```
21
+ shape → feature map → slice → spec → plan → code (TDD)
22
+ pitch features an appetite cut one slice: checklist commits
23
+ into bites and concrete ACs
24
+ proposed slices you approve
10
25
  ```
11
26
 
12
27
  - **Skills only, no commands.** Every phase is a skill you invoke by name. Use all of them or
13
28
  just the ones you want.
14
29
  - **Spec-first, code as truth.** The documents bokata writes are working material for the
15
30
  initiative at hand. Delete them when it ships and nothing is lost: the tests describe the
16
- behaviour, and the ADRs record the *why*.
17
- - **Product Trio** (PM, Designer, Engineer) subagents review approaches, features and slices
18
- in parallel; you coordinate and decide.
19
- - **Agnostic.** Output folder, templates and the method skills (grill, domain, code,
20
- refactor) are set in `.bokata.json`. Orchestration (Orca, tmux, plain terminals) stays yours.
21
-
22
- ## Install
31
+ behaviour and the ADRs record the *why*.
32
+ - **Three lenses review, you decide.** PM, Designer and Engineer subagents read approaches,
33
+ features and slices in parallel, in the spirit of Torres' Product Trio. They are lenses on the
34
+ same material, not three people talking to customers: see [Honest limits](#what-it-touches-in-your-project-and-what-it-costs).
35
+ - **Agnostic.** Output folder, templates and the method skills (grill, domain, code, refactor)
36
+ are set in `.bokata.json`. Orchestration (Orca, tmux, plain terminals) stays yours.
23
37
 
24
- ```bash
25
- npx bokata@latest install # detects .claude/ .cursor/ .opencode/ .codex/
26
- npx bokata@latest install --claude --opencode
27
- npx bokata@latest sync # regenerate agents after editing .bokata.json
28
- ```
29
-
30
- - Skills are copied once to `.agents/skills/` and **symlinked** from `.claude/skills/` and
31
- `.cursor/skills/`. OpenCode and Codex read `.agents/skills/` directly.
32
- - Agents are generated per harness from one neutral source: `.claude/agents/*.md`,
33
- `.opencode/agents/*.md`, `.codex/agents/*.toml`, `.cursor/agents/*.md`.
34
- - The model of each role (`trio`, `executor`, `reviewer`) is asked at install time and saved
35
- in `.bokata.json`; change it there and run `sync`.
36
- - Re-running `install` is safe. It also removes the commands bokata 2.x installed. (2.x also
37
- wrote `~/.codex/prompts/bokata-*.md` globally; delete those by hand if you used Codex.)
38
- - The default grill and domain methods are [`grill-with-docs` and
39
- `domain-modeling`](https://github.com/mattpocock/skills) by Matt Pocock. Install them with
40
- their own installer, or point `methods.grill` / `methods.domain` elsewhere (see
41
- [Methods](#methods)).
42
-
43
- ## The flow
38
+ **Quick index**
44
39
 
45
- | Size | Path |
40
+ | I want to… | Go to |
46
41
  |---|---|
47
- | **S** — a fix or tweak | plan mode → `bokata-tdd` (no documents) |
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` |
50
-
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`.
53
-
54
- ### Skills
55
-
56
- | Skill | What it does | Writes |
42
+ | Understand the levels (initiative, appetite, slice, bite) and see an example | [The idea](#the-idea-with-one-example) |
43
+ | Learn the method (vertical slicing, iterative vs incremental) | [The method](#the-method-vertical-slicing-iterative-and-incremental) |
44
+ | Pick a path by size (S, M, L) and see the lifecycle | [How it flows](#how-it-flows) |
45
+ | See what each skill does, how and why | [What happens at each step](#what-happens-at-each-step) |
46
+ | Check what it reads, writes and costs before adopting it | [What it touches in your project](#what-it-touches-in-your-project-and-what-it-costs) |
47
+ | Change a method, a template, a path or a model | [What you can configure](#what-you-can-configure) |
48
+ | Install it | [Install](#install) |
49
+ | See the visual board | [The story map](#the-story-map) |
50
+ | Know whose ideas it is built on, and what changed | [Sources](#sources) |
51
+ | Go deeper (per-skill pages, reference, config) | [Going deeper](#going-deeper) |
52
+
53
+ ## The idea, with one example
54
+
55
+ *The name is a nod to* bocata *(Spanish for a sandwich) and to Gojko Adzic's hamburger method, where the slices and the bites come from.*
56
+
57
+ Say you have a video-analysis app where users draw annotations on moments of a clip. The
58
+ initiative is **"download a clip with its annotations burned in"**: today "Download" returns the
59
+ plain video and the drawings are lost. Bokata works on it in levels, from the *why* down to the
60
+ pieces you actually build:
61
+
62
+ | Level | It answers | In the example |
57
63
  |---|---|---|
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` |
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) |
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` |
63
- | `bokata-tdd` | Default code method: an acceptance test per increment, then strict small-step TDD with evidence rules | commits |
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 |
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 | — |
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` |
67
- | `bokata-feature-mapper`, `bokata-feature-slicer`, `bokata-acceptance-criteria` | The methods the phases use; usable on their own | — |
68
-
69
- ### Agents
70
-
71
- | Agent | Role | Access |
72
- |---|---|---|
73
- | `bokata-product-manager` / `-designer` / `-engineer` | Product Trio reviewers (`bokata-slice`) and rule contributors (`bokata-inc`) | read |
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 |
75
- | `design-reviewer` | Reviews one step's diff with `methods.refactor` and the coding standards | read |
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 |
77
-
78
- **read** means no edit tool, not no shell: read-only agents keep a shell to run read commands, and
79
- their instructions forbid writing files (including `>`, `tee`, `sed -i`); the harness does not
80
- enforce that last part.
64
+ | **Initiative** | Why are we doing this, and what is out? | `pitch.md`: a user wants to take an annotated clip to a room with no internet, or into a video editor. Chosen approach: render in the browser, no new server. Out: sharing links, editing annotations from the export. |
65
+ | **Feature** | What can the user achieve? | *Download an annotated video*, split into User Tasks: start the download, follow the progress, cancel it, receive the file, recover from a failure. |
66
+ | **Appetite** | How much of these Features do we want now? | Appetite 01 takes that feature and aims to make the download usable. It stays open until **you** say it is enough. |
67
+ | **Slice** | What can the user see or do that is new? | **Slice 1**, the *walking skeleton*: press Download and get an MP4 with each annotation drawn and held for 5 seconds. **Slice 2**: a real progress percentage. **Slice 3**: recover from a failure. |
68
+ | **Bite** | What is the smallest worthwhile piece to pick? | "Show the progress as a percentage", "Retry or download without annotations". A slice is made of one or more bites. |
69
+
70
+ **One idea, three sizes.** Everything is an *increment*: something you add on top of what already
71
+ exists. Only the size changes. A bite is the smallest, a slice gathers the bites that can be shown
72
+ together, and an appetite gathers slices until it is enough. Each one gives you a signal about
73
+ whether you are on the right path, and the signal differs: technical (does the architecture
74
+ hold?), from users (do they understand and use it?), for the business (is it worth it?), or it
75
+ resolves an uncertainty. A bite is the unit you **choose** (a line of the backlog); a slice is the
76
+ unit you **demo** (a row of the roadmap).
77
+
78
+ An **appetite** here is an amount of *scope*, not of time. Shape Up's appetite is a time budget;
79
+ bokata has no clock, so what stops an appetite is your judgement that it is enough.
80
+
81
+ Underneath the bites sits the explored space. Each User Task is cut into **Steps** (one
82
+ responsibility, one layer), and each Step has **options**, three or more ways to do it, cheapest
83
+ first. For *Follow the progress*, the Step "show the progress" has the options: a spinner → a
84
+ percentage → a percentage with named phases ("Preparing…", "Creating the video…") → the
85
+ percentage in the browser tab title. Options are explored widely and then **pruned**, and every
86
+ drop gets a reason: "email me when it is ready" is dropped as `contradicts`, because the pitch
87
+ chose to render in the browser, with no server to send mail from. What survives is grouped into
88
+ bites, so you read a handful of bites instead of a hundred option IDs.
81
89
 
82
- During trio reviews the **main thread** is the neutral coordinator: it applies
83
- non-conflicting findings, settles factual conflicts against the artifacts, and escalates
84
- genuine product trade-offs to you as one decision point with a recommended default.
90
+ ```
91
+ Initiative ─ pitch.md
92
+ └ Feature ─ User Tasks · functional ACs (the rule, before any slicing)
93
+ └ Appetite ─ what you want for now, and its Features (usually 1–4); open until you say it is enough
94
+ ├ Steps → options → prune → Bites (the backlog)
95
+ └ Slices (a roadmap of bites, edited by you)
96
+ └ concrete ACs (Given/When/Then) — written only when the slice is picked
97
+ └ plan checklist → TDD commits → done
98
+ ```
85
99
 
86
- ### Hierarchy
100
+ Seen on the story map, an appetite looks like this: Features are the columns, slices are the
101
+ bands, bites are the cards.
87
102
 
88
103
  ```
89
- Initiative (pitch.md)
90
- └ Features (features.md — the summary: backbone, functional ACs, one Slice line per feature)
91
- └ Slice (slices/<nn>-<name>.md — a short index; 1–4 features → usable end to end; open until you mark it done)
92
- ├ Slicing (slices/<nn>-<name>/slicing/F<k>.md — per feature: User Task → Step → options F1-2.3,
93
- │ with strategy and coverage; pruned with a reason in pruned.md, a target per Step)
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)
104
+ Feature A Feature B
105
+ Task 1 Task 2 Task 3 Task 4
106
+ Slice 1 ── [w1] [w2] [w3] [w4] walking skeleton: the thinnest path
107
+ Slice 2 ── [a] [b] that runs across the whole flow
108
+ Slice 3 ── [c] [d] thickening what already works
109
+ Backlog ── [e] [f] untaken bites: stopping here is fine
103
110
  ```
104
111
 
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
-
108
- The index is short on purpose, and nothing is said twice: an Inc's outcome and bites live in the
109
- index, its state and decisions in its own file, so `bokata-inc`, the plan and the executor read a few
110
- KB instead of the whole history, and Incs built in parallel worktrees never edit the same file.
111
- `npx bokata render <docs>/<slug>` draws the whole initiative as one page you can open in a
112
- browser, and `--check` validates the markdown.
113
-
114
- A feature belongs to one slice only. An **option** is one way to do one Step; a **bite** groups
115
- the options of one or several Steps that make sense together (small, INVEST); an **increment** is
116
- the walking skeleton or one or more bites — whatever lets the user see or do something new.
117
- Options are explored widely and then pruned (`obsolete`, `dominated`, `filler`, `contradicts`),
118
- so you prioritize a handful of bites instead of a hundred option IDs.
119
-
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`.
126
-
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 |
112
+ A feature has one *open* appetite at a time, and `bokata-slice` creates **one appetite per run**: you
113
+ say what you want for now (or let it propose some) and pick the Features that deliver it — usually 1–4 — and run it again for the next one. What grows
114
+ inside an appetite are its *slices*, not more appetites. Nothing is built, and no detailed AC
115
+ written, until you pick a slice.
116
+
117
+ ### What a roadmap looks like
118
+
119
+ After `bokata-slice`, the example appetite is a short table you can edit by hand. Nothing is
120
+ specified yet:
121
+
122
+ | Slice | Outcome | Bites |
123
+ |---|---|---|
124
+ | **1 — Walking skeleton** | Press Download on an annotated clip and get an MP4 with each annotation drawn and held for 5 s, with the original audio. Cancel works; a failure shows an error. Progress is a plain spinner. | F1-w1 … F1-w4 |
125
+ | **2 — Look like the app** | Annotation text uses the same font as in the app, and the file is named after the clip. | F1-m, F1-p |
126
+ | **3 — Recover** | After a failure the dialog stays open: retry, or download without annotations. | F1-t |
127
+ | **4 — Progress and responsive cancel** | A percentage that advances, and cancelling frees the computer at once. | F1-e, F1-i |
128
+ | **5 — Browsers that cannot render** | They get the plain MP4 with a notice that says why and how to get the annotations. | F1-a, F1-d |
129
+ | *Backlog* | Progress in the tab title, a share sheet on mobile, a choice of hold time… | untaken bites |
130
+
131
+ You specify Slice 1, build it, learn from it, and only then specify Slice 2, so a change of mind
132
+ costs a table edit. If after Slice 5 the users are happy, you run `bokata-slice 01 --done` and the
133
+ backlog stays untouched. A bigger initiative looks the same: say a turn-based mobile game, with
134
+ seven features and three appetites, each with its own roadmap.
134
135
 
135
136
  ## The method: vertical slicing, iterative and incremental
136
137
 
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.
138
+ This section is the *why* behind the levels. You do not need it to run the skills, but it is the
139
+ quickest way to learn the practice bokata automates.
139
140
 
140
141
  ### Vertical, not horizontal
141
142
 
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.
143
+ A **horizontal** split cuts by technical layer: first the database, then the API, then the
144
+ screens. Nothing works until the last layer lands, and you learn nothing until then. A
145
+ **vertical** slice cuts through every layer for a thin piece of behaviour, so it works end to end
146
+ and can be shown, tested and corrected. The first vertical slice of a product is what Alistair
147
+ Cockburn calls a *walking skeleton*: the thinnest thing that really runs from the user's action to
148
+ the stored result. Jeff Patton's story maps draw the same idea as *release slices*.
149
+
150
+ Two words to keep apart. On a story map a slice is drawn as a **horizontal band** across the
151
+ Features, and it is "vertical" because it crosses the layers, not because of how it is drawn.
152
+ And *vertical slice architecture* (organising code by feature instead of by layer) is a different
153
+ thing that happens to share the name.
154
+
155
+ *In the example:* "build the rendering engine, then the progress API, then the download dialog" is
156
+ horizontal. Slice 1 is vertical: pressing Download produces a file that really carries the
157
+ annotations, with a plain spinner and no polish, and you can already demo it.
148
158
 
149
159
  ### Iterative and incremental are two different moves
150
160
 
@@ -156,235 +166,380 @@ Development*; Larman and Basili, *Iterative and Incremental Development: A Brief
156
166
  | Strategy | **Staging**: grow the product piece by piece, each piece finished | **Rework**: come back to something already built and improve it |
157
167
  | Question | "What do we add next?" | "What did we learn that makes us revisit it?" |
158
168
  | 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.
169
+ | In bokata | A new appetite: other Features, finished one group after another | Inside an appetite: Slice 1 sketches the whole flow with crutches, and each later slice replaces a cheap option of a Step already built with a better one |
170
+
171
+ So bokata is mostly **iterative inside an appetite and incremental between appetites**. The ladder
172
+ of options per Step is what makes the iterating cheap: the hardcoded list of Slice 1 is not a
173
+ mistake to fix later, it is the first rung.
174
+
175
+ Bokata has **no "iteration" level** on purpose. An iteration is a unit of *time* (a Sprint, a
176
+ Shape Up cycle) and bokata plans *scope*. A time box can finish half a slice or three, and mixing
177
+ the two makes the plan depend on the calendar. Iterating is something you *do* to an appetite,
178
+ not a layer it contains.
179
+
180
+ ### How an appetite lives
181
+
182
+ 1. **An appetite is the part you want now.** Its Slice 1 is the thinnest version that goes end to
183
+ end: fake or hardcoded where that is cheaper, but the whole path runs.
184
+ 2. **Slices thicken the appetite.** Each one adds something the user can see or use. If a group
185
+ of bites cannot be used or shown on its own, it is part of a slice, not one. Slices are
186
+ *proposed* all at once, as a roadmap you can rearrange, and *specified* one at a time, so a
187
+ change of mind costs a table edit and not a rewrite of ACs.
188
+ 3. **Enough is a valid ending.** You will often stop with bites left in the backlog because the
189
+ initiative does not need them (say, progress in the tab title or a share sheet on mobile). That
190
+ is the spirit of Shape Up's appetite, without its clock, and of Patton's "minimize output,
191
+ maximize outcome and impact". Nothing is lost: the untaken bites stay in the backlog and on
192
+ the story map as dashed cards.
193
+ 4. **You can go on, without going back.** If what you learn says you need more, a **new** appetite
194
+ adopts what the done one left (`bokata-slice "<appetite>" --from <nn>`): the untaken bites, their
195
+ trace and what was pruned. The built slices stay as history, and the new appetite has its own
196
+ sentence and its own cut line.
197
+ 5. **Another appetite, another cut.** When the first one works, the next one takes other Features
198
+ and starts with its own thin skeleton.
199
+
200
+ ### Two depths of acceptance criteria
201
+
202
+ - **Functional ACs** describe the rule per Feature, before any slicing, and never depend on a
203
+ slice: "downloading a clip with annotations produces a video that shows them".
204
+ - **Concrete ACs** (Given/When/Then, edge cases, errors) are written for **one slice** and only
205
+ for what its options promise. If Slice 1 shows a plain spinner, its scenarios cover the spinner,
206
+ not a percentage that advances. `bokata-spec` writes them, and writing them earlier is waste,
207
+ because you may never build that slice.
208
+
209
+ **Proposing is not committing.** `bokata-slice` proposes slices and `bokata-spec` commits to
210
+ one. Between the two, the roadmap is plain markdown you can rearrange, and
211
+ `bokata-slice <nn> --check` validates your edits.
212
+
213
+ ### What "valuable" means for a bite
214
+
215
+ Bokata's bites follow Bill Wake's INVEST, with three adaptations. *Valuable* means the bite gives
216
+ the feedback you need to know whether you are on the right path (technical, from users, for the
217
+ business, or a resolved uncertainty), which is wider than "the user sees something new".
218
+ *Estimable* means its options are specific enough to size, because bokata never estimates in
219
+ time. *Independent* allows `depends on`: a bite can be built after the ones it names.
225
220
 
226
221
  ### Rules of thumb
227
222
 
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.
223
+ - If you cannot demo it, it is not a slice.
224
+ - A bite belongs to one User Task. If it touches several, it is too big: split it per User Task.
231
225
  - Prefer the cheapest option that still makes the path run, then thicken. Replace "later" with the
232
226
  name of the bite that will do it.
233
227
  - Do not size in days. "Simplest" means fewest dependencies, least infrastructure, most reversible.
234
- - Do not write ACs for increments you have not picked.
228
+ - Do not write ACs for slices you have not picked.
235
229
  - Treat `done` as "enough for now", not "everything built".
236
230
 
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*.
231
+ **Further reading.** Jeff Patton, *User Story Mapping* · Alistair Cockburn, *Using Both
232
+ Incremental and Iterative Development*, and the *Elephant Carpaccio* exercise · Craig Larman and
233
+ Victor Basili, *Iterative and Incremental Development: A Brief History* · Henrik Kniberg, *Making
234
+ sense of MVP* (the skateboard to the car) · Gojko Adzic, "Splitting User Stories — the hamburger
235
+ method" · Richard Lawrence, *Patterns for Splitting User Stories* · Ryan Singer, *Shape Up* ·
236
+ Bill Wake, *INVEST in Good Stories* · Steve Freeman and Nat Pryce, *Growing Object-Oriented
237
+ Software, Guided by Tests*.
243
238
 
244
- ## Running the harness
239
+ ## How it flows
245
240
 
246
- The flow is **skills you name in conversation**; agents are selected or dispatched depending on
247
- the harness. Install first (`npx bokata@latest install`), then:
241
+ `bokata-shape` proposes the size; you confirm it.
248
242
 
249
- | Step | You say | Produces |
250
- |---|---|---|
251
- | Shape | "Shape this idea: …" (loads `bokata-shape`) | `pitch.md` |
252
- | Feature map (L initiatives) | "bokata-feature-map <slug>" | `features.md`; the dashboard is drawn by the `bokata-render` script |
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 |
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 |
257
- | Build | Run `code-executor` with the hand-off line the plan printed | commits, checkboxes, story map kept current |
258
- | Check | "bokata-status <slug>" | phase, next step; redraws the story map if it lags |
259
-
260
- The story map has no step of its own: the skills above and `code-executor` run the `bokata-render`
261
- script (instant, no model) whenever the markdown changes.
262
-
263
- ### Per harness
264
-
265
- - **OpenCode** — skills read from `.agents/skills/`; agents install to `.opencode/agents/`.
266
- Name the skill in the session. Primary-capable agents (`code-executor`) appear in the agent
267
- switcher (Tab); `mode: subagent` agents (the trio, `feature-slicer`, `design-reviewer`)
268
- never do — the session dispatches them itself. Headless:
269
- `opencode run --agent code-executor "Build slice docs/initiatives/<slug>/slices/01-<name>.md"`
270
- - **Claude Code** — skills install to `.claude/skills/` (invoke by name or `/bokata-shape`);
271
- agents to `.claude/agents/`. The session spawns subagents by name. Headless:
272
- `claude --agent code-executor "Build slice …"`
273
- - **Codex** — agents install to `.codex/agents/*.toml`; skills read from `.agents/skills/`.
274
- Ask in plain language ("use the code-executor agent to build slice …"); `/agent` switches
275
- between agent threads.
276
- - **Cursor** — skills in `.cursor/skills/`, agents in `.cursor/agents/`; pick the agent from
277
- Cursor's selector or name the skill in chat.
278
-
279
- ### Orchestrators
280
-
281
- Increments marked `Parallel-safe: yes` can run in separate worktrees at the same time.
282
-
283
- - **Orca** — spawn the executor in a fresh worktree with the hand-off line:
284
- `orca worktree create --name <task> --no-parent --agent codex --prompt "<hand-off line>" --json`
285
- (or `--agent claude`). For a worktree that already exists:
286
- `orca agent launch --agent codex --worktree <id> --prompt "<hand-off line>"`.
287
- - **Herdr** — split a pane, start the agent in it, and send the line:
288
- `herdr pane split --current --direction right --cwd "$PWD" --no-focus` →
289
- `herdr agent start executor --kind codex --pane <id>` →
290
- `herdr agent prompt executor "<hand-off line>" --wait`
291
- - **Plain terminals** — open a worktree and run your harness's headless command with the
292
- hand-off line.
293
-
294
- ## Configuration — `.bokata.json`
295
-
296
- Everything is optional; these are the defaults.
297
-
298
- ```jsonc
299
- {
300
- "docs": "docs/initiatives", // where initiative folders go
301
- "story_map": true, // story-map.html dashboard; false = markdown only
302
- "memory": { // long-lived files bokata reads (and shape updates)
303
- "constitution": "CONSTITUTION.md",
304
- "glossary": "GLOSSARY.md",
305
- "standards": "CODING_STANDARDS.md",
306
- "adrs": "docs/adrs",
307
- "adr_template": null // null = bokata's light MADR template
308
- },
309
- "templates": { "pitch": null, "features": null, "slice": null }, // your own templates
310
- "methods": { // swap a method skill (see Methods)
311
- "grill": "grill-with-docs",
312
- "domain": "domain-modeling",
313
- "code": "bokata-tdd",
314
- "refactor": "bokata-refactor"
315
- },
316
- "harnesses": [], // filled by install
317
- "models": { … } // per harness: trio | reviewer | executor (see below)
318
- }
243
+ | Size | Path |
244
+ |---|---|
245
+ | **S** — a fix or tweak | plan mode → `bokata-tdd` (no documents) |
246
+ | **M** — one clear feature | `bokata-shape` → `bokata-slice` → `bokata-spec` → `bokata-plan` → `code-executor` |
247
+ | **L** — several features | `bokata-shape` → `bokata-feature-map` → `bokata-slice` (an appetite) → `bokata-spec` → `bokata-plan` → `code-executor` |
248
+
249
+ Each skill is described under [What happens at each step](#what-happens-at-each-step).
250
+
251
+ Every slice, the walking skeleton included, goes through the same loop:
252
+
253
+ ```
254
+ proposed → specified → planned → building → done
255
+ slice spec plan executor executor
256
+ (you edit) (you approve
257
+ the ACs)
319
258
  ```
320
259
 
321
- ### Methods
260
+ When you decide the appetite is enough, run `bokata-slice <nn> --done`. The full command
261
+ reference, the agents, the files each skill writes and how to run each harness are in
262
+ [docs/reference.md](docs/reference.md).
263
+
264
+ ## What happens at each step
265
+
266
+ Every step is a skill you name in conversation. This is what each one does, how, and why it is
267
+ built that way. (Each skill has an exhaustive page in [docs/skills.md](docs/skills.md).)
268
+
269
+ ### Three habits shared by every step
270
+
271
+ - **Three lenses review, you decide.** Where a decision is hard to reverse, three subagents
272
+ read the same material in parallel, each from one lens: the **Product Manager** (value and
273
+ viability), the **Designer** (UX/UI craft and states) and the **Engineer** (feasibility and
274
+ technical sustainability). The main thread acts as a *neutral coordinator*: it applies what
275
+ does not conflict, settles factual disagreements against the pitch, the code or the ADRs, and
276
+ brings you only the genuine trade-offs, **all at once**, as one numbered decision with each
277
+ lens's position and a recommended default.
278
+ - **It asks in rounds, and only where it is blocked.** Questions come together, numbered, each
279
+ with a recommended answer worded so that "yes" accepts it. It reads the code before asking
280
+ what the code already says, and skips whatever your pitch or spec has already settled.
281
+ Facts come from the code; decisions are yours.
282
+ - **Explore wide, commit late.** Options are generated generously, pruned with a stated reason
283
+ and specified only when picked. Subagents receive file paths, never pasted content, and the
284
+ visual story map is drawn by a script, not by a model.
285
+
286
+ ### 1. `bokata-shape` — decide what to build → `pitch.md`
287
+
288
+ - **Based on.** Ryan Singer's *Shape Up* (pitch, breadboards, fat-marker sketches, rabbit holes,
289
+ no-gos) and the three Product Trio lenses of Teresa Torres, which review the approaches.
290
+ - **What.** Turns a raw idea into a *pitch*: the narrowed problem, the chosen approach, rabbit
291
+ holes, no-gos, a one-line ambition and a size (S, M or L).
292
+ - **How.** A grill interview narrows the problem until two people would sketch the same
293
+ solution space, always returning to Shape Up's question, "what is the specific situation where
294
+ the current way fails?". Glossary terms and ADRs are written as they settle. Then it sketches
295
+ 2–3 approaches as Mermaid *breadboards* (a rough low-fi HTML sketch only when layout is part
296
+ of the decision), runs one Trio pass over them, and lets you choose the approach, the cuts
297
+ and the no-gos.
298
+ - **Why.** Shaping before slicing means the team solves the right, bounded problem. There are no
299
+ time estimates: the *ambition* line ("minimum a coach can use in a real match") is the
300
+ tie-breaker when two solutions compete.
301
+ - **Configurable.** The grill method (`methods.grill`, default `grill-with-docs`) and the
302
+ domain method (`methods.domain`, default `domain-modeling`; `null` skips the domain passes) are
303
+ skills you can swap for your own. Also the pitch template (`templates.pitch`), where your
304
+ constitution, glossary and ADRs live (`memory.*`) and the trio's model.
305
+
306
+ ### 2. `bokata-feature-map` — map the whole journey (L only) → `features.md`
307
+
308
+ - **What.** Breaks a large initiative into *Features* (`[Actor] [Verb] [Object]`) and *User Tasks*
309
+ (`[Verb] [Object]`), each with functional acceptance criteria.
310
+ - **How.** It uses Jeff Patton's story-mapping backbone and asks only about the gaps your pitch
311
+ leaves. The Trio reviews the backbone; then each lens contributes *Rules* (not scenarios) and
312
+ an Example Mapping pass turns them into short WHEN/THEN scenarios. A domain pass checks every
313
+ word against your glossary. A *System Task* is kept only when it is an autonomous transition,
314
+ never as a reaction to something the user already does.
315
+ - **Why.** "Mile wide, inch deep": see the whole scope before drilling into any part. Functional
316
+ ACs state each rule once, independent of how you later slice the work.
317
+ - **Configurable.** The domain method, the `features` template, the trio's model and
318
+ `story_map` (`false` writes markdown only, with no HTML board).
319
+
320
+ ### 3. `bokata-slice` — cut an appetite thin, end to end → a proposal
321
+
322
+ - **What.** Takes your appetite for this round — one sentence, or none and it proposes two or three with their cut lines — and the Features that deliver it (usually 1–4, a suggestion rather than a limit), and produces the *backlog of bites*
323
+ plus a *proposed roadmap* of slices, the walking skeleton first. It writes **no specs**: you
324
+ review the roadmap and edit it by hand.
325
+ - **How.** One `feature-slicer` subagent per Feature, in parallel, works in four phases. It cuts
326
+ each User Task into **Steps** (one responsibility, one layer). It writes **3+ options per
327
+ Step**, cheapest first, using at least two of 16 splitting strategies drawn from Richard
328
+ Lawrence's story-splitting patterns, Gojko Adzic and David Evans' *Fifty Quick Ideas*, Mike
329
+ Cohn's SPIDR and linguistic cues, and always including a cheap one (a manual crutch, fake data,
330
+ zero/one/many). It checks coverage against the functional ACs, picks the walking skeleton, then
331
+ **prunes** each discarded option with a reason (`obsolete`, `dominated`, `filler`,
332
+ `contradicts`) and groups the rest into INVEST bites (Bill Wake) titled in the user's language.
333
+ A mechanical gate counts everything before the Trio reviews the full traces and the bites; real
334
+ trade-offs come to you.
335
+ - **Why.** Exploring is wide so nothing cheap is missed, while the backlog stays narrow: you read
336
+ ten bites, not a hundred option IDs. The whole trace is written out, so every drop can be
337
+ audited and challenged.
338
+ - **Configurable.** The `appetite` template and the trio's model (the slicers use it too).
339
+ **One run creates one appetite**: you state the appetite and pick the Features still free, and run `bokata-slice`
340
+ again for the next appetite (`01`, `02`, `03`…). You never create an appetite by hand; what you
341
+ edit by hand is its roadmap of slices.
342
+
343
+ ### 4. `bokata-spec` — specify one slice → `slice-<n>.md`
344
+
345
+ - **What.** Commits to one slice (the next, `bokata-spec 3`, or bites you name) and writes its
346
+ concrete acceptance criteria in Given/When/Then, which **you approve**.
347
+ - **How.** It checks that the bites are free and their dependencies met, and that Slice 1 covers
348
+ every User Task. It re-prunes whatever the slice makes obsolete, but never an option a slice
349
+ has taken. The Trio contributes rules *respecting each option's shortcut* (a faked option gets
350
+ scenarios for what the user sees, not for the real thing). Then the AC skill writes the
351
+ scenarios with concrete data: happy path, edge cases, boundaries, errors, permissions. It
352
+ writes a *draft* and waits for your approve / change / cancel.
353
+ It also reads the optional `## Learned` notes of the slices already built (tagged `technical`,
354
+ `user`, `business` or `uncertainty`, each saying which bites it affects) and offers to adjust
355
+ them; it never changes a bite silently.
356
+ - **Why.** Specs go stale and you may never build that slice, so they are written *just in
357
+ time*, only for what you are about to build. The approval gate is the last point where a wrong
358
+ scenario is cheap.
359
+ - **Configurable.** The domain method and the trio's model.
360
+
361
+ ### 5. `bokata-plan` — turn it into a checklist → `plan.md`
362
+
363
+ - **What.** A contract for your harness's own plan mode: it turns a *specified* slice into
364
+ a checklist. It refuses a slice that is not specified yet.
365
+ - **How.** The first step is the slice's **acceptance test**, at the highest seam the unit
366
+ runner reaches cheaply (the outer loop of *Growing Object-Oriented Software, Guided by Tests*).
367
+ Every other step is one small, tested change that ends in a commit and names the scenario it
368
+ proves. Shortcuts are respected (a "hardcoded list" is built hardcoded). Slices that touch
369
+ disjoint files are marked `Parallel-safe`, and decisions only you can make are asked in one
370
+ round.
371
+ - **Why.** The executor is often a different tool and model, so the plan fixes where it lands
372
+ and in what shape. It is temporary: deleted when the slice is done.
373
+ - **Configurable.** Mostly nothing: it follows your harness's plan mode. The domain method is
374
+ loaded only when the plan needs a concept the glossary lacks.
375
+
376
+ ### 6. `code-executor` with `bokata-tdd` — build it → commits
377
+
378
+ - **What.** Builds the planned slice in small committed steps and checks the plan off.
379
+ - **How.** An acceptance test comes first, committed as an expected failure. Then each step is
380
+ strict TDD: one failing test, the minimum code, a separate refactor, a verification run and
381
+ one Conventional Commit. Evidence rules apply: prove the RED in the commit body, never commit
382
+ red, record real gate output. A `design-reviewer` subagent reviews each non-trivial diff with
383
+ `bokata-refactor` (Kent Beck's four rules of simple design, *Tidy First?* tidyings, Fowler's
384
+ code smells). The executor never pushes, and it stops and asks when a scenario, an ADR and
385
+ the plan disagree.
386
+ - **Why.** Small, proven steps keep the code the source of truth and make a slice
387
+ reviewable commit by commit.
388
+ - **Configurable.** The code method (`methods.code`, default `bokata-tdd`), the refactor method
389
+ (`methods.refactor`, default `bokata-refactor`), your own coding rules (`memory.standards`, which
390
+ always win over any method) and the executor and reviewer models.
391
+
392
+ ### Around the flow: `bokata-status` and `bokata-render`
393
+
394
+ - **`bokata-status`** (read-only) tells you the phase, each slice's state, open unknowns and
395
+ the next step.
396
+ - **`bokata-render`** (a script, no model) draws `story-map.html` from the markdown: instant,
397
+ deterministic and reproducible. See [The story map](#the-story-map).
398
+
399
+ ## What it touches in your project, and what it costs
400
+
401
+ Useful to know before you adopt it:
402
+
403
+ - **The installer is local.** It copies skills to `.agents/skills/`, symlinks them into
404
+ `.claude/` and `.cursor/`, generates the agents of each harness and writes `.bokata.json`. It
405
+ writes nothing outside the project and makes no network calls.
406
+ - **It reads your project's memory**, if the files exist: `CONSTITUTION.md`, `GLOSSARY.md`,
407
+ `CODING_STANDARDS.md`, `AGENTS.md`, your ADRs and, always, the code. A missing file is skipped,
408
+ never created empty.
409
+ - **It grows a glossary and ADRs for you.** While you shape, map and specify, the *domain* method
410
+ challenges your words: a term your glossary lists under *Avoid* is replaced, two words for one
411
+ concept (or one for two) are put to you, and a new concept is named **with you** and added to
412
+ `GLOSSARY.md`, which is created the first time a term settles. Later skills then use those words
413
+ in names, scenarios and plan steps. An ADR is offered only when a decision is hard to reverse,
414
+ surprising without context and the result of a real trade-off.
415
+ - **Its working documents live in one folder** per initiative (`docs/initiatives/<slug>/`:
416
+ `pitch.md`, `features.md`, `appetites/`, `plan.md`, `story-map.html`). They are temporary: delete
417
+ them when the initiative ships and the tests and the ADRs remain.
418
+ - **It does not touch git beyond the code.** `code-executor` makes one Conventional Commit per
419
+ step with explicit paths. It never pushes, stashes, amends or rebases.
420
+ - **Cost scales with subagents.** Shape runs one Trio pass (3 subagents); feature-map two (6);
421
+ slice runs one slicer per Feature plus one Trio pass; spec one Trio pass (3); the executor adds
422
+ a reviewer on non-trivial steps. Rendering, validation and status cost nothing. If your harness
423
+ has no subagents, the lenses run one after another in the main thread.
424
+ - **Honest limits.** The "Product Trio" here is three lenses played by subagents that read the
425
+ same material: they do not talk to your users, and there is no tester lens. They review what is
426
+ on the page; they do not replace discovery with customers. "Read-only" agents have no edit tool,
427
+ but they keep a shell; their instructions forbid writing files and the harness does not enforce
428
+ it. The default grill and domain methods are third-party skills you install yourself (or
429
+ replace). Cursor's agent format is generated on a best-effort basis.
430
+
431
+ ## What you can configure
432
+
433
+ Everything is optional and lives in `.bokata.json` (defaults in
434
+ [docs/configuration.md](docs/configuration.md)); `npx bokata sync` regenerates the agents after
435
+ you edit it.
436
+
437
+ | You can change | Key | Example |
438
+ |---|---|---|
439
+ | **The method behind a job** | `methods.grill`, `domain`, `code`, `refactor` | Your own interview style in `bokata-shape`, your own TDD flavour in the executor |
440
+ | **Where your project memory lives** | `memory.constitution`, `glossary`, `standards`, `adrs`, `adr_template` | `docs/adr/` instead of `docs/adrs`; your own ADR template |
441
+ | **The shape of the documents** | `templates.pitch`, `features`, `appetite` | Point to your own pitch template |
442
+ | **Where initiatives are written** | `docs` | `specs/` instead of `docs/initiatives/` |
443
+ | **The story map** | `story_map`, `--lang en` or `es` | Turn the HTML board off; render it in Spanish |
444
+ | **The model of each role, per harness** | `models.<harness>.trio`, `reviewer`, `executor` | A strong planner for the trio and reviewer, a cheaper coder for the executor; `null` = the harness default |
445
+ | **Which harnesses are installed** | `npx bokata install --claude --opencode …` | Claude Code and OpenCode only |
322
446
 
323
- Bokata decides **what** each phase produces and **where** it goes; a method skill decides
324
- **how** one job is done. Each slot names a skill, and you swap one by naming another skill in
325
- `.bokata.json` (then `npx bokata sync` so the agents pick it up).
447
+ A swapped method only has to do its slot's job: bokata keeps the output contract, the paths and
448
+ the formats, and your constitution and coding standards win over any method.
326
449
 
327
- | Slot | Default | Loaded by | The job |
328
- |---|---|---|---|
329
- | `grill` | `grill-with-docs` | `bokata-shape` | Interview the user until the problem is narrow |
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 |
331
- | `code` | `bokata-tdd` | `code-executor` | Turn plan steps into tested commits |
332
- | `refactor` | `bokata-refactor` | `bokata-tdd`, `design-reviewer` | Change structure without changing behaviour, and name what to change |
450
+ ## Install
333
451
 
334
- A replacement only has to do the slot's job. Bokata layers its own rules on top, and they win
335
- over the method's:
452
+ ```bash
453
+ npx bokata@latest install # detects .claude/ .cursor/ .opencode/ .codex/
454
+ npx bokata@latest install --claude --opencode
455
+ npx bokata@latest sync # regenerate agents after editing .bokata.json
456
+ ```
336
457
 
337
- - **Paths and formats come from `memory`.** If a method writes `GLOSSARY.md` or numbered
338
- `docs/adr/` files and your config says otherwise, the config wins.
339
- - **The output contract stays bokata's.** Whatever the code method, the executor checks off
340
- plan steps commit by commit, fills `Tests:` and keeps `Unknowns` honest.
341
- - **The project wins over every method.** The constitution, `AGENTS.md` and the coding
342
- standards are read first and override any method.
458
+ Skills are copied once to `.agents/skills/` and symlinked into `.claude/` and `.cursor/`;
459
+ agents are generated per harness from one neutral source. Re-running `install` is safe. The
460
+ default grill and domain methods are
461
+ [`grill-with-docs` and `domain-modeling`](https://github.com/mattpocock/skills) by Matt Pocock:
462
+ install them with their own installer or point `methods.grill` / `methods.domain` elsewhere
463
+ ([configuration](docs/configuration.md)).
343
464
 
344
- Set `domain` to `null` to skip the domain passes. Project-specific coding rules do not need a
345
- slot: they live in `memory.standards`, which the executor and the reviewer always read.
465
+ ## The story map
346
466
 
347
- ### Default models
467
+ `bokata-render` reads the markdown of an initiative and produces a single, self-contained
468
+ `story-map.html`: no external CSS, JS, fonts or images, no model call. It is generated
469
+ automatically by the skills and `code-executor` whenever the markdown changes, or on demand with
470
+ `npx bokata render docs/initiatives/<slug>`. Open it in any browser.
348
471
 
349
- Planning and analysis (the trio and the design reviewer) get a planning model; writing code
350
- (the executor) gets a coding model. Planning itself runs in your main session — open it with the
351
- planning model of your harness.
472
+ The page is a small SPA routed by the URL hash. Five views, one file:
352
473
 
353
- | Harness | Plan and analyse (`trio`, `reviewer`) | Write code (`executor`) |
474
+ | View | Hash | Shows |
354
475
  |---|---|---|
355
- | Claude Code | `opus` | `sonnet` |
356
- | OpenCode | `opencode-go/glm-5.3-flash` | `opencode-go/deepseek-v4.1-flash` |
357
- | Cursor | `glm-flash` | `sonnet` |
358
- | Codex | `gpt-5.6-sol` | `gpt-5.6-luna` |
476
+ | **Map** | `#/` | The story map: Features and User Tasks as columns, a band per slice with the bites that live in it, and a Backlog band of untaken bites. Zoom (L/M/S/XS), filters by state and priority, fold features, hide empty columns, minimap to pan. |
477
+ | **Slice** | `#/slice/<appetite>-<n>` | Outcome, bites, features and User Tasks it touches, pending, unknowns, the full Gherkin scenarios and the body of `slice-<n>.md`. |
478
+ | **Bite** | `#/bite/<key>` | The *layers*: every Step that the bite crosses, and next to each Step the options it offers, coloured by which bite takes them (this one highlighted, the others as links). Shows what the user gets, how it is checked, and what was pruned. |
479
+ | **User Task** | `#/ut/<id>` | What bites and slices cover it, and the full options of each Step — the place to decide which options become the next bite. |
480
+ | **Feature** | `#/feature/<code>` | Its User Tasks, the bites that anchor on them, and the slices that touch the Feature. |
481
+
482
+ Click any card, label or header to drill down; breadcrumbs bring you back. The page is bilingual
483
+ (`--lang en` or `es`), and the UI state (zoom, collapsed features, minimap) is kept in
484
+ `sessionStorage` so it survives a reload.
359
485
 
360
- Set a role to `null` to use the harness's own default model instead.
486
+ **The map.** Features as colour-coded columns, User Tasks underneath, and under each appetite a band
487
+ per slice with its bites, then a Backlog of untaken ones:
361
488
 
362
- Cursor's agent format is generated on a best-effort basis (`name`, `description`, `model`,
363
- `readonly`); skills work in Cursor either way.
489
+ ![The story map — map view](docs/images/story-map/story-map-main.png)
364
490
 
365
- ## Upgrading
491
+ **The bite — layers view.** Every Step that the bite crosses, with the options it offers. The
492
+ options of *this* bite are highlighted; the ones taken by other bites are shown as links; the
493
+ pruned ones are crossed out:
366
494
 
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:
495
+ ![The story map — bite layers](docs/images/story-map/story-map-bite-layers.png)
368
496
 
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.
497
+ **The slice.** Outcome, bites, User Tasks, pending, unknowns, and the full Gherkin detail
498
+ behind a collapsible:
374
499
 
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`.
500
+ ![The story map — slice detail](docs/images/story-map/story-map-slice-detail.png)
376
501
 
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`.)
502
+ **The User Task.** What bites and slices cover it, and the full options of each Step — the
503
+ place where bites are chosen:
383
504
 
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>`).
505
+ ![The story map — User Task](docs/images/story-map/story-map-user-task.png)
506
+
507
+ **The Feature.** User Tasks, bites, and slices that touch it:
508
+
509
+ ![The story map — Feature](docs/images/story-map/story-map-feature.png)
510
+
511
+ ## Sources
512
+
513
+ Bokata packages other people's ideas. This is what it takes from each, and how faithfully:
514
+ **faithful** means used as its author describes it, **adapted** means changed on purpose (the
515
+ change is stated), **own** means it is not from any of them.
516
+
517
+ | Source | What bokata takes | Fidelity |
518
+ |---|---|---|
519
+ | **Teresa Torres**, *Continuous Discovery Habits* — the Product Trio | The three lenses: PM, Designer, Engineer | **Adapted.** Played by subagents that review the same documents; no customer contact, no tester. |
520
+ | **Ryan Singer**, *Shape Up* | Pitch, breadboards, fat-marker sketches, rabbit holes, no-gos, appetite | **Faithful** for the pitch. **Adapted** for appetite: an amount of scope you stop at, with no time box; the pitch's *ambition* line is the tie-breaker. |
521
+ | **Jeff Patton**, *User Story Mapping* | Backbone, release slices, "mile wide, inch deep" | **Faithful** for the map. **Adapted:** an appetite takes a group of Features and grows downward, instead of slicing across the whole map first. |
522
+ | **Alistair Cockburn** — walking skeleton; incremental vs iterative | Slice 1 as the thinnest end-to-end path; the two moves | **Adapted:** Slice 1 may use crutches and fake data; Cockburn's skeleton exists to link the real architectural components. |
523
+ | **Craig Larman and Victor Basili**, *Iterative and Incremental Development: A Brief History* | The history behind the iterative and incremental distinction | Reference. |
524
+ | **Gojko Adzic** — the hamburger method | Layers of a flow, several options per layer, pick the cheapest of each and cut vertically | **Faithful** in the core. **Own:** the four layers (UI, Logic, Data, Integration) and the pruning with reasons. |
525
+ | **Richard Lawrence**, *Patterns for Splitting User Stories*; **Gojko Adzic and David Evans**, *Fifty Quick Ideas to Improve Your User Stories*; **Mike Cohn**, SPIDR | The catalogue of splitting strategies | **Faithful**, gathered as 16 strategies (SPIDR kept as a lookup index of the others). **Own:** the Automation Gradient fallback. |
526
+ | **Bill Wake**, INVEST | The test for a bite | **Adapted:** *Valuable* is the feedback you need, *Estimable* without time estimates, *Independent* allows `depends on`. |
527
+ | **Matt Wynne**, Example Mapping; **Dan North**, Given/When/Then | Rules, then scenarios, for the acceptance criteria | **Adapted:** run by a coordinator and three lenses instead of a conversation among people. |
528
+ | **Steve Freeman and Nat Pryce**, *Growing Object-Oriented Software, Guided by Tests* | The acceptance test first, as the outer loop of each slice | **Faithful.** |
529
+ | **Kent Beck**, TDD, the four rules of simple design, *Tidy First?*; **Martin Fowler**, *Refactoring* and code smells | The build and refactor methods | **Faithful.** |
530
+ | **Matt Pocock**, `grill-with-docs` and `domain-modeling` | The default grill and domain methods | Third-party skills you install yourself. |
531
+
532
+ *Also in the same spirit:* Real Options (Chris Matts and Olav Maassen) and the last responsible
533
+ moment (Mary and Tom Poppendieck) for "explore wide, commit late"; Gojko Adzic's *Specification by
534
+ Example* for "the tests are the living documentation".
535
+
536
+ ## Going deeper
537
+
538
+ - [docs/skills.md](docs/skills.md): every skill in depth: how it works step by step, what it
539
+ reads and writes, the rules it enforces, why, and the sources behind it.
540
+ - [docs/reference.md](docs/reference.md): the quick tables: agents, the files of an initiative,
541
+ slice states, how to run each harness and orchestrator.
542
+ - [docs/configuration.md](docs/configuration.md): `.bokata.json`, swapping methods, default models.
388
543
 
389
544
  ## Development
390
545