bokata 2.0.1 → 3.0.0-beta.4

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 (51) hide show
  1. package/.agents/skills/bokata-acceptance-criteria/SKILL.md +6 -7
  2. package/.agents/skills/bokata-acceptance-criteria/resources/output-template-functional.md +3 -3
  3. package/.agents/skills/bokata-acceptance-criteria/resources/output-template.md +1 -1
  4. package/{commands/task-parallel/feature-map.md → .agents/skills/bokata-feature-map/SKILL.md} +79 -79
  5. package/.agents/skills/bokata-feature-map/resources/features-template.md +83 -0
  6. package/.agents/skills/bokata-feature-mapper/SKILL.md +4 -5
  7. package/.agents/skills/bokata-feature-mapper/resources/output-template.md +1 -1
  8. package/.agents/skills/bokata-feature-slicer/SKILL.md +176 -183
  9. package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +21 -0
  10. package/.agents/skills/bokata-feature-slicer/resources/output-template-increments.md +9 -12
  11. package/.agents/skills/bokata-feature-slicer/resources/output-template-steps.md +6 -22
  12. package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +51 -79
  13. package/.agents/skills/bokata-feature-slicer/resources/phase-3-skeleton.md +152 -0
  14. package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +139 -0
  15. package/.agents/skills/bokata-plan/SKILL.md +110 -0
  16. package/.agents/skills/bokata-plan/resources/plan-template.md +35 -0
  17. package/.agents/skills/bokata-refactor/SKILL.md +69 -0
  18. package/.agents/skills/bokata-refactor/resources/smells.md +47 -0
  19. package/.agents/skills/bokata-refactor/resources/tidyings.md +31 -0
  20. package/.agents/skills/bokata-render/SKILL.md +68 -0
  21. package/.agents/skills/bokata-render/assets/story-map.html +428 -0
  22. package/.agents/skills/bokata-render/scripts/render.mjs +703 -0
  23. package/.agents/skills/bokata-shape/SKILL.md +117 -0
  24. package/.agents/skills/bokata-shape/resources/adr-template.md +24 -0
  25. package/.agents/skills/bokata-shape/resources/breadboarding.md +47 -0
  26. package/.agents/skills/bokata-shape/resources/pitch-template.md +42 -0
  27. package/.agents/skills/bokata-slice/SKILL.md +569 -0
  28. package/.agents/skills/bokata-slice/resources/inc-template.md +36 -0
  29. package/.agents/skills/bokata-slice/resources/slice-template.md +70 -0
  30. package/.agents/skills/bokata-status/SKILL.md +77 -0
  31. package/.agents/skills/bokata-tdd/SKILL.md +109 -0
  32. package/.agents/skills/bokata-tdd/resources/evidence-rules.md +27 -0
  33. package/LICENSE +21 -0
  34. package/README.md +224 -92
  35. package/agents/bokata-product-designer.md +49 -17
  36. package/agents/bokata-product-engineer.md +49 -16
  37. package/agents/bokata-product-manager.md +50 -18
  38. package/agents/code-executor.md +64 -0
  39. package/agents/design-reviewer.md +40 -0
  40. package/agents/feature-slicer.md +54 -0
  41. package/bin/bokata.js +40 -13
  42. package/package.json +20 -7
  43. package/src/agents.js +139 -0
  44. package/src/config.js +76 -0
  45. package/src/install.js +182 -205
  46. package/.agents/skills/bokata-feature-slicer/resources/phase-3-baby-steps.md +0 -311
  47. package/commands/codex/feature-map.md +0 -263
  48. package/commands/codex/slice-feature.md +0 -291
  49. package/commands/task-parallel/resources/html-template.md +0 -560
  50. package/commands/task-parallel/resources/story-map-template.md +0 -495
  51. package/commands/task-parallel/slice-feature.md +0 -301
@@ -1,207 +1,200 @@
1
1
  ---
2
2
  name: bokata-feature-slicer
