Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

motion-figure

Skill by rohitg00

Builds figures that move or respond to the reader for course lessons and pages. It makes SMIL animations, slider widgets, interactive mechanism panels, and dither mastheads.

  • Score 94
  • 82k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install motion-figure

Built from the published package, never by AI.

git clone --depth 1 https://github.com/rohitg00/ai-engineering-from-scratch /tmp/ai-engineering-from-scratch && mkdir -p ~/.claude/skills && cp -r /tmp/ai-engineering-from-scratch/skills/motion-figure ~/.claude/skills/motion-figure

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install motion-figure in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Motion figure is an agent skill for building figures that move or respond to input. It works in three tiers. Tier 1 makes SMIL animations and slider widgets that mount from a figure fence inside course lessons. Tier 2 makes interactive mechanism figures, which are HTML panels that show the named parts of a system, let the reader drive one control, and display a verdict computed from the numbers. Tier 3 makes WebGL dither bands in the course palette for page mastheads and section breaks.

The skill sets strict rules for each tier, including limits on SMIL attributes, ES5 code for slider widgets, and reduced motion behaviour. It is written for authors and developers who build course figures. The source says it works with Claude, Cursor, Codex, OpenClaw, Hermes, or any agent that reads SKILL.md.

Written from the project's SKILL.md and checked against it.

What it can do

  • Lesson figure (tier 1)Builds declarative SMIL animations or slider widgets that redraw an SVG inside a lesson.
  • Mechanism figure (tier 2)Builds an HTML panel that shows the named parts of a system with one reader control and a computed verdict.
  • Dither field (tier 3)Draws a WebGL band of ordered dither dots in the paper, accent, and ink colours, with four seeded motions.
  • Figure fenceMounts a registered figure in a lesson from a fenced block with an optional JSON config.
  • Accessibility checksApplies reduced motion, dark theme, and 375 px width checks before a figure is finished.

What you need

  • Course lesson runtime with window.LF for tier 1 figures
  • WebGL for dither fields, with a static hatch fallback
  • Node.js and Chrome for the course repo audit script

Try asking

  • Add a slider widget to this lesson that shows how chunk size changes the output.
  • Make this diagram move as a token passes through each stage.
  • Build an interactive figure that shows how this cache system works.

Good to know

  • Animated figures are limited to 55 SVG elements or fewer.
  • Loops must last 2.5 to 6 seconds and animate only opacity, transform, stroke-dashoffset, or motion along a path.
  • Slider widget code must be ES5 only, with no arrow functions, let, const, or template literals.
  • Dither fields draw at 30 frames per second at most and only while visible.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/motion-figure/SKILL.md, skills/motion-figure/templates/dither.js. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md13 KB
  • references/dither-fields.md4 KB
  • references/mechanism-figures.md6 KB
  • references/smil-rules.md10 KB
  • references/tokens.md4 KB
Show all 8 files
  • references/toolkit.md19 KB
  • templates/dither.js9 KB
  • templates/mechanism.html7 KB

Alternatives to motion-figure

All alternatives →
paperbananadwzhu-pku
94

PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.

AAA Skill 50k
code-slice-heroheygen-com
94

Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.

AAA Skill 92k
patentfigdavila7
94

Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

motion-figure: common questions

Does motion figure work outside the course site?

Tier 2 mechanism figures are meant for standalone pages, READMEs, essays, and the course site outside lessons. Tier 1 figures are for course lessons.

Can the figures use setInterval or requestAnimationFrame?

No. The source says figures must use only SMIL animate, animateTransform, and animateMotion elements, and must not use setInterval or requestAnimationFrame.

What happens with reduced motion turned on?

The runtime shows the static frame. Dither fields draw one static frame, and mechanism figures show a complete picture.

How do I install motion-figure?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is motion-figure free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is motion-figure safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to motion-figure?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

motion-figure Install

Add to stack

Loading.