/line-art-animation:line-art-animationfrom line-art-animation
Builds animated line-art SVG components in TypeScript — characters that walk, run, cycle, and react, plus scenes with wind, day/night cycles, and video export.
Ships in line-art-animation. 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.
Animated illustration components: everything is drawn with one thin pen on paper, built live in SVG from TypeScript, so it stays crisp at any size, responds to the pointer, and can be stepped frame by frame for checking or video export.
This skill ships a small library (lib/), two examples (examples/walker, a single
figure in ~150 lines; examples/village, a full scene) and tools (scripts/).
Paths below are relative to the kit root, two directories above this skill file.
Read the example closest to the request before writing anything. If the installed
files are unavailable through the host's file tools, use the line-art-animation
MCP server's list_kit_files and read_kit_file tools to retrieve the bundled
guides and source. Run the examples and scripts in a writable copy of the kit
or in the user's project.
They look at it like an animator would: frame by frame, at zoom, against life or against a reference. These were all rejected in practice, and each has a rule below:
references/style.md. Decide the pen
weight, paper colour, figure proportions and the one or two flat accent colours.lib/ into the project (it's four dependency-free
.ts files) and use Vite + TypeScript (package.json, tsconfig.json and
vite.config.ts in this repo show the setup). Components are plain DOM/SVG — no framework needed.references/motion.md: gait() for walking and running,
spring() / pendulum() for anything attached or hanging, keyed poses with
curve() or sequence() for gestures. Never animate a figure with free sines.references/scenes.md: a self-contained card on a fixed
page background, layers, a time-of-day palette from lib/daynight.ts, lights,
wind, people arriving on schedules, interactions that are reactions.references/verify.md before showing anything: typecheck,
?debug stepping, zoomed frame strips of every moving thing, interactions
triggered and stepped through, 60 fps in a real tab.references/matching.md — measure
timing and poses from the clip instead of guessing, and check with an overlay.references/video.md (deterministic headless
capture with scripts/capture.ts, then ffmpeg).limb() draws a paper-filled band between two pen
lines that stop short of each other at the far end. This is the style's signature.place(g, x, y, dir, scale). Proportions,
pen weight and the gait presets all assume this space.gait.speed × scale per second and
the stance foot stays still on the ground. Don't speed a gait up to match a
compressed clock; compress arrivals instead.currentColor, paper is .pp. Retint the whole drawing with
applyPalette() (day: dark ink on warm paper; night: pale ink on indigo, warm
windows). Solid-colour limb fills must use solid(), or the paper CSS wins.| module | what it gives you |
|---|---|
lib/ink.ts | pen shape blot paint limb solid joint hang curve shoe place toScene inkDefs run |
lib/gait.ts | gait({ kind: 'walk' | 'shuffle' | 'run', …overrides }) → { speed, period, pose(phase, go) } |
lib/motion.ts | spring pendulum pointerWind sequence seeded wobble ease minJerk … |
lib/daynight.ts | palette(τ) → top and bottom sky colors, paper, ink, inkT, lamp, night, sunset; applyPalette nightTint |
run(draw) drives everything with draw(t, dt). Two URL flags matter for checking:
?t=1.25 freezes time; ?debug disables rAF and exposes window.__step(seconds)
for exact stepping (background and headless tabs throttle rAF, so always verify in debug mode).
scripts/capture.ts <url?debug> <outDir> <frames> <fps> [w] [h] [setupJs] [frameJs] — deterministic PNG frames from headless Chromescripts/clip.ts period|blobs … — loop length of a region; dark-blob tracking per framescripts/frames.sh <clip> x y w h outDir — grid-overlaid frames for reading poses off a clipcapture.ts and clip.ts need Node ≥ 22.18. Capture uses Chrome or Chromium
and accepts a browser path in $CHROME. Clip analysis needs FFmpeg.
frames.sh needs Bash and FFmpeg. The video workflow also uses FFmpeg to encode
the captured frames.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jdhruv14/line-art-animation --plugin line-art-animationOther plugins' skills for the same job