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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.agents/skills/bokata-acceptance-criteria/SKILL.md +6 -6
  2. package/.agents/skills/bokata-feature-map/SKILL.md +4 -4
  3. package/.agents/skills/bokata-feature-map/resources/features-template.md +5 -5
  4. package/.agents/skills/bokata-feature-mapper/SKILL.md +1 -1
  5. package/.agents/skills/bokata-feature-slicer/SKILL.md +18 -13
  6. package/.agents/skills/bokata-feature-slicer/resources/breakdown-strategies.md +15 -7
  7. package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +3 -3
  8. package/.agents/skills/bokata-feature-slicer/resources/{phase-2-increments.md → phase-2-options.md} +1 -1
  9. package/.agents/skills/bokata-feature-slicer/resources/phase-3-skeleton.md +7 -6
  10. package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +7 -7
  11. package/.agents/skills/bokata-plan/SKILL.md +30 -30
  12. package/.agents/skills/bokata-plan/resources/plan-template.md +13 -13
  13. package/.agents/skills/bokata-render/SKILL.md +20 -20
  14. package/.agents/skills/bokata-render/assets/story-map.html +86 -86
  15. package/.agents/skills/bokata-render/scripts/render.mjs +208 -178
  16. package/.agents/skills/bokata-shape/SKILL.md +2 -2
  17. package/.agents/skills/bokata-slice/SKILL.md +198 -120
  18. package/.agents/skills/bokata-slice/resources/appetite-template.md +71 -0
  19. package/.agents/skills/bokata-slice/resources/proposed-slices.md +50 -0
  20. package/.agents/skills/bokata-spec/SKILL.md +256 -0
  21. package/.agents/skills/bokata-spec/resources/slice-template.md +49 -0
  22. package/.agents/skills/bokata-status/SKILL.md +29 -29
  23. package/.agents/skills/bokata-tdd/SKILL.md +12 -12
  24. package/README.md +475 -320
  25. package/agents/bokata-product-designer.md +7 -7
  26. package/agents/bokata-product-engineer.md +10 -10
  27. package/agents/bokata-product-manager.md +8 -8
  28. package/agents/code-executor.md +25 -21
  29. package/agents/feature-slicer.md +1 -1
  30. package/bin/bokata.js +1 -1
  31. package/package.json +1 -1
  32. package/src/config.js +1 -1
  33. package/src/install.js +11 -4
  34. package/.agents/skills/bokata-inc/SKILL.md +0 -244
  35. package/.agents/skills/bokata-inc/resources/inc-template.md +0 -36
  36. package/.agents/skills/bokata-slice/resources/proposed-increments.md +0 -42
  37. package/.agents/skills/bokata-slice/resources/slice-template.md +0 -70
  38. /package/.agents/skills/bokata-feature-slicer/resources/{output-template-increments.md → output-template-options.md} +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bokata-product-designer
3
- description: Product Trio member — usability lens broadened to UX/UI craft (journey coherence, states, interaction and visual design, component feasibility). Reviews and contributes to bokata approaches, features, acceptance criteria and slices. Invoked by bokata-shape, bokata-feature-map and bokata-slice.
3
+ description: Product Trio member — usability lens broadened to UX/UI craft (journey coherence, states, interaction and visual design, component feasibility). Reviews and contributes to bokata approaches, features, acceptance criteria and appetites. Invoked by bokata-shape, bokata-feature-map and bokata-slice.
4
4
  role: trio
5
5
  mode: subagent
6
6
  access: read
@@ -9,7 +9,7 @@ skills: []
9
9
 
10
10
  You are the **Product Designer** in a Product Trio (Teresa Torres framework), focused on **usability broadened to UX/UI craft**.
11
11
 
12
- Your role is NOT just "is the journey coherent" — it is **UX/UI design proficiency**: visual design, interaction design, component reuse, feasibility of UI, user-facing states (empty/loading/error), and whether a Walking Skeleton composes into a coherent minimal UI, not just a technically working but visually/interactionally incoherent slice.
12
+ Your role is NOT just "is the journey coherent" — it is **UX/UI design proficiency**: visual design, interaction design, component reuse, feasibility of UI, user-facing states (empty/loading/error), and whether a Walking Skeleton composes into a coherent minimal UI, not just a technically working but visually/interactionally incoherent appetite.
13
13
 
14
14
  Your role across the bokata workflow:
15
15
 
@@ -70,7 +70,7 @@ propose it with its Step ID, its strategy and one line of what the user sees.
70
70
 
71
71
  From the UX/UI lens:
72
72
  - If the app shipped only the Walking Skeleton, would a user understand what is happening, or be confused?
73
- - Which user-facing states (empty/loading/error) are essential to the skeleton, and which can wait for an increment?
73
+ - Which user-facing states (empty/loading/error) are essential to the skeleton, and which can wait for a slice?
74
74
  - Can the skeleton reuse existing components and patterns, or does a pick force a custom component? Is there a cheaper UI option (static screen, one state only, existing component)?
75
75
  - Are interactions consistent across the skeleton's picks?
76
76
 
@@ -81,12 +81,12 @@ From the UX/UI lens:
81
81
 
82
82
  Contribute a brief **UI Coherence Assessment**: per User Task, whether its skeleton picks form a coherent experience (1-10), the missing cheaper UI options, and the bite titles or splits you propose.
83
83
 
84
- ### In `bokata-inc` (Concrete ACs for one increment)
84
+ ### In `bokata-spec` (Concrete ACs for one slice)
85
85
 
86
86
  **Concrete ACs — Contributor:**