3
- description: Slices a Feature into a Walking Skeleton and Increments Backlog — a ready-to-implement delivery plan. Internal phases (Steps and Incremental Options) are used as reasoning but not surfaced by default. Use this skill whenever you need to break down a Feature into implementable work — after generating a Features Backbone, when planning a sprint, or when a user asks to slice, decompose, or plan implementation of a feature.
3
+ description: Slices one Feature into Steps per User Task and 3+ Incremental Options per Step (named breakdown strategies, cheapest options included), checks them against the functional ACs, proposes a Walking Skeleton as a combination of option IDs, then prunes the options (with a reason), sets a target per Step and groups what is left into small INVEST bites per User Task. The full trace is always the output, so the work can be audited. Use it to break down a Feature into implementable work — from bokata-slice (through the feature-slicer agent), when planning a sprint, or when a user asks to slice or decompose a feature.
4
4
  ---
5
5
 
6
6
  # Bokata Feature Slicer
7
7
 
8
- Unified skill for slicing a Feature into deployable increments. Takes a Feature from the Features Backbone and produces a **Walking Skeleton + Increments Backlog** ready to implement.
8
+ Takes **one Feature** and produces its **Slicing**: every User Task → its Steps → 3+ Incremental
9
+ Options per Step, each with the breakdown strategy that produced it and the functional
10
+ requirement it covers, plus a **Walking Skeleton proposal** built from those options, and a
11
+ **bite-sized backlog**: the options pruned (with a reason), a target per Step, and the rest grouped
12
+ into small bites a person can read and prioritize at a glance.
9
13
 
10
- **Default output:** Walking Skeleton + Increments Backlog (Phase 3 only)
11
- **Optional:** pass `--show-steps`, `--show-increments`, or `--show-all` in arguments to surface intermediate phases.
14
+ **The trace is the output.** Phases 1 and 2 are not internal reasoning: they are written out,
15
+ because whoever reviews the slicing (the Product Trio, the user) can only miss options they can
16
+ see, and a skipped phase has to show.
12
17
 
