bokata 2.0.0 → 3.0.0-beta.3

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 (43) hide show
  1. package/{commands/task-parallel/feature-map.md → .agents/skills/bokata-feature-map/SKILL.md} +80 -79
  2. package/.agents/skills/bokata-feature-map/resources/features-template.md +83 -0
  3. package/.agents/skills/bokata-feature-slicer/SKILL.md +171 -182
  4. package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +13 -0
  5. package/.agents/skills/bokata-feature-slicer/resources/output-template-increments.md +9 -12
  6. package/.agents/skills/bokata-feature-slicer/resources/output-template-steps.md +6 -22
  7. package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +43 -49
  8. package/.agents/skills/bokata-feature-slicer/resources/phase-3-baby-steps.md +90 -249
  9. package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +138 -0
  10. package/.agents/skills/bokata-plan/SKILL.md +104 -0
  11. package/.agents/skills/bokata-plan/resources/plan-template.md +33 -0
  12. package/.agents/skills/bokata-refactor/SKILL.md +69 -0
  13. package/.agents/skills/bokata-refactor/resources/smells.md +47 -0
  14. package/.agents/skills/bokata-refactor/resources/tidyings.md +31 -0
  15. package/.agents/skills/bokata-render/SKILL.md +144 -0
  16. package/.agents/skills/bokata-render/resources/story-map-template.md +835 -0
  17. package/.agents/skills/bokata-shape/SKILL.md +117 -0
  18. package/.agents/skills/bokata-shape/resources/adr-template.md +24 -0
  19. package/.agents/skills/bokata-shape/resources/breadboarding.md +47 -0
  20. package/.agents/skills/bokata-shape/resources/pitch-template.md +42 -0
  21. package/.agents/skills/bokata-slice/SKILL.md +475 -0
  22. package/.agents/skills/bokata-slice/resources/slice-template.md +117 -0
  23. package/.agents/skills/bokata-status/SKILL.md +65 -0
  24. package/.agents/skills/bokata-tdd/SKILL.md +109 -0
  25. package/.agents/skills/bokata-tdd/resources/evidence-rules.md +27 -0
  26. package/README.md +210 -92
  27. package/agents/bokata-product-designer.md +48 -16
  28. package/agents/bokata-product-engineer.md +48 -15
  29. package/agents/bokata-product-manager.md +48 -16
  30. package/agents/code-executor.md +53 -0
  31. package/agents/design-reviewer.md +40 -0
  32. package/agents/feature-slicer.md +42 -0
  33. package/agents/story-map-renderer.md +19 -0
  34. package/bin/bokata.js +27 -12
  35. package/package.json +20 -7
  36. package/src/agents.js +114 -0
  37. package/src/config.js +75 -0
  38. package/src/install.js +173 -205
  39. package/commands/codex/feature-map.md +0 -263
  40. package/commands/codex/slice-feature.md +0 -291
  41. package/commands/task-parallel/resources/html-template.md +0 -560
  42. package/commands/task-parallel/resources/story-map-template.md +0 -495
  43. package/commands/task-parallel/slice-feature.md +0 -301
@@ -1,207 +1,196 @@
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]
86
-
87
- **Layer Ambiguity**
88
- - [Question about which layer a step belongs to]
89
-
90
- **Increment Scope**
91
- - [Question about whether a User Task needs to be split further]
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)
92
23
 
93
- **Dependencies & Constraints**
94
- - [Question about technical dependencies or architectural constraints]
24
+ Bite F1-a … (Phase 4 — options of one or several Steps that make sense together; INVEST)
95
25
 
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
40
+ ## Read first
113
41
 