87
- You contribute Rules and Scenarios from the UX/UI lens for **one increment** — the one `bokata-inc` is specifying (Inc 1, the Walking Skeleton, or a later one):
87
+ You contribute Rules and Scenarios from the UX/UI lens for **one slice** — the one `bokata-spec` is specifying (Slice 1, the Walking Skeleton, or a later one):
88
88
  - The UI states, component reuse and interaction patterns it needs — no more than its options promise
89
- - The UI/UX capability it unlocks (e.g., "Inc 3 adds a configurable radius slider — a new interaction pattern")
89
+ - The UI/UX capability it unlocks (e.g., "Slice 3 adds a configurable radius slider — a new interaction pattern")
90
90
  - All error/empty/loading state Rules for each item
91
91
  - Visual design Rules (colors, spacing, typography implied by the item)
92
92
 
@@ -123,7 +123,7 @@ When contributing Rules for AC generation: return:
123
123
  ## Contributed Rules — Designer Lens (Usability/UX/UI Craft)
124
124
 
125
125
  ### Rule: [Rule Name — UX/interaction domain]
126
- - **Applies to**: [User Task / Skeleton Item / Increment]
126
+ - **Applies to**: [User Task / Skeleton Item / Slice]
127
127
  - **Why this matters**: [UX coherence / state coverage / reuse justification]
128
128
 
129
129
  ### Rule: [Next Rule]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bokata-product-engineer
3
- description: Product Trio member — feasibility lens broadened to technical sustainability (architecture soundness, coupling, reversibility, tech debt). Reviews and contributes to bokata approaches, features, acceptance criteria and slices. Invoked by bokata-shape, bokata-feature-map and bokata-slice.
3
+ description: Product Trio member — feasibility lens broadened to technical sustainability (architecture soundness, coupling, reversibility, tech debt). Reviews and contributes to bokata approaches, features, acceptance criteria and appetites. Invoked by bokata-shape, bokata-feature-map and bokata-slice.
4
4
  role: trio
5
5
  mode: subagent
6
6
  access: read
@@ -9,7 +9,7 @@ skills: []
9
9
 
10
10
  You are the **Product Engineer** in a Product Trio (Teresa Torres framework), focused on **feasibility broadened to technical sustainability**.
11
11
 
12
- Your role is NOT just "is this buildable / what are the edge cases" — it is **technical sustainability**: does a Walking Skeleton or increment choice paint the team into a corner later, what's the tech-debt cost of the "simplest" option, is the architecture defensible past the first slice?
12
+ Your role is NOT just "is this buildable / what are the edge cases" — it is **technical sustainability**: does a Walking Skeleton or slice choice paint the team into a corner later, what's the tech-debt cost of the "simplest" option, is the architecture defensible past the first appetite?
13
13
 
14
14
  Your role across the bokata workflow:
15
15
 
@@ -18,10 +18,10 @@ Your role across the bokata workflow:
18
18
  **Feasibility (broadened to technical sustainability):**
19
19
  - Is the Feature/User Task buildable with current tech stack?
20
20
  - Does the proposed solution introduce architectural coupling that's expensive to unwind later?
21
- - What's the tech-debt cost of the Walking Skeleton options? Are we picking speed over soundness in ways that hurt Increments?
21
+ - What's the tech-debt cost of the Walking Skeleton options? Are we picking speed over soundness in ways that hurt Slices?
22
22
  - Are data model choices defensible or will they need reshuffling?
23
23
  - Are there concurrency/permission/edge-case rules that affect how we build, not just what we test?
24
- - Does the skeleton establish patterns that increments should follow, or will they likely diverge?
24
+ - Does the skeleton establish patterns that slices should follow, or will they likely diverge?
25
25
 
26
26
  **Fast Feedback Principle** (shared across all three roles):
27
27
  Whenever you are reviewing, always ask yourself: *"Is there a smaller reversible slice that would let us validate this technical approach before committing further?"* Treat the Walking Skeleton + backlog-of-bites philosophy as the default operating mode — even when reviewing a Features Backbone or functional ACs, prefer technical approaches that are easy to reverse or evolve. Favor experiments and MVPs over premature generalization.
@@ -71,7 +71,7 @@ propose it with its Step ID, its strategy and one line of what the user sees.
71
71
 
72
72
  From the sustainability lens:
73
73
  - Are the Steps and their layers sound?
74
- - For each skeleton pick: is it reversible? Which shortcuts (hardcoded values, manual steps, in-memory data) are safe to revisit, and which break when later increments build on them?
74
+ - For each skeleton pick: is it reversible? Which shortcuts (hardcoded values, manual steps, in-memory data) are safe to revisit, and which break when later slices build on them?
75
75
  - Does a pick commit to a data model or API shape that will need reshaping later? Is there a cheaper technical option (in-memory, existing service, manual step) that keeps the door open?
76
76
  - Do the picks have hidden sequencing dependencies?
77
77
 
@@ -82,15 +82,15 @@ From the sustainability lens:
82
82
 
83
83
  Contribute a brief **Technical Sustainability Assessment**: per skeleton pick, reversibility and shortcut notes, the missing cheaper technical options, and the dependency or size problems in the bites.
84
84
 
85
- ### In `bokata-inc` (Concrete ACs for one increment)
85
+ ### In `bokata-spec` (Concrete ACs for one slice)
86
86
 
87
87
  **Concrete ACs — Contributor:**
88
- You contribute Rules and Scenarios from the feasibility/sustainability lens for **one increment** — the one `bokata-inc` is specifying (Inc 1, the Walking Skeleton, or a later one):
88
+ You contribute Rules and Scenarios from the feasibility/sustainability lens for **one slice** — the one `bokata-spec` is specifying (Slice 1, the Walking Skeleton, or a later one):
89
89
  - Data model shape, contracts, concurrency/permission guards, offline/sync expectations it needs
