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
|
@@ -99,8 +99,8 @@ resolved (write the decision), cut (out of scope) or declared a no-go.
|
|
|
99
99
|
|
|
100
100
|
## 4. Write the pitch
|
|
101
101
|
|
|
102
|
-
Write `<docs>/<slug>/pitch.md` from the template. No time estimates or appetite
|
|
103
|
-
instead write one **ambition** line (for example "minimum a coach can use in a real match"
|
|
102
|
+
Write `<docs>/<slug>/pitch.md` from the template. No time estimates or time-box numbers (Shape Up's appetite is time; in bokata the *appetite* is the
|
|
103
|
+
scope you take on later, in `bokata-slice`): instead write one **ambition** line (for example "minimum a coach can use in a real match"
|
|
104
104
|
or "fully polished"). It is the tie-breaker when choosing between two solutions.
|
|
105
105
|
|
|
106
106
|
**What becomes of `approaches.md`.** The pitch keeps one line per approach (`### Approaches
|
|
@@ -1,60 +1,63 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bokata-slice
|
|
3
|
-
description:
|
|
3
|
+
description: Cut an appetite — what you want to have for now, in one sentence, and the Features (usually 1–4) that deliver it — into Steps, options and INVEST bites (one feature-slicer subagent per Feature), have the Product Trio review the full trace and the bites, and leave the appetite as a proposal: the bites, the Walking Skeleton as skeleton bites and a roadmap of proposed slices, with no specs yet. The owner reviews and edits it by hand; bokata-spec then specifies each slice. Takes the appetite as an argument or, with none, proposes example appetites. Also validates the appetite (--check) and marks it done (--done). Use it after bokata-feature-map or a pitch, when the user wants to slice, cut the backlog of bites, or propose a walking skeleton.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
Create
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
Create an **appetite**: how much you want to have for now, said in one sentence ("a coach can share a
|
|
7
|
+
reviewed clip with the team"), and the Features that deliver it — usually 1–4, because that is often
|
|
8
|
+
what it takes for a usable flow. It stays open until you say it is enough. An appetite here is a
|
|
9
|
+
budget of *scope*, not of time (Shape Up's appetite is time; bokata plans scope).
|
|
10
|
+
`bokata-slice` does the **cutting**: it slices each Feature into Steps and options, groups the
|
|
11
|
+
options into bites and **proposes** the slices — the Walking Skeleton first — without writing a single
|
|
12
|
+
acceptance criterion. The owner reviews the proposal and edits it by hand; `bokata-spec` then
|
|
13
|
+
specifies one slice at a time (Slice 1 too), and the appetite grows from there. The appetite is a
|
|
14
|
+
short **index** plus a folder of files, so that no operation has to read the whole history (see
|
|
15
|
+
[The appetite layout](#the-appetite-layout)). You are the neutral coordinator; the slicing comes from
|
|
13
16
|
`feature-slicer` subagents, and the PM, Designer and Engineer review from their lenses.
|
|
14
17
|
|
|
15
18
|
```
|
|
16
|
-
|
|
19
|
+
Appetite one sentence + its Features (usually 1–4) → a usable flow; open until the user says enough
|
|
17
20
|
├ Slicing per Feature: User Task → Step → options (F1-2.3), pruned, with a target per Step
|
|
18
21
|
├ Bites F1-a …: INVEST groups of options, per User Task, each titled for the user; the skeleton
|
|
19
|
-
│ bites are F1-w1 …;
|
|
20
|
-
├ Proposed the roadmap: the bites left, grouped into the
|
|
21
|
-
│
|
|
22
|
-
└
|
|
23
|
-
└ Plan steps
|
|
24
|
-
|
|
22
|
+
│ bites are F1-w1 …; a Slice takes some, the rest stay in the Backlog while the appetite lives
|
|
23
|
+
├ Proposed the roadmap: the bites left, grouped into the slices to build, Slice 1 first
|
|
24
|
+
│ slices — a proposal the owner edits, not a decision
|
|
25
|
+
└ Slice proposed → specified (bokata-spec: bites + concrete ACs) → planned → done
|
|
26
|
+
└ Plan steps in the initiative's plan.md: written by bokata-plan, checked off by the executor,
|
|
27
|
+
deleted when the Slice is done
|
|
25
28
|
```
|
|
26
29
|
|
|
27
|
-
### The
|
|
30
|
+
### The appetite layout
|
|
28
31
|
|
|
29
32
|
```
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
appetites/<nn>-<name>.md INDEX: header, Slices (the specified ones: outcome + bites), Backlog (bite lines, proposed slices), links
|
|
34
|
+
appetites/<nn>-<name>/slice-<n>.md one specified Slice: State, Unknowns, Gherkin, rules, its decisions, Pending (written by bokata-spec)
|
|
35
|
+
appetites/<nn>-<name>/slicing/F<k>.md one Feature's trace (User Task → Step → options)
|
|
36
|
+
appetites/<nn>-<name>/context.md the Discovery Context, then the appetite-wide Notes and the Trio notes
|
|
37
|
+
appetites/<nn>-<name>/pruned.md the Pruned list, one line per option with its reason
|
|
35
38
|
```
|
|
36
39
|
|
|
37
|
-
A new
|
|
40
|
+
A new appetite has **no `slice-<n>.md` and an empty `## Slices`**: its slices are all proposed.
|
|
38
41
|
|
|
39
42
|
- **Say it once.** An option, a bite, an outcome or a decision lives in one place. The index repeats
|
|
40
|
-
nothing of
|
|
41
|
-
- **State lives only in `
|
|
42
|
-
the checked steps in `plan.md`; a proposed
|
|
43
|
-
- **A decision about one
|
|
44
|
-
`context.md` (its `## Notes`) holds only what concerns the whole
|
|
43
|
+
nothing of a Slice but its name, outcome and bite IDs; the Slice's options are the options of its bites.
|
|
44
|
+
- **State lives only in `slice-<n>.md`** (`State: specified | planned | done`; `building` is derived from
|
|
45
|
+
the checked steps in `plan.md`; a proposed Slice has no file and no State). A `done` appetite shows every Slice as done.
|
|
46
|
+
- **A decision about one Slice goes in that Slice's file** (`## Decisions and notes of this Slice`);
|
|
47
|
+
`context.md` (its `## Notes`) holds only what concerns the whole appetite. Appetites cut earlier have `notes.md` and
|
|
45
48
|
`discovery.md` side by side instead of `context.md`: read them the same way.
|
|
46
|
-
- Templates: [
|
|
47
|
-
[
|
|
49
|
+
- Templates: [appetite-template.md](resources/appetite-template.md) (the index) and
|
|
50
|
+
[slice-template.md](../bokata-spec/resources/slice-template.md) (written by `bokata-spec`).
|
|
48
51
|
|
|
49
|
-
- **Option ≠ bite ≠
|
|
50
|
-
options of one or several Steps that make sense together (small, INVEST).
|
|
52
|
+
- **Option ≠ bite ≠ slice.** An option is one way to do one Step. A bite groups the
|
|
53
|
+
options of one or several Steps that make sense together (small, INVEST). A slice is the
|
|
51
54
|
Walking Skeleton or one or more bites — whatever lets the user see or do something new.
|
|
52
55
|
- **The backlog is a plan, not an index.** Options are explored widely, then the slicer prunes
|
|
53
56
|
what is obsolete, dominated or filler (each with a reason) and groups the rest into bites.
|
|
54
57
|
Nobody reads loose option IDs.
|
|
55
|
-
- **A Feature
|
|
56
|
-
a
|
|
57
|
-
- **No specs here.** Concrete ACs are written just in time by `bokata-
|
|
58
|
+
- **A Feature has at most one open appetite.** If another appetite needs it, that appetite lists it as a
|
|
59
|
+
dependency. When an appetite is `done`, a **new** appetite can adopt its leftover ([Adopt](#adopt---from-nn-continue-what-a-done-appetite-left)); a done appetite is never reopened.
|
|
60
|
+
- **No specs here.** Concrete ACs are written just in time by `bokata-spec`, only for the slice
|
|
58
61
|
it specifies. Functional ACs stay in `features.md`.
|
|
59
62
|
- **No time estimates.** Never write a duration.
|
|
60
63
|
|
|
@@ -70,24 +73,25 @@ Read `.bokata.json` at the project root if it exists. Defaults:
|
|
|
70
73
|
```json
|
|
71
74
|
{ "docs": "docs/initiatives",
|
|
72
75
|
"memory": { "constitution": "CONSTITUTION.md", "glossary": "GLOSSARY.md" },
|
|
73
|
-
"templates": { "
|
|
76
|
+
"templates": { "appetite": null },
|
|
74
77
|
"story_map": true }
|
|
75
78
|
```
|
|
76
79
|
|
|
77
|
-
`<docs>` below is the `docs` value. `templates.
|
|
78
|
-
[resources/
|
|
80
|
+
`<docs>` below is the `docs` value. `templates.appetite: null` means
|
|
81
|
+
[resources/appetite-template.md](resources/appetite-template.md). The story map is drawn by the
|
|
79
82
|
`bokata-render` script from the markdown; this skill only runs it.
|
|
80
83
|
|
|
81
84
|
## Operations
|
|
82
85
|
|
|
83
86
|
| Call | Does |
|
|
84
87
|
|------|------|
|
|
85
|
-
| `bokata-slice [<features…>]` | **New
|
|
86
|
-
| `bokata-slice <
|
|
87
|
-
| `bokata-slice <nn> --
|
|
88
|
+
| `bokata-slice ["<appetite>"] [<features…>]` | **New appetite**: Steps 1–5 below. The appetite is a sentence (what you want to have for now); with none, it proposes some. It ends with a proposal; it specifies nothing |
|
|
89
|
+
| `bokata-slice ["<appetite>"] --from <nn>` | **New appetite that adopts the leftover** of the done appetite `<nn>` — see [Adopt](#adopt---from-nn-continue-what-a-done-appetite-left) |
|
|
90
|
+
| `bokata-slice <nn> --check` | Validate the appetite and the initiative's markdown (runs the render script's `--check`) |
|
|
91
|
+
| `bokata-slice <nn> --done` | Mark the appetite **done** — see [Done](#done---done) |
|
|
88
92
|
|
|
89
|
-
Specifying
|
|
90
|
-
ACs — is **`bokata-
|
|
93
|
+
Specifying a slice — taking the next one, a numbered one or named bites, with its concrete
|
|
94
|
+
ACs — is **`bokata-spec`**, not this skill.
|
|
91
95
|
|
|
92
96
|
## Mode
|
|
93
97
|
|
|
@@ -98,7 +102,7 @@ ACs — is **`bokata-inc`**, not this skill.
|
|
|
98
102
|
one `feature-slicer` subagent; run every trio step yourself, one lens at a time. The first
|
|
99
103
|
time, create `features.md` from the features template with **only** that Feature (name and
|
|
100
104
|
`Purpose` from the pitch, its User Tasks from [Step 1b](#step-1b-single-mode-only-derive-the-user-tasks))
|
|
101
|
-
and its `**
|
|
105
|
+
and its `**Appetite:**` line, and put `<!-- Mode: single -->` under its header comment. There are
|
|
102
106
|
no functional ACs in single mode: the Coverage check is skipped (see the gate).
|
|
103
107
|
|
|
104
108
|
The user can force either mode.
|
|
@@ -110,16 +114,31 @@ order) and never change. Option IDs build on them: `F2-3.1` = Feature 2, Step 3,
|
|
|
110
114
|
|
|
111
115
|
## Step 1: Resolve Features & Folders
|
|
112
116
|
|
|
113
|
-
1. Read `features.md` and the pitch, the constitution, the glossary, and the existing
|
|
114
|
-
`<docs>/<initiative-slug>/
|
|
115
|
-
2.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
1. Read `features.md` and the pitch, the constitution, the glossary, and the existing appetites in
|
|
118
|
+
`<docs>/<initiative-slug>/appetites/` (their header and `Status` are enough).
|
|
119
|
+
2. **Get the appetite.** It is one sentence in user language: what you want to have when this is
|
|
120
|
+
enough, and where you stop. Four cases:
|
|
121
|
+
- **The user gave a sentence**: restate it as `Appetite: …`, tighten it if it is vague ("so a
|
|
122
|
+
coach can share a reviewed clip, with a link pasted by hand — no accounts") and show it with
|
|
123
|
+
the Features you think deliver it (point 3). "Yes" accepts it.
|
|
124
|
+
- **The user gave only Features**: propose the sentence those Features imply.
|
|
125
|
+
- **The user gave nothing**: read the pitch and `features.md` and propose **2–3 example appetites**,
|
|
126
|
+
each a sentence plus its Features and a **cut line** in the journey ("everything up to the coach
|
|
127
|
+
sharing, nothing about editing"): *only the skeleton* (the flow end to end, with crutches), *the
|
|
128
|
+
skeleton plus the must-haves of the core Features*, *everything these Features say*. Recommend
|
|
129
|
+
one. The user picks, edits or writes their own.
|
|
130
|
+
- **No `features.md` and no pitch**: say so and offer `bokata-shape`.
|
|
131
|
+
3. **Pick the Features.** Show which Features already belong to an appetite (from each Feature's
|
|
132
|
+
`**Appetite:**` line) and which are free. **1–4 Features is a suggestion, not a limit**: in
|
|
133
|
+
practice that is often what it takes for a flow that already gives value, and some Feature's
|
|
134
|
+
thinnest path is not to do it, so leave it out. More than four is allowed; say that it is
|
|
135
|
+
probably two appetites, and let the user decide. For the first appetite, recommend the group that
|
|
136
|
+
makes the journey usable end to end. A Feature with an **open** appetite cannot be picked
|
|
137
|
+
again — offer `bokata-spec` on that appetite instead. A Feature whose appetites are all `done` is
|
|
138
|
+
free: if one of them left bites, offer to adopt them (`--from`, see [Adopt](#adopt---from-nn-continue-what-a-done-appetite-left)) before slicing the Feature anew.
|
|
139
|
+
4. Number the new appetite (`01`, `02`, … after the existing ones) and `mkdir -p
|
|
140
|
+
<docs>/<initiative-slug>/appetites/<nn>-wip/work`. This **work folder** holds the discovery and the
|
|
141
|
+
slicers' output while the appetite is being made; Step 4 turns it into the final layout and deletes it.
|
|
123
142
|
Every subagent below receives **paths into it, never pasted content**.
|
|
124
143
|
|
|
125
144
|
## Step 1b: Single mode only — derive the User Tasks
|
|
@@ -140,7 +159,7 @@ recommended answer and worded so "yes" accepts it; wait for the answers before t
|
|
|
140
159
|
about the picked Features, only where the answer changes a Step or an option:
|
|
141
160
|
- **Technical Clarity** — User Tasks too vague to decompose into Steps?
|
|
142
161
|
- **Layer Ambiguity** — Steps unclear between UI, Logic and Data?
|
|
143
|
-
- **
|
|
162
|
+
- **Appetite scope** — User Tasks too large to slice without clarification?
|
|
144
163
|
- **Dependencies** — between User Tasks, or between the picked Features?
|
|
145
164
|
- **Constraints** — architecture or performance limits on which options are viable?
|
|
146
165
|
|
|
@@ -152,8 +171,8 @@ If the input is already rich, say so and ask only about what is missing:
|
|
|
152
171
|
> "You provided the features + functional ACs for [initiative], which resolves scope and rules. Asking only about [missing categories]."
|
|
153
172
|
|
|
154
173
|
Produce one `## Discovery Context — Slicer: [Feature Names]` block: Technical Clarifications /
|
|
155
|
-
Layer Decisions /
|
|
156
|
-
Constraints Noted / Assumptions, and **write it to `
|
|
174
|
+
Layer Decisions / Appetite (the sentence, and where it stops) / Appetite Boundaries / Deferred (scope cuts) / Dependencies Confirmed /
|
|
175
|
+
Constraints Noted / Assumptions, and **write it to `appetites/<nn>-wip/work/context.md`** (it is the first
|
|
157
176
|
section of that file; the Notes and Trio notes are appended to it at the end). Every subagent below receives its path.
|
|
158
177
|
|
|
159
178
|
---
|
|
@@ -175,11 +194,11 @@ subagent_type: feature-slicer
|
|
|
175
194
|
prompt: "Slice this Feature. Feature code: F<n>.
|
|
176
195
|
- Feature: [name and ID] — its Purpose, User Tasks and System Tasks are in <docs>/<slug>/features.md
|
|
177
196
|
(in single mode, the confirmed list of Step 1b was written there)
|
|
178
|
-
- Discovery Context: <docs>/<slug>/
|
|
197
|
+
- Discovery Context: <docs>/<slug>/appetites/<nn>-wip/work/context.md
|
|
179
198
|
- Constitution / glossary paths: [from .bokata.json]
|
|
180
199
|
- Functional ACs — open ONLY for the Phase 3 coverage check: this Feature's Requirements + Scenarios
|
|
181
200
|
in features.md [in single mode: "none — skip the coverage check"]
|
|
182
|
-
- Output file (the only file you may write): <docs>/<slug>/
|
|
201
|
+
- Output file (the only file you may write): <docs>/<slug>/appetites/<nn>-wip/work/F<n>.md
|
|
183
202
|
Read the skill and all its resources first (they are in .agents/skills/bokata-feature-slicer/). Run all four phases, including Phase 4 (prune with a
|
|
184
203
|
reason, a target per Step, INVEST bites). Write the full output (Slicing trace, Coverage,
|
|
185
204
|
Walking Skeleton proposal, Pruned, Bites, Self-check, Assumptions) to the output file and reply in at most
|
|
@@ -199,7 +218,7 @@ Read each `work/F<n>.md` once and, for every trace, check mechanically (count, d
|
|
|
199
218
|
- [ ] Every Requirement of the Feature appears in `### Coverage` (single mode has none:
|
|
200
219
|
`### Coverage` says `none — no functional ACs`)
|
|
201
220
|
- [ ] Every `Deferred` item from the Discovery Context appears as a `deferred` option
|
|
202
|
-
- [ ] The Walking Skeleton proposal uses option IDs and covers every User Task
|
|
221
|
+
- [ ] The Walking Skeleton proposal uses option IDs and covers every User Task, or lists under `Left out of the skeleton:` each User Task it skips with a reason
|
|
203
222
|
- [ ] Every pruned option appears in `### Pruned` with one of the four reasons, is gone from the
|
|
204
223
|
trace, and was not a skeleton or `deferred` option
|
|
205
224
|
- [ ] Every Step has one `→ target`
|
|
@@ -221,7 +240,7 @@ Each slicer sees only its own Feature, so a bite that needs another Feature says
|
|
|
221
240
|
`depends on: F7 (<what it needs>)`, never a bite ID of F7. Once every trace passes the gate, edit the
|
|
222
241
|
work files to replace
|
|
223
242
|
each such reference with the ID of the bite of that Feature that provides what is needed (or
|
|
224
|
-
`
|
|
243
|
+
`Slice 1` if its skeleton does). If no bite does, note it under `## Trio notes` as a gap and ask the
|
|
225
244
|
user in the decision point of 3d. Then check there is no dependency cycle across Features.
|
|
226
245
|
|
|
227
246
|
### 3c. Wave 2 — Trio review of the full traces (parallel)
|
|
@@ -237,10 +256,10 @@ subagent_type: bokata-product-manager
|
|
|
237
256
|
prompt: "Review the slicing of [Features] from the value/viability lens. You have:
|
|
238
257
|
- Full slicing traces (Steps, options, coverage, Walking Skeleton proposal, Pruned, Bites), one file per Feature: [the paths of every work/F<n>.md]
|
|
239
258
|
- Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
|
|
240
|
-
- Discovery Context: <docs>/<slug>/
|
|
259
|
+
- Discovery Context: <docs>/<slug>/appetites/<nn>-wip/work/context.md
|
|
241
260
|
Do NOT ask the user questions. Focus on: Is the skeleton the minimum that still gives observable
|
|
242
261
|
value end to end? Is a cheaper option (fake data, manual crutch, one case only) missing for any
|
|
243
|
-
Step — propose it with its Step ID. Which options unlock the most value next? Also review the
|
|
262
|
+
Step — propose it with its Step ID. Which options unlock the most value next? Does the order of the bites serve the appetite sentence in the Discovery Context, and is an uncertainty the Engineer flags worth moving earlier — or does an earlier bite give value without entering it? Also review the
|
|
244
263
|
Pruned list and the Bites. Is the must-have / nice-to-have split in value order, does any
|
|
245
264
|
pruning throw away value (name the option ID), is any bite too big or two bites really one?
|
|
246
265
|
Tag every finding with Severity (Critical|Suggested) and Type (factual/scope|trade-off). Return
|
|
@@ -253,7 +272,7 @@ subagent_type: bokata-product-designer
|
|
|
253
272
|
prompt: "Review the slicing of [Features] from the UX/UI lens. You have:
|
|
254
273
|
- Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
|
|
255
274
|
- Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
|
|
256
|
-
- Discovery Context: <docs>/<slug>/
|
|
275
|
+
- Discovery Context: <docs>/<slug>/appetites/<nn>-wip/work/context.md
|
|
257
276
|
Do NOT ask the user questions. Focus on: Does the skeleton combine into a coherent minimal
|
|
258
277
|
experience across the Features? Which UI states are essential to the skeleton and which can wait?
|
|
259
278
|
Is a cheaper UI option (static screen, one state only, existing component) missing for any Step —
|
|
@@ -270,11 +289,12 @@ subagent_type: bokata-product-engineer
|
|
|
270
289
|
prompt: "Review the slicing of [Features] from the feasibility/technical-sustainability lens. You have:
|
|
271
290
|
- Full slicing traces, one file per Feature: [the paths of every work/F<n>.md]
|
|
272
291
|
- Backbone + functional ACs (single mode: the pitch and the confirmed User Tasks): <docs>/<slug>/features.md [and the pitch path]
|
|
273
|
-
- Discovery Context: <docs>/<slug>/
|
|
292
|
+
- Discovery Context: <docs>/<slug>/appetites/<nn>-wip/work/context.md
|
|
274
293
|
Do NOT ask the user questions. Focus on: Are Steps and layers sound? Is each skeleton option
|
|
275
294
|
reversible, and which shortcuts are safe to revisit vs dangerous? Is a cheaper technical option
|
|
276
295
|
(in-memory, hardcoded, existing service, manual step) missing for any Step — propose it with its
|
|
277
|
-
Step ID.
|
|
296
|
+
Step ID. Say which seams of the skeleton are real and which are faked, and which open uncertainty
|
|
297
|
+
or rabbit hole each bite resolves or leaves open. Also review the Bites. Are the dependencies right and acyclic, is any bite too big
|
|
278
298
|
to size, and does any pruned option break a contract a later bite or Feature relies on (name
|
|
279
299
|
the option ID)? Tag every finding with Severity (Critical|Suggested) and Type
|
|
280
300
|
(factual/scope|trade-off). Return your review in the format specified in your agent file (Bites
|
|
@@ -310,61 +330,67 @@ Fast Feedback Principle.
|
|
|
310
330
|
- **Non-interactive** (`--no-interactive`, or a headless run): apply the defaults and record each
|
|
311
331
|
in `## Trio notes` with both positions, the applied default, and `⚠ flagged for human review`.
|
|
312
332
|
|
|
313
|
-
### 3e. Propose
|
|
333
|
+
### 3e. Propose Slice 1 — the Walking Skeleton, and name the appetite
|
|
314
334
|
|
|
315
335
|
Nothing here is committed: the skeleton is a **proposal**, written as bites in the Backlog and as the
|
|
316
|
-
first row of the roadmap. The owner reviews it in the index and decides at `bokata-
|
|
336
|
+
first row of the roadmap. The owner reviews it in the index and decides at `bokata-spec 1`.
|
|
317
337
|
|
|
318
338
|
1. Build the proposal as the union of the reconciled skeleton proposals: the option IDs per User
|
|
319
|
-
Task across the picked Features, so the flow works end to end.
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
339
|
+
Task across the picked Features, so the flow works end to end. **Covering every User Task is a
|
|
340
|
+
strong suggestion**, not a law: a skeleton that skips one is rare but possible (a User Task the
|
|
341
|
+
appetite does not need yet). Each one left out goes in a line `Left out of the skeleton: <User Task> — <reason>` under the
|
|
342
|
+
roadmap table, with its reason. Every part must be functional on its own; if an option has no
|
|
343
|
+
visible effect alone, it travels with the option that makes it visible.
|
|
344
|
+
2. **Group it into skeleton bites.** Every slice is made of bites, so that the story map draws it as
|
|
323
345
|
cards, and so that the owner can edit the skeleton as any other row. Make one **skeleton bite per
|
|
324
346
|
User Task** the skeleton covers: ID `F<n>-w<k>` (`F1-w1`, `F1-w2`, … — the `w` plus a digit never
|
|
325
347
|
collides with a slicer's letter IDs), a title with a subject that says what the user does in that
|
|
326
348
|
User Task *with the shortcut* ("Ana picks a hardcoded clip"), tagged `(skeleton)`, its options, no
|
|
327
|
-
`→
|
|
349
|
+
`→ Slice` yet.
|
|
328
350
|
3. Options that go into a skeleton bite **leave their bite**; if that empties a bite, remove it; if
|
|
329
|
-
it breaks another bite's `depends on`, repoint it to `
|
|
330
|
-
4. **Name the
|
|
351
|
+
it breaks another bite's `depends on`, repoint it to `Slice 1`. The bites left stay the backlog.
|
|
352
|
+
4. **Name the appetite.** Propose a short name in kebab-case, with your recommendation ("yes" accepts it).
|
|
331
353
|
Ask it in the decision point of 3d if there is one, otherwise as one short question.
|
|
332
|
-
5. Write the **roadmap** — [Proposed
|
|
333
|
-
Walking Skeleton, as its first row, then the bites that are left.
|
|
354
|
+
5. Write the **roadmap** — [Proposed slices](resources/proposed-slices.md) — with Slice 1, the
|
|
355
|
+
Walking Skeleton, as its first row, then the bites that are left. In "Why this order", Slice 1
|
|
356
|
+
says which seams are **real** and which **faked**, and each row says what it **leaves open** when
|
|
357
|
+
that matters (an uncertainty or rabbit hole it does not touch). Risk is a conditioning factor, not
|
|
358
|
+
a rule: the Engineer flags it, the PM weighs it against value, and the first slice may give value
|
|
359
|
+
without going into the riskiest unknown.
|
|
334
360
|
|
|
335
361
|
---
|
|
336
362
|
|
|
337
|
-
## Step 4: Write the
|
|
363
|
+
## Step 4: Write the Appetite & the Summary
|
|
338
364
|
|
|
339
|
-
1. Rename `
|
|
340
|
-
**write** the files of [The
|
|
365
|
+
1. Rename `appetites/<nn>-wip` to `appetites/<nn>-<name>`, `mkdir -p appetites/<nn>-<name>/slicing`, and
|
|
366
|
+
**write** the files of [The appetite layout](#the-appetite-layout) from the (reconciled) files in
|
|
341
367
|
`work/`. **Copy, do not retype**: cut each section out of `work/F<k>.md` with the shell (`sed -n`,
|
|
342
368
|
`awk`, `node -e`) or your editor instead of writing it out again — a trace is tens of KB.
|
|
343
|
-
- `
|
|
369
|
+
- `appetites/<nn>-<name>/slicing/F<k>.md` — one per Feature: the `## Slicing` … `### Coverage` part of
|
|
344
370
|
`work/F<k>.md` (the Walking Skeleton proposal, Pruned, Bites and Self-check go elsewhere; the
|
|
345
371
|
Assumptions to the `## Notes` of `context.md`): its reconciled trace (Steps, options,
|
|
346
372
|
strategies, targets, bite of each live option, Coverage) exactly as the slicer wrote it plus the
|
|
347
373
|
trio's added options. The slicer's `skeleton` marker stays on the options of the proposed
|
|
348
|
-
skeleton; `bokata-
|
|
349
|
-
- `
|
|
374
|
+
skeleton; `bokata-spec` replaces it with `→ Slice n` when a Slice takes them;
|
|
375
|
+
- `appetites/<nn>-<name>/pruned.md` (the full `### Pruned` list, with its count by reason),
|
|
350
376
|
`context.md` (`work/context.md`, moved, with `## Notes` and `## Trio notes` appended after the Discovery Context);
|
|
351
|
-
then **delete `work/`**. **There is no `
|
|
352
|
-
- the index `
|
|
353
|
-
header with `Status: open`; an **empty** `##
|
|
377
|
+
then **delete `work/`**. **There is no `slice-<n>.md`**: nothing is specified yet;
|
|
378
|
+
- the index `appetites/<nn>-<name>.md` from [appetite-template.md](resources/appetite-template.md):
|
|
379
|
+
header with the `Appetite:` sentence and `Status: open`; an **empty** `## Slices` (its comment only); `## Backlog` with
|
|
354
380
|
**every bite**, grouped by Feature and User Task and ordered by value (must-have first,
|
|
355
381
|
`~nice-to-have` after), each on one line **copied as the slicer returned it** (the canonical
|
|
356
382
|
bite line of `output-template-bites.md`; never reformat it), the skeleton bites as
|
|
357
|
-
`(skeleton)` lines with no `→
|
|
358
|
-
list of option IDs. Put **`### Proposed
|
|
383
|
+
`(skeleton)` lines with no `→ Slice`; `deferred` bites (`F1-d1`, …) in their own group; never a flat
|
|
384
|
+
list of option IDs. Put **`### Proposed slices`** above the bites (3e); and `## Files` linking
|
|
359
385
|
everything above.
|
|
360
|
-
2. In `features.md`, set each picked Feature's `**
|
|
361
|
-
`**
|
|
386
|
+
2. In `features.md`, set each picked Feature's `**Appetite:**` line:
|
|
387
|
+
`**Appetite:** → <nn>-<name> · 0/<total> options · next: <bite ID> <bite title>` (the first bite of
|
|
362
388
|
the first proposed row). Nothing else about the slicing goes into `features.md`.
|
|
363
389
|
3. **Refresh the story map** (if `story_map`): run the `bokata-render` script, in the foreground:
|
|
364
390
|
```bash
|
|
365
391
|
node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug>
|
|
366
392
|
```
|
|
367
|
-
If it prints a `file:line: problem`, the
|
|
393
|
+
If it prints a `file:line: problem`, the appetite or `features.md` broke the format: fix it and run it again.
|
|
368
394
|
|
|
369
395
|
---
|
|
370
396
|
|
|
@@ -373,53 +399,105 @@ first row of the roadmap. The owner reviews it in the index and decides at `boka
|
|
|
373
399
|
- [ ] Every picked Feature was sliced by a `feature-slicer` subagent and passed the gate
|
|
374
400
|
- [ ] The trio reviewed the full traces and the bites; their added options are in the Slicing
|
|
375
401
|
and each in exactly one bite
|
|
376
|
-
- [ ] The
|
|
377
|
-
folder: `slicing/F<k>.md` per Feature, `context.md`, `pruned.md` — and **no** `
|
|
378
|
-
- [ ] `features.md` gained only a `**
|
|
402
|
+
- [ ] The appetite has its index (the `Appetite:` sentence, empty `## Slices`, Backlog of bites, `### Proposed slices`) and its
|
|
403
|
+
folder: `slicing/F<k>.md` per Feature, `context.md`, `pruned.md` — and **no** `slice-<n>.md`
|
|
404
|
+
- [ ] `features.md` gained only a `**Appetite:**` line per picked Feature
|
|
379
405
|
- [ ] The `bokata-render` script ran without errors (if `story_map`)
|
|
380
406
|
|
|
381
407
|
Print:
|
|
382
408
|
```
|
|
383
|
-
## ✓
|
|
409
|
+
## ✓ Appetite Ready — a proposal
|
|
384
410
|
|
|
385
|
-
**
|
|
386
|
-
**Location:** <docs>/{{INITIATIVE_SLUG}}/
|
|
411
|
+
**Appetite:** <nn>-<name> — Features: {{FEATURES}} · open
|
|
412
|
+
**Location:** <docs>/{{INITIATIVE_SLUG}}/appetites/<nn>-<name>.md (+ the folder <nn>-<name>/)
|
|
387
413
|
|
|
388
414
|
**Slicing:** {{NUM_STEPS}} Steps · {{NUM_OPTIONS_TOTAL}} options ({{NUM_PRUNED}} pruned) · {{NUM_BITES}} bites ({{NUM_MUST}} must-have · {{NUM_NICE}} nice-to-have · {{NUM_DEFERRED}} deferred)
|
|
389
|
-
**Trio notes:** {{N}} (see the
|
|
415
|
+
**Trio notes:** {{N}} (see the appetite)
|
|
390
416
|
|
|
391
|
-
**Proposed
|
|
417
|
+
**Proposed slices:** Slice 1 {{SLICE_1_ONE_LINE}} · Slice 2 {{SLICE_2_ONE_LINE}} · Slice 3 {{SLICE_3_ONE_LINE}} …
|
|
392
418
|
Nothing is specified yet. Review the index and edit the proposal by hand if you want: move bites between
|
|
393
|
-
|
|
419
|
+
slices, add or drop bites, reorder the rows.
|
|
394
420
|
|
|
395
|
-
**Next step:** `bokata-
|
|
421
|
+
**Next step:** `bokata-spec` — specifies the first proposed slice (Slice 1, the Walking Skeleton):
|
|
396
422
|
its rules, its concrete ACs and your approval. Then `bokata-plan`.
|
|
397
423
|
```
|
|
398
424
|
|
|
399
425
|
---
|
|
400
426
|
|
|
427
|
+
## Adopt (`--from <nn>`): continue what a done appetite left
|
|
428
|
+
|
|
429
|
+
A `done` appetite means *enough*, not *complete*: it usually leaves bites untaken. To go on, do **not**
|
|
430
|
+
reopen it: make a **new appetite that adopts the leftover**. The built Slices stay as history; the new
|
|
431
|
+
appetite has its own sentence, its own cut line and its own Slice numbers, starting at 1.
|
|
432
|
+
|
|
433
|
+
**The leftover** of a `done` appetite is the bites of its `## Backlog` with no `→ Slice n` (`must-have`,
|
|
434
|
+
`~nice-to-have` and `deferred`), the options of those bites in `slicing/F<k>.md`, and its `pruned.md`.
|
|
435
|
+
|
|
436
|
+
`bokata-slice "<appetite>" --from <nn>` runs it. With no argument and no `--from`, if a done appetite
|
|
437
|
+
has leftover, offer *"Continue <nn>-<name>: <k> bites left (<m> must-have): <first titles>"* among the
|
|
438
|
+
example appetites of Step 1. Refuse an appetite that is still `open` (use `bokata-spec` on it, or
|
|
439
|
+
`--done` first) and a Feature that has another open appetite.
|
|
440
|
+
|
|
441
|
+
1. **Show the leftover**, grouped by Feature and User Task, `must-have` first, deferred last, with what
|
|
442
|
+
the done appetite built (its Slices' outcomes) and what it learned (the `## Learned` entries of its `slice-<n>.md`, with the leftover bites they affect). Get the appetite sentence as in Step 1, now
|
|
443
|
+
*from the leftover*: "what do you want to have **now**?", with the cut line drawn over the bites.
|
|
444
|
+
Recommend the bites that serve the sentence; the user picks. **The bites not picked stay in the
|
|
445
|
+
source appetite's Backlog**, still adoptable later. A `deferred` bite: ask whether its reason
|
|
446
|
+
still holds, as `bokata-spec` does.
|
|
447
|
+
2. **Number and name the new appetite** (as Step 1), `mkdir -p appetites/<mm>-wip/work`.
|
|
448
|
+
3. **Move, do not copy** (an option or a bite lives in one place):
|
|
449
|
+
- the picked **bite lines** go to the new index's `## Backlog`, same IDs and same lines. A
|
|
450
|
+
`depends on` that named something the source built (`Slice 1`, a taken bite) becomes
|
|
451
|
+
`built (<nn> · Slice <n>)`; one that names a source bite not picked: ask to add it, or flag it;
|
|
452
|
+
- their **options** go to the new `slicing/F<k>.md`: the User Task headings and every Step line
|
|
453
|
+
of the source trace come along (Step, layer, target), but only the picked options. A Step whose
|
|
454
|
+
options were built gets `· note: built in <nn> (F1-2.1 → Slice 1)`. The moved options leave the
|
|
455
|
+
source's `slicing/F<k>.md`;
|
|
456
|
+
- the source's `pruned.md` lines for those Features are **copied** to the new `pruned.md` (the
|
|
457
|
+
pruned options are not live, and the Trio may restore one);
|
|
458
|
+
- `context.md`: a Discovery Context for the new appetite — the sentence, what was built,
|
|
459
|
+
`Adopted from <nn>-<name>` (a link to its index), plus anything the user adds — and a link to the
|
|
460
|
+
source's `context.md` for the layer and constraint decisions, which are not copied;
|
|
461
|
+
- in the **source** appetite's `context.md` `## Notes`: `Leftover adopted by <mm>-<name>: <bite IDs>`.
|
|
462
|
+
4. **Review.** There is no slicer wave: the leftover is already sliced and pruned. Run **Wave 2 of Step 3c**
|
|
463
|
+
(the Trio, paths only) with one more line: *"This appetite adopts what <nn> left; what <nn> built is
|
|
464
|
+
in its `slice-<n>.md` files. Do the picked bites still make sense after what was built, and does
|
|
465
|
+
their order serve the `Appetite:` sentence?"* Then Step 3d. The gate of 3b is only mechanical here:
|
|
466
|
+
every picked option is in exactly one bite, every bite has its fields, no dependency cycle. A
|
|
467
|
+
missing option gets the next free ID **across both appetites' traces**.
|
|
468
|
+
5. **Roadmap.** Write `### Proposed slices` from the picked bites as in 3e, but **with no skeleton
|
|
469
|
+
row**: the skeleton is already built, so `Slice 1` is simply the first bites to build now, and
|
|
470
|
+
"Why this order" says what it builds on and what it leaves open.
|
|
471
|
+
6. Write the index (Step 4) with an `Adopts:` line in its header, set the `**Appetite:**` line of each
|
|
472
|
+
Feature (`→ <mm>-<name> · … · earlier: <nn>-<name> done`), run the `bokata-render` script, and
|
|
473
|
+
print the summary of Step 5 with `Adopts:` and the bites left in the source.
|
|
474
|
+
|
|
401
475
|
## Done (`--done`)
|
|
402
476
|
|
|
403
|
-
Only when the user asks — nothing marks
|
|
404
|
-
`
|
|
405
|
-
`State` is not `done`, unchecked steps in `plan.md`, a `## Pending` item, a proposed
|
|
406
|
-
was never specified — and
|
|
477
|
+
Only when the user asks — nothing marks an appetite done by itself. First **sweep**: read every
|
|
478
|
+
`slice-<n>.md` and `plan.md`'s section for this appetite and **list what is still open** — a Slice whose
|
|
479
|
+
`State` is not `done`, unchecked steps in `plan.md`, a `## Pending` item, a proposed slice that
|
|
480
|
+
was never specified — and **compare what is built with the `Appetite:` sentence of the index**:
|
|
481
|
+
say what the user can do now, what the sentence asks that is still missing, and which `must-have`
|
|
482
|
+
bites are still in the backlog (a `must-have` is a bite the appetite is not satisfied without).
|
|
483
|
+
*Done* means *enough*: the user may close an appetite with must-haves untaken; then list them in
|
|
484
|
+
the closing note. Ask whether to go on. Then set `Status: done` in the index header,
|
|
407
485
|
add a closing line to the `## Notes` of `context.md` (what is built, which bites stay in the backlog),
|
|
408
|
-
delete this
|
|
486
|
+
delete this appetite's section from `plan.md` if it still has one, update the `**Appetite:**` lines in
|
|
409
487
|
`features.md` with `· done`, and run the `bokata-render` script. The backlog and the proposed
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
a done *
|
|
413
|
-
its
|
|
488
|
+
slices stay in the index, as what the appetite left. To build more of these Features later, a **new**
|
|
489
|
+
appetite adopts that leftover (`bokata-slice "<appetite>" --from <nn>`); a done appetite is not reopened. A done *appetite* is not
|
|
490
|
+
a done *slice*: the `State: done` of a Slice is set by the executor, and a done appetite renders all
|
|
491
|
+
its Slices as done.
|
|
414
492
|
|
|
415
493
|
## Check (`--check`)
|
|
416
494
|
|
|
417
495
|
Run `node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug> --check`: it parses
|
|
418
|
-
`features.md`, the
|
|
419
|
-
`file:line: problem` (
|
|
420
|
-
Slicing,
|
|
421
|
-
a bite
|
|
422
|
-
markdown, never the parser. It is what to run after editing the proposed
|
|
496
|
+
`features.md`, the appetites and `plan.md` with the same parser the story map uses and prints every
|
|
497
|
+
`file:line: problem` (a Slice naming a bite that has no line, a bite whose option is not in the
|
|
498
|
+
Slicing, a Slice with no `slice-<n>.md`, an unknown `State`, a proposed row that names an unknown bite or
|
|
499
|
+
a bite a Slice already took, a bite in two rows, …) without writing anything. Report them; fix the
|
|
500
|
+
markdown, never the parser. It is what to run after editing the proposed slices by hand.
|
|
423
501
|
|
|
424
502
|
---
|
|
425
503
|
|
|
@@ -432,12 +510,12 @@ markdown, never the parser. It is what to run after editing the proposed increme
|
|
|
432
510
|
- [ ] Cross-Feature `depends on: F<n> (…)` references were resolved to bite IDs, with no cycle
|
|
433
511
|
- [ ] Wave 2 (trio) saw the full traces and the bites and completed before reconciliation
|
|
434
512
|
- [ ] The Backlog lists bites with user-language titles, never loose option IDs
|
|
435
|
-
- [ ] `### Proposed
|
|
513
|
+
- [ ] `### Proposed slices` exists: Slice 1 (the skeleton bites, one per User Task) first, every must-have bite
|
|
436
514
|
in exactly one row, dependencies respected, a reason per row
|
|
437
|
-
- [ ] The skeleton covers every User Task of the picked Features
|
|
438
|
-
- [ ] **No concrete ACs and no `
|
|
515
|
+
- [ ] The skeleton covers every User Task of the picked Features as skeleton bites with no `→ Slice`, or says under `Left out of the skeleton:` which it skips and why
|
|
516
|
+
- [ ] **No concrete ACs and no `slice-<n>.md`**: specifying is `bokata-spec`'s job
|
|
439
517
|
- [ ] No duration written anywhere
|
|
440
|
-
- [ ] `features.md` holds only the summary `**
|
|
518
|
+
- [ ] `features.md` holds only the summary `**Appetite:**` line per Feature
|
|
441
519
|
- [ ] No subagent prompt contains a pasted trace, report or Discovery Context: only paths
|
|
442
|
-
- [ ] The `work/` folder is gone and `
|
|
443
|
-
- [ ] The `bokata-render` script ran right after the
|
|
520
|
+
- [ ] The `work/` folder is gone and `appetites/<nn>-wip` was renamed
|
|
521
|
+
- [ ] The `bokata-render` script ran right after the appetite was final
|