114
- Read the provided input and:
42
+ Before slicing, read **all** of these. They hold the worked examples and the failure modes the
43
+ summary below only names:
115
44
 
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
119
-
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
45
+ | Resource | Use it for |
46
+ |----------|-----------|
47
+ | [phase-1-steps.md](resources/phase-1-steps.md) | Step analysis, layers, good/bad Steps |
48
+ | [phase-2-increments.md](resources/phase-2-increments.md) | Option generation, examples, common issues |
49
+ | [breakdown-strategies.md](resources/breakdown-strategies.md) | The strategy toolkit and linguistic patterns |
50
+ | [phase-3-baby-steps.md](resources/phase-3-baby-steps.md) | Walking Skeleton selection and validation |
51
+ | [phase-4-bites.md](resources/phase-4-bites.md) | Pruning reasons, Step targets, INVEST bites, bite titles |
52
+ | [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
53
 
136
54
  ---
137
55
 
138
- ## Execution Flow
56
+ ## Input
139
57
 
58
+ - The Feature: name, Purpose, User Tasks (and System Tasks), from the backbone in any form.
59
+ - A **Feature code** for the IDs (`F1`, `F2`, …). If none is given, use `F1`.
60
+ - Optional: Discovery Context, constitution, glossary, codebase notes.
61
+ - Optional: functional ACs (Requirements + Scenarios). **Kept aside until the coverage check.**
62
+
63
+ ## Phase 0 — Discovery (standalone use only)
64
+
65
+ **Skip it** if a `## Discovery Context — Slicer` (or an orchestrator's equivalent) is in the
66
+ input. Otherwise, scan the User Tasks for gaps whose answer would change a Step or an option
67
+ (technical clarity, layer ambiguity, increment scope, dependencies, constraints). Ask them in one
68
+ round, numbered, each with your recommended answer, and **wait for the answers**. State the
69
+ assumptions you make for everything you do not ask.
70
+
71
+ A scope decision ("only preview, no horn") **defers** options; it never deletes them. Deferred
72
+ options are still listed, marked `deferred`, so a later increment can pick them up.
73
+
74
+ ## Phase 1 — Steps
75
+
76
+ For each User Task, decompose the flow into **Steps**: one functional responsibility each
77
+ (WHAT, never HOW), named `[Action] [Object]`, with one layer:
78
+
79
+ - **UI** — what the user sees or does · **Logic** — decisions, calculations, validation ·
80
+ **Data** — storage and retrieval · **Integration** — external systems, sync.
81
+
82
+ Aim for 4+ Steps per User Task; 3 is fine when the task is genuinely narrow — say why. Number
83
+ Steps across the whole Feature (`S1`, `S2`, … — not restarting per User Task). Add a short
84
+ technical note when the code or the constraints settle something (an existing service, a
85
+ pattern to follow).
86
+
87
+ ## Phase 2 — Incremental Options
88
+
89
+ For **every** Step, produce **3+ options** (aim for 4), ordered simplest → most complete:
90
+
91
+ 1. Pick **at least 2 strategies** from [breakdown-strategies.md](resources/breakdown-strategies.md)
92
+ (start from the linguistic patterns; fall back to the Automation Gradient).
93
+ 2. **At least one option per Step comes from the cheap family**: Walking Skeleton on Crutches
94
+ (manual step behind the scenes), Dummy to Dynamic (hardcoded or fake data first), Zero/One/Many,
95
+ Workflow Simplification, Extract Basic Utility. If none applies, write one line saying why.
96
+ 3. Each option is specific and deployable on its own; its description says what changes for the
97
+ user **and states the shortcut openly** ("list is hardcoded", "the coach approves by hand").
98
+ Technology names are fine; endpoints, fields and function names are not.
99
+
100
+ The quotas are for exploring. Do not hold back a weak option to keep the trace tidy: Phase 4
101
+ prunes what turns out to be filler, with a reason.
102
+
103
+ ## Phase 3 — Coverage check and Walking Skeleton
104
+
105
+ 1. **Coverage check.** Now open the functional ACs. For each Requirement, list which options
106
+ cover it and how: `total`, `partial` or `fake` (works with fake data or a manual crutch). A
107
+ Requirement no option covers is a gap: add the option it needs. **Do not rewrite options to
108
+ mirror the requirements** — an option that covers a requirement partially is the point.
109
+ 2. **Walking Skeleton proposal.** For each User Task, choose the option per Step that makes the
110
+ whole flow work end to end with the least: "if we had to ship tomorrow, which one?" It should
111
+ feel uncomfortably minimal. Compare every option, not just `.1`; prefer reversible ones,
112
+ especially in the Data layer. Every User Task must be covered; System Tasks that User Tasks
113
+ depend on come first. Write it as option IDs per User Task plus what the user can do.
114
+
115
+ ## Phase 4 — Bite-sizing
116
+
117
+ Run it on the whole trace, after the Walking Skeleton. Read [phase-4-bites.md](resources/phase-4-bites.md).
118
+
119
+ 1. **Prune, with a reason.** Every option you discard (not the skeleton's, not `deferred`) gets
120
+ one of: `obsolete` (below the option the skeleton took in the same Step), `dominated` (another
121
+ gives more for a similar cost), `filler` (exists only for the quota), `contradicts` (against
122
+ the PRD, an ADR, the constitution or the Discovery Context). **Delete it from the trace**; the
123
+ output keeps only the `### Pruned` list with each reason. Never renumber IDs.
124
+ 2. **A target per Step**: the option the slice should reach in that Step. Mark it `→ target`.
125
+ 3. **INVEST bites per User Task.** Every live option that is not in the skeleton goes in
126
+ **exactly one** bite, with: an ID (`F1-a`), a title **in user language with a subject**,
127
+ `must-have` or `~nice-to-have`, its options and Steps, what it depends on, one line of value,
128
+ and a one-sentence check. A bite over ~5 options is split. `deferred` options form their
129
+ own bites.
130
+ 4. **Self-check** the new counts (pruned by reason, options in bites, none without a bite,
131
+ none in two, Steps with a target, bites by kind).
132
+
133
+ ## Output
134
+
135
+ Return exactly this (the `bokata-slice` coordinator pastes it into the slice file):
136
+
137
+ ```markdown
138
+ ## Slicing: <Feature name>
139
+ <!-- Feature: <Feature ID> · code F1 -->
140
+
141
+ ### User Task: <name>
142
+ - **S1 <Action Object>** · UI — <what happens, one line> · note: <technical note, optional>
143
+ - F1-1.1 <Action Object> — <what changes for the user; shortcut stated> · <strategy> · covers R1 fake · skeleton
144
+ - F1-1.2 <Action Object> — <…> · <strategy> · covers R1 total · F1-a → target
145
+ - F1-1.3 <Action Object> — <…> · <strategy> · F1-b
146
+ - F1-1.4 <Action Object> — <…> · <strategy> · deferred (<discovery decision>) · F1-x
147
+ - strategies: <strategy A>, <strategy B>
148
+ - **S2 <Action Object>** · Data — <…>
149
+ - F1-2.1 …
150
+
151
+ ### User Task: <name>
152
+ …
153
+
154
+ ### Coverage
155
+ - R1 <requirement summary> — F1-1.1 fake, F1-1.2 total
156
+ - R2 <requirement summary> — F1-3.1 partial, F1-3.3 total
157
+
158
+ ### Walking Skeleton proposal
159
+ - **[<User Task name>]** F1-1.1 + F1-2.1 + F1-3.2 — <what the user can do end to end>
160
+ - **[<User Task name>]** F1-4.1 + F1-5.1 — <…>
161
+ - Why: <one line per non-obvious pick, e.g. "F1-3.2 over F1-3.1: reversible, no migration">
162
+
163
+ ### Pruned
164
+ - F1-1.5 <Action Object> — `obsolete` | `dominated` | `filler` | `contradicts`: <one line why>
165
+
166
+ ### Bites
167
+ - **[<User Task name>]**
168
+ - 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>
169
+ - ~F1-b · <title> (nice-to-have) — F1-2.3 · depends on: F1-a · value: <…> · check: <…>
170
+ - **Deferred**
171
+ - F1-x · <title> (deferred: <reason>) — F1-1.4 · prune and split when recovered
172
+
173
+ ### Self-check
174
+ User Tasks <n> · Steps <n> · Options before pruning <n> (min <n>/Step) · Steps with ≥2 strategies <n>/<n> ·
175
+ Steps with a cheap option <n>/<n> (<Step>: <why not>) · Deferred <n> · Requirements uncovered 0 ·
176
+ Pruned <n> (obsolete <n> · dominated <n> · filler <n> · contradicts <n>) · Live options <n> =
177
+ skeleton <n> + in bites <n> + deferred <n> · Without a bite 0 · In two bites 0 ·
178
+ Steps with a target <n>/<n> · Bites <n> (must-have <n> · nice-to-have <n> · deferred <n>), none over ~5 options
179
+
180
+ ### Assumptions
181
+ - <assumption — why it is safe>
140
182
  ```
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
183
 
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
184
+ ## Before returning — verify
185
+
186
+ - [ ] Every User Task has Steps; every Step has a layer and 3+ options
187
+ - [ ] Every Step lists ≥2 strategies and has a cheap-family option (or a one-line reason)
188
+ - [ ] Every option says what changes for the user and names its shortcut; no endpoints/fields/functions
189
+ - [ ] Options were generated before reading the functional ACs; every Requirement appears in Coverage
190
+ - [ ] Discovery scope cuts appear as `deferred` options, not as missing ones
191
+ - [ ] The Walking Skeleton covers every User Task, uses option IDs, and no duration is written anywhere
192
+ - [ ] Every pruned option has a reason from the four, is gone from the trace, and none was a skeleton or `deferred` option
193
+ - [ ] Every Step has exactly one `→ target`
194
+ - [ ] 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
195
+ - [ ] `deferred` options are in their own bites; bite dependencies have no cycle
196
+ - [ ] The Self-check counts match the trace
@@ -0,0 +1,13 @@
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 and never change; option IDs are never renumbered after pruning. -->
4
+
5
+ ### Pruned
6
+ - F1-2.1 [Action] [Object] — `obsolete` | `dominated` | `filler` | `contradicts`: [one line why]
7
+
8
+ ### Bites
9
+ - **[User Task name]**
10
+ - 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]
11
+ - ~F1-b · [title] (nice-to-have) — F1-3.4 · depends on: F1-a · value: [one line] · check: [one sentence]
12
+ - **Deferred**
13
+ - F1-x · [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, …]
@@ -26,8 +26,8 @@ Refer to [Strategies Toolkit](breakdown-strategies.md) for detailed descriptions
26
26
 
27
27
  ### Step 1: Identify All Steps
28
28
 
29
- 1. Locate `## Features Backbone` section in the provided input
30
- 2. For each User Task, find all `### Steps` sections
29
+ 1. Take the Phase 1 output (the Steps of every User Task)
30
+ 2. For each User Task, list its Steps
31
31
  3. Extract for each step: name, description, layer (UI/Logic/Data/Integration), and any technical notes
32
32
  4. Create a complete list of all steps requiring incremental options
33
33
 
@@ -87,7 +87,8 @@ For each step, create 3+ incremental options by:
87
87
  5. Naming each option using `[Action] [Object]` format
88
88
 
89
89
  Validate each step's options:
90
- - Minimum 3 options per step (WARNING if exactly 3)
90
+ - Minimum 3 options per step (aim for 4)
91
+ - At least one cheap-family option (Crutches, Dummy to Dynamic, Zero/One/Many…)
91
92
  - All options specific (not generic)
92
93
  - Dependencies explicit
93
94
  - Progression clear (simple → advanced)
@@ -132,10 +133,10 @@ Validate each step's options:
132
133
  Generate markdown output via [Output Template](output-template-increments.md).
133
134
 
134
135
  Formatting requirements:
135
- 1. Checkbox format: `[ ] **N.M: Name** - Description`
136
- 2. Applied Strategies section (2-3 strategies listed)
137
- 3. Rationale section (1-2 sentences explaining option set)
138
- 4. Options progress from simple → complex
136
+ 1. One line per option, nested under its Step: `F1-N.M Name — description · strategy`
137
+ 2. A closing `strategies:` line per Step (2-3 strategies + one-line rationale)
138
+ 3. Options progress from simple → complex
139
+ 4. At least one option per Step from the cheap family (Crutches, Dummy to Dynamic, Zero/One/Many, Workflow Simplification, Extract Basic Utility), or a one-line reason why none applies
139
140
 
140
141
  ---
141
142
 
@@ -150,58 +151,37 @@ For completed Incremental Options sections:
150
151
  ### Example 1: "Capture Audio Input" Step
151
152
 
152
153
  ```markdown
153
- ### Incremental Options (0/5)
154
+ - F1-1.1 Browser Microphone (Web Audio API) — Capture using browser's built-in Web Audio API with basic permissions prompt
155
+ - F1-1.2 Native Mobile Audio — Use platform-specific microphone APIs (AVFoundation for iOS, MediaRecorder for Android)
156
+ - F1-1.3 Audio Processing Pipeline — Add noise reduction and level monitoring with real-time visual feedback
157
+ - F1-1.4 Multi-device Support — Allow selection from multiple input devices (built-in mic, USB mic, Bluetooth headset)
158
+ - F1-1.5 Background Recording — Enable recording to continue when app is backgrounded or screen is off
154
159
 
155
- [ ] **1.1: Browser Microphone (Web Audio API)** - Capture using browser's built-in Web Audio API with basic permissions prompt
156
-
157
- [ ] **1.2: Native Mobile Audio** - Use platform-specific microphone APIs (AVFoundation for iOS, MediaRecorder for Android)
158
-
159
- [ ] **1.3: Audio Processing Pipeline** - Add noise reduction and level monitoring with real-time visual feedback
160
-
161
- [ ] **1.4: Multi-device Support** - Allow selection from multiple input devices (built-in mic, USB mic, Bluetooth headset)
162
-
163
- [ ] **1.5: Background Recording** - Enable recording to continue when app is backgrounded or screen is off
164
-
165
- **Applied Strategies:** Dummy to Dynamic (Web API → Native), Data Variation (single device → multiple devices), Extract Basic Utility (basic capture → enhanced with processing)
166
- **Rationale:** Start with simplest browser API, progressively add native capabilities, device options, and background support for power users.
160
+ - strategies: Dummy to Dynamic (Web API → Native), Data Variation (single device → multiple devices), Extract Basic Utility (basic capture → enhanced with processing) — Start with simplest browser API, progressively add native capabilities, device options, and background support for power users.
167
161
  ```
168
162
 
169
163
  ### Example 2: "Execute Search Query" Step
170
164
 
171
165
  ```markdown
172
- ### Incremental Options (0/6)
173
-
174
- [ ] **2.1: Exact Text Match** - Search product names for exact substring match (case-insensitive)
175
-
176
- [ ] **2.2: Fuzzy Text Search** - Add fuzzy matching to handle typos and similar words (Levenshtein distance)
177
-
178
- [ ] **2.3: Filter by Single Attribute** - Allow filtering by one attribute (e.g., category OR price range)
179
-
180
- [ ] **2.4: Multi-attribute Filters** - Support combining multiple filters with AND logic (category AND price range AND rating)
181
-
182
- [ ] **2.5: Full-text Search with Ranking** - Implement full-text search with relevance scoring (tf-idf or similar)
183
-
184
- [ ] **2.6: Natural Language Query** - Parse natural language queries ("cheap laptops under $500") into structured filters
185
-
186
- **Applied Strategies:** Zero/One/Many (no filters → one filter → many filters), Business Rule Progression (exact → fuzzy → ranked), Data Variation (text only → attributes → natural language)
187
- **Rationale:** Build from simplest exact match toward sophisticated natural language understanding, allowing progressive enhancement of search quality.
166
+ - F1-2.1 Exact Text Match — Search product names for exact substring match (case-insensitive)
167
+ - F1-2.2 Fuzzy Text Search — Add fuzzy matching to handle typos and similar words (Levenshtein distance)
168
+ - F1-2.3 Filter by Single Attribute — Allow filtering by one attribute (e.g., category OR price range)
169
+ - F1-2.4 Multi-attribute Filters — Support combining multiple filters with AND logic (category AND price range AND rating)
170
+ - F1-2.5 Full-text Search with Ranking — Implement full-text search with relevance scoring (tf-idf or similar)
171
+ - F1-2.6 Natural Language Query — Parse natural language queries ("cheap laptops under $500") into structured filters
172
+
173
+ - strategies: Zero/One/Many (no filters → one filter → many filters), Business Rule Progression (exact → fuzzy → ranked), Data Variation (text only → attributes → natural language) — Build from simplest exact match toward sophisticated natural language understanding, allowing progressive enhancement of search quality.
188
174
  ```
189
175
 
190
176
  ### Example 3: "Persist User Data" Step
191
177
 
192
178
  ```markdown
193
- ### Incremental Options (0/4)
194
-
195
- [ ] **3.1: LocalStorage (Client-side)** - Store user data in browser localStorage (5MB limit, no backend required)
196
-
197
- [ ] **3.2: SQLite (Local Database)** - Use SQLite for local structured storage with query capability
179
+ - F1-3.1 LocalStorage (Client-side) — Store user data in browser localStorage (5MB limit, no backend required)
180
+ - F1-3.2 SQLite (Local Database) — Use SQLite for local structured storage with query capability
181
+ - F1-3.3 REST API (Cloud Sync) — Sync data to cloud via REST API (requires authentication)
182
+ - F1-3.4 Real-time Database (Firebase/Supabase) — Real-time bi-directional sync across devices
198
183
 
199
- [ ] **3.3: REST API (Cloud Sync)** - Sync data to cloud via REST API (requires authentication)
200
-
201
- [ ] **3.4: Real-time Database (Firebase/Supabase)** - Real-time bi-directional sync across devices
202
-
203
- **Applied Strategies:** Dummy to Dynamic (local → cloud), Split by Capacity (5MB → unlimited), Walking Skeleton on Crutches (client-only → full cloud)
204
- **Rationale:** Start with zero backend complexity (localStorage), progressively add server sync, then real-time capabilities as needed.
184
+ - strategies: Dummy to Dynamic (local → cloud), Split by Capacity (5MB → unlimited), Walking Skeleton on Crutches (client-only → full cloud) — Start with zero backend complexity (localStorage), progressively add server sync, then real-time capabilities as needed.
205
185
  ```
206
186
 
207
187
  ---
@@ -236,6 +216,18 @@ For completed Incremental Options sections:
236
216
  - User types mentioned → user segment narrowing
237
217
  - When in doubt, start with Zero/One/Many + Dummy to Dynamic
238
218
 
219
+ **Issue: "Each Step has one option per functional requirement"**
220
+ → Solution: You are copying the ACs, not slicing. The ACs say WHAT must end up true; options are
221
+ cheaper ways to get there first. Generate options from the Step and the strategies, then check
222
+ coverage — an option that covers a requirement only partially or with fake data is valuable.
223
+ - ❌ "Show player list" → "Show player list sorted by number" → "Show player list with photos" (one per AC)
224
+ ✅ INSTEAD: "Hardcoded list of 5 players" (Dummy to Dynamic) → "List from the roster API" →
225
+ "Empty roster state" (Zero/One/Many) → "Sorted by number with photos"
226
+
227
+ **Issue: "The cheap options disappeared"**
228
+ → Solution: Options like "the coach sends it by hand" or "hardcoded data" are not embarrassing —
229
+ they are the Walking Skeleton candidates. Write them, state the shortcut openly, and keep them.
230
+
239
231
  **Interactive Use:**
240
232
  If you're stuck, ask me to list strategies for a specific step, and I'll suggest applications.
241
233
 
@@ -246,6 +238,8 @@ If you're stuck, ask me to list strategies for a specific step, and I'll suggest
246
238
  - [ ] ALL Steps have Incremental Options (no gaps)
247
239
  - [ ] At least one option per step is clearly the simplest viable (Walking Skeleton candidate)
248
240
  - [ ] Aim for 4+ options per step — 3 is acceptable if the step is genuinely narrow; note why
249
- - [ ] Each option uses `[ ] **N.M: Name** - Description` format and is independently deployable
241
+ - [ ] Each option uses `F1-N.M Name — description · strategy` and is independently deployable
250
242
  - [ ] Options progress from simple → complex
251
- - [ ] Applied Strategies (2-3) and Rationale documented per step
243
+ - [ ] Every Step has a `strategies:` line with 2+ strategies, and a cheap-family option (or a reason)
244
+ - [ ] Every option states its shortcut openly ("hardcoded list", "approved by hand")
245
+ - [ ] Options were not derived from the functional ACs (those are only used in the Phase 3 coverage check)