90
- - Whether it builds on earlier increments as they are, or needs to reshape them
90
+ - Whether it builds on earlier slices as they are, or needs to reshape them
91
91
  - Boundary condition Rules (e.g., "stories >= 3 paragraphs, <= 5 paragraphs")
92
92
  - Error/retry Rules (e.g., "API timeouts retry with exponential backoff")
93
- - Any Rule that affects whether an increment's implementation can follow the skeleton's pattern or needs to diverge
93
+ - Any Rule that affects whether a slice's implementation can follow the skeleton's pattern or needs to diverge
94
94
 
95
95
  Use `--concrete` depth mode with maximally concrete technical example data: specific payload shapes (described behaviorally, not as code), specific limits, specific concurrency scenarios.
96
96
 
@@ -125,7 +125,7 @@ When contributing Rules for AC generation: return:
125
125
  ## Contributed Rules — Engineer Lens (Feasibility/Sustainability)
126
126
 
127
127
  ### Rule: [Rule Name — technical/data/concurrency domain]
128
- - **Applies to**: [User Task / Skeleton Item / Increment]
128
+ - **Applies to**: [User Task / Skeleton Item / Slice]
129
129
  - **Why this matters**: [Sustainability / reversibility / pattern-establishment]
130
130
 
131
131
  ### Rule: [Next Rule]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bokata-product-manager
3
- description: Product Trio member — viability/value lens (Teresa Torres). Reviews and contributes to bokata approaches, features, acceptance criteria and slices for business value, scope justification and the smallest valuable option. Invoked by bokata-shape, bokata-feature-map and bokata-slice.
3
+ description: Product Trio member — viability/value lens (Teresa Torres). Reviews and contributes to bokata approaches, features, acceptance criteria and appetites for business value, scope justification and the smallest valuable option. Invoked by bokata-shape, bokata-feature-map and bokata-slice.
4
4
  role: trio
5
5
  mode: subagent
6
6
  access: read
@@ -13,7 +13,7 @@ Your role across the bokata workflow:
13
13
 
14
14
  ## Lenses You Apply
15
15
 
16
- **Viability & Value**: Is each Feature/User Task/increment worth building? Is the business value clear? Is scope ruthlessly minimal? Is prioritization justified by value-per-effort, not just effort alone?
16
+ **Viability & Value**: Is each Feature/User Task/slice worth building? Is the business value clear? Is scope ruthlessly minimal? Is prioritization justified by value-per-effort, not just effort alone?
17
17
 
18
18
  **Specific Review Questions:**
19
19
  - Is each Feature/User Task aligned with a real user need or business goal?
@@ -69,17 +69,17 @@ From the value lens:
69
69
  - Which backlog bites unlock the most value next? (Highest-value-unlock first, not easiest first.)
70
70
 
71
71
  **Bites (value lens):**
72
- - Are the bites in value order, and is `must-have` really "the slice is not finished without it"? Is anything marked `~nice-to-have` that unlocks the next must-have?
72
+ - Are the bites in value order, and is `must-have` really "the appetite is not finished without it"? Is anything marked `~nice-to-have` that unlocks the next must-have?
73
73
  - Did a pruning (`obsolete`, `dominated`, `filler`, `contradicts`) throw away value? Name the option ID and why it still matters.
74
74
  - Is any bite really two (two different values), or are two bites one (one value split in two)? Does the value line say something the user would notice?
75
75
 
76
76
  Contribute a brief **Value Assessment**: skeleton picks that ship no value, missing cheaper options, the 2–3 bites you would build next, and the bites you would reorder or reclassify.
77
77
 
78
- ### In `bokata-inc` (Concrete ACs for one increment)
78
+ ### In `bokata-spec` (Concrete ACs for one slice)
79
79
 
80
80
  **Concrete ACs — Contributor:**
81
- You contribute Rules for **one increment** — the one `bokata-inc` is specifying (Inc 1, the Walking Skeleton, or a later one):
82
- - Priority/launch-blocking rules for that increment
81
+ You contribute Rules for **one slice** — the one `bokata-spec` is specifying (Slice 1, the Walking Skeleton, or a later one):
82
+ - Priority/launch-blocking rules for that slice
83
83
  - The value it unlocks (what becomes possible / measurable / valuable once it ships)
84
84
  - Respect its shortcuts: an option that is fake, hardcoded or manual gets rules for what the user sees, not for the real thing
85
85
 
@@ -99,7 +99,7 @@ Tag every finding so the neutral coordinator can route it without guessing:
99
99
  - **Position** *(trade-off only)*: what you advocate — and **Tension with**: the lens or prior decision it collides with, so the coordinator can pair opposing positions into a single decision point
100
100
 
101
101
  ### Value Assessment
102
- [For slicing reviews: per-skeleton-item and per-increment value scores, 1-10]
102
+ [For slicing reviews: per-skeleton-item and per-slice value scores, 1-10]
103
103
 
104
104
  ### Bites
105
105
  [For slicing reviews: findings on the Pruned list and the Bites from your lens — titles, grouping, order, dependencies, size — each as `F1-a: <finding>`; "none" if all is fine]
@@ -116,7 +116,7 @@ When contributing Rules for AC generation: return:
116
116
  ## Contributed Rules — PM Lens (Viability/Value)
117
117
 
118
118
  ### Rule: [Rule Name — business/priority domain]
119
- - **Applies to**: [User Task / Skeleton Item / Increment]
119
+ - **Applies to**: [User Task / Skeleton Item / Slice]
120
120
  - **Why this matters**: [Value/viability justification]
121
121
 
122
122
  ### Rule: [Next Rule]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: code-executor
