plugins/handbook-reflect/skills/reflect-solution/SKILL.md
--- name: reflect-solution description: Summarize WHAT WAS SHIPPED in a Claude Code session as a self-contained HTML slide deck — the elevator pitch (problem, solution, decisions, artifacts, verification, gaps), not a play-by-play of tool calls or debugging detours. Defaults to the current in-context session; optionally accepts a session ID or JSONL path. Renders directly in the reflect aesthetic — no delegation. Use when the user invokes /reflect-solution or asks for a recap deck of what change
npx skillsauth add nikiforovall/claude-code-rules plugins/handbook-reflect/skills/reflect-solutionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Produce a single-file HTML slide deck summarizing the outcome of a Claude Code session: what shipped, why, and how it was verified. Audience: someone who wants the elevator pitch, not the journey.
Sibling to /reflect. Where /reflect looks at wrong turns, this skill looks at what was delivered. Tool-call churn, retries, dead-ends, and reversals are excluded unless they shaped a final decision.
Self-contained. This skill ships its own working starter (assets/template.html) — fonts, CSS tokens, all six content blocks, IntersectionObserver, keyboard nav, theme toggle. The agent's job is to fill the template with extracted content, not to rebuild the scaffolding from scratch.
/reflect-solution (no args) → recap the current session from the in-context conversation. Do not re-read the session JSONL — work from the agent's own memory of what was built./reflect-solution <session-id> or /reflect-solution <path-to-jsonl> → recap a different session. Run scripts/analyze_session.py <path> directly (this skill runs forked — context: fork — so the compressed transcript can enter your context safely). The script outputs a compact markdown transcript; you then extract the solution.Session JSONLs live under: ~/.claude/projects/<encoded-cwd>/<session-id>.jsonl
Outcome-focused. Drop the journey. An item belongs in the deck only if it would matter in a PR description.
The deck structure should fit the session — not the other way around. Pick from the menu below; skip what's irrelevant; add what isn't listed if the session calls for it. A 3-slide deck is fine. So is 8. Don't pad to hit a count, don't force a section just because it's in the list.
Common sections (use what fits):
Other sections that may earn a slide if the session reveals them: stakeholders, deadlines, related tickets/PRs, performance numbers, before/after diff, architecture sketch, a punchline pull-quote.
Always omit: session metadata footer (id, date, turn count). The deck is about the solution, not the session.
The audience is technical (engineers, reviewers). Write like a commit message or a postmortem, not a launch announcement.
parser/expr.ts — handles nested parens" beats "Improved parsing capabilities".<code>. Prose stays prose.This is the most important slide. A reader who only sees this slide should understand what was wrong before the session started. Treat it like the "Background" section of a bug ticket.
Good: The deck template hard-coded a 7-section taxonomy. Sessions with no decisions or no followups produced empty slides. Agents had no guidance on when to drop a section.
Bad: We wanted to make the deck more flexible and adaptable so that it could elegantly handle a wider variety of sessions and deliver a more polished experience.
validateBearerToken() in src/auth/middleware.ts, called from app.use()" is a recap.Resolve a temp dir from the environment, in this preference order:
$TMPDIR (Unix/macOS)$TMP or $TEMP (Windows / Git Bash)/tmp as fallbackCreate <temp>/reflect-solution/ (mkdir -p). Write the deck as <temp>/reflect-solution/<slug>.html.
Slug rules — kebab-case, derived from the solution (not the session id):
auth-middleware-rewrite, reflect-solution-skill-design)<YYYY-MM-DD>-<topic>Open with start "" <path> (Git Bash on Windows).
The starter at assets/template.html is a working deck: light theme by default (with a dark toggle persisted in localStorage), full slide shell, all six content blocks pre-styled, keyboard nav (↑/↓/Space/PageUp/PageDown/Home/End/j/k), touch swipe, IntersectionObserver reveals, nav rail, and prefers-reduced-motion respect.
assets/template.html and assets/viewport-base.css.assets/viewport-base.css into the <style> block where the abridged base styles live (the comment marks the spot). Don't link to it — the deck must be a single self-contained HTML file.{{...}} placeholders with extracted content.<section> elements as needed for your taxonomy. Keep one slide per taxonomy section by default; split if a section overflows density limits (see below). Update the nav rail <a> list to match.<html data-theme="light">. Do NOT change this. The dark theme exists as a user-toggleable option (button bottom-right, key persists in localStorage). Both themes are wired; just leave them alone.
| Block | Class | When |
|---|---|---|
| Bullets | <ul class="bullets"> | 4–6 substantial parallel items. Each <li> leads with <b>…</b> — then a sentence. Mono em-dash marker auto-rendered. |
| Artifact grid | <div class="artifacts"> w/ .artifact cards | Files created/modified. 2-col grid. Each card: .tag.added/.modified/.removed, .path (mono), .purpose (sans). Banned: bulleted list of file paths. |
| Decision rows | <div class="decisions"> w/ .decision rows | Locked-in choices + rejected alternatives. Two columns ("Chose" / "Rejected") with reason underneath. |
| Code/output | <pre class="codeblock"> | Real command + output (8–10 lines max). .ln spans for line numbers. |
| Pull-quote | <div class="pullquote"> | One italic Newsreader sentence + mono attribution. For Title subtitle or a punchline slide. |
| Two-column prose | <div class="cols2"> | Dense paragraphs. Use for Problem when there's a story to tell. |
<section class="slide" id="sN">
<div class="eyebrow reveal"><span class="num">0N</span> SECTION</div>
<h2 class="title reveal"><em>Italic part</em> <span class="roman">roman tail.</span></h2>
<div class="hairline reveal"></div>
<div class="body">
<!-- one of the content blocks above -->
</div>
<div class="hairline reveal"></div>
<div class="footer reveal">
<span>EYEBROW · CONTEXT</span>
<span class="right">project / status</span>
</div>
</section>
The eyebrow + numbered title hairline anchors the top, the bottom hairline + footer rail anchors the bottom. Both are mandatory — they prevent the "floating bullets in a void" failure mode.
Distinct layout (no eyebrow, no body):
<section class="slide title-slide" id="s0">
<div class="pitch reveal"><em>Italic pitch</em> <span class="roman">roman tail.</span></div>
<div class="meta reveal">SOLUTION RECAP <span class="sep">·</span> PROJECT-OR-CONTEXT</div>
</section>
The biggest failure mode is sparse slides — 3 short bullets in the upper third, the rest of the viewport empty. Counter it:
The template hard-codes these — don't override:
<em>…</em> <span class="roman">…</span>).clamp(0.95rem, 1.25vw, 1.1rem).letter-spacing: 0.14–0.18em.<code>literal</code> — the template enforces display: inline so it does NOT break across lines. Never wrap a code span in a flex-column container.See assets/animation-patterns.md for the slim crib sheet (entrance variants, what NOT to do, common breakage). The default .reveal class with stagger is already wired in template.html.
Do not negate CSS functions directly. right: -clamp(...) is silently ignored. Use right: calc(-1 * clamp(...)).
SKILL.md — this file: taxonomy, render workflow.assets/template.html — working starter deck. Light by default, dark toggle, all six content blocks pre-styled, keyboard nav + IntersectionObserver wired. Copy-and-fill, don't rebuild.assets/viewport-base.css — copied verbatim from frontend-slides. Inline its full contents in the <style> block of the generated deck.assets/animation-patterns.md — slim animation reference (variants, don'ts, troubleshooting).scripts/analyze_session.py — JSONL compressor (duplicated from the reflect skill, independent). Strips system reminders, preserves real user messages, collapses tool calls/results to one-liners. Output is markdown to stdout. Use only for explicit sessions — never on the current in-context session.reference/example-deck.md — fully worked example showing how a real session maps to the seven sections (treat as inspiration for tone and density, not a template).Default (no args) — recap current session:
assets/template.html and assets/viewport-base.css.<temp>/reflect-solution/<slug>.html. Inline viewport-base.css into the <style> block. Replace placeholders. Add/remove body slides. Update nav rail.start "" <path>.Explicit session — /reflect-solution <id-or-path>:
~/.claude/projects/<encoded-cwd>/<id>.jsonl).scripts/analyze_session.py <path>. Skill is forked, so the compressed transcript is safe in context.Read the JSONL directly with offset/limit scoped to the relevant turn.frontend-slides. Re-copy viewport-base.css if you want to pick up upstream improvements.development
Generate beautiful, self-contained HTML pages that visually explain systems, code changes, plans, and data. Use when the user asks for a diagram, architecture overview, diff review, plan review, project recap, comparison table, or any visual explanation of technical concepts. Also use proactively when you are about to render a complex ASCII table (4+ rows or 3+ columns) — present it as a styled HTML page instead.
tools
Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the command line. Use this skill when the user needs to interact with GitLab resources or perform GitLab workflows.
tools
--- name: reflect description: Analyze a Claude Code session for "wrong-turn" moments (corrections, retries, waste, reversals, dead-ends) and produce an interactive HTML dashboard with copy-able recommendations (CLAUDE.md rules, docs, scripts, hooks, memory entries, sub-skills, etc.) that would help future agents reach the goal faster. Defaults to reflecting on the current in-context session; optionally accepts a session ID or JSONL path. Use when the user invokes /reflect or asks to learn from
tools
--- name: reflect-tree description: Visualize a Claude Code session as a quest/skill tree — a navigable SVG graph where nodes are turns and edges show flow, with distinct visual encoding for normal flow, dead-ends, corrections, retries, reversals, and backtracking. Sibling to /reflect (which produces an incidents+recommendations dashboard); this one shows the journey itself. Defaults to the current in-context session; optionally accepts a session ID or JSONL path. Use when the user invokes /refl