by KehanLiu
Agent skill that turns boring slides and docs into animated, self-contained SVG diagrams. Works in Claude Code, Codex, Cursor, Copilot and 10+ other agents.
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/KehanLiu/anim-slidesGuides for using ai agents skills like anim-slides.
Animated SVG figures for slide decks, from existing slides or from documentation.
Output is always a fragment: one HTML file with a <style> and one <svg>, no scripts,
no external files, themed by CSS variables, that drops into any deck.
references/fragment-contract.md is the contract. Read it before building anything.
<style> plus one inline <svg> (anim/<name>/<name>.html).measure_slot.py.data-anim-phases).section.present, .visible); ungated, a fragment shows its resting frame.<skill-dir> below is the folder that contains this SKILL.md (Claude Code exposes it as
$CLAUDE_SKILL_DIR; elsewhere use the path you loaded this file from). anim/ is a work folder
next to the user's deck, anim/<name>/ one per fragment.
Before a mode is run, a figure is planned or a script is called, write for each slide (in Mode C and for a one-slide source: for that slide) three lines, in this order:
A slide with an insight goes on to a figure, and the insight is made visible on the slide: the resting frame shows what the motion showed, as a trace in the source's words (the path taken, before and after side by side, the stretch where nothing changed marked as such), and its focal element is the answer to the Question. Someone who walks in after the pass can answer the question and see why. Motion that leaves no trace has taught nothing a still could not hold.
When every slide is text, the deck skill's complete deck (or the HTML deck as it stands)
is the deliverable: build it, check that it holds every source fact and opens from disk,
deliver it under the name the user asked for, and stop. No anim/ folder, no question to the
user; the hand-over is one line per slide: its Question and "base answers it". Nothing is
animated to reach a count.
| The user says | Source | Mode | What happens |
|---|---|---|---|
| "improve the slides", "make it less boring", "add (more) animations", "animate this deck" | .pptx, Markdown, remark, a document |
A: deck first, then animate | A deck skill builds the HTML deck, complete; then the Phase 0 question, triage and figures for the slides that get an Insight line. |
| "make N slides about X", "introduce this project" | a topic, repo or notes; no deck | A: deck first, from a topic | A deck skill builds the base deck with a slot on each figure slide; figures fill the slots. anim-slides never designs the deck's look. |
| the same | an HTML deck (reveal.js, impress.js, frontend-slides, any <section>/.slide deck) |
B: animate in place | Triage and figures on the existing deck. |
| "animate slide N", "this diagram", "this chart" | any | C: single slide | No intake message. The slide's Question and Insight go into a one-row anim/triage.md; The short path: references/quick.md replaces Phases 1 to 3. The named slide gets one figure; a doubt whether motion helps is one line in the hand-over, never an unchanged slide. |
| a process, dependency, timeline or architecture in text, or a Mermaid block | docs, README, pasted text | D: illustrate from docs | Picture idea from each section's claim, then form and archetype (references/archetypes.md), spec, build; the host is the page or slot the user names. |
| "make the figures play on click", "loop them", "switch to lean" | an already animated deck | E: re-integrate | No rebuild: `integrate_fragment.py --control step |
Mode A, deck first. anim-slides adds figures to an HTML deck; it does not design one. The
deck skill builds the complete base: every slide finished and carrying all its source
facts, so that any slide can ship as built. A slide gets a slot only when its Insight line is
written; when none is, the base is delivered at once ("The question"). The
deck comes from, in order: (a) the user's own or organisation's deck skill; (b) frontend-slides
when installed (the style preset closest to the source's brand unless the user wants a new
look); (c) only when neither exists, the built-in base: for a topic or repo,
<skill-dir>/base/deck.html (read base/README.md and base/example.html first, adapt the
structure, never copy the content, pick the ground by the README's rule), slots on the figure
slides, then figures on top exactly as with a deck skill; for a Markdown source,
scripts/md_to_deck.py --ground dark|light (the base's colours and fonts on a plain document
layout). The hand-over then carries one line: "Built on anim-slides' built-in base; a deck
skill such as frontend-slides offers more looks." The skill never installs another skill by
itself and gives no install command it has not read in that skill's own docs. A deck skill exists
when its SKILL.md is on disk, listed by this harness or not: look in ~/.claude/skills,
~/.agents/skills, ~/.codex/skills, ~/.config/opencode/skills, ~/.cursor/skills,
~/.gemini/skills and the same folders in the project, then read and follow it. Never draw
a from-scratch deck ad hoc on the lean ground, and never reskin it afterwards: the base (a
deck skill's or the built-in one) comes first. A deck.md or an md_to_deck.py deck already lying in the folder is
not a choice the user made: with a deck skill installed the fallback is never used and never
offered, not as "keep the existing host" either; the intake's deck question is full deck or
lighter path, nothing else. The intake message says up front that the HTML deck has to exist first
and what it costs: a deck skill rebuilds the whole deck, and on a 40-slide deck that is the
longest step. It offers the lighter path: standalone animated slide pages for the chosen
slides only (one self-contained HTML per slide at 1280x720 or the source stage: title, fragment,
one-line takeaway), for a user who keeps presenting from PowerPoint or wants to see what the
skill does first. Default is the full deck. The .pptx stays the source for
extract_slides.py and render_deck.py; integration and the match look target the deck the
skill produced. The deck skill's own questions are folded into the ONE intake message and
recorded in Decisions: density is speaker-led unless the source is a reading deck; style is
the preset or template closest to the source's own look, chosen and named (no style previews
unless the user asks for a new look). The deck skill is run with those answers; it does not
ask the user itself. Details: references/input-stage.md "Deck first".
Slot markers. Ask the deck skill (or do it right after it) to give each candidate slide a
fixed-size slot <div id="sN-slot"> and to put the markers inside it, round its content:
<div id="sN-slot" style="width:..px;height:..px"><!-- sN-body -->...<!-- /sN-body --></div>.
measure_slot.py --selector '#sN-slot' is then exact and
integrate_fragment.py --anchor '<!-- sN-body -->' --replace-until '<!-- /sN-body -->'
replaces the content and keeps the sized div. Markers round the div would delete it.
The deck skill knows nothing about slots: the main thread tells it, in its brief, "these
slides get a slot of W x H at this position; inner spacing with padding, not margin", because
a child's margin collapses through the slot and shifts measure_slot.py's box.
Short prompt. "Make five slides about X" with a deck skill found: the deck skill builds a
finished draft first, with slots on the slides that have an Insight line; anim-slides then
fills the slots. With no such slide the finished draft is the delivery. No
intake message: the defaults (the deck skill's recommended style, match, once, not bundled)
are taken, recorded in Decisions and reported in the hand-over. With no deck skill found, the
same chain runs on the built-in base. references/reference-case.md walks through such a deck.
Mode C, one slide. Follow references/quick.md and nothing else: it replaces Phases 1
to 3 for that slide (no intake message, no brief, no previews, no review agents, no review
page) and names the few commands to run. Read no other reference unless a checker points to
a rule. The named slide gets a figure: the user chose this slide, so the triage decides
only what to draw, from the slide's own labels and values; a doubt whether motion helps is
one line in the hand-over after the figure. Only a slide with nothing to draw (a title, a
quote, a single picture) ships unchanged, with the reason. Every source label stays on the
slide word for word (scripts/check_labels.py); when a label is too long for the figure,
the slide's own text stays beside it. A .pptx source with no HTML deck gets the lighter
path's standalone page for that slide.
Extract and render. python3 <skill-dir>/scripts/extract_slides.py deck.pptx|deck.html|doc.md -o anim/outline.json
and python3 <skill-dir>/scripts/render_deck.py deck -o anim/render. Look at the
sheet-NN.png contact sheets (12 slides each), not page by page. Both scripts number
slides the same way, hidden slides included (render_deck.py renders them captioned
"hidden" and lists them on stderr); note hidden slides in the triage. A picture count in outline.json that differs from the
render points at pictures on the slide layout.
Draft the triage in anim/triage.md (references/input-stage.md section 3): every slide
with Slide, Title, Question, Decision, Insight, Idea, Form, Verb, Archetype, Replaces, Why;
no silent skips. Question, Decision and Insight come from Phase 0 "The question": a row is
illustrate only with its Insight sentence, and a row whose base answers its question is
text with "base answers it" under Why. On a
slide of prose, bullets, cards or a table, Idea is one sentence on what it says beyond the
order of its items, Form follows from it, and the archetype is only the build family
(references/archetypes.md "Picture idea and form"); "order only", a row and reveal is a
valid answer. Verb is the main motion, picked from the claim sentence
(references/motion-verbs.md section 1); travel only with the traveller the source names.
Then read down the Form and Verb columns for repeats (references/input-stage.md "Forms and
verbs across the deck"). Budget 3 to 8 per 30 slides, never two animated slides in a row;
"add more animations" reads as the upper end of the budget, not beyond it. The budget is a
cap, never a floor: the count is the number of rows with an Insight, and it may be zero
(then steps 3 to 5 and Phases 2 and 3 are skipped and the base ships). Re-render candidates with
--pages N,... and open full/p-NN.png: extract_slides.py cannot see inside pictures.
Theme. python3 <skill-dir>/scripts/host_theme.py deck.html --mode match -o anim/host-theme.css
and --mode lean -o anim/lean-theme.css. Compare the match block once with the deck's own
CSS variables (muted text, secondary background, accent); on a deck without variables the
accent may be picked by usage count, so check it against what the deck actually highlights.
Correct by hand where needed. On a single-accent deck map --anim-theme-ok to the line
colour or the accent unless a slide gives "ok" a meaning (the default mint is a second hue);
keep warn/danger only where the source uses them.
Build the first fragment before asking anything: the most representative illustrate
slide, through Phase 2's steps (spec, slot, brief, build, check). Render it integrated into
its slide at rest under match and under lean (render-phases.sh --theme FILE ... or
--page on a scratch copy): two stills. When that slide has two plausible figure readings
(two forms of the idea such as a row or a funnel; timeline or pipeline; table or compare),
render both readings as stills too.
Send ONE message. Use the harness's structured-question UI when it has one (Claude Code: AskUserQuestion, naming the stills' paths in the question text); otherwise one concise message with numbered choices. It carries:
outline.json reports builds above 0;After this message nothing else is asked. If the user is absent or says "just do it",
take the defaults (full deck, match, once, not bundled) and
record every default taken in a Decisions section of anim/triage.md, with Look and
Control in its header. A brief from a caller that already names slides and look counts as
the answer.
Ambiguity is not a question: order, direction or grouping the source leaves open becomes a
stated assumption in the brief. An unreadable figure is traced from the source picture and
tagged "traced from figure" (references/accuracy.md); it is not asked about.
For each remaining illustrate row (Mode C: from the one-row triage), the main thread writes spec and brief first (specs are cheap; write them all before building), then builds.
anim/<name>/spec.yaml per references/spec-format.md: nodes, edges, groups,
phases with second marks, cycle (4 to 10 s), control from intake, verb: from the triage
row (traveller: with its name for travel). Reuse the source's words.
Under about 12 nodes; split otherwise.
Durations are computed, not drawn. A slide whose point is how long two to six things
take (each a label with a duration and a unit, verb race) gets archetype: durations:
the spec holds each label, value and unit as the slide writes them, plus the slide's own
takeaway sentence as claim:, and step 4 builds the finished figure from it (bars on one
scale, one speed, the difference or ratio as the focal number). It needs no pool copy and
no hand-built motion. Shares, counts, prices and other quantities that are not time are
not durations: they keep their own form. A corrected value is a spec edit: change the
value in spec.yaml and run step 4 and the integration again, never edit the fragment. If
the build stops because the claim: sentence no longer follows from the values, reword
the sentence with the numbers the build prints, change the same sentence wherever the
slide still shows it, and tell the user which sentence changed.<skill-dir>/pool/index.yaml (and $ANIM_POOL/index.yaml
if set). The pool is the quality floor, not the menu of pictures: look an entry up by the
triage row's verb first, then form and moves (verb, form, moves and technique
lines), archetype last.
When an entry draws that form, copy it to anim/<name>/, rename the prefix and adapt
labels, node count, timing, marks and viewBox to the spec. When none does, hand-build the
form (the normal path, not an exception) with the closest entry open as the bar for stroke
weights, type sizes and spacing. Never ship a pool fragment unchanged.python3 <skill-dir>/scripts/measure_slot.py deck.html --slide N --selector '#sN-slot'
prints the box, a viewBox, the checker flags and the slide's type (body and title size,
weight, family; without --selector an absolutely positioned layout returns junk;
references/layouts.md has the manual way). Stay in the layout: the figure fills the
slot (or the text block or picture it replaces) at its measured size; the slide's other
content, headline and the deck's CSS stay as they are. Match the deck: the fragment takes
the deck's font (the host sets --anim-theme-font) and the type ladder of
references/style.md 5 (at most one hero, only for a number or word the source states;
nothing under the floor, nothing larger than the title); mono only for data. Fill
anim/<name>/brief.md from references/brief-template.md before any SVG is written:
the Question, the Insight and how the resting frame shows it, what the fragment replaces,
the slot size, the focal element (the answer to the Question), the gap the first frame
leaves and the beat table (a beat with no reason is cut; a beat that does not serve the
Insight is cut too).python3 <skill-dir>/scripts/scaffold_from_spec.py anim/<name>/spec.yaml -o anim/<name>/<name>.html --rendered-width <px>
covers the plain forms of the seven archetypes: chains, two-row snakes, graphs with lanes,
line charts, column compares, layer stacks, dot timelines. For archetype: durations the same
command writes the finished race figure (scripts/race_figure.py), which is not refined by hand. Funnels, rings, scenes, triangles,
donuts, bars, timelines with event text and anything the spec cannot express are hand-built
from the spec; do not force the scaffolder, use its output as the timing skeleton. The motion
is the verb's: build it from its mechanism (references/motion-verbs.md section 5); the
scaffolder draws a moving traveller only for travel (a token trip for cycle) and leaves
other verbs to the builder. A travelling marker is used only for travel (and the token
trip of a cycle). Each kind enters
its own way (lines draw on, nodes land, numbers count, areas are revealed, labels follow),
with the stagger and the one stillness before the answer step, using only the easing set
(references/motion-rules.md "Easing", "Entrance by kind"). The focal element carries
data-anim-focal. Refine with references/archetypes.md and references/style.md.
Phase marks (data-anim-phases): a phase mark is a settled moment between narrated
steps: nothing visible is mid-motion there. Three to five per slide (six when the slide
narrates six steps), ascending, the last at the hold start. The scaffolder derives them from
phase starts; a hand-built fragment sets them by looking at the frames.
Parallel builders are fine (one subagent per fragment, all in one message), each writing only
inside anim/<name>/, never the deck (references/input-stage.md section 5: brief, soffice note).python3 <skill-dir>/scripts/check_fragment.py anim/<name>/<name>.html --name <name> --rendered-width <px> --stage-width <host stage width>.
Pass --stage-width: the text floor defaults to a 1920 stage (18 px; 12 px at 1280).python3 <skill-dir>/scripts/check_look.py anim/<name>/<name>.html --rendered-width <px> [--stage-width W] [--slot W H] [--theme anim/host-theme.css] --at-marks
renders the fragment in headless Chrome at rest and at every phase mark and fails on
clipped or overlapping labels, text under its contrast floor on the real ground, more than
three text-holding boxes, more than six hues, or text under the size floor; --at-marks
runs contrast and the text floor at every mark too, one marks line each, because a label
shown mid-pass must read as well as one at rest; --at-pauses checks three reproducible
times between the marks and prints them (finding pause); read every WARN
(faint lines, labels on fills, rest differs from the last mark, missing fonts). A box that
is the meaning gets <!-- anim-look: boxes-ok --> before the <svg>; scene ground
(water, land) gets data-anim-scene instead (references/style.md 2). On a deck-skill
deck the fragment-mode font WARNs are expected (its web fonts are not installed locally)
and can be ignored: the --page run in step 7 is the real font check.overshoot curve and on two focal elements,
and WARN on easing-set, fade-after-fade, mono-costume, type-ladder, focal
(none), node-count, line-contrast, accent-area, stillness and pause: fix each or
say why in the brief.<skill-dir>/scripts/render-phases.sh anim/<name> <W> <H> <marks...> <pass> rest, then
open every PNG. Fix clipping, overlaps, unreadable text, empty panels. The resting frame
must read as a complete still (PDF shows only that), and it pays off the gap the first
frame left open.references/look-rubric.md): write the three worst problems, ranked,
fix only those, re-render; also remove the one thing whose loss improves the figure. One
round always, a second when the first changed the composition.python3 <skill-dir>/scripts/verify_facts.py anim/<name>/<name>.html --source anim/outline.json --slide <N> --spec anim/<name>/spec.yaml
(or --source doc.md): 0 FAIL, every WARN decided (references/accuracy.md).rest PNG, as someone who missed the pass. It answers the
brief's Question, and the Insight can be pointed at on it (the trace, the marked stretch,
the before beside the after). If the answer or the reason is only in the motion, draw it
into the resting frame. Only when the slides were chosen by the triage (Modes A and B):
if the slide's base answered the question as well, drop the figure and ship the base. A
slide the user named (Mode C) keeps its figure.
Never trust --virtual-time-budget, and never trust reading the source instead of the PNG.
Where the harness cannot show images, run the measuring checks and state in the hand-over
that the frames were not viewed.python3 <skill-dir>/scripts/integrate_fragment.py deck.html anim/<name>/<name>.html --name <name> --anchor '<!-- sN-body -->' --replace-until '<!-- /sN-body -->' [--gate 'section.present'] --control once --backup.
It hoists the style into the head, inserts the markup between anim:<name> markers
(re-runs replace both), rewrites the gate (section.present reveal.js, .visible plain
pages and md_to_deck.py decks), adds the print guard and, under --control step, the step
snippet. Plain pages get scripts/snippets/observer.html. Apply the theme once:
host_theme.py --apply deck.html --from anim/host-theme.css (lean: the lean file, plus
class="anim-lean" on each animated slide). Keep the working deck small: read slices round
the anchor (grep -n, sed -n), never the whole deck; no inlined fonts or images. Read
references/lessons.md when integrating into a deck a deck skill built, or when a check
fails in a way the other references do not explain.render-phases.sh --page deck.html --slide N <W> <H> rest per animated
slide (never --no-script for rest: in frontend-slides decks .visible both gates and
shows the slide). The rest render hides a deck's own staggered text (reveal classes keyed
on the current-slide class): key those reveals also on the deck's active class and add a
print rule; when the rest render still differs from the running deck, take the final
screenshot from the running deck. python3 <skill-dir>/scripts/check_page.py deck.html
(paired markers, gated fragments, print guard): check_page warns on the deck's web-font
link and fails on any other external load.
python3 <skill-dir>/scripts/check_verbs.py deck.html --triage anim/triage.md: 0 FAIL (a
verb on every fragment, a reason on each repeat over a third, no marker outside travel
and the token trip of a cycle).
python3 <skill-dir>/scripts/check_look.py --page deck.html --slide N --at-marks per animated
slide measures the fragment on the slide's own ground and stage width, at rest and every
mark, and its gap to the slide's own text (FAIL on covering it); a contrast FAIL on a light
ground means faded opacities or status colours must be raised (references/style.md,
"Under a host theme").
Open the deck in a real browser once (or ask the user to): headless frames never prove smoothness. Audit with
the checklist at the end of references/motion-rules.md.verify_facts.py command again with --strict: fix every pairing FAIL (a value beside
the wrong label), decide each pairing: review WARN by reading the source, and record any
FAIL on a label that is a true paraphrase, with its reason, in the brief. Render per animated slide
sN-before.png (anim/render/full/p-NN.png), sN-first.png (first frame), the mark
frames, the three --at-pauses frames and sN-after.png (rest), plus one un-animated slide as context-after.png, into
anim/review/blind/. ONE fresh reviewer that has not seen the build (a subagent where the
harness has one, otherwise a new session with no access to this conversation; if neither
is possible, the hand-over says the review was not blind) works in two steps (references/look-rubric.md
sections 1 and 3). First read: it gets only sN-after.png and the brief's Question per
slide, and answers each in one sentence plus "could not tell". Write each answer verbatim
as sN-first-answer under "First read" in Decisions before sending anything more; it is
never edited and the hand-over quotes it. Scoring: then the same reviewer (or a second
fresh one given the answers) gets the other stills and each slide's claim, scores the
fourteen items and answers ship or fix (at most three problems, ranked) with the frame
each is on. No brief, spec, triage or conversation at any step. fix blocks done: fix (or
rebuild, as the rubric says; a weak first read is fixed in the picture, never in the
question), re-render, review with a new reviewer, first read again. At most two rounds;
still rebuilding after the second means the picture idea is wrong: back to the brief. A
finding is never softened because the build took effort; findings left go into the
hand-over and Decisions.python3 <skill-dir>/scripts/bundle_deck.py deck.html -o deck.bundled.html --fetch
(inlines stylesheets, scripts, fonts and images), then check_page.py deck.bundled.html
and one render-phases.sh --page deck.bundled.html --slide N ... rest. Do not read the
bundled file.python3 <skill-dir>/scripts/export_pdf.py deck.html --install [--source static-deck.html] [--paper letter|a4|both].
It writes one landscape page per slide and reads the PDF back: every label of a slide on
its page, inside the page and drawn; every table cell in its own cell, repeated values
counted; no presenter note (aside.notes, .speaker-notes, [data-presenter-only]) on
any page. Labels seen only during the pass (step captions, a changing state label) are
printed in a strip under their slide; with --source (the deck before figures) so are the
source words a figure shortened. --install writes the print rule into the deck once
every paper passed, so the browser's own Print fits Letter and A4 too. A FAIL blocks the
hand-over and leaves an earlier PDF in place. Without the rule a fixed 1920 px page loses
the right side of every slide.anim/review/after/ (render-phases.sh --page deck.html --slide N <W> <H> rest --out anim/review/after/sN,
one folder per slide; review_page.py --help lists the other names it accepts), and make sure the source renders
of those slides are in anim/render/full/ (render_deck.py --pages).python3 <skill-dir>/scripts/review_page.py --deck deck.html --before anim/render/full --after anim/review/after --triage anim/triage.md --title "<deck name>" -o anim/review/index.html
(optional --only animated, --previous DIR, --link-images). Animated slides play live
on the page, on the deck's ground and theme, once in view and again with Replay; the resting
still stays under them for print. Open it and the deck.integrate_fragment.py ... --control step (figures by click) and
host_theme.py deck.html --mode lean --apply deck.html (lean look). On the built-in base,
add the one line from Phase 0 (Mode A). The review page is the report; no long prose.anim/triage.md.reveal. The look follows
references/style.md under match and lean alike (a host theme changes colours and fonts
only): no filled cards, chips or caption bars; rings and thin lines; one focal element; the
accent only on what is active or reached (at most about a fifth of the ink at rest); at most two semantic colours; glow on one element
at a time, never on a line; mono only for data; the deck's font, never an embedded one.data-anim-verb on the wrapper; no dot travels
unless the source names what travels. One verb over a third of the deck needs a reason per
repeat.verify_facts.py --spec passes before a figure is done (references/accuracy.md).<name>-; colours and fonts only via
var(--anim-*) with the contract's fallbacks; animate only under the gate (ungated = the
finished state); no <script>, <link>, <image>, @import, @font-face in a fragment;
text at or above 18 px at rendered size on a 1920 stage (scaled by --stage-width), titles
22 px and up.once unless the user asks for step; mention step only when the
source builds by click. A slide that differs needs a reason in anim/triage.md. Step
listens to keys only: present it with the keyboard or a clicker.review_page.py) is part of done.References, each with when to read it:
references/fragment-contract.md: before building anything; shape, prefixes, tokens, gate, resting frame, controls.references/input-stage.md: Modes A and B; deck first, outline JSON, triage, look and control, handoff to builders.references/quick.md: the whole path for one named slide (Mode C).references/spec-format.md: writing a spec (Phase 2 step 1); Mermaid mapping, worked examples.references/archetypes.md: choosing the form ("Picture idea and form"), then the chosen family's section.references/brief-template.md: per fragment, before any SVG is written.references/layouts.md: when measure_slot.py cannot measure the slot.references/motion-rules.md: timing, easing, entrance by kind; its audit checklist after integration.references/motion-verbs.md: picking the verb (section 1) and building its mechanism (section 5).references/style.md: building and polishing every fragment; "Under a host theme" on a contrast FAIL.references/accuracy.md: writing labels and numbers; deciding verify_facts.py findings.references/look-rubric.md: the polish loop and the blind review.references/lessons.md: integrating into a deck a deck skill built, or a check failing in a way the others do not explain.references/reference-case.md: a short prompt ("make N slides about X"); a five-slide deck worked through.Every script takes --help for its flags. scripts/snippets/step-host.html is the step-mode
host snippet that --control step inserts.
extract_slides.py reads.Turn boring bullet slides into animated diagrams, with the coding agent you already use.
⭐ If this skill helps you, please give it a star. It is how other speakers find it.

npx skills add KehanLiu/anim-slides # then ask your agent: "animate slide 4 of deck.html"
The GIF's "before" frame is examples/first-slide/source.html
as a browser renders it. The "after" frame is the parcel-route figure
from the skill's pool of examples, finished by hand from that slide. Every label in it comes
from the slide (tests/test_readme_demo.py fails the build otherwise).
anim-slides is an agent skill. It turns slides, and written processes and dependencies, into animated diagrams for HTML slide decks. It uses the open Agent Skills format, so the same folder works in Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Antigravity, OpenCode, Amp, Cline, Roo Code, Kiro, Factory Droid, Zed, Goose and Devin Desktop.
It animates figures; it does not design decks. A deck skill (a skill that designs slide
decks: your own, or e.g. frontend-slides) builds the deck first, and anim-slides adds the figures. A small built-in
base deck is the fallback when no deck skill is installed.
Terms used on this page:
<style> and one inline <svg>, which you paste into a slide.One source slide, one prompt, one result. All three are in examples/first-slide/.
Source: source.html, a six-bullet slide ("How a
package gets delivered").
Prompt, typed in the folder that holds the slide, with the skill installed:
Turn the slide in source.html into an animated diagram that explains it. Write one self-contained HTML file, result.html, that opens from disk.
Result: result.html, the unedited first output of
that prompt from version 0.13.0 (Claude Code, claude-opus-5-5, 213 s, no follow-up). It
keeps the slide's own light colours, so it looks different from the GIF. Open it from disk:
it plays one pass and rests on the finished figure; reload to replay.
The result is one HTML file with a <style> block and one inline <svg>, animated with CSS
keyframes: no script, no framework, no network loads (see What you get).
With and without the skill. The same prompt was run once without the skill (same model,
tools and harness). Both runs drew a real diagram. Without the skill the figure loops about
every 24 s, shows a status pill whose values the slide does not give, and prints an early step
without the lead time. With the skill (0.13.0) it plays once and every label traces to the
slide; two optional fixes remain (a faint bracket line, leftover render files). One run per
arm on one slide: an example, not a measurement.
docs/benchmark/first-slide/ has both outputs, timings,
screenshots and limits.
Then try the slide you find hardest to explain: "animate slide 4 of deck.html", or paste a
process and ask for a diagram.
The skill ships a pool of 37 finished, checked fragments across 17 fields. Each is built on
the motion its point calls for: a jar that fills, a balance that tips, a crowd that sorts
itself, a river bend that becomes a lake, a boundary that closes around an outage. A dot
travelling along a line appears only where a named thing really travels. The agent picks the
motion from the slide's claim (references/motion-verbs.md) and
starts from the closest entry before building from scratch.
The live gallery shows them all animating. It
opens on one question ("When the payment provider goes down, can orders still go through?")
and answers it with the service-deps figure. You can download any entry as a playable demo
(one HTML file that opens from disk, with Replay) or copy it as embeddable HTML. Resting frames:
More in pool/README.md, including how to keep a private pool of your own.
The skill is one folder (SKILL.md, references/, scripts/, pool/, base/). Any harness that
reads the Agent Skills format picks it up from its skills directory; the folder name must stay
anim-slides.
skills installer (any harness)skills detects the agents on your machine, keeps one
copy in .agents/skills/anim-slides (or ~/.agents/skills/ with -g) and links each agent's
own folder to it. Needs Node.js 22.20+.
npx skills add KehanLiu/anim-slides # this project, agents detected on your machine
npx skills add KehanLiu/anim-slides -g -y # for your user, all detected agents, no prompts
npx skills add KehanLiu/anim-slides -g -a codex cursor github-copilot -y # chosen agents only
npx skills add KehanLiu/anim-slides --list # show what would be installed
Amp has its own equivalent: amp skill add KehanLiu/anim-slides (--global for your user).
Gemini CLI: gemini skills install https://github.com/KehanLiu/anim-slides --scope user.
git clone https://github.com/KehanLiu/anim-slides <skills-dir>/anim-slides
<skills-dir> per harness (project path, then user path). A symlink to a clone elsewhere works
everywhere except inside a Claude Code plugin.
| Harness | Project | User |
|---|---|---|
| Codex, Cursor, Copilot, OpenCode, Amp, Roo Code, Droid, Zed, Goose, Devin Desktop | .agents/skills/ |
~/.agents/skills/ |
| Claude Code | .claude/skills/ |
~/.claude/skills/ |
| Cursor (own folder) | .cursor/skills/ |
~/.cursor/skills/ |
| GitHub Copilot (own folder) | .github/skills/ |
~/.copilot/skills/ |
| Gemini CLI | .gemini/skills/ or .agents/skills/ |
~/.gemini/skills/ |
| Antigravity | .agents/skills/ |
~/.gemini/config/skills/ |
| OpenCode (own folder) | .opencode/skills/ |
~/.config/opencode/skills/ |
| Cline | .cline/skills/ |
~/.cline/skills/ |
| Kiro | .kiro/skills/ |
~/.kiro/skills/ |
| Factory Droid (own folder) | .factory/skills/ |
~/.factory/skills/ |
| Devin Desktop (own folder) | .devin/skills/ |
~/.config/devin/skills/ |
Install one way per machine: two copies with the same name shadow each other.
claude plugin marketplace add KehanLiu/anim-slides
claude plugin install anim-slides@anim-slides-marketplace
or /plugin marketplace add KehanLiu/anim-slides then /plugin install anim-slides@anim-slides-marketplace
inside a session. Installed this way the skill is invoked as /anim-slides:anim-slides.
Update with claude plugin marketplace update anim-slides-marketplace and
claude plugin update anim-slides@anim-slides-marketplace (auto-update is off for third-party
marketplaces). For a one-off trial from a local clone: claude --plugin-dir ./anim-slides.
Harnesses pick the skill up automatically from its description. To call it by name, use
/anim-slides (Claude Code, Cursor, Copilot, Kiro, Droid, Antigravity, Devin Desktop) or
$anim-slides (Codex). In OpenCode, Zed, Goose, Gemini CLI and other harnesses, ask for it by
name.
Python 3.9+ and a Chrome or Chromium binary, for rendering and for the rendered checks
(check_look.py, measure_slot.py). Optional: pyyaml for full
YAML in specs (a built-in reader covers plain specs like the pool's, and JSON always works).
PowerPoint needs different things for reading and for rendering:
| Step | Script | Needs |
|---|---|---|
Read a .pptx (text, bullets, notes, tables) |
extract_slides.py |
Python standard library only |
| Rende |
anim-slides is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by KehanLiu. Agent skill that turns boring slides and docs into animated, self-contained SVG diagrams. Works in Claude Code, Codex, Cursor, Copilot and 10+ other agents. It has 74 GitHub stars.
anim-slides's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/KehanLiu/anim-slides" and add it to your Claude Code skills directory (see the Installation section above). anim-slides ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
anim-slides is primarily written in HTML. It is open-source under KehanLiu on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh anim-slides against similar tools.
No comments yet. Be the first to share your thoughts!