Fig.00 — a Claude Code skill

Explain logic
as a deck.

Turn any code path, query, or architecture into a horizontal, flip-through slide deck — Mermaid diagrams instead of prose, no vertical scroll. One slide, one screen, one idea.

0 build steps
1 HTML file
MIT licensed
Fig.01 · live

Real deck, rendering now. Open fullscreen ↗ — flip with ← →, Space, or swipe.

§ 01

Why a deck

i.

One message per slide

One slide equals one screen. If it doesn't fit, you split it — so each idea lands on its own instead of drowning in a scroll.

ii.

Diagrams are the content

Flowcharts, sequence diagrams, and before/after pairs do the work. Prose shrinks into small WHY, CAUTION, and FACTS panels.

iii.

Flip, don't scroll

Arrow keys, Space, on-screen buttons, touch swipe, dots, a progress bar. Horizontal by design — like the logic it shows.

§ 02

Eight frames, one file

Plate indexscroll →
PL.01Title
PL.02Overview
PL.03Flow
PL.04Sequence
PL.05Key point
PL.06Before / After
PL.07Evidence
PL.08Summary
§ 03

How it works

Copy the template

Grab TEMPLATE.html — a deck skeleton with eight slide types and the navigation already wired in.

Fill the slides

Replace the {{...}} placeholders; add or remove section blocks. The nav counts them for you.

Open it

Double-click. Mermaid renders and the scroll-snap navigation is already wired in. Ship the single file anywhere.

§ 04

What's inside

Parts list
FilePurpose
SKILL.mdSkill router plus the slide-decomposition workflow and checklist
TEMPLATE.htmlSelf-contained deck skeleton — scroll-snap nav, eight slide types
MERMAID-SAFE-SUBSET.mdThe Mermaid syntax subset that renders without errors
examples/checkout-validation.htmlA complete, generic example deck
§ 05

Install

A

As a Claude Code skill

# clone into your skills dir
git clone https://github.com/cskwork/mermaid-slide-deck.git \
  ~/.claude/skills/mermaid-slide-deck
Then ask: explain this logic as slides. Korean works too — 슬라이드로 설명, 다이어그램으로 보여줘.
B

As a plain HTML template

# grab the single file
curl -O https://raw.githubusercontent.com/cskwork/mermaid-slide-deck/main/TEMPLATE.html
No Node, no bundler. Works offline except the Mermaid CDN script.