HTML Debrief
Persist current-task evidence as an interactive HTML report.
Default to a standard desktop-browser layout. Do not implement or inspect responsive/mobile behavior unless the user
asks.
Output and Authority
- Output:
./.ai/debriefs/<slug>/index.html using the installed html-playground skill.
- Derive a short topical kebab-case slug when omitted.
- Write only inside the selected debrief directory. If an inferred slug already exists, choose a collision-free semantic
qualifier, falling back to a timestamp suffix, and continue without overwriting. If the user explicitly supplied the
slug, stop and ask whether to overwrite or choose a new slug.
- Use only evidence present in the current task: real findings, paths, verified locations, metrics, decisions, and
unresolved risks. Do not invent filler.
Workflow
Run the bundled preparer from the target repository:
bash <skill-dir>/scripts/prepare.sh <slug>
Use its PLAYGROUND_DIR, DEBRIEFS_DIR, DEBRIEF_PATH, and EXISTS output. When EXISTS is true for an inferred
slug, derive a unique slug and rerun the preparer before writing. When it is true for an explicit slug, request the
choice defined above. Relay dependency or slug-validation errors and stop.
Read the resolved HTML playground SKILL.md and exactly one matching template: diff review, document critique, code
map, concept map, data explorer, or design playground. Adapt its interaction model to the evidence; do not load every
template.
Build one self-contained HTML file with the playground's live controls, useful presets, evidence view,
natural-language prompt output, and copy feedback. Use no external dependencies.
Verify that every claim traces to the task transcript or tool evidence, the output contains no placeholders, and the
file renders in a desktop browser. Then run open "$DEBRIEF_PATH" and finish with ### 📊 Debrief ready — <title>,
the clickable absolute path, Opened in desktop browser, and one compact line naming the evidence view and presets.
Completion requires a non-placeholder HTML debrief at the selected path, evidence-grounded content, successful
rendered/file inspection, and collision handling that never silently overwrites. Keep preparer KEY=VALUE output,
dependency commands, paths, and slug errors exact and undecorated.
1---
2argument-hint: "[<slug>]"
3name: html-debrief
4skill-dependencies:
5 - html-playground
6description: "Use for interactive HTML debriefs or saved HTML findings/reports from the current task."
7---
8
9# HTML Debrief
10
11Persist current-task evidence as an interactive HTML report.
12
13Default to a standard desktop-browser layout. Do not implement or inspect responsive/mobile behavior unless the user
14asks.
15
16## Output and Authority
17
18- Output: `./.ai/debriefs/<slug>/index.html` using the installed `html-playground` skill.
19- Derive a short topical kebab-case slug when omitted.
20- Write only inside the selected debrief directory. If an inferred slug already exists, choose a collision-free semantic
21 qualifier, falling back to a timestamp suffix, and continue without overwriting. If the user explicitly supplied the
22 slug, stop and ask whether to overwrite or choose a new slug.
23- Use only evidence present in the current task: real findings, paths, verified locations, metrics, decisions, and
24 unresolved risks. Do not invent filler.
25
26## Workflow
27
281. Run the bundled preparer from the target repository:
29
30 ```sh
31 bash <skill-dir>/scripts/prepare.sh <slug>
32 ```
33
34 Use its `PLAYGROUND_DIR`, `DEBRIEFS_DIR`, `DEBRIEF_PATH`, and `EXISTS` output. When `EXISTS` is true for an inferred
35 slug, derive a unique slug and rerun the preparer before writing. When it is true for an explicit slug, request the
36 choice defined above. Relay dependency or slug-validation errors and stop.
37
382. Read the resolved HTML playground `SKILL.md` and exactly one matching template: diff review, document critique, code
39 map, concept map, data explorer, or design playground. Adapt its interaction model to the evidence; do not load every
40 template.
41
423. Build one self-contained HTML file with the playground's live controls, useful presets, evidence view,
43 natural-language prompt output, and copy feedback. Use no external dependencies.
44
454. Verify that every claim traces to the task transcript or tool evidence, the output contains no placeholders, and the
46 file renders in a desktop browser. Then run `open "$DEBRIEF_PATH"` and finish with `### 📊 Debrief ready — <title>`,
47 the clickable absolute path, `Opened in desktop browser`, and one compact line naming the evidence view and presets.
48
49Completion requires a non-placeholder HTML debrief at the selected path, evidence-grounded content, successful
50rendered/file inspection, and collision handling that never silently overwrites. Keep preparer `KEY=VALUE` output,
51dependency commands, paths, and slug errors exact and undecorated.