bokata 2.0.0
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 +235 -0
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template-functional.md +28 -0
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template.md +65 -0
- package/.agents/skills/bokata-feature-mapper/SKILL.md +276 -0
- package/.agents/skills/bokata-feature-mapper/resources/bundling-heuristics.md +71 -0
- package/.agents/skills/bokata-feature-mapper/resources/examples.md +63 -0
- package/.agents/skills/bokata-feature-mapper/resources/methodology.md +91 -0
- package/.agents/skills/bokata-feature-mapper/resources/output-template.md +57 -0
- package/.agents/skills/bokata-feature-slicer/SKILL.md +207 -0
- package/.agents/skills/bokata-feature-slicer/resources/breakdown-strategies.md +122 -0
- package/.agents/skills/bokata-feature-slicer/resources/output-template-increments.md +12 -0
- package/.agents/skills/bokata-feature-slicer/resources/output-template-steps.md +24 -0
- package/.agents/skills/bokata-feature-slicer/resources/phase-1-steps.md +232 -0
- package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +251 -0
- package/.agents/skills/bokata-feature-slicer/resources/phase-3-baby-steps.md +311 -0
- package/README.md +123 -0
- package/agents/bokata-product-designer.md +103 -0
- package/agents/bokata-product-engineer.md +104 -0
- package/agents/bokata-product-manager.md +96 -0
- package/bin/bokata.js +51 -0
- package/commands/codex/feature-map.md +263 -0
- package/commands/codex/slice-feature.md +291 -0
- package/commands/task-parallel/feature-map.md +273 -0
- package/commands/task-parallel/resources/html-template.md +560 -0
- package/commands/task-parallel/resources/story-map-template.md +495 -0
- package/commands/task-parallel/slice-feature.md +301 -0
- package/package.json +30 -0
- package/src/install.js +312 -0
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
# Bokata Story Map Template (Patton-Style Board)
|
|
2
|
+
|
|
3
|
+
This file defines the **real Jeff Patton User Story Mapping structure** for bokata: the **Backbone** (Features) is distributed horizontally as a header row; within each Feature's span, its **Steps** (User Tasks) are distributed horizontally as individual sub-columns in narrative order; and **within each Step's own column**, release/priority tiers (Walking Skeleton, then Increments) are stacked **vertically**, highest priority nearest the header.
|
|
4
|
+
|
|
5
|
+
**Critical: the addressable unit is the User Task (Step) column, not the Feature.** A Feature is a *header that spans several Step columns* — it is never itself a column with tasks listed inside it as a list. If you catch yourself building `.map-column[data-feature-id]` as a container holding a list of task cards, that is the wrong structure — stop and re-read this file. (This template previously had exactly that bug; it produced a Feature-as-column / Tasks-as-list board that does not match Patton's model. Fixed — see git history / `docs/initiatives/real-tourism-mvp/story-map.html` for a verified correct reference implementation if you want to compare against a working example.)
|
|
6
|
+
|
|
7
|
+
Structurally distinct from `html-template.md` (which renders linear report-style documents).
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Visual Structure
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
┌───────────────────────────────────────┬───────────────────────┬───────────────────────────────────┐
|
|
15
|
+
│ Feature 1 (spans 3 Steps) │ Feature 2 (spans 2) │ Feature 3 (spans 2) │ ← Backbone (Features), row 1
|
|
16
|
+
├────────────┬────────────┬─────────────┼────────────┬───────────┼──────────────┬──────────────────────┤
|
|
17
|
+
│ Step A │ Step B │ Step C │ Step D │ Step E │ Step F │ Step G │ ← Steps (User Tasks), row 2 — ONE COLUMN EACH
|
|
18
|
+
├────────────┼────────────┼─────────────┼────────────┼───────────┼──────────────┼──────────────────────┤
|
|
19
|
+
│ Skeleton │ Skeleton │ Not sliced │ Skeleton │ Not │ Not sliced │ Not sliced │ ← highest priority row (Walking Skeleton)
|
|
20
|
+
│ 1.a │ 1.b │ │ 2.a │ sliced │ │ │
|
|
21
|
+
├────────────┼────────────┼─────────────┼────────────┼───────────┼──────────────┼──────────────────────┤
|
|
22
|
+
│ Increment │ │ │ Increment │ │ │ │ ← lower priority, stacked below within
|
|
23
|
+
│ 1.c │ │ │ 2.b │ │ │ │ the SAME Step's column
|
|
24
|
+
├────────────┼────────────┼─────────────┼────────────┼───────────┼──────────────┼──────────────────────┤
|
|
25
|
+
│ Increment │ │ │ │ │ │ │
|
|
26
|
+
│ 1.d │ │ │ │ │ │ │
|
|
27
|
+
└────────────┴────────────┴─────────────┴────────────┴───────────┴──────────────┴──────────────────────┘
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Key structural rules:
|
|
31
|
+
- **Features are distributed horizontally** as a spanning header row (row 1) — width proportional to how many Steps they contain.
|
|
32
|
+
- **Within each Feature's span, its Steps are distributed horizontally**, one column per User Task, in narrative/journey order.
|
|
33
|
+
- **Within each Step's own column, increments are distributed vertically** by priority — the item closest to the header line is the Walking Skeleton pick for that Step; everything below it in the same column is a lower-priority increment for that *same* Step, not a different one.
|
|
34
|
+
- A Step with nothing sliced yet just shows "Not yet sliced" in its own column — it does NOT borrow or share a cell with a neighboring Step.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Base HTML Shell & Styling
|
|
39
|
+
|
|
40
|
+
Use this base for all story-map renders:
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<!DOCTYPE html>
|
|
44
|
+
<html lang="es">
|
|
45
|
+
<head>
|
|
46
|
+
<meta charset="UTF-8">
|
|
47
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
48
|
+
<title>{{TITLE}}</title>
|
|
49
|
+
<style>
|
|
50
|
+
* {
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
body {
|
|
57
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
58
|
+
line-height: 1.6;
|
|
59
|
+
color: #2d3748;
|
|
60
|
+
background: #f7fafc;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (prefers-color-scheme: dark) {
|
|
64
|
+
body {
|
|
65
|
+
background: #1a202c;
|
|
66
|
+
color: #e2e8f0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
header {
|
|
71
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
72
|
+
color: white;
|
|
73
|
+
padding: 3rem 2rem;
|
|
74
|
+
text-align: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
header h1 {
|
|
78
|
+
font-size: 2.5rem;
|
|
79
|
+
margin-bottom: 0.5rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
header p {
|
|
83
|
+
font-size: 1.1rem;
|
|
84
|
+
opacity: 0.95;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.container {
|
|
88
|
+
max-width: 1600px;
|
|
89
|
+
margin: 0 auto;
|
|
90
|
+
padding: 2rem;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.story-map {
|
|
94
|
+
background: white;
|
|
95
|
+
border-radius: 8px;
|
|
96
|
+
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
97
|
+
overflow-x: auto;
|
|
98
|
+
margin: 2rem 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (prefers-color-scheme: dark) {
|
|
102
|
+
.story-map {
|
|
103
|
+
background: #2d3748;
|
|
104
|
+
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Grid: one column PER STEP (User Task), not per Feature. Features are row-1 headers
|
|
109
|
+
that span N columns (N = how many Steps/User Tasks they contain) via grid-column: span N,
|
|
110
|
+
relying on CSS Grid auto-placement to tile them left-to-right in narrative order. */
|
|
111
|
+
.map-grid {
|
|
112
|
+
display: grid;
|
|
113
|
+
grid-auto-rows: min-content;
|
|
114
|
+
flex: 1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.priority-axis {
|
|
118
|
+
writing-mode: vertical-rl;
|
|
119
|
+
transform: rotate(180deg);
|
|
120
|
+
flex: 0 0 auto;
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
padding: 1rem 0.5rem;
|
|
125
|
+
font-weight: 700;
|
|
126
|
+
font-size: 0.85rem;
|
|
127
|
+
color: #764ba2;
|
|
128
|
+
text-transform: uppercase;
|
|
129
|
+
letter-spacing: 0.1em;
|
|
130
|
+
border-right: 2px dashed #cbd5e0;
|
|
131
|
+
position: sticky;
|
|
132
|
+
left: 0;
|
|
133
|
+
background: white;
|
|
134
|
+
z-index: 2;
|
|
135
|
+
}
|
|
136
|
+
.priority-axis::before { content: "▼ decreasing priority"; }
|
|
137
|
+
|
|
138
|
+
@media (prefers-color-scheme: dark) {
|
|
139
|
+
.priority-axis {
|
|
140
|
+
color: #d8b4fe;
|
|
141
|
+
background: #2d3748;
|
|
142
|
+
border-right-color: #4a5568;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* Row 1: Feature headers (Backbone) — one div per Feature, grid-row:1, grid-column: span N.
|
|
147
|
+
Do NOT give this element a data-feature-id used for skeleton/increment targeting — it is a
|
|
148
|
+
header only. The addressable unit for slicing updates is the Step column below (.step-card). */
|
|
149
|
+
.feature-header {
|
|
150
|
+
grid-row: 1;
|
|
151
|
+
background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
|
|
152
|
+
color: white;
|
|
153
|
+
padding: 0.85rem 0.75rem;
|
|
154
|
+
font-weight: 700;
|
|
155
|
+
font-size: 0.95rem;
|
|
156
|
+
border: 1px solid white;
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-direction: column;
|
|
159
|
+
gap: 0.35rem;
|
|
160
|
+
}
|
|
161
|
+
.feature-header .fid {
|
|
162
|
+
font-size: 0.7rem;
|
|
163
|
+
font-weight: 500;
|
|
164
|
+
opacity: 0.9;
|
|
165
|
+
font-family: 'Monaco','Menlo',monospace;
|
|
166
|
+
}
|
|
167
|
+
.feature-header .priority-badge {
|
|
168
|
+
align-self: flex-start;
|
|
169
|
+
padding: 0.15rem 0.5rem;
|
|
170
|
+
border-radius: 10px;
|
|
171
|
+
font-size: 0.65rem;
|
|
172
|
+
font-weight: 700;
|
|
173
|
+
background: rgba(255,255,255,0.25);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* Row 2: Steps (User Tasks) — ONE COLUMN EACH, grid-row:2, auto-placed one per grid column.
|
|
177
|
+
This IS the addressable unit: data-task-id lives here, and is what /bokata:slice-feature
|
|
178
|
+
targets when replacing "Not yet sliced" with real skeleton/increment cards. */
|
|
179
|
+
.step-card {
|
|
180
|
+
grid-row: 2;
|
|
181
|
+
background: #eef1fd;
|
|
182
|
+
border: 1px solid #c9d2f7;
|
|
183
|
+
border-bottom: 4px solid #667eea;
|
|
184
|
+
padding: 0.65rem 0.6rem;
|
|
185
|
+
font-size: 0.8rem;
|
|
186
|
+
line-height: 1.35;
|
|
187
|
+
min-height: 78px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@media (prefers-color-scheme: dark) {
|
|
191
|
+
.step-card {
|
|
192
|
+
background: rgba(102,126,234,0.12);
|
|
193
|
+
border-color: #4c51bf;
|
|
194
|
+
border-bottom-color: #a78bfa;
|
|
195
|
+
color: #e2e8f0;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Rows 3+: release/priority tiers, stacked VERTICALLY within each Step's own column.
|
|
200
|
+
Row 3 = highest priority (Walking Skeleton once sliced). Additional rows below it
|
|
201
|
+
(4, 5, ...) = lower-priority increments for that SAME Step's column — never a
|
|
202
|
+
different Step's column. Before slicing, every column just shows one placeholder. */
|
|
203
|
+
.release-cell {
|
|
204
|
+
grid-row: 3;
|
|
205
|
+
background: #fffbea;
|
|
206
|
+
border: 1px solid #f5e6a8;
|
|
207
|
+
padding: 0.6rem;
|
|
208
|
+
font-size: 0.75rem;
|
|
209
|
+
font-style: italic;
|
|
210
|
+
color: #92702a;
|
|
211
|
+
text-align: center;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@media (prefers-color-scheme: dark) {
|
|
215
|
+
.release-cell {
|
|
216
|
+
background: rgba(240,180,41,0.1);
|
|
217
|
+
border-color: rgba(240,180,41,0.3);
|
|
218
|
+
color: #f0b429;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* Same visual language as .release-cell but used once a Step has been sliced: the
|
|
223
|
+
Walking Skeleton pick for that Step (grid-row:3, nearest the header = highest priority). */
|
|
224
|
+
.skeleton-item-card {
|
|
225
|
+
grid-row: 3;
|
|
226
|
+
background: #f0fdf4;
|
|
227
|
+
border: 1px solid #86efac;
|
|
228
|
+
border-left: 4px solid #48bb78;
|
|
229
|
+
padding: 0.6rem;
|
|
230
|
+
font-size: 0.78rem;
|
|
231
|
+
line-height: 1.4;
|
|
232
|
+
color: #22543d;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@media (prefers-color-scheme: dark) {
|
|
236
|
+
.skeleton-item-card {
|
|
237
|
+
background: rgba(72, 187, 120, 0.12);
|
|
238
|
+
border-color: #4a5568;
|
|
239
|
+
border-left-color: #81e6d9;
|
|
240
|
+
color: #a7f3d0;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Increments for a Step stack below its skeleton item in the SAME column, grid-row 4, 5, ...
|
|
245
|
+
ordered by priority — set explicit grid-row per card when populating (see Slice-Feature
|
|
246
|
+
Update Algorithm below); do not let them auto-flow into a neighboring Step's column. */
|
|
247
|
+
.increment-card {
|
|
248
|
+
background: white;
|
|
249
|
+
border: 1px solid #f5d7a8;
|
|
250
|
+
border-left: 4px solid #ed8936;
|
|
251
|
+
padding: 0.6rem;
|
|
252
|
+
font-size: 0.78rem;
|
|
253
|
+
line-height: 1.4;
|
|
254
|
+
color: #7c2d12;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@media (prefers-color-scheme: dark) {
|
|
258
|
+
.increment-card {
|
|
259
|
+
background: rgba(0,0,0,0.2);
|
|
260
|
+
border-left-color: #fbd38d;
|
|
261
|
+
color: #fed7aa;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.increment-id {
|
|
266
|
+
font-weight: 600;
|
|
267
|
+
display: block;
|
|
268
|
+
margin-bottom: 0.25rem;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.increment-description {
|
|
272
|
+
font-size: 0.85rem;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* System Tasks (autonomous workflow transitions, not Steps — see methodology.md) are NOT
|
|
276
|
+
Step columns. If a Feature has any, render them as a footnote spanning that Feature's
|
|
277
|
+
own columns, positioned in a row below the release tiers — never as their own Step column. */
|
|
278
|
+
.system-tasks-note {
|
|
279
|
+
background: rgba(0,0,0,0.03);
|
|
280
|
+
border: 1px solid #e2e8f0;
|
|
281
|
+
padding: 0.6rem 0.75rem;
|
|
282
|
+
font-size: 0.72rem;
|
|
283
|
+
line-height: 1.4;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@media (prefers-color-scheme: dark) {
|
|
287
|
+
.system-tasks-note {
|
|
288
|
+
background: rgba(0,0,0,0.2);
|
|
289
|
+
border-color: #4a5568;
|
|
290
|
+
color: #cbd5e0;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
footer {
|
|
295
|
+
text-align: center;
|
|
296
|
+
padding: 2rem;
|
|
297
|
+
color: #718096;
|
|
298
|
+
font-size: 0.9rem;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@media (prefers-color-scheme: dark) {
|
|
302
|
+
footer {
|
|
303
|
+
color: #a0aec0;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
</style>
|
|
307
|
+
</head>
|
|
308
|
+
<body>
|
|
309
|
+
|
|
310
|
+
<header>
|
|
311
|
+
<h1>{{TITLE}}</h1>
|
|
312
|
+
<p>{{SUBTITLE}}</p>
|
|
313
|
+
</header>
|
|
314
|
+
|
|
315
|
+
<div class="container">
|
|
316
|
+
<div class="legend">
|
|
317
|
+
<div class="legend-item"><span class="swatch activity"></span> Backbone — Features (Activities)</div>
|
|
318
|
+
<div class="legend-item"><span class="swatch step"></span> Steps — User Tasks, in narrative order within each Feature</div>
|
|
319
|
+
<div class="legend-item"><span class="swatch release"></span> Releases — increments per Step, stacked top-to-bottom by priority (highest = Walking Skeleton)</div>
|
|
320
|
+
</div>
|
|
321
|
+
<div class="story-map">
|
|
322
|
+
<div class="priority-axis"></div>
|
|
323
|
+
<div class="map-grid" style="grid-template-columns: repeat({{TOTAL_STEP_COUNT}}, minmax(150px, 1fr));">
|
|
324
|
+
{{BODY}}
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
<footer>
|
|
330
|
+
{{FOOTER_META}}
|
|
331
|
+
</footer>
|
|
332
|
+
|
|
333
|
+
</body>
|
|
334
|
+
</html>
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Add this small legend block to the `<style>` (alongside the rest — omitted above for brevity, include it verbatim):
|
|
338
|
+
```css
|
|
339
|
+
.legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0 0 1rem 0; padding: 1rem; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); font-size: 0.85rem; }
|
|
340
|
+
@media (prefers-color-scheme: dark) { .legend { background: #2d3748; box-shadow: 0 2px 8px rgba(0,0,0,0.3); } }
|
|
341
|
+
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
|
|
342
|
+
.swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
|
|
343
|
+
.swatch.activity { background: #ec4899; }
|
|
344
|
+
.swatch.step { background: #667eea; }
|
|
345
|
+
.swatch.release { background: #f0b429; }
|
|
346
|
+
.story-map { display: flex; } /* overrides the earlier block-level .story-map rule so the priority-axis sits beside the grid, not above it */
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
`{{TOTAL_STEP_COUNT}}` = the sum of User Tasks across every Feature (e.g. 40 for a 7-Feature, 40-task backbone) — this is the total number of grid columns, since one column = one Step, not one Feature.
|
|
350
|
+
|
|
351
|
+
---
|
|
352
|
+
|
|
353
|
+
## Column DOM Structure (Critical for Slice-Feature Updates)
|
|
354
|
+
|
|
355
|
+
**The addressable unit is the Step (User Task) column — `data-task-id` — never the Feature.** A Feature is only a spanning header div; it holds no tasks or cards itself.
|
|
356
|
+
|
|
357
|
+
Build the grid as three (or more) DOM passes, all children of the same `.map-grid` container, positioned purely by `grid-row` / `grid-column` (CSS Grid auto-placement fills left-to-right within a row, so as long as items appear in backbone journey order within each pass, they land in the right column automatically):
|
|
358
|
+
|
|
359
|
+
```html
|
|
360
|
+
<!-- PASS 1 (row 1): one div per FEATURE, spanning its Step count. Auto-placed left-to-right. -->
|
|
361
|
+
<div class="feature-header" style="grid-column: span 2;">
|
|
362
|
+
Feature 1: Tourist Opts Into Location Services
|
|
363
|
+
<span class="fid">RTMVP-FEAT-001</span>
|
|
364
|
+
<span class="priority-badge">Critical MVP</span>
|
|
365
|
+
</div>
|
|
366
|
+
<!-- ...one .feature-header per Feature, each with its own span count, in journey order... -->
|
|
367
|
+
|
|
368
|
+
<!-- PASS 2 (row 2): one div per STEP (User Task) — this is the real column unit.
|
|
369
|
+
data-task-id is what /bokata:slice-feature will later select to update. -->
|
|
370
|
+
<div class="step-card" data-task-id="RTMVP-TASK-001">Enable geolocation permissions on first launch</div>
|
|
371
|
+
<div class="step-card" data-task-id="RTMVP-TASK-002">Verify location is active</div>
|
|
372
|
+
<!-- ...one .step-card per User Task, in the SAME order as the backbone lists them under each Feature... -->
|
|
373
|
+
|
|
374
|
+
<!-- PASS 3 (row 3+): release tier, one per Step's column, stacked vertically by priority.
|
|
375
|
+
Before slicing, every Step gets exactly one placeholder in row 3. -->
|
|
376
|
+
<div class="release-cell">Not yet sliced</div>
|
|
377
|
+
<div class="release-cell">Not yet sliced</div>
|
|
378
|
+
<!-- ...one .release-cell per Step, same order as pass 2, so each lands under its own Step column... -->
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
After `/bokata:slice-feature` has run for a Feature, that Feature's Step columns get their placeholder(s) replaced in place (see Update Algorithm below):
|
|
382
|
+
|
|
383
|
+
```html
|
|
384
|
+
<!-- A sliced Step's column: skeleton item at row 3 (highest priority, nearest the header),
|
|
385
|
+
increments stacked below it in the SAME column at rows 4, 5, ... -->
|
|
386
|
+
<div class="skeleton-item-card" data-task-id="RTMVP-TASK-001" style="grid-column: 1;">
|
|
387
|
+
<strong>1.a: Basic permission prompt on app launch</strong><br>
|
|
388
|
+
<small>Simple native iOS/Android permission dialog, skip option leads to offline browsing</small>
|
|
389
|
+
</div>
|
|
390
|
+
<div class="increment-card" style="grid-row: 4; grid-column: 1;">
|
|
391
|
+
<div class="increment-id">1.1: Re-enable location after skip</div>
|
|
392
|
+
<div class="increment-description">User can grant permission from settings screen if skipped initially</div>
|
|
393
|
+
</div>
|
|
394
|
+
<div class="increment-card" style="grid-row: 5; grid-column: 1;">
|
|
395
|
+
<div class="increment-id">1.2: Location privacy disclosure</div>
|
|
396
|
+
<div class="increment-description">Add privacy statement explaining data collection (GDPR compliance)</div>
|
|
397
|
+
</div>
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
Note the explicit `grid-column` on sliced cards: once a column has more than one card stacked vertically (skeleton + increments), you can no longer rely on row-scoped auto-placement alone for that column — pin `grid-column` to the Step's numeric column position (1-indexed, left to right across the *entire* grid, not per-Feature) so increments 2+ land directly under their own Step and not the next one.
|
|
401
|
+
|
|
402
|
+
If a Feature has System Tasks (autonomous transitions — see methodology.md), they are not Steps and get no column. Render them as one `.system-tasks-note` div spanning that Feature's own column range, placed in a row below the release tiers.
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
406
|
+
## Markdown→HTML Conversion Rules
|
|
407
|
+
|
|
408
|
+
When building the story-map HTML from `backbone.md` (and later `slicing.md`), use these mappings:
|
|
409
|
+
|
|
410
|
+
| Source (Markdown) | Target (HTML) | Notes |
|
|
411
|
+
|------------------------------|--------------------------------------------|-------|
|
|
412
|
+
| `## Features Backbone` | (Signals: create story-map structure from Features below) | Not rendered directly; used to parse Features |
|
|
413
|
+
| `#### Feature: [Actor] [Verb] [Object]` (+ ID comment) | `.feature-header` div, `grid-row: 1`, `grid-column: span N` | N = that Feature's User Task count; auto-placed in backbone journey order — this is a header, NOT a container |
|
|
414
|
+
| `##### User Task: [Verb] [Object]` (+ Task ID comment) | `.step-card` div, `grid-row: 2`, `data-task-id="{{TASK_ID}}"` | One column per User Task, in the same order as under its parent Feature — **this is the addressable unit for slicing updates** |
|
|
415
|
+
| `## 💀 Walking Skeleton` (from slicing.md) | `.skeleton-item-card`, `grid-row: 3`, matched to its Step by `**[User Task Name]**` tag (per `bokata-feature-slicer`'s output format) | Replaces that Step's `.release-cell` placeholder only |
|
|
416
|
+
| `## 🏗️ Increments Backlog` (from slicing.md) | `.increment-card`, `grid-row: 4, 5, ...`, matched to its Step the same way | Stacked below the skeleton item in that Step's own column, ordered by priority |
|
|
417
|
+
| System Tasks (if any, per methodology.md) | `.system-tasks-note` footnote, spanning the Feature's column range | Not a Step column — System Tasks are autonomous transitions, not user-facing steps |
|
|
418
|
+
| Feature dependency info (if present) | Optional legend/footnote below the grid | Display critical/recommended/optional path if inferred from trio notes |
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
|
|
422
|
+
## Slice-Feature Update Algorithm (In-Place Modification)
|
|
423
|
+
|
|
424
|
+
When `/bokata:slice-feature [Feature]` completes:
|
|
425
|
+
|
|
426
|
+
1. **Read** the existing `docs/initiatives/<slug>/story-map.html`
|
|
427
|
+
2. **Parse `slicing.md`** for its `**[User Task Name]**` tags (this tagging is already required of `bokata-feature-slicer`'s output — see its Output Checklist: "Backlog grouped by User Task", "All items use correct tag format") — group Walking Skeleton items and Increments by which User Task they belong to
|
|
428
|
+
3. **For each tagged User Task**, locate its column: `document.querySelector('.step-card[data-task-id="TASK_ID"]')` and find that column's numeric grid position (its column index within the full grid, not per-Feature)
|
|
429
|
+
4. **Replace** that Step's `.release-cell` placeholder with a `.skeleton-item-card` (`grid-row: 3`, same `grid-column` as the Step) for its Walking Skeleton item, then append `.increment-card` divs below it (`grid-row: 4, 5, ...`, same `grid-column`) for its Increments, ordered by priority
|
|
430
|
+
5. **Preserve every other Step's column untouched** — including other Steps within the *same* Feature that this slicing pass didn't address; a Feature is not an atomic update unit, its Steps are
|
|
431
|
+
6. **Write** back to the same file (same filename = Artifact tool will detect and update, not create new)
|
|
432
|
+
7. **Re-publish** via Artifact tool with the same file path
|
|
433
|
+
|
|
434
|
+
Pseudo-code:
|
|
435
|
+
```javascript
|
|
436
|
+
const soup = parse(existing_html);
|
|
437
|
+
const taskGroups = parseSlicingByUserTaskTag(slicing_md); // { "Task Name": { skeleton: [...], increments: [...] } }
|
|
438
|
+
|
|
439
|
+
for (const [taskName, items] of Object.entries(taskGroups)) {
|
|
440
|
+
const taskId = resolveTaskIdFromBackbone(taskName); // cross-reference backbone.md's Task ID comment
|
|
441
|
+
const stepCard = soup.select_one(`.step-card[data-task-id="${taskId}"]`);
|
|
442
|
+
const columnIndex = getGridColumnIndex(stepCard); // this Step's absolute column position in the grid
|
|
443
|
+
|
|
444
|
+
const placeholder = soup.select_one(`.release-cell[data-task-id="${taskId}"]`); // or positionally adjacent to stepCard
|
|
445
|
+
const skeletonCard = buildSkeletonItemCard(items.skeleton, columnIndex); // grid-row:3, grid-column:columnIndex
|
|
446
|
+
placeholder.replace_with(skeletonCard);
|
|
447
|
+
|
|
448
|
+
items.increments.forEach((inc, i) => {
|
|
449
|
+
soup.append(buildIncrementCard(inc, columnIndex, /* grid-row */ 4 + i));
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
// Every .step-card NOT in taskGroups keeps its original .release-cell "Not yet sliced" — do not touch it.
|
|
453
|
+
|
|
454
|
+
write_and_republish(soup.to_html());
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
---
|
|
458
|
+
|
|
459
|
+
## Template Placeholders
|
|
460
|
+
|
|
461
|
+
- `{{TITLE}}`: Page title (e.g., "Real Tourism MVP — Story Mapping")
|
|
462
|
+
- `{{SUBTITLE}}`: Tagline (e.g., "Backbone (Features) → Steps (User Tasks) → Releases (Increments, by priority)")
|
|
463
|
+
- `{{BODY}}`: Complete set of `.feature-header`, `.step-card`, and `.release-cell`/`.skeleton-item-card`/`.increment-card` divs described above, in the three-pass DOM order
|
|
464
|
+
- `{{TOTAL_STEP_COUNT}}`: Sum of User Tasks across every Feature — sets the grid's total column count
|
|
465
|
+
- `{{FOOTER_META}}`: Generated footer (e.g., "Real Tourism MVP Story Mapping | Generated 2026-07-16 | Features: 7 | Steps: 40 | Sliced: 3/7")
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
## Example Footer Generation
|
|
470
|
+
|
|
471
|
+
```
|
|
472
|
+
Real Tourism MVP Story Mapping | Generated 2026-07-16 | 7 Features | 40 Steps | Sliced: 3/7 | Command: /bokata:feature-map → /bokata:slice-feature
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
477
|
+
## Notes for Orchestrator Implementation
|
|
478
|
+
|
|
479
|
+
- **Initial Creation** (in `/bokata:feature-map` Step 3c):
|
|
480
|
+
- Row 1: one `.feature-header` per Feature, spanning its Step count, in journey order
|
|
481
|
+
- Row 2: one `.step-card` per User Task (with `data-task-id`), auto-placed under its parent Feature's span
|
|
482
|
+
- Row 3: every Step gets a `.release-cell` placeholder ("Not yet sliced") — one per Step, not one per Feature
|
|
483
|
+
- Footer shows "Sliced: 0/N" (N = Feature count)
|
|
484
|
+
|
|
485
|
+
- **Incremental Updates** (in `/bokata:slice-feature`):
|
|
486
|
+
- Only the Step columns (`data-task-id`) tagged in that run's `slicing.md` are modified — a single slicing pass may touch some but not all Steps within the sliced Feature
|
|
487
|
+
- Untouched Steps — in the sliced Feature or any other — keep their original `.release-cell` placeholder
|
|
488
|
+
- Footer updates to show "Sliced: N/M" as more Features are sliced (a Feature counts as "sliced" once at least one of its Steps has a real skeleton/increment card — not necessarily all of them)
|
|
489
|
+
- Multiple invocations of `slice-feature` on different Features accumulate in the same file without conflict, since each only ever touches its own Steps' columns
|
|
490
|
+
|
|
491
|
+
---
|
|
492
|
+
|
|
493
|
+
## Dark Mode Support
|
|
494
|
+
|
|
495
|
+
All colors have `@media (prefers-color-scheme: dark)` overrides. No extra work needed — browser's dark-mode toggle automatically applies.
|