line-art-animation
An agent plugin and a small TypeScript library for animated line-art components:
ink-on-paper figures that walk, ride and react, in scenes that run from day to night.
Everything is drawn live in SVG, so it stays sharp at any size and responds to the
pointer.

| Day | Night |
|---|
 |  |
What's in the repo
| |
|---|
skills/line-art-animation/, references/ | The skill: workflow, the rules that make the style work, and guides for style, motion, scenes, verification, matching a reference clip and rendering video. |
lib/ | Four dependency-free TypeScript modules: drawing primitives (ink.ts), a walk/run solver (gait.ts), springs, pendulums and wind (motion.ts), and a time-of-day palette (daynight.ts). |
examples/walker/ | One figure in about 150 lines: a man with a briefcase walks across the card; click him and he tips his hat. |
examples/village/ | A full scene: a street of machiya, a tea house and a bath house by a canal, villagers on schedules, a cat, birds, a boatman, lit windows and reflections, about a dozen interactions. |
scripts/ | Deterministic frame capture for video, and tools for measuring a reference clip. |
mcp/server.mjs | Local MCP server for browsing and reading the bundled kit. |
Install the plugin
Clone this repository, or download it for clients other than Cursor. Run the
commands below from the repository root, or replace "$PWD" with its absolute
path. Node 22.18 or newer must be on the agent client's PATH. The skill and MCP
server work without npm install.
| Client | Local installation |
|---|
| Codex | Run codex plugin marketplace add "$PWD" and then codex plugin add line-art-animation@line-art-animation-kit. In the ChatGPT desktop app, install from Line-Art Animation Kit in the Plugins Directory. |
| Claude Code | Run claude plugin marketplace add "$PWD" and then claude plugin install line-art-animation@line-art-animation-kit. For a one-session preview, use claude --plugin-dir "$PWD". |
| GitHub Copilot CLI | Run copilot plugin marketplace add "$PWD" and then copilot plugin install line-art-animation@line-art-animation-kit. |
| VS Code | Open Chat: Install Plugin from Source and select the checkout folder. For live development, add its absolute path with value true to chat.pluginLocations in Settings JSON. |
| Cursor | Use the Cursor-native copy below, then reload Cursor and open Customize. Local plugin imports must be enabled. |
| Gemini CLI | Run gemini extensions install "$PWD" and restart Gemini CLI. |
Cursor uses its own MCP path variables. Run the following from a Git clone of
this repository. The archive omits the portable manifests so Cursor loads its
native configuration.
cursor_plugin="$HOME/.cursor/plugins/local/line-art-animation"
mkdir -p "$HOME/.cursor/plugins/local"
mkdir "$cursor_plugin" &&
git archive HEAD -- . ':(exclude,top)plugin.json' ':(exclude,top)mcp.json' |
tar -xf - -C "$cursor_plugin"
Start a new session and ask for an animation, for example:
- “Make a line-art animation of a bakery at dawn with a baker carrying trays.”
- “Turn this clip into a looping line-art component that matches its walk.”
- “Add a day-night cycle and render a 30-second 1080p video.”
The plugin provides the line-art-animation skill. Its local MCP server exposes
list_kit_files and read_kit_file for reading the guides, library, scripts, and
examples. It uses stdio and does not require credentials or a network connection.
Run builds, capture, and clip analysis in a writable project or checkout. The
example preview needs npm dependencies, capture needs Chrome or Chromium, and
video encoding and clip analysis need FFmpeg.
For a client without plugin support, install the full checkout under its skills
directory, such as ~/.claude/skills/line-art-animation. The root SKILL.md
loads the same workflow. For clients that register MCP servers separately, use
command node with the absolute path to mcp/server.mjs as its only argument.
Check the server from a checkout with node --test mcp/server.test.mjs.
Run the examples
Requires Node 22.18 or newer.
npm install
npm run dev # http://localhost:5173
In the village, drag the sun or moon across the sky to change the time, move the pointer
to make wind, and click people, windows, lanterns, the wind chime, the cat, the birds or
the water. URL flags: ?start=0.9 sets the starting time (0 is midnight, 0.5 noon),
?tau=0.5 pins it, ?day=30 makes a full day last 30 seconds, ?debug steps time by hand.
npm run typecheck # strict for lib/ and the walker
npm run build
The library in brief