Communitygithub.com

graph

Makes a minimal vertical (1080x1920) line-graph animation for a reel. A smooth black line draws itself on white (or white on black) while one large number counts up with the tip and lands on the final value. Use when the user asks for /graph, a growth chart, a "0 to 100K" number counter, an animated stat, or a minimal metric line chart.

What is graph?

graph is a Claude Code agent skill that makes a minimal vertical (1080x1920) line-graph animation for a reel. A smooth black line draws itself on white (or white on black) while one large number counts up with the tip and lands on the final value. Use when the user asks for /graph, a growth chart, a "0 to 100K" number counter, an animated stat, or a minimal metric line chart.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hieubm1707/gemini-animation-skills/tree/HEAD/skills/graph

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Graph Animation (graph)

┌──────────────────────┐
│ Followers            │  plain label
│ 100,000              │  counts up with the tip of the line
│                  •   │
│                 /    │  smooth line draws itself
│            ___/      │
│ ______----           │
│ Jan Feb ... Sep      │
└──────────────────────┘

Setup Check

SKILL_DIR is the directory containing this SKILL.md file (check the path in <skills>).

SKILL_DIR="$(python3 -c 'import os,sys; print(os.path.realpath(sys.argv[1]))' "<directory containing this SKILL.md>")"
KIT="$(python3 -c 'import os,sys; print(os.path.realpath(os.path.join(sys.argv[1], "..", "..", "kit")))' "$SKILL_DIR")"
[ -s "$KIT/vendor/gsap.min.js" ] || bash "$KIT/setup.sh"

Requires ffmpeg, node (18+), and python3 (3.9+).

Steps

  1. Gather real numbers. Get the data points from the user (or screenshot), oldest first. Never invent factual data; if they only provide a start and end, ask for intermediate points or explicitly state that the curve is illustrative.
  2. Write the spec. Create <name>.graph.json in the target working folder using the schema below.
  3. Validate first. Run:
    python3 "$SKILL_DIR/build.py" <name>.graph.json --check
    
    Fix any validation errors before rendering.
  4. Render. Run:
    python3 "$SKILL_DIR/build.py" <name>.graph.json
    
    Takes ~10 seconds and outputs <name>.graph.mp4 (1080x1920, 30 fps) and <name>.graph.sheet.jpg. For a fast single-frame preview first, use --snap 3.5.
  5. Visual QA (Required). Inspect <name>.graph.sheet.jpg using read_file:
    • The big counter fits on a single line without clipping.
    • The curve and x-axis labels stay inside the red Instagram safe-area box.
    • The final frame displays the exact final value. If anything clips or wraps awkwardly, adjust the spec and re-render.
  6. Hand over. Return clickable links to the .mp4 and .sheet.jpg.

Spec Schema

{
  "label": "Followers",
  "values": [1.2, 2.1, 3.4, 5, 9, 24, 51, 78, 100],
  "labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep"],
  "final": 100000,
  "prefix": "",
  "suffix": "",
  "decimals": 0,
  "dark": false
}
  • values (required): Array of 2+ numbers (>= 0, at least one > 0). The highest value touches the top gridline.
  • labels (optional): One string per point under the x-axis. If more than 12, every second label is displayed.
  • final (optional): Final displayed number. The counter scales values by final / values[-1]. Omit to count in raw values units.
  • prefix, suffix, decimals: Formatting such as "$", "%", " kg". The font auto-shrinks for long numbers.
  • dark: true for white line on black background; false for black on white.
  • hold (optional): Extra seconds to hold on the final frame.
  • out (optional): Custom output .mp4 path.

Taste Rules

  • One number, one line. Use a plain noun for label ("Followers", "Monthly revenue"), never a slogan.
  • No callout badges, no "83x growth!" chips, and no marketing clutter.
  • Late-accelerating curves look best visually, but always stay truthful to the real data shape.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

breakdown

Makes a 3D exploded-view vertical animation (1080x1920) for a reel using three.js. A phone floats on a dark studio backdrop, separates layer by layer (glass, OLED screen, frame, logic board, battery, back), and draws thin leader lines to numbered labels. Use when the user asks for /breakdown, an exploded view, a "what's inside" teardown, or a labelled 3D hardware breakdown.

low-poly

Makes a PS1/N64-era retro low-poly 3D vertical animation (1080x1920) for a reel using three.js. Chunky low-res nearest-neighbour pixels, vertex snapping, dithering, warm flat lighting, and small yellow captions with a thin black outline. Built-in scene: a dog waits on a station platform while a train arrives and leaves, and seasons turn to snow. Use when the user asks for /low-poly, PS1-style, N64 retro 3D, or "low poly shorts" animations.

map-route

Makes a 3D map route vertical animation (1080x1920) for a reel using three.js. Features a clean white 3D city with parks and a river, a coloured route drawing itself while the camera follows, a bouncing red destination pin, a live countdown ETA card, and a destination card. Use when the user asks for /map-route, an animated route, a "from A to B" map, a journey, or a commute animation.

minimalistic-graphics

Makes a minimal black-and-white line-art vertical animation (1080x1920) for a reel. Thin outlined steps rise one by one, a white dot hops up them, an orbit with sparks draws around the dot at the top, and one quiet lowercase line swaps to a second line. Use when the user asks for /minimalistic-graphics, simple black-and-white motion graphics, calm self-improvement visuals, or line art with one moving dot.

Related Skills