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.
- package/.agents/skills/bokata-acceptance-criteria/SKILL.md +6 -7
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template-functional.md +3 -3
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template.md +1 -1
- package/{commands/task-parallel/feature-map.md → .agents/skills/bokata-feature-map/SKILL.md} +79 -79
- package/.agents/skills/bokata-feature-map/resources/features-template.md +83 -0
- package/.agents/skills/bokata-feature-mapper/SKILL.md +4 -5
- package/.agents/skills/bokata-feature-mapper/resources/output-template.md +1 -1
- package/.agents/skills/bokata-feature-slicer/SKILL.md +176 -183
- package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +21 -0
- package/.agents/skills/bokata-feature-slicer/resources/output-template-increments.md +9 -12
- package/.agents/skills/bokata-feature-slicer/resources/output-template-steps.md +6 -22
- package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +51 -79
- package/.agents/skills/bokata-feature-slicer/resources/phase-3-skeleton.md +152 -0
- package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +139 -0
- package/.agents/skills/bokata-plan/SKILL.md +110 -0
- package/.agents/skills/bokata-plan/resources/plan-template.md +35 -0
- package/.agents/skills/bokata-refactor/SKILL.md +69 -0
- package/.agents/skills/bokata-refactor/resources/smells.md +47 -0
- package/.agents/skills/bokata-refactor/resources/tidyings.md +31 -0
- package/.agents/skills/bokata-render/SKILL.md +68 -0
- package/.agents/skills/bokata-render/assets/story-map.html +428 -0
- package/.agents/skills/bokata-render/scripts/render.mjs +703 -0
- package/.agents/skills/bokata-shape/SKILL.md +117 -0
- package/.agents/skills/bokata-shape/resources/adr-template.md +24 -0
- package/.agents/skills/bokata-shape/resources/breadboarding.md +47 -0
- package/.agents/skills/bokata-shape/resources/pitch-template.md +42 -0
- package/.agents/skills/bokata-slice/SKILL.md +569 -0
- package/.agents/skills/bokata-slice/resources/inc-template.md +36 -0
- package/.agents/skills/bokata-slice/resources/slice-template.md +70 -0
- package/.agents/skills/bokata-status/SKILL.md +77 -0
- package/.agents/skills/bokata-tdd/SKILL.md +109 -0
- package/.agents/skills/bokata-tdd/resources/evidence-rules.md +27 -0
- package/LICENSE +21 -0
- package/README.md +224 -92
- package/agents/bokata-product-designer.md +49 -17
- package/agents/bokata-product-engineer.md +49 -16
- package/agents/bokata-product-manager.md +50 -18
- package/agents/code-executor.md +64 -0
- package/agents/design-reviewer.md +40 -0
- package/agents/feature-slicer.md +54 -0
- package/bin/bokata.js +40 -13
- package/package.json +20 -7
- package/src/agents.js +139 -0
- package/src/config.js +76 -0
- package/src/install.js +182 -205
- package/.agents/skills/bokata-feature-slicer/resources/phase-3-baby-steps.md +0 -311
- package/commands/codex/feature-map.md +0 -263
- package/commands/codex/slice-feature.md +0 -291
- package/commands/task-parallel/resources/html-template.md +0 -560
- package/commands/task-parallel/resources/story-map-template.md +0 -495
- package/commands/task-parallel/slice-feature.md +0 -301
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bokata-shape
|
|
3
|
+
description: Shape a raw idea into a pitch before any building — grill the user to narrow the problem, sketch 2-3 approaches as breadboards, run one Product Trio pass over them, settle rabbit holes and no-gos, and write pitch.md. Use it when the user wants to start an initiative, refine or discover what to build, shape an idea, or says "shape", "grill this idea" or "let's work out what to build".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# bokata-shape
|
|
7
|
+
|
|
8
|
+
Turn a raw idea into a **pitch**: a rough, solved and bounded description of what to build,
|
|
9
|
+
in the spirit of Shape Up. The pitch is temporary working material. The code stays the
|
|
10
|
+
source of truth.
|
|
11
|
+
|
|
12
|
+
Talk to the user in their language. Write the pitch in the language of the project's docs
|
|
13
|
+
(default: the user's language).
|
|
14
|
+
|
|
15
|
+
## Configuration
|
|
16
|
+
|
|
17
|
+
Read `.bokata.json` at the project root if it exists. Defaults:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{ "docs": "docs/initiatives",
|
|
21
|
+
"memory": { "constitution": "CONSTITUTION.md", "glossary": "GLOSSARY.md",
|
|
22
|
+
"adrs": "docs/adrs", "adr_template": null },
|
|
23
|
+
"templates": { "pitch": null },
|
|
24
|
+
"methods": { "grill": "grill-with-docs", "domain": "domain-modeling" } }
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
A memory file that does not exist is skipped, never created empty. `templates.pitch: null`
|
|
28
|
+
means [resources/pitch-template.md](resources/pitch-template.md).
|
|
29
|
+
|
|
30
|
+
## Before you start
|
|
31
|
+
|
|
32
|
+
1. Read the constitution, the glossary and the ADR index if they exist.
|
|
33
|
+
2. Ask for the initiative name if it is not given. Use a kebab-case slug.
|
|
34
|
+
3. If `<docs>/<slug>/pitch.md` exists, resume it: read it and continue from what is missing.
|
|
35
|
+
|
|
36
|
+
## 1. Narrow the problem (grill)
|
|
37
|
+
|
|
38
|
+
Load the skill named in `methods.grill` (default `grill-with-docs`; fall back to `grilling`,
|
|
39
|
+
or to the rules below if neither is installed) and follow it. Load the skill named in
|
|
40
|
+
`methods.domain` too (default `domain-modeling`; skip it if it is `null`, not installed, or
|
|
41
|
+
already loaded by the grill skill): it challenges terms against the glossary and writes the
|
|
42
|
+
glossary and ADRs as they settle. Apply these bokata rules on top:
|
|
43
|
+
|
|
44
|
+
- Ask in **rounds**: every question you can ask now, numbered, each with your recommended
|
|
45
|
+
answer and worded so "yes" accepts it. Wait for the answers before the next round; a
|
|
46
|
+
question that depends on one still open waits for a later round.
|
|
47
|
+
- Facts come from the code: explore it (use a read-only explore subagent if your harness has
|
|
48
|
+
one) instead of asking the user what the code already says. Decisions belong to the user.
|
|
49
|
+
- Keep coming back to the Shape Up question: **"what is the specific situation where the
|
|
50
|
+
current way fails?"** Design for that case, not for an abstraction.
|
|
51
|
+
- Glossary terms and ADRs are written **inline, when they settle**, at the paths in `memory`.
|
|
52
|
+
If the grill or domain skill wants other paths or formats (for example `docs/adr/` with
|
|
53
|
+
numbered ADRs), use the configured ones.
|
|
54
|
+
Use `memory.adr_template` if set, otherwise [resources/adr-template.md](resources/adr-template.md).
|
|
55
|
+
- Offer an ADR only when all three hold: hard to reverse, surprising without context, and the
|
|
56
|
+
result of a real trade-off.
|
|
57
|
+
|
|
58
|
+
Stop grilling when the problem is narrow enough that two people would sketch roughly the
|
|
59
|
+
same solution space.
|
|
60
|
+
|
|
61
|
+
## 2. Find the elements (2–3 approaches)
|
|
62
|
+
|
|
63
|
+
Sketch two or three approaches at the right altitude: concrete enough to judge, rough enough
|
|
64
|
+
to leave room for design. Follow [resources/breadboarding.md](resources/breadboarding.md):
|
|
65
|
+
|
|
66
|
+
- every approach gets a **Mermaid breadboard** (places, affordances, connections);
|
|
67
|
+
- add a **low-fi fat-marker sketch** (HTML) only when spatial layout is part of the decision.
|
|
68
|
+
|
|
69
|
+
## 3. Trio pass over the approaches
|
|
70
|
+
|
|
71
|
+
Run the Product Trio **once** over the approaches — not during the grill.
|
|
72
|
+
|
|
73
|
+
**Execution constraint (critical):** issue the three subagent calls together in a single
|
|
74
|
+
message and wait for all three (Task/Agent in Claude Code, `task` in OpenCode, `spawn_agents`
|
|
75
|
+
in Codex, subagents in Cursor). If your harness has no subagents, run the three lenses
|
|
76
|
+
yourself one after another, each as a separate pass, and say so.
|
|
77
|
+
|
|
78
|
+
Give each subagent the narrowed problem, the 2–3 approaches with their breadboards, the
|
|
79
|
+
ambition, and the constitution path, plus: *"Do NOT ask the user questions. State
|
|
80
|
+
assumptions instead. Tag every finding with Severity (Critical|Suggested) and Type
|
|
81
|
+
(factual/scope|trade-off). Return your review in the format specified in your agent file."*
|
|
82
|
+
|
|
83
|
+
- **`bokata-product-manager`:** does each approach solve the narrowed problem? Is it worth it
|
|
84
|
+
at this ambition? What should be a cut or a no-go?
|
|
85
|
+
- **`bokata-product-designer`:** is the flow between places coherent? Which places or
|
|
86
|
+
affordances are missing (empty, error, permission states) or superfluous?
|
|
87
|
+
- **`bokata-product-engineer`:** which rabbit holes does the real code hide? What is risky or
|
|
88
|
+
hard to reverse? What needs a spike?
|
|
89
|
+
|
|
90
|
+
Reconcile as a **neutral coordinator** (no fourth opinion): apply non-conflicting
|
|
91
|
+
improvements; settle factual conflicts against the code, constitution or ADRs and note them;
|
|
92
|
+
collect genuine trade-offs into **one** decision point with each lens's position and a
|
|
93
|
+
recommended default (the smaller, reversible option).
|
|
94
|
+
|
|
95
|
+
Then let the user **choose the approach**, the no-gos and the cuts. Rabbit holes are either
|
|
96
|
+
resolved (write the decision), cut (out of scope) or declared a no-go.
|
|
97
|
+
|
|
98
|
+
## 4. Write the pitch
|
|
99
|
+
|
|
100
|
+
Write `<docs>/<slug>/pitch.md` from the template. No time estimates or appetite numbers:
|
|
101
|
+
instead write one **ambition** line (for example "minimum a coach can use in a real match"
|
|
102
|
+
or "fully polished"). It is the tie-breaker when choosing between two solutions.
|
|
103
|
+
|
|
104
|
+
Self-review before you show it: no placeholders, no contradictions, every rabbit hole has an
|
|
105
|
+
outcome, every no-go is explicit.
|
|
106
|
+
|
|
107
|
+
## 5. Size and next step
|
|
108
|
+
|
|
109
|
+
Propose a size and let the user confirm it:
|
|
110
|
+
|
|
111
|
+
| Size | Meaning | Next |
|
|
112
|
+
|---|---|---|
|
|
113
|
+
| **S** | A fix or a tweak; no pitch was really needed | Plan mode + `bokata-tdd` |
|
|
114
|
+
| **M** | One clear feature | `bokata-slice` (single mode, the pitch is the feature) |
|
|
115
|
+
| **L** | Several features | `bokata-feature-map` |
|
|
116
|
+
|
|
117
|
+
Record the size in the pitch and end with one line: `Next: <skill> <slug>`.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# <The decision, in one sentence>
|
|
2
|
+
|
|
3
|
+
- Status: accepted
|
|
4
|
+
- Date: YYYY-MM-DD
|
|
5
|
+
|
|
6
|
+
## Context and drivers
|
|
7
|
+
|
|
8
|
+
<One or two paragraphs: what problem or force made a decision necessary.>
|
|
9
|
+
|
|
10
|
+
- <driver>
|
|
11
|
+
- <driver>
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
- **A — <option>** ← chosen
|
|
16
|
+
- **B — <option>**: <why not>
|
|
17
|
+
|
|
18
|
+
## Decision
|
|
19
|
+
|
|
20
|
+
We chose A because <reason tied to the drivers>.
|
|
21
|
+
|
|
22
|
+
## Consequences
|
|
23
|
+
|
|
24
|
+
<!-- optional: only non-obvious downstream effects -->
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Breadboards and fat-marker sketches
|
|
2
|
+
|
|
3
|
+
Shape Up keeps early sketches rough on purpose: a detailed mockup closes design decisions too
|
|
4
|
+
early. Both forms below stay at that altitude.
|
|
5
|
+
|
|
6
|
+
## Breadboard (always) — Mermaid
|
|
7
|
+
|
|
8
|
+
Three elements, straight from Shape Up:
|
|
9
|
+
|
|
10
|
+
| Element | Mermaid | Example |
|
|
11
|
+
|---|---|---|
|
|
12
|
+
| **Place** — a screen, dialog, menu, or state you can navigate to | `subgraph` | `subgraph Library` |
|
|
13
|
+
| **Affordance** — something the user can act on or read | node inside the subgraph | `chip[chip "With drawings"]` |
|
|
14
|
+
| **Connection** — how an affordance takes the user somewhere | arrow, labelled with the trigger | `chip -- turns on --> list` |
|
|
15
|
+
|
|
16
|
+
```mermaid
|
|
17
|
+
flowchart LR
|
|
18
|
+
subgraph Library
|
|
19
|
+
chip[chip "With drawings"]
|
|
20
|
+
list[clip list]
|
|
21
|
+
end
|
|
22
|
+
subgraph Empty
|
|
23
|
+
msg["No clips with drawings"]
|
|
24
|
+
clear[button "Clear filter"]
|
|
25
|
+
end
|
|
26
|
+
chip -- turns on --> list
|
|
27
|
+
list -- 0 results --> msg
|
|
28
|
+
clear --> list
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Rules:
|
|
32
|
+
- Words, not visuals: no colours, sizes or positions.
|
|
33
|
+
- Name affordances by what the user sees ("Clear filter"), not by component names.
|
|
34
|
+
- One breadboard per approach, so approaches can be compared side by side.
|
|
35
|
+
|
|
36
|
+
## Fat-marker sketch (only when layout is the decision)
|
|
37
|
+
|
|
38
|
+
Use it when *where* things go is what you are deciding — a toolbar over a video, what a panel
|
|
39
|
+
covers, a mobile layout. Write a single self-contained `pitch-sketch.html` next to the pitch:
|
|
40
|
+
|
|
41
|
+
- grey blocks and thick outlines only; system font; no brand colours, icons or images;
|
|
42
|
+
- labels name the element ("toolbar", "video", "timeline"), never real copy;
|
|
43
|
+
- one frame per approach, side by side, at the viewport that matters (e.g. 390×844 phone);
|
|
44
|
+
- inline CSS only, no scripts, no external assets.
|
|
45
|
+
|
|
46
|
+
If it starts to look like a real design, it is too detailed — remove things until it looks
|
|
47
|
+
drawn with a marker.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# <Initiative name> — Pitch
|
|
2
|
+
|
|
3
|
+
- Size: S | M | L
|
|
4
|
+
- Ambition: <one line — e.g. "minimum a coach can use in a real match">
|
|
5
|
+
- Status: shaping | shaped
|
|
6
|
+
|
|
7
|
+
## Problem
|
|
8
|
+
|
|
9
|
+
<The specific situation where the current way fails, told as a short story. Who, when, what
|
|
10
|
+
goes wrong, what it costs them. One or two paragraphs.>
|
|
11
|
+
|
|
12
|
+
## Solution
|
|
13
|
+
|
|
14
|
+
<The chosen approach at fat-marker altitude. What the user can do when it exists.>
|
|
15
|
+
|
|
16
|
+
```mermaid
|
|
17
|
+
flowchart LR
|
|
18
|
+
%% breadboard: subgraph = place, node = affordance, arrow = connection
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
<Optional: link to the low-fi sketch, e.g. [sketch](pitch-sketch.html), only if layout mattered.>
|
|
22
|
+
|
|
23
|
+
### Approaches considered
|
|
24
|
+
|
|
25
|
+
- **A — <name>** ← chosen: <why>
|
|
26
|
+
- **B — <name>**: <why not>
|
|
27
|
+
|
|
28
|
+
## Rabbit holes
|
|
29
|
+
|
|
30
|
+
- <risk> → <resolved: decision | cut: what we leave out>
|
|
31
|
+
|
|
32
|
+
## No-gos
|
|
33
|
+
|
|
34
|
+
- <what is explicitly out of scope>
|
|
35
|
+
|
|
36
|
+
## Decisions
|
|
37
|
+
|
|
38
|
+
- <decision taken while shaping> (ADR: <link> if one was written)
|
|
39
|
+
|
|
40
|
+
## Trio notes
|
|
41
|
+
|
|
42
|
+
- <one line per reconciled conflict or trade-off>
|