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.
- package/.agents/skills/bokata-acceptance-criteria/SKILL.md +6 -6
- package/.agents/skills/bokata-feature-map/SKILL.md +4 -4
- package/.agents/skills/bokata-feature-map/resources/features-template.md +5 -5
- package/.agents/skills/bokata-feature-mapper/SKILL.md +1 -1
- package/.agents/skills/bokata-feature-slicer/SKILL.md +18 -13
- package/.agents/skills/bokata-feature-slicer/resources/breakdown-strategies.md +15 -7
- package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +3 -3
- package/.agents/skills/bokata-feature-slicer/resources/{phase-2-increments.md → phase-2-options.md} +1 -1
- package/.agents/skills/bokata-feature-slicer/resources/phase-3-skeleton.md +7 -6
- package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +7 -7
- package/.agents/skills/bokata-plan/SKILL.md +30 -30
- package/.agents/skills/bokata-plan/resources/plan-template.md +13 -13
- package/.agents/skills/bokata-render/SKILL.md +20 -20
- package/.agents/skills/bokata-render/assets/story-map.html +86 -86
- package/.agents/skills/bokata-render/scripts/render.mjs +208 -178
- package/.agents/skills/bokata-shape/SKILL.md +2 -2
- package/.agents/skills/bokata-slice/SKILL.md +198 -120
- package/.agents/skills/bokata-slice/resources/appetite-template.md +71 -0
- package/.agents/skills/bokata-slice/resources/proposed-slices.md +50 -0
- package/.agents/skills/bokata-spec/SKILL.md +256 -0
- package/.agents/skills/bokata-spec/resources/slice-template.md +49 -0
- package/.agents/skills/bokata-status/SKILL.md +29 -29
- package/.agents/skills/bokata-tdd/SKILL.md +12 -12
- package/README.md +475 -320
- package/agents/bokata-product-designer.md +7 -7
- package/agents/bokata-product-engineer.md +10 -10
- package/agents/bokata-product-manager.md +8 -8
- package/agents/code-executor.md +25 -21
- package/agents/feature-slicer.md +1 -1
- package/bin/bokata.js +1 -1
- package/package.json +1 -1
- package/src/config.js +1 -1
- package/src/install.js +11 -4
- package/.agents/skills/bokata-inc/SKILL.md +0 -244
- package/.agents/skills/bokata-inc/resources/inc-template.md +0 -36
- package/.agents/skills/bokata-slice/resources/proposed-increments.md +0 -42
- package/.agents/skills/bokata-slice/resources/slice-template.md +0 -70
- /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
|
|
4
|
-
Claude Code, OpenCode, Codex and Cursor
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
17
|
-
- **
|
|
18
|
-
in parallel
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
40
|
+
| I want to… | Go to |
|
|
46
41
|
|---|---|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
|
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
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
106
|
-
the
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
**
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
the
|
|
126
|
-
|
|
127
|
-
|
|
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
|
|
138
|
-
|
|
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
|
|
143
|
-
Nothing works until the last layer lands, and you learn nothing until then. A
|
|
144
|
-
cuts through every layer for a thin piece of behaviour, so
|
|
145
|
-
shown, tested and corrected.
|
|
146
|
-
|
|
147
|
-
|
|
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 |
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
|
229
|
-
- A bite belongs to one User Task. If it touches several, it is too big
|
|
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
|
|
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
|
|
238
|
-
and Iterative Development* · Craig Larman and
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
##
|
|
239
|
+
## How it flows
|
|
245
240
|
|
|
246
|
-
|
|
247
|
-
the harness. Install first (`npx bokata@latest install`), then:
|
|
241
|
+
`bokata-shape` proposes the size; you confirm it.
|
|
248
242
|
|
|
249
|
-
|
|
|
250
|
-
|
|
251
|
-
|
|
|
252
|
-
|
|
|
253
|
-
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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
|
-
|
|
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
|
-
|
|
324
|
-
|
|
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
|
-
|
|
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
|
-
|
|
335
|
-
|
|
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
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
|
|
345
|
-
slot: they live in `memory.standards`, which the executor and the reviewer always read.
|
|
465
|
+
## The story map
|
|
346
466
|
|
|
347
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
474
|
+
| View | Hash | Shows |
|
|
354
475
|
|---|---|---|
|
|
355
|
-
|
|
|
356
|
-
|
|
|
357
|
-
|
|
|
358
|
-
|
|
|
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
|
-
|
|
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
|
-
|
|
363
|
-
`readonly`); skills work in Cursor either way.
|
|
489
|
+

|
|
364
490
|
|
|
365
|
-
|
|
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
|
-
|
|
495
|
+

|
|
368
496
|
|
|
369
|
-
**
|
|
370
|
-
|
|
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
|
-
|
|
500
|
+

|
|
376
501
|
|
|
377
|
-
**
|
|
378
|
-
|
|
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
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
505
|
+

|
|
506
|
+
|
|
507
|
+
**The Feature.** User Tasks, bites, and slices that touch it:
|
|
508
|
+
|
|
509
|
+

|
|
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
|
|