13
- ---
14
-
15
- ## Quick Start
16
-
17
- **Standalone use:** Can be invoked directly with a feature description + technical context. No prior pipeline required.
18
-
19
- 1. Understand the Feature to slice from the provided input — any form works (plain text, backbone section, feature-context.md, or conversation context)
20
- 2. Select target Feature to slice
21
- 3. _(Optional)_ Enrich with a slicer research summary and discovery context if not already present
22
- 4. **Phase 1 (internal):** Decompose User Tasks into Steps → [Instructions](resources/phase-1-steps.md)
23
- 5. **Phase 2 (internal):** Generate Incremental Options per Step → [Instructions](resources/phase-2-increments.md)
24
- 6. **Phase 3 (output):** Synthesize Walking Skeleton + Increments Backlog → [Instructions](resources/phase-3-baby-steps.md)
25
-
26
- Phases 1 and 2 are internal reasoning steps — do them thoroughly but only surface their output if the user explicitly requests it.
27
-
28
- ---
29
-
30
- ## Prerequisites
31
-
32
- A Feature to slice — described in any form:
33
- - Plain text or conversation context
34
- - Features Backbone with Features and User Tasks defined
35
- - `feature-context.md` content (contains backbone + criteria research already consolidated)
36
-
37
- Optionally, Acceptance Criteria enrich the decomposition.
38
-
39
- Optionally enriched by any context containing:
40
- - **Codebase patterns, libraries, and architecture constraints** (e.g. `## Slicer Research Summary: [Feature]`) — **recommended**
41
- - **Domain vocabulary and actors** (e.g. `## Feature Research Summary`) — for consistent naming across increments
42
- - **Business rules** (e.g. `## Criteria Research Summary`) — rules that affect which increment options are acceptable
43
- - **Technical clarifications** (e.g. `## Discovery Context — Slicer: [Feature]`) — layer and scope decisions from Phase 0
44
-
45
- **Note:** All enrichment is recommended but not blocking — proceed without it if absent.
46
-
47
- ---
48
-
49
- ## Phase 0 — Discovery
50
-
51
- **Skip this phase entirely** if a `## Discovery Context — Slicer: [Feature]` section (or an orchestrator's equivalent consolidated discovery context) is already present in the input — proceed directly to `## YOUR TASK` using that context.
52
-
53
- ### Think (as an expert tech lead in discovery):
54
- Before decomposing, scan the Feature and its User Tasks for gaps that would produce wrong steps or increment options:
55
-
56
- - **Technical clarity**: Are the User Tasks specific enough to decompose into layers? Any vague actions?
57
- - **Layer ambiguity**: Are any steps unclear about which layer they belong to (UI vs Logic vs Data)?
58
- - **Increment scope**: Are any User Tasks too large to slice meaningfully without clarification?
59
- - **Dependencies**: Are there unspecified technical dependencies between User Tasks?
60
- - **Constraints**: Are there architectural or performance constraints that affect which increment options are viable?
61
-
62
- Only ask about gaps where **the answer would change a Step or an Increment option**. If the input is clear, don't ask.
63
-
64
- ### Execute:
65
- 1. List ambiguities internally
66
- 2. Filter to only **high-value questions** (answer changes a Step or an Increment option)
67
- 3. Group questions by theme (Technical Clarity, Layer Ambiguity, Increment Scope, Dependencies, Constraints)
68
- 4. Present questions to the user using the format below
69
-
70
- ---
71
-
72
- > **CRITICAL: Do not skip. Stop here and wait for user answers before producing any output.**
73
- >
74
- > If the user says "skip", "use your judgment", or similar — state your assumptions explicitly and ask the user to confirm them before continuing.
75
-
76
- ---
77
-
78
- 6. State assumptions you are making for gaps you are NOT questioning
79
-
80
- **Format for questions:**
81
18
  ```
82
- ## Clarification Questions — [Feature Name]
83
-
84
- **Technical Clarity**
85
- - [Question about a vague User Task or unclear action]
19
+ Feature
20
+ └ User Task (from the backbone)
21
+ └ Step F1-S2 · Data (Phase 1 — one functional responsibility, one layer)
22
+ └ Option F1-2.1 … F1-2.n (Phase 2 — alternative ways to do that Step, cheapest first)
86
23
 
87
- **Layer Ambiguity**
88
- - [Question about which layer a step belongs to]
24
+ Bite F1-a … (Phase 4 — options of one or several Steps that make sense together; INVEST)
89
25
 
90
- **Increment Scope**
91
- - [Question about whether a User Task needs to be split further]
92
-
93
- **Dependencies & Constraints**
94
- - [Question about technical dependencies or architectural constraints]
95
-
96
- **Assumptions I'm making (not asking):**
97
- - [Assumption 1 — reason it's safe to assume given the context]
98
- - [Assumption 2]
26
+ Increment = one or several bites (or the Walking Skeleton) that the user can see or use.
27
+ Increments are composed later (bokata-slice); this skill proposes the first one, the Walking
28
+ Skeleton, and the bites the later ones are picked from.
99
29
  ```
100
30
 
101
- After receiving user answers, produce a `## Discovery Context — Slicer: [Feature Name]` section with:
31
+ **Exploring is wide, the backlog is narrow.** Phase 2 produces many options on purpose (quotas,
32
+ several strategies) so nothing cheap is missed. Phase 4 then prunes and groups them, so the
33
+ owner reads a handful of bites instead of a hundred loose options.
102
34
 
103
- - **Technical clarifications**: Resolved ambiguities about User Task scope and layer assignment
104
- - **Layer decisions**: Which layer each ambiguous step belongs to, as clarified
105
- - **Increment boundaries**: Confirmed scope for User Tasks that needed clarification
106
- - **Dependencies confirmed**: Technical dependencies between tasks or external systems
107
- - **Constraints noted**: Architectural or performance constraints that affect slicing
108
- - **Assumptions**: Any remaining assumptions made where questions were not raised
35
+ **No durations.** Never write time-based sizing ("1-3 days"). "Simplest" means fewest
36
+ dependencies, least infrastructure, most reversible.
109
37
 
110
38
  ---
111
39
 
112
- ## YOUR TASK
113
-
114
- Read the provided input and:
40
+ ## Read first
115
41
 
116
- 1. **Prerequisite Check:**
117
- - Verify you understand what Feature and User Tasks to slice — extract from input in any form; if no feature information is present at all, ask the user
118
- - Optionally check for Acceptance Criteria — if missing, proceed without them
42
+ Before slicing, read **all** of these (they live next to this file, in `resources/`: from a project
43
+ that installed bokata, `.agents/skills/bokata-feature-slicer/resources/`). They hold the worked examples and the failure modes the
44
+ summary below only names:
119
45
 
120
- 2. **Phase 1 — Steps (internal):**
121
- Follow instructions in [Phase 1: Step Analysis](resources/phase-1-steps.md)
122
- - Decompose each User Task into functional Steps (UI → Logic → Data → Integration)
123
- - Do this work internally — don't output Phase 1 results unless `--show-steps` or `--show-all` was requested
124
-
125
- 3. **Phase 2 — Increments (internal):**
126
- Follow instructions in [Phase 2: Incremental Options](resources/phase-2-increments.md)
127
- - Generate 3+ Incremental Options per Step using [breakdown strategies](resources/breakdown-strategies.md)
128
- - Do this work internally — don't output Phase 2 results unless `--show-increments` or `--show-all` was requested
129
-
130
- 4. **Phase 3 — Walking Skeleton + Increments Backlog (output):**
131
- Follow instructions in [Phase 3: Vertical Slices](resources/phase-3-baby-steps.md)
132
- - Identify Walking Skeleton (simplest end-to-end options, buildable in 1-3 days)
133
- - Organize remaining increments into a backlog
134
- - **This is always the output** — produce it regardless of args
46
+ | Resource | Use it for |
47
+ |----------|-----------|
48
+ | [phase-1-steps.md](resources/phase-1-steps.md) | Step analysis, layers, good/bad Steps |
49
+ | [phase-2-increments.md](resources/phase-2-increments.md) | Option generation, examples, common issues |
50
+ | [breakdown-strategies.md](resources/breakdown-strategies.md) | The strategy toolkit and linguistic patterns |
51
+ | [phase-3-skeleton.md](resources/phase-3-skeleton.md) | Walking Skeleton selection and validation |
52
+ | [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-increments.md](resources/output-template-increments.md), [output-template-bites.md](resources/output-template-bites.md) | The output format |
135
54
 
136
55
  ---
137
56
 
138
- ## Execution Flow
139
-
57
+ ## Input
58
+
59
+ - The Feature: name, Purpose, User Tasks (and System Tasks), from the backbone in any form.
60
+ - A **Feature code** for the IDs (`F1`, `F2`, …). If none is given, use `F1`.
61
+ - Optional: Discovery Context, constitution, glossary, codebase notes.
62
+ - Optional: functional ACs (Requirements + Scenarios). **Kept aside until the coverage check.** With none, skip the coverage check and say so in `### Coverage`.
63
+
64
+ ## Phase 0 — Discovery (standalone use only)
65
+
66
+ **Skip it** if a `## Discovery Context — Slicer` (or an orchestrator's equivalent) is in the
67
+ input. Otherwise, scan the User Tasks for gaps whose answer would change a Step or an option
68
+ (technical clarity, layer ambiguity, increment scope, dependencies, constraints). Ask them in one
69
+ round, numbered, each with your recommended answer, and **wait for the answers**. State the
70
+ assumptions you make for everything you do not ask.
71
+
72
+ A scope decision ("only preview, no horn") **defers** options; it never deletes them. Deferred
73
+ options are still listed, marked `deferred`, so a later increment can pick them up.
74
+
75
+ ## Phase 1 — Steps
76
+
77
+ For each User Task, decompose the flow into **Steps**: one functional responsibility each
78
+ (WHAT, never HOW), named `[Action] [Object]`, with one layer:
79
+
80
+ - **UI** — what the user sees or does · **Logic** — decisions, calculations, validation ·
81
+ **Data** — storage and retrieval · **Integration** — external systems, sync.
82
+
83
+ Aim for 4+ Steps per User Task; 3 is fine when the task is genuinely narrow — say why. Number
84
+ Steps across the whole Feature (`S1`, `S2`, … — not restarting per User Task). Add a short
85
+ technical note when the code or the constraints settle something (an existing service, a
86
+ pattern to follow).
87
+
88
+ ## Phase 2 — Incremental Options
89
+
90
+ For **every** Step, produce **3+ options** (aim for 4), ordered simplest → most complete:
91
+
92
+ 1. Pick **at least 2 strategies** from [breakdown-strategies.md](resources/breakdown-strategies.md)
93
+ (start from the linguistic patterns; fall back to the Automation Gradient).
94
+ 2. **At least one option per Step comes from the cheap family**: Walking Skeleton on Crutches
95
+ (manual step behind the scenes), Dummy to Dynamic (hardcoded or fake data first), Zero/One/Many,
96
+ Workflow Simplification, Extract Basic Utility. If none applies, write one line saying why.
97
+ 3. Each option is specific and deployable on its own; its description says what changes for the
98
+ user **and states the shortcut openly** ("list is hardcoded", "the coach approves by hand").
99
+ Technology names are fine; endpoints, fields and function names are not.
100
+
101
+ The quotas are for exploring. Do not hold back a weak option to keep the trace tidy: Phase 4
102
+ prunes what turns out to be filler, with a reason.
103
+
104
+ ## Phase 3 — Coverage check and Walking Skeleton
105
+
106
+ 1. **Coverage check.** Now open the functional ACs. For each Requirement, list which options
107
+ cover it and how: `total`, `partial` or `fake` (works with fake data or a manual crutch). A
108
+ Requirement no option covers is a gap: add the option it needs. **Do not rewrite options to
109
+ mirror the requirements** — an option that covers a requirement partially is the point.
110
+ 2. **Walking Skeleton proposal.** For each User Task, choose the option per Step that makes the
111
+ whole flow work end to end with the least: "if we had to ship tomorrow, which one?" It should
112
+ feel uncomfortably minimal. Compare every option, not just `.1`; prefer reversible ones,
113
+ especially in the Data layer. Every User Task must be covered; System Tasks that User Tasks
114
+ depend on come first. Write it as option IDs per User Task plus what the user can do.
115
+
116
+ ## Phase 4 — Bite-sizing
117
+
118
+ Run it on the whole trace, after the Walking Skeleton. Read [phase-4-bites.md](resources/phase-4-bites.md).
119
+
120
+ 1. **Prune, with a reason.** Every option you discard (not the skeleton's, not `deferred`) gets
121
+ one of: `obsolete` (below the option the skeleton took in the same Step), `dominated` (another
122
+ gives more for a similar cost), `filler` (exists only for the quota), `contradicts` (against
123
+ the PRD, an ADR, the constitution or the Discovery Context). **Delete it from the trace**; the
124
+ output keeps only the `### Pruned` list with each reason. Never renumber IDs.
125
+ 2. **A target per Step**: the option the slice should reach in that Step. Mark it `→ target`.
126
+ 3. **INVEST bites per User Task.** Every live option that is not in the skeleton goes in
127
+ **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, `Inc 1`,
129
+ `none`, or `F<n> (<what it needs>)` for another Feature: you cannot know their bite IDs), one
130
+ line of value, and a one-sentence check. Write each bite as the canonical line of
131
+ [output-template-bites.md](resources/output-template-bites.md). A bite over ~5 options is split. `deferred` options form their
132
+ own bites.
133
+ 4. **Self-check** the new counts (pruned by reason, options in bites, none without a bite,
134
+ none in two, Steps with a target, bites by kind).
135
+
136
+ ## Output
137
+
138
+ Write exactly this to the file the coordinator gave you (`bokata-slice` later splits it into the slice'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
+
140
+ ```markdown
141
+ ## Slicing: <Feature name>
142
+ <!-- Feature: <Feature ID> · code F1 -->
143
+
144
+ ### User Task: <name>
145
+ - **S1 <Action Object>** · UI — <what happens, one line> · note: <technical note, optional>
146
+ - F1-1.1 <Action Object> — <what changes for the user; shortcut stated> · <strategy> · covers R1 fake · skeleton
147
+ - F1-1.2 <Action Object> — <…> · <strategy> · covers R1 total · F1-a → target
148
+ - F1-1.3 <Action Object> — <…> · <strategy> · F1-b
149
+ - F1-1.4 <Action Object> — <…> · <strategy> · deferred (<discovery decision>) · F1-x
150
+ - strategies: <strategy A>, <strategy B>
151
+ - **S2 <Action Object>** · Data — <…>
152
+ - F1-2.1 …
153
+
154
+ ### User Task: <name>
155
+ …
156
+
157
+ ### Coverage
158
+ - R1 <requirement summary> — F1-1.1 fake, F1-1.2 total
159
+ - R2 <requirement summary> — F1-3.1 partial, F1-3.3 total
160
+ <!-- No functional ACs in the input (single mode): write `none — no functional ACs` instead. -->
161
+
162
+ ### Walking Skeleton proposal
163
+ - **[<User Task name>]** F1-1.1 + F1-2.1 + F1-3.2 — <what the user can do end to end>
164
+ - **[<User Task name>]** F1-4.1 + F1-5.1 — <…>
165
+ - Why: <one line per non-obvious pick, e.g. "F1-3.2 over F1-3.1: reversible, no migration">
166
+
167
+ ### Pruned
168
+ - F1-1.5 <Action Object> — `obsolete` | `dominated` | `filler` | `contradicts`: <one line why>
169
+
170
+ ### Bites
171
+ - **[<User Task name>]**
172
+ - **F1-a · <title in user language, with a subject>** (must-have) — F1-1.2, F1-3.3 · depends on: Inc 1 · value: <one line> · check: <one sentence>
173
+ - ~**F1-b · <title>** (nice-to-have) — F1-2.3 · depends on: F1-a · value: <…> · check: <…>
174
+ - **Deferred**
175
+ - **F1-d1 · <title>** (deferred: <reason>) — F1-1.4 · prune and split when recovered
176
+
177
+ ### Self-check
178
+ User Tasks <n> · Steps <n> · Options before pruning <n> (min <n>/Step) · Steps with ≥2 strategies <n>/<n> ·
179
+ Steps with a cheap option <n>/<n> (<Step>: <why not>) · Deferred <n> · Requirements uncovered 0 (or n/a without functional ACs) ·
180
+ Pruned <n> (obsolete <n> · dominated <n> · filler <n> · contradicts <n>) · Live options <n> =
181
+ skeleton <n> + in bites <n> + deferred <n> · Without a bite 0 · In two bites 0 ·
182
+ Steps with a target <n>/<n> · Bites <n> (must-have <n> · nice-to-have <n> · deferred <n>), none over ~5 options
183
+
184
+ ### Assumptions
185
+ - <assumption — why it is safe>
140
186
  ```
141
- Input: Feature description (any form)
142
- │
143
- ▼
144
- ┌─────────────────────┐
145
- │ Phase 1: Steps │ ← internal reasoning
146
- │ (Decompose Tasks) │
147
- └────────┬────────────┘
148
- │
149
- ▼
150
- ┌─────────────────────┐
151
- │ Phase 2: Increments │ ← internal reasoning
152
- │ (Generate Options) │
153
- └────────┬────────────┘
154
- │
155
- ▼
156
- ┌─────────────────────┐
157
- │ Phase 3: Output │ ← surfaced to user
158
- │ Walking Skeleton │
159
- │ + Backlog │
160
- └─────────────────────┘
161
- ```
162
-
163
- ---
164
-
165
- ## Resources
166
-
167
- | Resource | Purpose |
168
- |----------|---------|
169
- | [Phase 1 Instructions](resources/phase-1-steps.md) | Step Analysis workflow and quality criteria |
170
- | [Phase 2 Instructions](resources/phase-2-increments.md) | Increment generation workflow and quality criteria |
171
- | [Phase 3 Instructions](resources/phase-3-baby-steps.md) | Vertical Slices synthesis workflow |
172
- | [Breakdown Strategies](resources/breakdown-strategies.md) | Toolkit of strategies for Phase 2 |
173
- | [Steps Output Template](resources/output-template-steps.md) | Format for Phase 1 output (used when --show-steps) |
174
- | [Increments Output Template](resources/output-template-increments.md) | Format for Phase 2 output (used when --show-increments) |
175
-
176
- ---
177
-
178
- ## Output Checklist
179
-
180
- ### Phase 3 — Walking Skeleton + Backlog (always verify before outputting):
181
- - [ ] `## 💀 Walking Skeleton` covers ALL User Tasks
182
- - [ ] Every Walking Skeleton item is genuinely the simplest viable option (buildable in 1-3 days)
183
- - [ ] Every Walking Skeleton item is reversible (especially Data layer items)
184
- - [ ] `## 🏗️ Increments Backlog` contains all remaining options
185
- - [ ] Backlog grouped by User Task
186
- - [ ] All items use correct tag format: `**[User Task Name]**`
187
- - [ ] No generic tasks — all items are specific increments from Phase 2 analysis
188
- - [ ] Walking Skeleton descriptions answer "what user sees/does" — technology references OK, endpoint/field/function names NOT OK
189
-
190
- ### Internal verification (before Phase 3 synthesis):
191
- - [ ] All User Tasks have been decomposed into Steps (Phase 1 complete)
192
- - [ ] All Steps have 3+ Incremental Options (Phase 2 complete)
193
- - [ ] Walking Skeleton uses options evaluated across all Phase 2 options, not just `.1` defaults
194
-
195
- ### Upstream Inputs (verify before starting):
196
- - [ ] Feature information present in some form
197
- - [ ] `## Slicer Research Summary: [Feature]` present (recommended — note if absent)
198
-
199
- ---
200
-
201
- ## NEXT STEPS
202
-
203
- After completing the slicing:
204
187
 
205
- 1. **Save output** — The user decides where to save
206
- 2. **Validate** — Check output against the Output Checklist above
207
- 3. **Implement** — Start with Walking Skeleton items, then pick increments from the backlog
188
+ ## Before returning — verify
189
+
190
+ - [ ] Every User Task has Steps; every Step has a layer and had 3+ options **before pruning** (live options + its `### Pruned` entries)
191
+ - [ ] Every Step lists ≥2 strategies and has a cheap-family option (or a one-line reason)
192
+ - [ ] Every option says what changes for the user and names its shortcut; no endpoints/fields/functions
193
+ - [ ] Options were generated before reading the functional ACs; every Requirement appears in Coverage (or Coverage says `none — no functional ACs`)
194
+ - [ ] 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
196
+ - [ ] Every pruned option has a reason from the four, is gone from the trace, and none was a skeleton or `deferred` option
197
+ - [ ] Every Step has exactly one `→ target`
198
+ - [ ] 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
199
+ - [ ] `deferred` options are in their own bites; bite dependencies have no cycle
200
+ - [ ] The Self-check counts match the trace
@@ -0,0 +1,21 @@
1
+ <!-- Phase 4 output — pruned list and bites per User Task. Each live option in the trace also
2
+ carries its bite (· F1-a) and each Step has one "→ target". Bite IDs are letters per
3
+ Feature (a…z, then aa, ab…) and never change; deferred bites are F1-d1, F1-d2…; option IDs are
4
+ never renumbered after pruning.
5
+
6
+ THE CANONICAL BITE LINE. Copy it as written, never reformat it: bokata-slice pastes it into
7
+ the slice's Backlog unchanged and the story map parses it.
8
+ - **<ID> · <title>** (must-have) — <options> · depends on: <…> · value: <…> · check: <…>
9
+ - ~**<ID> · <title>** (nice-to-have) — <options> · depends on: <…> · value: <…> · check: <…>
10
+ - **<ID> · <title>** (deferred: <reason>) — <options> · prune and split when recovered
11
+ `depends on` is another bite ID, `Inc 1`, `none`, or `F<n> (<what it needs>)` for another Feature. -->
12
+
13
+ ### Pruned
14
+ - F1-2.1 [Action] [Object] — `obsolete` | `dominated` | `filler` | `contradicts`: [one line why]
15
+
16
+ ### Bites
17
+ - **[User Task name]**
18
+ - **F1-a · [title in user language, with a subject]** (must-have) — F1-2.2, F1-4.3 · depends on: Inc 1 · value: [one line] · check: [one sentence a test can answer]
19
+ - ~**F1-b · [title]** (nice-to-have) — F1-3.4 · depends on: F1-a · value: [one line] · check: [one sentence]
20
+ - **Deferred**
21
+ - **F1-d1 · [title]** (deferred: [reason]) — F1-5.3, F1-6.1 · prune and split when recovered
@@ -1,12 +1,9 @@
1
- ### Incremental Options (0/N)
2
-
3
- [ ] **N.1: [Action] [Object]** - [Specific implementation description]
4
-
5
- [ ] **N.2: [Action] [Object]** - [Specific implementation description]
6
-
7
- [ ] **N.3: [Action] [Object]** - [Specific implementation description]
8
-
9
- [Repeat as needed...]
10
-
11
- **Applied Strategies:** [List of 2-3 strategies used]
12
- **Rationale:** [Why these options for this step - 1-2 sentences]
1
+ <!-- Phase 2 output — options nested under their Step, simplest first.
2
+ ID = {Feature code}-{Step number}.{n}. Coverage is filled in Phase 3. -->
3
+
4
+ - **S2 [Action] [Object]** · [Layer] — [what happens]
5
+ - F1-2.1 [Action] [Object] — [what changes for the user; shortcut stated openly] · [strategy]
6
+ - F1-2.2 [Action] [Object] — [description] · [strategy]
7
+ - F1-2.3 [Action] [Object] — [description] · [strategy]
8
+ - F1-2.4 [Action] [Object] — [description] · [strategy] · deferred ([discovery decision])
9
+ - strategies: [strategy A], [strategy B] — [one-line rationale]
@@ -1,24 +1,8 @@
1
- ## Feature: [Feature Name]
2
- <!-- Feature ID: {PRJ}-FEAT-{hash} -->
1
+ <!-- Phase 1 output — one block per User Task. Steps are numbered across the whole Feature. -->
3
2
 
4
- ## User Task: [User Task Name]
5
- <!-- Task ID: {PRJ}-TASK-{hash} | ACs: features.md#{PRJ}-TASK-{hash} -->
3
+ ### User Task: [User Task Name]
4
+ - **S1 [Action] [Object]** · [UI | Logic | Data | Integration] — [what happens, one line] · note: [technical note from the code or constraints, optional]
5
+ - **S2 [Action] [Object]** · [Layer] — [what happens]
6
+ - **S3 [Action] [Object]** · [Layer] — [what happens]
6
7
 
7
- ### Steps
8
-
9
- #### Step 1: [Action] [Object]
10
- **Layer:** [UI | Logic | Data | Integration]
11
- **Description:** [What this step accomplishes - 1-2 sentences]
12
- **Technical Note:** [Key architectural/design decision from research — e.g., "Uses existing session validation service — no new auth logic needed"]
13
-
14
- #### Step 2: [Action] [Object]
15
- **Layer:** [UI | Logic | Data | Integration]
16
- **Description:** [What this step accomplishes - 1-2 sentences]
17
- **Technical Note:** [Key architectural/design decision from research — e.g., "Database-level uniqueness constraint — no app-layer validation needed"]
18
-
19
- #### Step 3: [Action] [Object]
20
- **Layer:** [UI | Logic | Data | Integration]
21
- **Description:** [What this step accomplishes - 1-2 sentences]
22
- **Technical Note:** [Key architectural/design decision from research — e.g., "Follows existing repository lookup pattern"]
23
-
24
- [Additional steps as needed...]
8
+ [Next User Task continues the numbering: S4, S5, …]