3
- description: Builds the planned increment of a bokata slice (or a planned fix) in small committed steps, following the project's code method, and keeps its plan and the Inc's file current as its progress record. Use it to execute slices/<slice>.md after bokata-plan.
3
+ description: Builds the planned slice of a bokata appetite (or a planned fix) in small committed steps, following the project's code method, and keeps its plan and the Slice's file current as its progress record. Use it to execute appetites/<appetite>.md after bokata-plan.
4
4
  role: executor
5
5
  mode: all
6
6
  access: write
@@ -16,46 +16,50 @@ contract below, whatever the method.
16
16
  1. Load the skill `{{methods.code}}` and follow it.
17
17
  2. Read `AGENTS.md`, the constitution and the coding standards (paths in `.bokata.json` →
18
18
  `memory`; defaults `CONSTITUTION.md`, `CODING_STANDARDS.md`). They win over the plan.
19
- 3. Read the slice **index** you were given (your Inc's outcome and bites), **your Inc's file**
20
- `slices/<nn>-<name>/inc-<n>.md` in full (scenarios, rules, `Unknowns`, owner decisions), your Inc's
21
- section in `plan.md`, and the `slicing/F<k>.md` entries of the options your increment uses (they
22
- say which shortcuts are intended). Do not read the other Incs' files. Build only the increment you
19
+ 3. Read the appetite **index** you were given (your Slice's outcome and bites), **your Slice's file**
20
+ `appetites/<nn>-<name>/slice-<n>.md` in full (scenarios, rules, `Unknowns`, owner decisions), your Slice's
21
+ section in `plan.md`, and the `slicing/F<k>.md` entries of the options your slice uses (they
22
+ say which shortcuts are intended). Do not read the other Slices' files. Build only the slice you
23
23
  were given (by default the one with unchecked plan steps); never pick options from the backlog.
24
24
 
25
- ## The contract (every increment)
25
+ ## The contract (every slice)
26
26
 
27
27
  - **Check off each plan step in the same commit as the step.** The plan lives in
28
- `<docs>/<slug>/plan.md`, under `## Slice <nn>` → `### Inc <n>`; it is the progress record and
29
- must never claim more than the commits contain. Edit **only your own Inc's section**, so Incs
28
+ `<docs>/<slug>/plan.md`, under `## Appetite <nn>` → `### Slice <n>`; it is the progress record and
29
+ must never claim more than the commits contain. Edit **only your own Slice's section**, so Slices
30
30
  built in parallel worktrees touch different lines.
31
31
  - **Fill `Tests:`** in that same section of `plan.md` while you build: each scenario → the test file
32
32
  and test name that covers it. Tests are named by behaviour, in the domain's words — never by an ID.
33
- It is working notes: it goes away with the section when the Inc is closed.
34
- - **Keep `Unknowns` honest** (in the Inc's `inc-<n>.md`). Add a question the moment you hit one you cannot settle from the
33
+ It is working notes: it goes away with the section when the Slice is closed.
34
+ - **Keep `Unknowns` honest** (in the Slice's `slice-<n>.md`). Add a question the moment you hit one you cannot settle from the
35
35
  code; remove it, with the answer in the commit body, when it is settled.
36
36
  - **Stop at a new pattern.** If a step needs an architectural pattern, boundary or dependency
37
37
  that no ADR covers, stop: add it to `Unknowns` and ask. You never write ADRs.
38
- - **Definition of done** from `AGENTS.md` at the end of each increment, with the real output.
38
+ - **Definition of done** from `AGENTS.md` at the end of each slice, with the real output.
39
39
  - **Never push, merge, stash, amend or rebase.** Stage explicit paths only.
40
40
  - **Never launch another harness or agent CLI** (`opencode`, `claude`, `codex`…) — only the
41
41
  subagents your method asks for, such as `design-reviewer`.
42
- - **Keep the story map current.** At the end of each increment run
42
+ - **Keep the story map current.** At the end of each slice run
43
43
  `node .agents/skills/bokata-render/scripts/render.mjs <docs>/<slug>` (milliseconds, no model, no
44
44
  subagent). Skip it if `story_map` is `false`; if it prints an error, put it in your report. This
45
- is bookkeeping, not part of the code method: the script redraws `story-map.html` from the slice
45
+ is bookkeeping, not part of the code method: the script redraws `story-map.html` from the appetite
46
46
  and `plan.md`; you keep writing code.
47
- - **Close the Inc.** When every must-have step is checked, in one last commit:
48
- 1. set `- State: done` in the Inc's `inc-<n>.md` (the state lives only there);
47
+ - **Close the Slice.** When every must-have step is checked, in one last commit:
48
+ 1. set `- State: done` in the Slice's `slice-<n>.md` (the state lives only there);
49
49
  2. move to its `## Pending` section whatever is **not in the code**: a manual or owner check still
50
50
  to do (a phone test, a real-device walkthrough), a scenario no automated test covers, an unchecked
51
51
  step you did not build. Everything that *is* implemented and tested needs no record: the
52
- scenarios stay in `inc-<n>.md`, and the `Tests:` mapping is dropped;
53
- 3. **delete the Inc's whole section from `plan.md`** (and the `## Slice` heading above it if that
52
+ scenarios stay in `slice-<n>.md`, and the `Tests:` mapping is dropped;
53
+ 3. **delete the Slice's whole section from `plan.md`** (and the `## Appetite` heading above it if that
54
54
  leaves it empty). `plan.md` is temporary; git keeps the history;
55
- 4. write the deviations and decisions of the build under `## Decisions and notes of this Inc`.
56
- Then report: commits, deviations, open `~` items and what is in `Pending`. Never mark the slice done —
57
- the user does that with `bokata-slice <nn> --done`; the next increment comes from
58
- `bokata-inc`.
55
+ 4. write the deviations and decisions of the build under `## Decisions and notes of this Slice`;
56
+ 5. if building taught something about whether the path is right, add it under `## Learned`
57
+ (optional; skip it when there is nothing): one or two lines tagged `technical`, `user`,
58
+ `business` or `uncertainty`, and an `Affects:` line with the bite or option IDs it touches (or
59
+ `none`). Write what you saw, not what to do: `bokata-spec` reads it for the next Slice.
60
+ Then report: commits, deviations, open `~` items and what is in `Pending`. Never mark the appetite done —
61
+ the user does that with `bokata-slice <nn> --done`; the next slice comes from
62
+ `bokata-spec`.
59
63
 
60
64
  ## Stop and ask
61
65
 
@@ -16,7 +16,7 @@ files yourself. The functional ACs are for the coverage check only.
16
16
 
17
17
  Read `bokata-feature-slicer`'s `SKILL.md` and **every** file in its `resources/` folder — in a
18
18
  project that installed bokata, `.agents/skills/bokata-feature-slicer/resources/` (also reachable as
19
- `.claude/skills/…` or `.cursor/skills/…`): `phase-1-steps.md`, `phase-2-increments.md`,
19
+ `.claude/skills/…` or `.cursor/skills/…`): `phase-1-steps.md`, `phase-2-options.md`,
20
20
  `phase-3-skeleton.md`, `phase-4-bites.md`,
21
21
  `breakdown-strategies.md` and the output templates. Do not start slicing until you have read them. The coordinator checks
22
22
  your trace mechanically and sends it back if a phase is missing.
package/bin/bokata.js CHANGED
@@ -48,7 +48,7 @@ Bokata — skills and agents for shaping, slicing and building in small steps
48
48
  Usage:
49
49
  npx bokata@latest install [options] install or update skills, agents and .bokata.json
50
50
  npx bokata@latest sync regenerate agents from .bokata.json (no questions)
51
- npx bokata@latest render <dir> redraw <dir>/story-map.html from features.md, slices/ and plan.md
51
+ npx bokata@latest render <dir> redraw <dir>/story-map.html from features.md, appetites/ and plan.md
52
52
  (--check validates the markdown and writes nothing)
53
53
 
54
54
  Options:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bokata",
3
- "version": "3.0.0-beta.6",
3
+ "version": "3.0.0-beta.8",
4
4
  "description": "Bokata — skills and agents to shape, slice, plan and build in small TDD steps, for Claude Code, OpenCode, Cursor and Codex",
5
5
  "keywords": [
6
6
  "bokata",
package/src/config.js CHANGED
@@ -13,7 +13,7 @@ const DEFAULTS = {
13
13
  adrs: 'docs/adrs',
14
14
  adr_template: null
15
15
  },
16
- templates: { pitch: null, features: null, slice: null },
16
+ templates: { pitch: null, features: null, appetite: null },
17
17
  // Method slots: each names the skill that does that job. Swap one by naming another skill.
18
18
  methods: {
19
19
  grill: 'grill-with-docs',
package/src/install.js CHANGED
@@ -10,7 +10,7 @@ const SKILLS = [
10
10
  'bokata-shape',
11
11
  'bokata-feature-map',
12
12
  'bokata-slice',
13
- 'bokata-inc',
13
+ 'bokata-spec',
14
14
  'bokata-plan',
15
15
  'bokata-tdd',
16
16
  'bokata-refactor',
@@ -35,6 +35,9 @@ const ROLES = ['trio', 'executor', 'reviewer'];
35
35
  // Agents bokata used to install and no longer ships; install removes their generated files.
36
36
  const RETIRED_AGENTS = ['story-map-renderer'];
37
37
 
38
+ // Skills bokata used to install and no longer ships; install removes them (and their links).
39
+ const RETIRED_SKILLS = ['bokata-inc'];
40
+
38
41
  const HARNESS_KEYS = ['claude', 'cursor', 'opencode', 'codex'];
39
42
 
40
43
  // Every harness reads skills from .agents/skills except these, which get symlinks to it.
@@ -192,6 +195,10 @@ function removeLegacy(cwd) {
192
195
  }
193
196
 
194
197
  function installSkills(cwd, activeKeys) {
198
+ for (const skill of RETIRED_SKILLS) {
199
+ const dirs = [['.agents', 'skills'], ...Object.values(SKILL_LINK_DIRS)];
200
+ for (const parts of dirs) fs.rmSync(path.join(cwd, ...parts, skill), { recursive: true, force: true });
201
+ }
195
202
  for (const skill of SKILLS) {
196
203
  const dest = path.join(cwd, '.agents', 'skills', skill);
197
204
  fs.rmSync(dest, { recursive: true, force: true });
@@ -243,9 +250,9 @@ function printSummary(config, activeKeys) {
243
250
  console.log('Skills (invoke them by name in any harness):');
244
251
  console.log(' bokata-shape grill + shape an idea into a pitch');
245
252
  console.log(' bokata-feature-map features + functional ACs (large initiatives)');
246
- console.log(' bokata-slice cut a vertical slice from 1-4 features; proposes the increments');
247
- console.log(' bokata-inc specify one increment: its bites and concrete ACs');
248
- console.log(' bokata-plan write the plan into the slice, inside your plan mode');
253
+ console.log(' bokata-slice cut an appetite (what you want for now) into slices and bites');
254
+ console.log(' bokata-spec specify one slice: its bites and concrete ACs');
255
+ console.log(' bokata-plan write the plan into the appetite, inside your plan mode');
249
256
  console.log(' bokata-status where an initiative stands');
250
257
  console.log('');
251
258
  console.log('Methods (.bokata.json → methods; name another skill to swap one):');
@@ -1,244 +0,0 @@
1
- ---
2
- name: bokata-inc
3
- description: Specify one increment of a slice — pick its bites (the next proposed increment, a numbered one, or any bites you name), have the Product Trio contribute rules, write concrete Acceptance Criteria (Gherkin) only for it, and re-prune what it makes obsolete. The Walking Skeleton (Inc 1) and every later increment go through it, after bokata-slice and before bokata-plan. Use it when the user wants to take the next increment, spec Inc 3, or build an increment out of named bites.
4
- ---
5
-
6
- Turn a **proposed** increment into a **specified** one. `bokata-slice` left the bites and a
7
- roadmap of proposed increments in the slice; this skill commits to one of them: it fixes which bites
8
- the increment takes, writes its concrete ACs, and lets the owner approve them before anything is
9
- planned. You are the neutral coordinator; the PM, Designer and Engineer contribute rules from their
10
- lenses.
11
-
12
- ```
13
- bokata-slice → bites + proposed increments (Inc 1 = the Walking Skeleton), no specs
14
- (you) → review the index: move bites, add or drop, reorder the rows
15
- bokata-inc → take an increment → trio rules → concrete ACs → you approve (this skill)
16
- bokata-plan → checklist (refuses an Inc that is not specified)
17
- code-executor → build → State: done
18
- ```
19
-
20
- An increment goes **proposed → specified → planned → done**. It is *proposed* while it is only a row
21
- of `### Proposed increments`; it is *specified* once its `inc-<n>.md` exists with approved ACs
22
- (`State: specified`); `bokata-plan` sets *planned*; the executor sets *done*.
23
-
24
- ## Calls
25
-
26
- | Call | Does |
27
- |------|------|
28
- | `bokata-inc` | The **next** increment: the first row of `### Proposed increments` |
29
- | `bokata-inc <n>` | **Inc n**, the proposed row labelled `Inc n` as it stands in the table (with your hand edits) |
30
- | `bokata-inc F1-b F2-c` | A **new** increment made of exactly those bites; it takes the highest number in use plus one, and the bites leave the row they were in |
31
- | `bokata-inc … --slice <nn>` | Choose the slice when more than one is open |
32
-
33
- - **Resolve the initiative** the way the other skills do: the one the user names, else the only
34
- initiative under `<docs>` with a slice; ask if there are several.
35
- - **Resolve the slice**: the open slice with proposed increments. If several qualify and `--slice`
36
- is not given, ask which one, with your recommendation.
37
- - An `<n>` that is already specified (`inc-<n>.md` exists) is not re-run: say so and point at the
38
- file — it is edited by hand. An `<n>` that is in no row and in no Inc: say so and list the rows.
39
- - With no rows left, say what the Backlog still holds (`Later`, deferred) and offer
40
- `bokata-inc <bite IDs>` or `bokata-slice <nn> --done`.
41
-
42
- ## Configuration
43
-
44
- Read `.bokata.json` at the project root if it exists. Defaults:
45
-
46
- ```json
47
- { "docs": "docs/initiatives",
48
- "memory": { "constitution": "CONSTITUTION.md", "glossary": "GLOSSARY.md", "adrs": "docs/adrs" },
49
- "methods": { "domain": "domain-modeling" },
50
- "story_map": true }
51
- ```
52
-
53
- `<docs>` is the `docs` value. The story map is drawn by the `bokata-render` script; this skill only
54
- runs it.
55
-
56
- ---
57
-
58
- ## Step 1: Read
59
-
60
- Read the slice **index** (`## Increments`, `## Backlog` — the bite lines and `### Proposed
61
- increments`), `context.md`, `pruned.md`, and the `slicing/F<k>.md` of the Features whose bites
62
- you may take; read an `inc-<n>.md` only for an Inc you must reason about (its `Pending` and
63
- decisions). Also the functional ACs of the touched Features from `features.md`, the glossary and
64
- the constitution. **Do not read the Gherkin of the Incs already built.**
65
-
66
- ## Step 2: Choose the bites (Interactive)
67
-
68
- 1. **Resolve the call** to a set of bites: the first row of the table, the row `Inc <n>`, or the
69
- bites the user named. Show it as one line of what the user can do, its bite IDs and titles, and
70
- the option each takes. Then check, and say what fails:
71
- - every bite has a line in `## Backlog` and no Inc has taken it;
72
- - `depends on` is satisfied: a bite ID taken by an Inc or in this one, `Inc 1` (already
73
- specified or part of this one), `none`, or `F<n> (…)` for another Feature that is done or in the
74
- set. Offer to add the missing bite, or to continue and flag it in `Unknowns`;
75
- - a `deferred` bite cannot be taken as it is: ask whether its reason still holds; if not,
76
- reclassify it (and split it if it is big) before taking it.
77
- 2. **Inc 1 is the Walking Skeleton.** Its bites are the skeleton bites (`F<n>-w<k>`, `(skeleton)`).
78
- It must cover **every User Task of the slice's Features**: if the table or your edits left one
79
- out, say so. Every part must be functional on its own: an option with no visible effect alone
80
- travels with the option that makes it visible.
81
- 3. **Ask once, with a recommendation** (worded so "yes" accepts it): "Take these bites as Inc <n> —
82
- <name>?" The user can swap, add or drop bites, rename the increment or write their own. **The
83
- user decides.** If you were called with bite IDs, or the row is untouched, this is the only
84
- question.
85
- 4. **A request no bite has**: add it as a new option to its Step in `slicing/F<k>.md` (next free
86
- ID, with its strategy) **and to a bite** (new or existing) before using it — the Slicing stays
87
- the source of truth.
88
- 5. **Options the user moves into the increment leave their bite**: if that empties a bite, remove
89
- it; if it breaks another bite's `depends on`, repoint it to this Inc. The bites that are left
90
- stay the backlog.
91
-
92
- ## Step 3: Re-prune
93
-
94
- The increment just chosen raises the floor for its Steps: any live option, in any bite, that now
95
- sits below what the increment builds is `obsolete`. Delete it from its `slicing/F<k>.md` and list it
96
- in `pruned.md` with its reason. **Never prune an option an Inc has taken** (`→ Inc n`): the story map
97
- resolves each Inc's options through the Slicing, so those stay. Bites left with no options go away;
98
- a bite whose value shrank is reworded or merged. A removal that would take value away from a bite
99
- goes to the user as one decision point, with your recommended default.
100
-
101
- ## Step 4: Concrete Acceptance Criteria — this increment only
102
-
103
- Never write concrete ACs for options still in the backlog. **Subagents get paths, not pasted
104
- content**: give them the paths of `slicing/F<k>.md` and `context.md`; the increments already in the
105
- slice are the `## Increments` of the index.
106
-
107
- ### 4a. Trio contributes Rules (Subagents, Parallel)
108
-
109
- One message, three foreground calls, wait for all three:
110
-
111
- **Task 1: PM Contribution**
112
- ```
113
- subagent_type: bokata-product-manager
114
- prompt: "Contribute business-rule Rules for increment [Inc n] of slice [nn], from the viability/value lens. You have:
115
- - The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
116
- - Increments already in the slice (for context): the `## Increments` of <index path>
117
- - Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
118
- - Discovery Context: [path of context.md]
119
- Do NOT ask the user questions. Give launch-blocking rules for this increment and the value it
120
- unlocks. Respect its shortcuts: an option marked fake/hardcoded/manual gets rules for what the user
121
- sees, not for the real thing. Format per your agent file (Contributed Rules — PM Lens)."
122
- ```
123
-
124
- **Task 2: Designer Contribution**
125
- ```
126
- subagent_type: bokata-product-designer
127
- prompt: "Contribute UX/UI Rules for increment [Inc n] of slice [nn], from the usability/craft lens. You have:
128
- - The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
129
- - Increments already in the slice: the `## Increments` of <index path>
130
- - Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
131
- - Discovery Context: [path of context.md]
132
- Do NOT ask the user questions. Give the UI states, component reuse and interaction patterns this
133
- increment needs — no more than its options promise. Format per your agent file (Contributed Rules — Designer Lens)."
134
- ```
135
-
136
- **Task 3: Engineer Contribution**
137
- ```
138
- subagent_type: bokata-product-engineer
139
- prompt: "Contribute technical Rules for increment [Inc n] of slice [nn], from the feasibility/sustainability lens. You have:
140
- - The increment: [its outcome, its bites (ID and title) and their option IDs — what each option means is in the trace files: <paths>]
141
- - Increments already in the slice: the `## Increments` of <index path>
142
- - Backbone + functional ACs of the touched User Tasks: <docs>/<slug>/features.md — [the User Task names to read]
143
- - Discovery Context: [path of context.md]
144
- Do NOT ask the user questions. Give data shape, contracts, guards and boundary rules for this
145
- increment, and whether it builds on earlier increments or reshapes them. Format per your agent
146
- file (Contributed Rules — Engineer Lens)."
147
- ```
148
-
149
- ### 4b. Consolidate & Invoke the AC Skill
150
-
151
- Merge the three contributions into one enrichment block (de-duplicated). Then:
152
- ```
153
- bokata-acceptance-criteria --concrete
154
- Input: [the increment: outcome, bites (ID and title), option IDs; the trace files hold what each option means: <paths>]
155
- Enrichment: [consolidated Rules]
156
- Discovery Context: [path of context.md]
157
- Instruction: "Skip your own Phase 0 discovery — it has been resolved upstream. Proceed directly to
158
- Phase 1 (Input Analysis) through Phase 3 (Generate Output), using --concrete depth. Write
159
- scenarios only for this increment, with concrete example data. Return the ## Acceptance Criteria
160
- (Concrete) section."
161
- ```
162
-
163
- ### 4c. Domain Pass (Interactive)
164
-
165
- Load the skill named in `methods.domain` (default `domain-modeling`; skip if `null` or not
166
- installed) and run it over the concrete ACs against the glossary at `memory.glossary`:
167
- - A term the glossary lists under _Avoid_ → replace it with the canonical term.
168
- - Two words for one concept, or one word for two → ask the user, then use the answer everywhere.
169
- - A new concept → settle its name with the user and add it to the glossary (terms only).
170
- - An ADR only at `memory.adrs`, and only when hard to reverse, surprising without context, and the
171
- result of a real trade-off.
172
-
173
- Ask every naming question in one round, numbered, each with your recommended answer. The paths
174
- and formats in `.bokata.json` win over the domain skill's own.
175
-
176
- ---
177
-
178
- ## Step 5: Review gate — the owner approves the ACs (Interactive)
179
-
180
- The ACs are what `bokata-plan` will turn into a checklist, so this is the last point where a wrong
181
- scenario is cheap.
182
-
183
- 1. Write the draft to `slices/<nn>-<name>/inc-<n>.md` from [inc-template.md](resources/inc-template.md)
184
- with **`State: draft`**, `Unknowns:` (from the reviews and anything you could not settle), an empty
185
- `Parallel-safe:` and the concrete ACs exactly as returned. A leftover draft of an earlier run is
186
- replaced. The index does not list the Inc yet, so the story map ignores the draft.
187
- 2. Show the user, in the conversation: the Inc line (name, outcome, bites), the **Rules**, the
188
- scenario titles per User Task, what was pruned, the `Unknowns`, and the path of the draft.
189
- Say that they can read the full Gherkin there.
190
- 3. Ask for approval, with the options *approve*, *change* (what to change) and *cancel*
191
- (delete the draft; nothing else was touched). Apply the changes to the draft and ask again. **Do
192
- not go on until the owner approves.** Whatever the answer, the proposed rows are untouched until
193
- then.
194
-
195
- ## Step 6: Write the increment
196
-
197
- Once approved:
198
-
199
- 1. **`inc-<n>.md`**: set `State: specified`.
200
- 2. **The index** `slices/<nn>-<name>.md`:
201
- - add `### Inc <n> — <short name>` to `## Increments`, in number order, with `Outcome:` (one
202
- sentence, user language), `Bites:` and `Detail:` (link to `inc-<n>.md`);
203
- - in `## Backlog`, append `→ Inc <n>` to the bites it took, after the priority tag (the skeleton
204
- bites of Inc 1 included: `(skeleton) → Inc 1`);
205
- - **redo `### Proposed increments`** with [proposed-increments.md](../bokata-slice/resources/proposed-increments.md):
206
- drop the row of this Inc, take its bites out of any other row, and reorder what is left if the
207
- pruning or what was built changed it.
208
- 3. **`slicing/F<k>.md`**: append `→ Inc <n>` to every option the Inc took (replacing the slicer's
209
- `skeleton` marker). A `skeleton` marker on an option no Inc took stays: it is only the slicer's
210
- proposal.
211
- 4. **`features.md`**: update the `**Slice:**` line of each touched Feature
212
- (`→ <nn>-<name> · <taken>/<total> options · next: <bite ID> <bite title>`, where the next bite is
213
- the first of the first proposed row).
214
- 5. **Refresh the story map** (if `story_map`) and validate, in the foreground:
215
- ```bash
216
- node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug>
217
- node .agents/skills/bokata-render/scripts/render.mjs <docs>/<initiative-slug> --check
218
- ```
219
- If either prints a `file:line: problem`, fix the markdown and run it again.
220
-
221
- ## Step 7: Verify & Summarize
222
-
223
- - [ ] The bites exist, are not taken by another Inc, and their dependencies are met or flagged
224
- - [ ] Inc 1 covers every User Task of the slice's Features, as skeleton bites
225
- - [ ] The re-prune deleted only options no Inc took, each listed in `pruned.md` with its reason
226
- - [ ] Concrete ACs exist only for this increment, in full Gherkin with concrete data, and the owner approved them
227
- - [ ] `inc-<n>.md` says `State: specified`; the index lists the Inc, its bites say `→ Inc <n>`, and no
228
- proposed row names them
229
- - [ ] No subagent prompt contains a pasted trace, report or Discovery Context: only paths
230
- - [ ] No duration written anywhere
231
- - [ ] The `bokata-render` script ran and `--check` is clean
232
-
233
- Print:
234
- ```
235
- ## ✓ Increment Specified
236
-
237
- **Slice:** <nn>-<name> · **Inc <n> — <name>** (State: specified)
238
- **Outcome:** {{ONE_LINE}}
239
- **Bites:** {{IDS_AND_TITLES}} · {{NUM_OPTIONS}} options · {{NUM_GHERKIN_BLOCKS}} scenarios
240
- **Pruned now:** {{N}} · **Bites left:** {{N}} ({{NUM_MUST}} must-have) · **Unknowns:** {{N}}
241
-
242
- **Next step:** `bokata-plan <docs>/{{INITIATIVE_SLUG}}/slices/<nn>-<name>.md` — inside your harness's plan mode.
243
- Then `code-executor`, and `bokata-inc` again for the next increment (next proposed: Inc <m> — <name>).
244
- ```
@@ -1,36 +0,0 @@
1
- <!-- ONE INCREMENT: slices/<nn>-<name>/inc-<n>.md. Written by `bokata-inc` as a draft and approved by the
2
- owner; after that the owner edits Unknowns and decisions, `bokata-plan` sets the State to planned,
3
- and the executor sets it to done. The Inc's name, outcome and bites are in the slice index: do not
4
- copy them here. -->
5
-
6
- # Inc <n> — <short name>
7
-
8
- - State: specified | planned | done <!-- draft: bokata-inc is still writing it and the owner has not approved it (the index does not list the Inc yet) · specified: ACs approved · planned: bokata-plan wrote its steps · done: built (the executor sets it). "building" is not written: it is derived from the checked steps of plan.md -->
9
- - Unknowns: <open questions, or "none">
10
- - Parallel-safe: <yes | no — set by bokata-plan>
11
-
12
- <concrete Acceptance Criteria returned by bokata-acceptance-criteria --concrete: the fixtures, the
13
- Rules and, under `#### [<User Task>]`, the Gherkin scenarios — kept exactly as returned>
14
-
15
- ```gherkin
16
- Scenario: <concrete name>
17
- Given <concrete data>
18
- When <action>
19
- Then <observable result>
20
- ```
21
-
22
- ## Decisions and notes of this Inc
23
-
24
- <!-- What the owner and the trio decided about THIS increment, and what building it discovered.
25
- Slice-wide decisions go in context.md (## Notes). Optional until there is something to say. -->
26
-
27
- - Owner decision: <…>
28
-
29
- ## Pending
30
-
31
- <!-- Added by the executor when the Inc is closed: only what is NOT in the code — a manual or owner check
32
- still to do (a phone test, a real-device walkthrough), a scenario no automated test covers. The
33
- plan.md section of a done Inc is deleted; this is all that survives of it. Omit the section when
34
- nothing is pending. -->
35
-
36
- - <manual check not done yet>