bokata 3.0.0-beta.5 → 3.0.0-beta.7
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 +19 -14
- 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 -28
- package/.agents/skills/bokata-plan/resources/plan-template.md +13 -13
- package/.agents/skills/bokata-render/SKILL.md +21 -21
- package/.agents/skills/bokata-render/assets/story-map.html +91 -91
- package/.agents/skills/bokata-render/scripts/render.mjs +219 -159
- package/.agents/skills/bokata-shape/SKILL.md +2 -2
- package/.agents/skills/bokata-slice/SKILL.md +230 -277
- 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 +30 -24
- package/.agents/skills/bokata-tdd/SKILL.md +12 -12
- package/README.md +496 -199
- package/agents/bokata-product-designer.md +11 -9
- package/agents/bokata-product-engineer.md +14 -12
- package/agents/bokata-product-manager.md +12 -10
- 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 +4 -2
- package/.agents/skills/bokata-slice/resources/inc-template.md +0 -36
- package/.agents/skills/bokata-slice/resources/slice-template.md +0 -69
- /package/.agents/skills/bokata-feature-slicer/resources/{output-template-increments.md → output-template-options.md} +0 -0
|
@@ -11,7 +11,7 @@ The **Acceptance Criteria Generator** transforms User Tasks and requirements int
|
|
|
11
11
|
|
|
12
12
|
This skill is flexible and methodology-agnostic regarding timing. It can generate criteria from a Feature Backbone, detailed Step Analysis, or raw User Stories.
|
|
13
13
|
|
|
14
|
-
> **Where it fits:** `bokata-feature-map` calls it with `--functional` (a few Requirements per User Task, written into `features.md`) and `bokata-
|
|
14
|
+
> **Where it fits:** `bokata-feature-map` calls it with `--functional` (a few Requirements per User Task, written into `features.md`) and `bokata-spec` calls it with `--concrete` for **one slice** at a time. Standalone, use it whenever you need **thorough coverage**: full edge cases, permission scenarios, boundary conditions, error states and concurrency rules.
|
|
15
15
|
|
|
16
16
|
## Prerequisites
|
|
17
17
|
|
|
@@ -24,9 +24,9 @@ This skill is flexible and methodology-agnostic regarding timing. It can generat
|
|
|
24
24
|
|
|
25
25
|
This skill supports two depth modes, selected via an argument flag:
|
|
26
26
|
|
|
27
|
-
- **`--functional`** (used when generating ACs directly from a Features Backbone, before slicing exists): Produces **Requirement + Scenario** style output matching openspec spec conventions — a SHALL-statement Requirement per Rule, with one or more WHEN/THEN Scenarios covering the primary rule and its most important variant. Optimized for business-rule clarity and traceability, not exhaustive edge-case coverage. Never scoped to
|
|
27
|
+
- **`--functional`** (used when generating ACs directly from a Features Backbone, before slicing exists): Produces **Requirement + Scenario** style output matching openspec spec conventions — a SHALL-statement Requirement per Rule, with one or more WHEN/THEN Scenarios covering the primary rule and its most important variant. Optimized for business-rule clarity and traceability, not exhaustive edge-case coverage. Never scoped to a slice (slicing has not happened yet at this stage). Use [Functional Output Template](resources/output-template-functional.md).
|
|
28
28
|
|
|
29
|
-
- **`--concrete`** (used
|
|
29
|
+
- **`--concrete`** (used by `bokata-spec`, after a Feature has been sliced, for one slice): Produces full Gherkin Given/When/Then coverage — happy path, edge cases, boundary conditions, error states, concurrency rules, and negative permission scenarios — for the slice named in the input (`bokata-spec` passes one: its option IDs, their descriptions and its User Task tags). Write scenarios only for what that slice's options promise: an option marked fake, hardcoded or manual gets scenarios for what the user sees, not for the real thing. Group scenarios by User Task. Use [Concrete Output Template](resources/output-template.md).
|
|
30
30
|
|
|
31
31
|
If no flag is provided, default to `--concrete` behavior (preserves current behavior for direct/standalone invocations).
|
|
32
32
|
|
|
@@ -187,12 +187,12 @@ For EACH User Task:
|
|
|
187
187
|
- Is the data concrete and meaningful?
|
|
188
188
|
- Did I avoid UI implementation details?
|
|
189
189
|
- Are Feature and Task IDs cross-linked from the backbone?
|
|
190
|
-
- **If `--concrete` with Walking Skeleton input**: Are scenarios grouped by skeleton item/
|
|
190
|
+
- **If `--concrete` with Walking Skeleton input**: Are scenarios grouped by skeleton item/slice, not just by User Task?
|
|
191
191
|
|
|
192
192
|
### ▶️ Execute:
|
|
193
193
|
Generate markdown output via:
|
|
194
194
|
- **If `--functional`**: [Functional Output Template](resources/output-template-functional.md) (Requirement + WHEN/THEN Scenarios, whole-Feature scope)
|
|
195
|
-
- **If `--concrete`**: [Concrete Output Template](resources/output-template.md) (full Gherkin, per-skeleton-item/
|
|
195
|
+
- **If `--concrete`**: [Concrete Output Template](resources/output-template.md) (full Gherkin, per-skeleton-item/slice grouping if applicable)
|
|
196
196
|
|
|
197
197
|
---
|
|
198
198
|
|
|
@@ -231,4 +231,4 @@ Before finishing, verify your output:
|
|
|
231
231
|
|
|
232
232
|
**Depth Mode Specific:**
|
|
233
233
|
- [ ] **If `--functional`**: Output uses `### Requirement:` + `#### Scenario:` headers (not strict Given/When/Then); coverage is breadth (primary rule + key variants) not exhaustive edge cases
|
|
234
|
-
- [ ] **If `--concrete`**: Output uses strict `Given/When/Then` Gherkin; coverage is exhaustive (edge cases, boundary, concurrency, permissions); if Walking Skeleton input is present, scenarios are grouped by skeleton item /
|
|
234
|
+
- [ ] **If `--concrete`**: Output uses strict `Given/When/Then` Gherkin; coverage is exhaustive (edge cases, boundary, concurrency, permissions); if Walking Skeleton input is present, scenarios are grouped by skeleton item / slice ID
|
|
@@ -212,9 +212,9 @@ The paths and formats in `.bokata.json` win over the domain skill's own.
|
|
|
212
212
|
|
|
213
213
|
## Step 5: Write features.md & Render the Story Map
|
|
214
214
|
|
|
215
|
-
One file holds the backbone and its functional ACs, so
|
|
215
|
+
One file holds the backbone and its functional ACs, so an appetite can be chosen from a single place:
|
|
216
216
|
|
|
217
|
-
1. **Write** `<docs>/<initiative-slug>/features.md` from the features template: the final reconciled backbone, the functional ACs of each User Task placed **under that User Task** and re-levelled to the template's shape (each `### Requirement:` becomes `###### Requirement:`, each `#### Scenario:` + its WHEN/THEN bullets becomes one line `- **Scenario: <name>** — **WHEN** … **THEN** …`), a `**
|
|
217
|
+
1. **Write** `<docs>/<initiative-slug>/features.md` from the features template: the final reconciled backbone, the functional ACs of each User Task placed **under that User Task** and re-levelled to the template's shape (each `### Requirement:` becomes `###### Requirement:`, each `#### Scenario:` + its WHEN/THEN bullets becomes one line `- **Scenario: <name>** — **WHEN** … **THEN** …`), a `**Appetite:** not sliced yet` line per Feature (filled later by `bokata-slice`; the slicing itself lives in the appetite files, never here), and `## Trio Reconciliation Notes`.
|
|
218
218
|
|
|
219
219
|
2. **Render the story map** (if `story_map` is true): once `features.md` is final, run the `bokata-render` script, in the foreground:
|
|
220
220
|
```bash
|
|
@@ -228,7 +228,7 @@ One file holds the backbone and its functional ACs, so a slice can be chosen fro
|
|
|
228
228
|
|
|
229
229
|
This step is a **checklist verification** only — no rendering work happens here:
|
|
230
230
|
|
|
231
|
-
- [ ] `<docs>/<initiative-slug>/features.md` exists and is final (backbone + functional ACs + a `**
|
|
231
|
+
- [ ] `<docs>/<initiative-slug>/features.md` exists and is final (backbone + functional ACs + a `**Appetite:**` line per Feature)
|
|
232
232
|
- [ ] The `bokata-render` script ran for `story-map.html` (if `story_map`)
|
|
233
233
|
|
|
234
234
|
---
|
|
@@ -251,7 +251,7 @@ Print to user:
|
|
|
251
251
|
|
|
252
252
|
---
|
|
253
253
|
|
|
254
|
-
**Next step:** Run `bokata-slice {{INITIATIVE_SLUG}}` and pick 1–4
|
|
254
|
+
**Next step:** Run `bokata-slice {{INITIATIVE_SLUG}}` and say what you want for now, or pick the Features (usually 1–4) that make sense together. Suggested first appetite: [the thinnest group of Features that makes the journey usable end to end].
|
|
255
255
|
```
|
|
256
256
|
|
|
257
257
|
---
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- The backbone uses bokata-feature-mapper's output format unchanged; each User Task carries
|
|
6
6
|
its functional ACs (bokata-acceptance-criteria --functional) right below it, and each
|
|
7
|
-
Feature ends with a one-line `**
|
|
8
|
-
summary: the slicing (Steps, options,
|
|
7
|
+
Feature ends with a one-line `**Appetite:**` summary that bokata-slice fills (and bokata-spec keeps current). This file is the
|
|
8
|
+
summary: the slicing (Steps, options, slices, backlog) lives in appetites/<nn>-<name>.md.
|
|
9
9
|
Single mode (bokata-slice from a pitch) writes `<!-- Mode: single -->` and keeps only the
|
|
10
|
-
one Feature's header, Purpose, User Task names and
|
|
10
|
+
one Feature's header, Purpose, User Task names and Appetite line. -->
|
|
11
11
|
|
|
12
12
|
## Features Backbone
|
|
13
13
|
|
|
@@ -51,8 +51,8 @@ The system [description of what it executes and what it produces].
|
|
|
51
51
|
- [State name]: [Description]
|
|
52
52
|
- [State name]: [Description]
|
|
53
53
|
|
|
54
|
-
**
|
|
55
|
-
<!-- Set by bokata-slice: → {nn-name} · {taken}/{total} options · next: {bite ID} {bite title} [· done] -->
|
|
54
|
+
**Appetite:** not sliced yet
|
|
55
|
+
<!-- Set by bokata-slice, kept current by bokata-spec: → {nn-name} · {taken}/{total} options · next: {bite ID} {bite title} [· done] -->
|
|
56
56
|
|
|
57
57
|
---
|
|
58
58
|
|
|
@@ -272,4 +272,4 @@ Quick scan — flag any task whose name contains:
|
|
|
272
272
|
|
|
273
273
|
1. **Save output** where appropriate
|
|
274
274
|
2. **Validate** - Check MIN 2 Features, 3+ Tasks per Feature
|
|
275
|
-
3. **Run next phase:** `bokata-slice`
|
|
275
|
+
3. **Run next phase:** `bokata-slice` cuts what you want for now (an appetite: a sentence and usually 1–4 Features) into
|
|
@@ -23,9 +23,10 @@ Feature
|
|
|
23
23
|
|
|
24
24
|
Bite F1-a … (Phase 4 — options of one or several Steps that make sense together; INVEST)
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
Slice = one or several bites (or the Walking Skeleton) that the user can see or use.
|
|
27
|
+
Appetite = what you want for now (a sentence) and its Features, usually 1–4; the container of the slices (bokata-slice creates it).
|
|
28
|
+
Slices are proposed by bokata-slice and specified later, one at a time, by bokata-spec; this
|
|
29
|
+
skill proposes the first one, the Walking Skeleton, and the bites the later ones are picked from.
|
|
29
30
|
```
|
|
30
31
|
|
|
31
32
|
**Exploring is wide, the backlog is narrow.** Phase 2 produces many options on purpose (quotas,
|
|
@@ -46,11 +47,11 @@ summary below only names:
|
|
|
46
47
|
| Resource | Use it for |
|
|
47
48
|
|----------|-----------|
|
|
48
49
|
| [phase-1-steps.md](resources/phase-1-steps.md) | Step analysis, layers, good/bad Steps |
|
|
49
|
-
| [phase-2-
|
|
50
|
+
| [phase-2-options.md](resources/phase-2-options.md) | Option generation, examples, common issues |
|
|
50
51
|
| [breakdown-strategies.md](resources/breakdown-strategies.md) | The strategy toolkit and linguistic patterns |
|
|
51
52
|
| [phase-3-skeleton.md](resources/phase-3-skeleton.md) | Walking Skeleton selection and validation |
|
|
52
53
|
| [phase-4-bites.md](resources/phase-4-bites.md) | Pruning reasons, Step targets, INVEST bites, bite titles |
|
|
53
|
-
| [output-template-steps.md](resources/output-template-steps.md), [output-template-
|
|
54
|
+
| [output-template-steps.md](resources/output-template-steps.md), [output-template-options.md](resources/output-template-options.md), [output-template-bites.md](resources/output-template-bites.md) | The output format |
|
|
54
55
|
|
|
55
56
|
---
|
|
56
57
|
|
|
@@ -65,12 +66,12 @@ summary below only names:
|
|
|
65
66
|
|
|
66
67
|
**Skip it** if a `## Discovery Context — Slicer` (or an orchestrator's equivalent) is in the
|
|
67
68
|
input. Otherwise, scan the User Tasks for gaps whose answer would change a Step or an option
|
|
68
|
-
(technical clarity, layer ambiguity,
|
|
69
|
+
(technical clarity, layer ambiguity, slice scope, dependencies, constraints). Ask them in one
|
|
69
70
|
round, numbered, each with your recommended answer, and **wait for the answers**. State the
|
|
70
71
|
assumptions you make for everything you do not ask.
|
|
71
72
|
|
|
72
73
|
A scope decision ("only preview, no horn") **defers** options; it never deletes them. Deferred
|
|
73
|
-
options are still listed, marked `deferred`, so a later
|
|
74
|
+
options are still listed, marked `deferred`, so a later slice can pick them up.
|
|
74
75
|
|
|
75
76
|
## Phase 1 — Steps
|
|
76
77
|
|
|
@@ -110,8 +111,10 @@ prunes what turns out to be filler, with a reason.
|
|
|
110
111
|
2. **Walking Skeleton proposal.** For each User Task, choose the option per Step that makes the
|
|
111
112
|
whole flow work end to end with the least: "if we had to ship tomorrow, which one?" It should
|
|
112
113
|
feel uncomfortably minimal. Compare every option, not just `.1`; prefer reversible ones,
|
|
113
|
-
especially in the Data layer.
|
|
114
|
-
|
|
114
|
+
especially in the Data layer. **Cover every User Task** (a strong suggestion: skip one only with
|
|
115
|
+
a reason, on a `Left out of the skeleton:` line); System Tasks that User Tasks depend on come
|
|
116
|
+
first. Write it as option IDs per User Task plus what the user can do, and say which seams are
|
|
117
|
+
**real** and which **faked**.
|
|
115
118
|
|
|
116
119
|
## Phase 4 — Bite-sizing
|
|
117
120
|
|
|
@@ -122,10 +125,10 @@ Run it on the whole trace, after the Walking Skeleton. Read [phase-4-bites.md](r
|
|
|
122
125
|
gives more for a similar cost), `filler` (exists only for the quota), `contradicts` (against
|
|
123
126
|
the PRD, an ADR, the constitution or the Discovery Context). **Delete it from the trace**; the
|
|
124
127
|
output keeps only the `### Pruned` list with each reason. Never renumber IDs.
|
|
125
|
-
2. **A target per Step**: the option the
|
|
128
|
+
2. **A target per Step**: the option the appetite should reach in that Step. Mark it `→ target`.
|
|
126
129
|
3. **INVEST bites per User Task.** Every live option that is not in the skeleton goes in
|
|
127
130
|
**exactly one** bite, with: an ID (`F1-a`), a title **in user language with a subject**,
|
|
128
|
-
`must-have` or `~nice-to-have`, its options and Steps, what it depends on (a bite ID, `
|
|
131
|
+
`must-have` or `~nice-to-have`, its options and Steps, what it depends on (a bite ID, `Slice 1`,
|
|
129
132
|
`none`, or `F<n> (<what it needs>)` for another Feature: you cannot know their bite IDs), one
|
|
130
133
|
line of value, and a one-sentence check. Write each bite as the canonical line of
|
|
131
134
|
[output-template-bites.md](resources/output-template-bites.md). A bite over ~5 options is split. `deferred` options form their
|
|
@@ -135,7 +138,7 @@ Run it on the whole trace, after the Walking Skeleton. Read [phase-4-bites.md](r
|
|
|
135
138
|
|
|
136
139
|
## Output
|
|
137
140
|
|
|
138
|
-
Write exactly this to the file the coordinator gave you (`bokata-slice` later splits it into the
|
|
141
|
+
Write exactly this to the file the coordinator gave you (`bokata-slice` later splits it into the appetite's `slicing/F<k>.md`, `pruned.md` and Backlog), and reply with a few lines — the path and the Self-check counts — never with the content:
|
|
139
142
|
|
|
140
143
|
```markdown
|
|
141
144
|
## Slicing: <Feature name>
|
|
@@ -163,13 +166,15 @@ Write exactly this to the file the coordinator gave you (`bokata-slice` later sp
|
|
|
163
166
|
- **[<User Task name>]** F1-1.1 + F1-2.1 + F1-3.2 — <what the user can do end to end>
|
|
164
167
|
- **[<User Task name>]** F1-4.1 + F1-5.1 — <…>
|
|
165
168
|
- Why: <one line per non-obvious pick, e.g. "F1-3.2 over F1-3.1: reversible, no migration">
|
|
169
|
+
- Seams: real <what runs for real, e.g. the DB write> · faked <the crutches, e.g. hardcoded clip list>
|
|
170
|
+
- Left out of the skeleton: <User Task — reason> <!-- only if one is skipped -->
|
|
166
171
|
|
|
167
172
|
### Pruned
|
|
168
173
|
- F1-1.5 <Action Object> — `obsolete` | `dominated` | `filler` | `contradicts`: <one line why>
|
|
169
174
|
|
|
170
175
|
### Bites
|
|
171
176
|
- **[<User Task name>]**
|
|
172
|
-
- **F1-a · <title in user language, with a subject>** (must-have) — F1-1.2, F1-3.3 · depends on:
|
|
177
|
+
- **F1-a · <title in user language, with a subject>** (must-have) — F1-1.2, F1-3.3 · depends on: Slice 1 · value: <one line> · check: <one sentence>
|
|
173
178
|
- ~**F1-b · <title>** (nice-to-have) — F1-2.3 · depends on: F1-a · value: <…> · check: <…>
|
|
174
179
|
- **Deferred**
|
|
175
180
|
- **F1-d1 · <title>** (deferred: <reason>) — F1-1.4 · prune and split when recovered
|
|
@@ -192,7 +197,7 @@ Steps with a target <n>/<n> · Bites <n> (must-have <n> · nice-to-have <n> · d
|
|
|
192
197
|
- [ ] Every option says what changes for the user and names its shortcut; no endpoints/fields/functions
|
|
193
198
|
- [ ] Options were generated before reading the functional ACs; every Requirement appears in Coverage (or Coverage says `none — no functional ACs`)
|
|
194
199
|
- [ ] Discovery scope cuts appear as `deferred` options, not as missing ones
|
|
195
|
-
- [ ] The Walking Skeleton covers every User Task, uses option IDs, and no duration is written anywhere
|
|
200
|
+
- [ ] The Walking Skeleton covers every User Task (or lists each one left out, with a reason), names its real and faked seams, uses option IDs, and no duration is written anywhere
|
|
196
201
|
- [ ] Every pruned option has a reason from the four, is gone from the trace, and none was a skeleton or `deferred` option
|
|
197
202
|
- [ ] Every Step has exactly one `→ target`
|
|
198
203
|
- [ ] Every live option is in exactly one bite; every bite has all its fields, a title with a subject that reads without its Step, and no more than ~5 options
|
|
@@ -32,7 +32,10 @@ If no linguistic patterns are found, use the **Automation Gradient** (Strategy 0
|
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
## Strategy 0: Automation Gradient (default fallback)
|
|
35
|
+
## Strategy 0: Automation Gradient (bokata's own, default fallback)
|
|
36
|
+
|
|
37
|
+
This one is not from the authors bokata cites: it is bokata's own lens, kept as the fallback when no
|
|
38
|
+
linguistic pattern shows an obvious split.
|
|
36
39
|
|
|
37
40
|
When no linguistic pattern signals an obvious split, use this gradient as a starting lens to generate options across the automation spectrum:
|
|
38
41
|
|
|
@@ -113,10 +116,15 @@ Instead of splitting work based on technical inputs or workflows, focus on **del
|
|
|
113
116
|
- Sacrifice usability initially, refine later
|
|
114
117
|
- Example: "Command line interface" → "Basic web form" → "Rich UI with validation"
|
|
115
118
|
|
|
116
|
-
## 16. SPIDR
|
|
117
|
-
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
- **Data**: Different data types/sources
|
|
121
|
-
- **Rules**: Different business rules
|
|
119
|
+
## 16. SPIDR (Mike Cohn): a lookup index, not another strategy
|
|
120
|
+
|
|
121
|
+
SPIDR is a well-known checklist that groups the splits above, so it is kept by name. Each letter
|
|
122
|
+
points at the strategies that already cover it; use whichever name you remember:
|
|
122
123
|
|
|
124
|
+
| SPIDR | Question | Already covered by |
|
|
125
|
+
|---|---|---|
|
|
126
|
+
| **S**pikes | Is there something to learn before building? | 14. Split Learning from Earning |
|
|
127
|
+
| **P**aths | Are there different paths through the flow? | 2. Workflow Simplification · 7. Use Case Isolation |
|
|
128
|
+
| **I**nterfaces | Can the interface or output start simpler? | 13. Simplify Outputs · 15. Extract Basic Utility |
|
|
129
|
+
| **D**ata | Can it start with less variety or volume of data? | 5. Data Variation Reduction · 11. Split by Capacity |
|
|
130
|
+
| **R**ules | Can a business rule start simpler? | 4. Business Rule Progression |
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
never renumbered after pruning.
|
|
5
5
|
|
|
6
6
|
THE CANONICAL BITE LINE. Copy it as written, never reformat it: bokata-slice pastes it into
|
|
7
|
-
the
|
|
7
|
+
the appetite's Backlog unchanged and the story map parses it.
|
|
8
8
|
- **<ID> · <title>** (must-have) — <options> · depends on: <…> · value: <…> · check: <…>
|
|
9
9
|
- ~**<ID> · <title>** (nice-to-have) — <options> · depends on: <…> · value: <…> · check: <…>
|
|
10
10
|
- **<ID> · <title>** (deferred: <reason>) — <options> · prune and split when recovered
|
|
11
|
-
`depends on` is another bite ID, `
|
|
11
|
+
`depends on` is another bite ID, `Slice 1`, `none`, or `F<n> (<what it needs>)` for another Feature. -->
|
|
12
12
|
|
|
13
13
|
### Pruned
|
|
14
14
|
- F1-2.1 [Action] [Object] — `obsolete` | `dominated` | `filler` | `contradicts`: [one line why]
|
|
15
15
|
|
|
16
16
|
### Bites
|
|
17
17
|
- **[User Task name]**
|
|
18
|
-
- **F1-a · [title in user language, with a subject]** (must-have) — F1-2.2, F1-4.3 · depends on:
|
|
18
|
+
- **F1-a · [title in user language, with a subject]** (must-have) — F1-2.2, F1-4.3 · depends on: Slice 1 · value: [one line] · check: [one sentence a test can answer]
|
|
19
19
|
- ~**F1-b · [title]** (nice-to-have) — F1-3.4 · depends on: F1-a · value: [one line] · check: [one sentence]
|
|
20
20
|
- **Deferred**
|
|
21
21
|
- **F1-d1 · [title]** (deferred: [reason]) — F1-5.3, F1-6.1 · prune and split when recovered
|
package/.agents/skills/bokata-feature-slicer/resources/{phase-2-increments.md → phase-2-options.md}
RENAMED
|
@@ -117,7 +117,7 @@ Validate each step's options:
|
|
|
117
117
|
- [Self-check against quality criteria]
|
|
118
118
|
|
|
119
119
|
#### ▶️ Execute:
|
|
120
|
-
Generate markdown output via [Output Template](output-template-
|
|
120
|
+
Generate markdown output via [Output Template](output-template-options.md).
|
|
121
121
|
|
|
122
122
|
Formatting requirements:
|
|
123
123
|
1. One line per option, nested under its Step: `F1-N.M Name — description · strategy`
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Take the complete trace (User Tasks → Steps → Options), check it against the functional ACs, and
|
|
4
4
|
propose the **Walking Skeleton**: one combination of options per User Task that makes the whole
|
|
5
5
|
Feature work end to end with the least. The options the skeleton does not use stay in the trace
|
|
6
|
-
for now: Phase 4 prunes them and groups what is left into the bites later
|
|
6
|
+
for now: Phase 4 prunes them and groups what is left into the bites later slices are
|
|
7
7
|
composed from.
|
|
8
8
|
|
|
9
9
|
**No durations.** "Simplest" = fewest dependencies, least infrastructure, most reversible. Never
|
|
@@ -57,8 +57,8 @@ For each User Task, for each Step:
|
|
|
57
57
|
|
|
58
58
|
#### ▶️ Execute:
|
|
59
59
|
1. Choose one option per Step that the User Task needs; skip Steps that are optional for the flow.
|
|
60
|
-
2.
|
|
61
|
-
3. Write the skeleton as **option IDs per User Task**, plus one line of what the user can do.
|
|
60
|
+
2. **Cover every User Task** — a strong suggestion, since a Feature's thinnest path usually still has a fake or manual option per User Task. If one is not needed yet, leave it out on purpose and say why on a `Left out of the skeleton:` line. System Tasks that User Tasks depend on come first.
|
|
61
|
+
3. Write the skeleton as **option IDs per User Task**, plus one line of what the user can do, and a `Seams:` line: which parts run **real** and which are **faked** (the crutches). The next slices replace the faked ones.
|
|
62
62
|
4. Add a `Why:` line for every pick that is not the lowest-numbered option, or that trades
|
|
63
63
|
simplicity for reversibility.
|
|
64
64
|
|
|
@@ -72,7 +72,7 @@ Selection rules:
|
|
|
72
72
|
|
|
73
73
|
## Step 4: Validate
|
|
74
74
|
|
|
75
|
-
1. Every User Task is in the skeleton
|
|
75
|
+
1. Every User Task is in the skeleton, or listed under `Left out of the skeleton:` with a reason.
|
|
76
76
|
2. The combination works end to end; the user could try it tomorrow.
|
|
77
77
|
3. It is the MINIMUM, not just "simple".
|
|
78
78
|
4. Descriptions say what the user can do or see — technology names OK; endpoints, field schemas,
|
|
@@ -96,6 +96,7 @@ The skeleton and coverage blocks of the skill's output (see SKILL.md → Output)
|
|
|
96
96
|
- **[Picks a clip]** F1-1.1 + F1-2.1 — coach picks from a hardcoded list of 3 clips; the pick lives in memory
|
|
97
97
|
- **[Shares the clip]** F1-3.2 + F1-4.1 — coach copies a link and pastes it into the team chat by hand
|
|
98
98
|
- Why: F1-3.2 over F1-3.1 — a link needs no player accounts; F1-3.1 would force sign-up first
|
|
99
|
+
- Seams: real the link and the paste · faked the clip list (hardcoded) and the pick (in memory)
|
|
99
100
|
```
|
|
100
101
|
|
|
101
102
|
---
|
|
@@ -140,8 +141,8 @@ Generic infrastructure tasks, not option IDs; no User Task tags; no end-to-end u
|
|
|
140
141
|
**"Walking Skeleton too complex"** → Compare every option per Step; pick the one with the fewest
|
|
141
142
|
dependencies. Do not default to `.1`.
|
|
142
143
|
|
|
143
|
-
**"Not all User Tasks in the skeleton"** →
|
|
144
|
-
|
|
144
|
+
**"Not all User Tasks in the skeleton"** → Represent each one, even if minimal (a fake or manual
|
|
145
|
+
option is fine). Leave one out only on purpose, with its reason on a `Left out of the skeleton:` line.
|
|
145
146
|
|
|
146
147
|
**"Every option in the skeleton covers its requirement totally"** → You mirrored the ACs. Look
|
|
147
148
|
for the `fake` / `partial` option of each Step; if none exists, Phase 2 is missing the cheap family.
|
|
@@ -25,8 +25,8 @@ reasons, and write the reason:
|
|
|
25
25
|
| `contradicts` | Goes against the PRD, an ADR, the constitution or the Discovery Context | An option that needs sign-up when the Discovery Context says no accounts |
|
|
26
26
|
|
|
27
27
|
Rules:
|
|
28
|
-
- **Never discard** an option of the skeleton, one marked `deferred`, or one
|
|
29
|
-
taken (`→
|
|
28
|
+
- **Never discard** an option of the skeleton, one marked `deferred`, or one a Slice has already
|
|
29
|
+
taken (`→ Slice n`, when `bokata-spec` re-prunes): the story map resolves each Slice's options (those of its
|
|
30
30
|
bites) through the trace.
|
|
31
31
|
- A discard needs one of the four reasons. "I prefer the other one" is not a reason; when two
|
|
32
32
|
options are genuine alternatives, keep both and let a bite choose.
|
|
@@ -40,7 +40,7 @@ Rules:
|
|
|
40
40
|
|
|
41
41
|
## Step 2: Target per Step
|
|
42
42
|
|
|
43
|
-
For every Step, mark the option the
|
|
43
|
+
For every Step, mark the option the appetite **should reach when it closes** — the best option for
|
|
44
44
|
that Step given what the Feature promises. Write `→ target` on that option.
|
|
45
45
|
|
|
46
46
|
- The target can be the skeleton's own pick (nothing more is needed in that Step).
|
|
@@ -74,9 +74,9 @@ Each bite carries:
|
|
|
74
74
|
|---|---|
|
|
75
75
|
| ID | Stable, per Feature: `F1-a`, `F1-b`, … (letters, then `aa`, `ab`, … after `z`); deferred bites use `F1-d1`, `F1-d2`, …. They never change once written |
|
|
76
76
|
| Title | **A sentence in user language, with a subject**, readable with no context: "Ana sees which defender cuts her pass", not "F5-6.3 Mark the cut cell" |
|
|
77
|
-
| Priority | `must-have` or `~nice-to-have`. Must-have = the
|
|
77
|
+
| Priority | `must-have` or `~nice-to-have`. Must-have = the appetite is not satisfied without it (measured against its `Appetite:` sentence) |
|
|
78
78
|
| Options | The option IDs, with the Steps they come from |
|
|
79
|
-
| Depends on | Another bite ID, `
|
|
79
|
+
| Depends on | Another bite ID, `Slice 1`, or `none`. Bite dependencies must not form a cycle |
|
|
80
80
|
| Value | One line: what the user gets that they did not have |
|
|
81
81
|
| Check | One sentence: how to tell it works, concrete enough to turn into a scenario later |
|
|
82
82
|
|
|
@@ -128,8 +128,8 @@ carries its bite and each Step its target:
|
|
|
128
128
|
|
|
129
129
|
### Bites
|
|
130
130
|
- **[Pass the ball]**
|
|
131
|
-
- **F5-a · Ana sees which defender cuts her pass and where** (must-have) — F5-6.3, F5-8.3 · depends on:
|
|
132
|
-
- ~**F5-b · Ana sees the ball travel to the receiver** (nice-to-have) — F5-10.3 · depends on:
|
|
131
|
+
- **F5-a · Ana sees which defender cuts her pass and where** (must-have) — F5-6.3, F5-8.3 · depends on: Slice 1 · value: she knows the risk before confirming · check: with the fixture defence, the line to C is marked on (8,9), PG's cell
|
|
132
|
+
- ~**F5-b · Ana sees the ball travel to the receiver** (nice-to-have) — F5-10.3 · depends on: Slice 1 · value: the pass feels real · check: the ball runs (8,10) → (12,8) before "Pass completed"
|
|
133
133
|
- **Deferred**
|
|
134
134
|
- **F5-d1 · The buzzer** (deferred: needs F9) — F5-3.3, F5-16.1 · prune and split when recovered
|
|
135
135
|
```
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bokata-plan
|
|
3
|
-
description: Write the technical plan for the
|
|
3
|
+
description: Write the technical plan for the specified, not yet planned slices of a bokata appetite (usually the one bokata-spec just specified) as checklists in the initiative's plan.md, one section per appetite and slice, so an executor in another process can follow it and check it off. It is a contract to use inside your harness's own plan mode — it does not replace it. Use it when the user wants to plan a slice, or says "plan <appetite>" after bokata-spec.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# bokata-plan
|
|
7
7
|
|
|
8
8
|
Your harness's plan mode does the planning. This skill only fixes **where the plan lands and
|
|
9
9
|
in what shape**, so that the executor (often another tool and another model) and
|
|
10
|
-
`bokata-status` can read it. Plan every
|
|
11
|
-
|
|
10
|
+
`bokata-status` can read it. Plan every **specified** slice (`State: specified` in its `slice-<n>.md`) with no
|
|
11
|
+
section yet in `plan.md` — usually the one `bokata-spec` just specified. Never re-plan a built slice, and
|
|
12
|
+
never plan a proposed one: a slice with no `slice-<n>.md` has no approved ACs, so stop and tell the user
|
|
13
|
+
to run `bokata-spec` first.
|
|
12
14
|
|
|
13
15
|
## Configuration
|
|
14
16
|
|
|
@@ -17,22 +19,22 @@ Read `.bokata.json` at the project root if it exists (`docs` defaults to `docs/i
|
|
|
17
19
|
|
|
18
20
|
## 1. Read
|
|
19
21
|
|
|
20
|
-
- The
|
|
21
|
-
bite lines in `## Backlog` with their options) and, in the folder next to it, the `
|
|
22
|
-
each
|
|
23
|
-
Feature says what each option ID means; `context.md` has the Discovery Context (layers, entry points, limits) and the
|
|
24
|
-
`
|
|
22
|
+
- The appetite **index** `<docs>/<slug>/appetites/<nn>-<name>.md` (the Slice's outcome and bites, and the
|
|
23
|
+
bite lines in `## Backlog` with their options) and, in the folder next to it, the `slice-<n>.md` of
|
|
24
|
+
each slice to plan (its scenarios, rules, `Unknowns`, decisions). The `slicing/F<k>.md` of the
|
|
25
|
+
Feature says what each option ID means; `context.md` has the Discovery Context (layers, entry points, limits) and the appetite-wide decisions. Read the
|
|
26
|
+
`slice-<n>.md` of **the slices you plan only** — never the built ones. The backlog is not yours
|
|
25
27
|
to plan. Also the initiative's `plan.md` if it exists (what is in flight).
|
|
26
28
|
- The pitch's rabbit holes and no-gos, the constitution, `AGENTS.md`, the glossary, and the
|
|
27
29
|
ADRs that touch the area.
|
|
28
|
-
- The code the
|
|
30
|
+
- The code the appetite touches. Use read-only explore subagents in parallel if your harness has
|
|
29
31
|
them. Never assume an API exists: find it.
|
|
30
32
|
|
|
31
33
|
## 2. Plan
|
|
32
34
|
|
|
33
|
-
For every
|
|
35
|
+
For every slice to plan, write the steps that build it:
|
|
34
36
|
|
|
35
|
-
- **The first step of
|
|
37
|
+
- **The first step of a slice is its acceptance test**: the scenario as one test at the
|
|
36
38
|
highest seam the project's unit runner reaches cheaply, committed as an expected failure
|
|
37
39
|
(the code method says how). Name the seam — it is a design decision, so make it here.
|
|
38
40
|
Skip it when the first step's own test already is the scenario.
|
|
@@ -46,27 +48,27 @@ For every increment to plan, write the steps that build it:
|
|
|
46
48
|
→ view model → component → copy).
|
|
47
49
|
- Respect each option's shortcut: an option that says "hardcoded list" or "approved by hand"
|
|
48
50
|
is built exactly that way — do not plan the real thing it stands in for.
|
|
49
|
-
- Within
|
|
50
|
-
- When more than one
|
|
51
|
-
touch no file another unbuilt
|
|
52
|
-
- Add to the
|
|
51
|
+
- Within a slice: steps for its must-have scenarios first, `~` scenarios last.
|
|
52
|
+
- When more than one slice is unbuilt, mark each **`Parallel-safe: yes`** only if its steps
|
|
53
|
+
touch no file another unbuilt slice's steps touch; otherwise `no`. With one, write `yes`.
|
|
54
|
+
- Add to the slice's `Unknowns` anything you could not settle from the code.
|
|
53
55
|
- Decisions that only the user can make (two valid readings, a trade-off, a new pattern or
|
|
54
56
|
dependency): **ask them now**, in rounds — all of them at once, numbered, each with your
|
|
55
57
|
recommendation and worded so "yes" accepts it. Record each answer under `Notes` as
|
|
56
58
|
`Owner decision: …`. A new pattern that needs an ADR is an owner decision too.
|
|
57
59
|
|
|
58
60
|
Do not write code. Do not change the acceptance criteria: if one is wrong or missing, stop and
|
|
59
|
-
tell the user — it goes back to `bokata-
|
|
61
|
+
tell the user — it goes back to `bokata-spec`.
|
|
60
62
|
|
|
61
63
|
## 3. Write it into `plan.md`
|
|
62
64
|
|
|
63
65
|
The plan is **one file per initiative**: `<docs>/<slug>/plan.md`, from
|
|
64
66
|
[resources/plan-template.md](resources/plan-template.md). Create it if it is missing. Under
|
|
65
|
-
`##
|
|
66
|
-
per
|
|
67
|
+
`## Appetite <nn> — <name>` (add the section if the appetite has none), add one `### Slice <n> — <name>`
|
|
68
|
+
per slice you plan, with its steps and an empty `Tests:`:
|
|
67
69
|
|
|
68
70
|
```markdown
|
|
69
|
-
###
|
|
71
|
+
### Slice 1 — Walking skeleton: library filter chip
|
|
70
72
|
|
|
71
73
|
Plan:
|
|
72
74
|
- [ ] Acceptance: "chip filters the list" in `useLibraryViewModel.spec`, marked expected failure
|
|
@@ -78,14 +80,14 @@ Tests:
|
|
|
78
80
|
- <scenario> → <test file> › <test name> <!-- filled by the executor -->
|
|
79
81
|
```
|
|
80
82
|
|
|
81
|
-
Never touch another
|
|
83
|
+
Never touch another appetite's section or a built slice's. In the Slice's **`slice-<n>.md`** (not in
|
|
82
84
|
`plan.md`) keep what is the owner's: set `State: planned`, its `Parallel-safe:` and `Unknowns`, and
|
|
83
|
-
write the `Owner decision: …` notes under `## Decisions and notes of this
|
|
84
|
-
`context.md`, under `## Notes`). The
|
|
85
|
-
flight, and the executor deletes
|
|
85
|
+
write the `Owner decision: …` notes under `## Decisions and notes of this Slice` (appetite-wide ones go in
|
|
86
|
+
`context.md`, under `## Notes`). The appetite `Status` stays `open`. `plan.md` is **temporary**: it holds only the Slices in
|
|
87
|
+
flight, and the executor deletes a Slice's section when it is done.
|
|
86
88
|
|
|
87
89
|
If your plan mode does not let you edit files, present the plan for approval first and write
|
|
88
|
-
it into the
|
|
90
|
+
it into the appetite right after the user approves.
|
|
89
91
|
|
|
90
92
|
## 4. Refresh the story map
|
|
91
93
|
|
|
@@ -95,7 +97,7 @@ After the plan is written, run the `bokata-render` script (skip it if `story_map
|
|
|
95
97
|
node .agents/skills/bokata-render/scripts/render.mjs <docs>/<slug>
|
|
96
98
|
```
|
|
97
99
|
|
|
98
|
-
The planned
|
|
100
|
+
The planned slices move to `planned` and the "Next" banner points at the first unchecked
|
|
99
101
|
step. It takes milliseconds and uses no model; if it prints an error, show it to the user.
|
|
100
102
|
|
|
101
103
|
## 5. Hand-off
|
|
@@ -104,7 +106,7 @@ End with the exact line the user can hand to an executor (by hand, or through an
|
|
|
104
106
|
orchestrator such as Orca):
|
|
105
107
|
|
|
106
108
|
```
|
|
107
|
-
Next: code-executor — build
|
|
108
|
-
plan: <docs>/<slug>/plan.md (
|
|
109
|
-
(
|
|
109
|
+
Next: code-executor — build Slice <n> of appetite <docs>/<slug>/appetites/<nn>-<name>.md (Slice file: <nn>-<name>/slice-<n>.md)
|
|
110
|
+
plan: <docs>/<slug>/plan.md (Appetite <nn> · Slice <n>)
|
|
111
|
+
(slices marked Parallel-safe: yes may run in separate worktrees; each edits only its own plan section)
|
|
110
112
|
```
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# Plan — <initiative>
|
|
2
2
|
|
|
3
|
-
<!-- One file per initiative: <docs>/<slug>/plan.md. TEMPORARY: it holds only the
|
|
4
|
-
Written by bokata-plan, checked off by the executor commit by commit; when
|
|
5
|
-
executor deletes its section (what is not in the code moves to `## Pending` of its
|
|
6
|
-
and the State there becomes done). A section per
|
|
7
|
-
are the keys the story map and bokata-status read ("##
|
|
8
|
-
What the owner decides (Gherkin, Unknowns, Parallel-safe, decisions) stays in the
|
|
9
|
-
Edit only your own
|
|
3
|
+
<!-- One file per initiative: <docs>/<slug>/plan.md. TEMPORARY: it holds only the slices in flight.
|
|
4
|
+
Written by bokata-plan, checked off by the executor commit by commit; when a Slice is done the
|
|
5
|
+
executor deletes its section (what is not in the code moves to `## Pending` of its slice-<n>.md,
|
|
6
|
+
and the State there becomes done). A section per appetite, a subsection per slice. The headings
|
|
7
|
+
are the keys the story map and bokata-status read ("## Appetite <nn>" and "### Slice <n>"), so keep them.
|
|
8
|
+
What the owner decides (Gherkin, Unknowns, Parallel-safe, decisions) stays in the Slice's slice-<n>.md.
|
|
9
|
+
Edit only your own slice's section: Slices built in parallel worktrees then touch different lines. -->
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Appetite <nn> — <name>
|
|
12
12
|
|
|
13
|
-
<!--
|
|
13
|
+
<!-- Appetite index: appetites/<nn>-<name>.md · Slice files: appetites/<nn>-<name>/slice-<n>.md -->
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Slice 1 — <name>
|
|
16
16
|
|
|
17
17
|
Plan:
|
|
18
18
|
- [ ] Acceptance: "<scenario>" in `<test file>`, marked expected failure
|
|
@@ -21,7 +21,7 @@ Plan:
|
|
|
21
21
|
Tests:
|
|
22
22
|
- <scenario> → <test file> › <test name>
|
|
23
23
|
|
|
24
|
-
###
|
|
24
|
+
### Slice 2 — <name>
|
|
25
25
|
|
|
26
26
|
Plan:
|
|
27
27
|
- [ ] <step>
|
|
@@ -29,7 +29,7 @@ Plan:
|
|
|
29
29
|
Tests:
|
|
30
30
|
- <scenario> → <test file> › <test name>
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## Appetite <nn> — <name>
|
|
33
33
|
|
|
34
|
-
###
|
|
34
|
+
### Slice 1 — <name>
|
|
35
35
|
…
|