/epic-infographics:epic-infographicsfrom epic-infographics
Creates polished infographic images (PNG/MP4/GIF) from data or topics by building self-contained HTML/CSS+SVG pages, rendering them, and reviewing output. Use for visual summaries, stats posters, social graphics, or data videos.
Ships in epic-infographics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are going to produce an infographic image (PNG) by writing a single self-contained HTML file and rendering it with the bundled script. The three things that separate a great result from a mediocre one:
An infographic made for "everyone" lands with no one. Before touching any data, pin down three things:
If the request already answers these, restate them in one line and move on. If not, ask the user before proceeding — one round of questions, as multiple-choice where you have a tool for it (e.g. AskUserQuestion) so answering takes one click. Only when you are running unattended and cannot ask, pick sensible answers and state those assumptions at delivery.
Collect the facts that serve the brief. Use what the user gave; research or derive the rest — never invent statistics; if values are illustrative, label them so. Gather slightly more than one graphic needs: the pitch in step 3 is only honest when there was more than one possible angle in the material.
An infographic is an argument, not a data dump. From the data, draft 2–3 candidate story angles. Each pitch is a working headline, the hero number/fact that anchors it, and one sentence: what should the reader remember? The angles must genuinely differ — e.g. "how big it is" vs. "how fast it's changing" vs. "what it costs you" — not rewordings of one claim.
Present the pitches to the user as a multiple-choice question (AskUserQuestion where available, plain text otherwise), with your recommended angle first and marked as recommended. If you cannot ask, take your recommendation and say so at delivery. The chosen angle decides the hero element; every other fact is support or gets cut.
Read references/illustration-and-texture.md. List 2–3 physical objects
the subject evokes and pick one that can carry data (a cup whose fill
level is the value, a ladder whose rungs are the steps). This becomes the
canvas's subject — the reason the graphic could only be about THIS topic.
Type-led styles (swiss) may go abstract instead, but then scale and
composition must do the identity work. The litmus test comes back at
review: cover the text — is the topic still recognizable?
| Preset | Size (px) | Use for |
|---|---|---|
square | 1080×1080 | social feed post |
story | 1080×1920 | stories/reels, phone-first |
wide | 1920×1080 | presentations, YouTube, wallpaper |
og | 1200×630 | link previews, banners |
a4 | 1240×1754 | print poster/handout |
tall | 1080×auto | long-form scrolling infographic |
Aspect drives layout before style does: story/tall = vertical single-column
flow; wide = 2–3 column zones; square = hero + 2×2 support grid is a safe
default.
Read exactly ONE file from references/design-languages/ and follow it
completely — palette hexes, fonts, geometry, signature devices, do/don'ts.
blueprint, dramatic/tech →
dark-glass, literary → editorial, warm/craft → retro-print,
friendly → hand-drawn, nature/science/anatomy → naturalist-plate,
systems/places/playful-spatial → isometric-world, places/journeys/
vistas → park-poster, how-it-works/inside-a-machine → cutaway).swiss, corporate-clean, neo-brutalist —
are flat by construction (type + shapes on a plain ground) and have
repeatedly failed audience tests. Use them ONLY when the user explicitly
asks for that look, and even then import scene-craft: environment,
detail density, a story path (composition.md rule zero).Read references/data-vocabulary.md and pick deliberately varied forms:
one hero element (big number, hero chart, or hero pictogram) plus 2–4 support
elements of different types. Three bar charts in a row is a failure even if
each one is correct. Prefer forms that fuse with the metaphor (liquid fill,
object-as-bar, icon army) over generic charts beside it.
Read references/composition.md and pick one named composition pattern
(Big Object, Bleed, Overlap stack, Diagonal drive, Editorial spread,
Specimen sheet) — state it in an HTML comment. A card grid may only be a
sub-zone (≤ ⅓ of the canvas), never the whole layout. Apply the tension
rules: one dense zone + one empty zone, three sizes minimum, something
crossing a boundary, a non-uniform background, canvas-level texture if the
style calls for it. Then start from templates/skeleton.html. Rules:
references/charts.md),
Google Fonts via <link>, no other external resources, no JS frameworks.data-hero attribute — the preflight checker uses it to verify
emphasis.node scripts/check.mjs infographic.html --preset square
Before rendering a single pixel, the checker loads the page headless and
measures the actual glyph geometry. It reports errors (text painted over
other text, text clipped by an overflow ancestor or cut by the canvas edge,
content escaping the canvas, fonts below the readable floor, more than one
data-hero) and warnings (missing data-hero, weak hero dominance,
tight font sizes, near-miss overlaps).
data-overlap-ok on one of the two
elements. Add it only for overlaps that are a composition decision, and
confirm their legibility in the PNG review — every waiver is yours to
defend.node scripts/render.mjs infographic.html infographic.png --preset square
First-time setup (once per machine): npm install && npx playwright install chromium
(run from the skill directory). The script waits for fonts, so text always renders.
Read the PNG file (view the image). Check ruthlessly:
Anti-slop pass (any hit = recompose, not patch):
Fix, re-run the preflight (a fix can introduce a new collision), and re-render. Minimum one loop; repeat until the list is clean. Deliver the PNG and offer the HTML source.
You offered animation in step 1; do this step if they said yes there, or
ask for it later (MP4/GIF, social video, "make it move"). Animate the
approved static file — never animate around an unreviewed still. Read references/motion.md and follow it: storyboard the
build order (place → structure → data → hero → support), add CSS keyframes
to the same HTML file with the fill mode motion.md prescribes, then render:
node scripts/animate.mjs infographic.html infographic.mp4 --preset square --sheet sheet.png
Requires ffmpeg on PATH (brew install ffmpeg / apt install ffmpeg).
The preflight and still render are unaffected — both evaluate the
animation's end state, so step 9's guarantees still hold. Review the
contact sheet against the checklist in motion.md (frame 1 has a scene, the
stagger is visible, the last frame matches the approved PNG), fix, re-run.
Deliver the MP4 (plus a GIF via a second run with a .gif output when the
destination wants one) alongside the still.
| File | When to read it |
|---|---|
references/illustration-and-texture.md | Step 4, always |
references/data-vocabulary.md | Step 7, always |
references/composition.md | Step 8, always |
references/charts.md | Before writing any chart SVG |
references/design-languages/*.md | Step 6 — exactly one |
templates/skeleton.html | Step 8, as your starting file |
scripts/check.mjs | Step 9 — run it, fix errors, rerun |
scripts/render.mjs | Run it; read only if debugging |
references/motion.md | Step 12, before writing any keyframe |
scripts/animate.mjs | Step 12 — run it; read only if debugging |
package-lock.json (opens in a new tab)package.json (opens in a new tab)references/charts.md (opens in a new tab)references/composition.md (opens in a new tab)references/data-vocabulary.md (opens in a new tab)references/design-languages/_template.md (opens in a new tab)references/design-languages/blueprint.md (opens in a new tab)references/design-languages/corporate-clean.md (opens in a new tab)references/design-languages/cutaway.md (opens in a new tab)references/design-languages/dark-glass.md (opens in a new tab)references/design-languages/editorial.md (opens in a new tab)references/design-languages/hand-drawn.md (opens in a new tab)references/design-languages/isometric-world.md (opens in a new tab)references/design-languages/naturalist-plate.md (opens in a new tab)references/design-languages/neo-brutalist.md (opens in a new tab)references/design-languages/park-poster.md (opens in a new tab)references/design-languages/retro-print.md (opens in a new tab)references/design-languages/swiss.md (opens in a new tab)references/illustration-and-texture.md (opens in a new tab)references/motion.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub orron/epicinfographics --plugin epic-infographicsOther plugins' skills for the same job