motion-graphics-skills
by Darkshanu
README.md
# motion-graphics-skills
[](https://github.com/Darkshanu/motion-graphics-skills/actions/workflows/ci.yml)
[](LICENSE)
[](https://www.python.org/)
[](https://modelcontextprotocol.io/)
[](skills/)
Open-standard **Motion Graphics Agent Skills (`SKILL.md`)** + zero-dependency **Physics, Lottie JSON, Kinetic SVG, GLSL Shader & Storyboard MCP Server** — built for **Claude Code**, **Cursor**, **Gemini CLI**, and **Antigravity**.
> **Zero `npm` bloat. Zero paid SaaS keys. Zero guessed keyframes.**
> Most AI motion packs only ship vague prompt text. `motion-graphics-skills` pairs **6 domain-expert `SKILL.md` skills** with a **deterministic Python 3.9+ compiler** that solves real RK4 spring differential equations, outputs valid Bodymovin `v5.9.0` Lottie JSON, compiles 60fps CSS-animated SVGs, generates GLSL ES 3.00 WebGL2 shaders, and snaps multi-scene storyboards to exact musical BPM.
---
## Why This Beats Prompt-Only & Heavy Motion Tools
| Capability | Typical Prompt Packs | Heavy Video Frameworks | `motion-graphics-skills` |
|---|---|---|---|
| **Open-Standard `SKILL.md`** | Static text only | None | **6 cross-agent `SKILL.md` workflows** |
| **Spring & Easing Curves** | LLM guesses random numbers | Runtime-locked | **Exact RK4 ODE + Newton-Raphson Bezier solver** |
| **Framework Exports** | Manual rewrite | Single framework | **CSS `linear()`, Framer Motion, Remotion & GSAP** |
| **Vector Assets** | Often broken JSON | Requires AE/Bodymovin | **Valid Bodymovin `v5.9.0` Lottie JSON + 60fps SVG** |
| **GPU Backdrops** | None | Heavy WebGL deps | **Pure GLSL ES 3.00 + standalone WebGL2 HTML** |
| **Dependencies & Setup** | Manual | 500MB+ `node_modules` | **0 pip dependencies · 1-line install** |
---
## Included Agent Skills & MCP Compiler Tools
| Skill | Purpose | Bundled MCP Tool(s) |
|---|---|---|
| [`kinetic-typography`](skills/kinetic-typography/SKILL.md) | Beat-synced title reveals, hook-first Reels/Shorts pacing & accessible 60fps SVGs | `generate_kinetic_typography_svg` |
| [`physics-spring-choreography`](skills/physics-spring-choreography/SKILL.md) | Exact RK4 damped spring physics & cubic-bezier frame sampling | `solve_spring_physics`, `compile_cubic_bezier_frames` |
| [`svg-lottie-morph`](skills/svg-lottie-morph/SKILL.md) | Procedural Bodymovin `v5.9.0` Lottie JSON with bezier tangents & trim paths | `compile_lottie_json` |
| [`shader-procedural-bg`](skills/shader-procedural-bg/SKILL.md) | GLSL ES 3.00 fragment shaders + WebGL2 previews (`aurora-mesh`, `cyber-grid`, `liquid-chrome`, `noir-grain`) | `compile_shader_backdrop` |
| [`storyboard-timeline-director`](skills/storyboard-timeline-director/SKILL.md) | BPM-locked scene graphs (`9:16`, `16:9`, `1:1`, `4:5`) with frame ranges & camera moves | `build_motion_storyboard` |
| [`broadcast-export-qa`](skills/broadcast-export-qa/SKILL.md) | FFmpeg H.264/VP9-alpha/ProRes-4444/GIF-palettegen pipelines & `prefers-reduced-motion` QA | `generate_ffmpeg_render_plan` |
---
## 1-Line Install (Skills + Local MCP Compiler)
Installs all 6 `SKILL.md` packages into `~/.claude/skills`, `~/.cursor/skills`, `~/.gemini/skills`, and `~/.gemini/antigravity/skills`, and stages the zero-dependency MCP server in `~/.motion-graphics-skills`:
### macOS / Linux
```bash
curl -fsSL https://raw.githubusercontent.com/Darkshanu/motion-graphics-skills/main/install.sh | bash
```
### Windows (PowerShell)
```powershell
irm https://raw.githubusercontent.com/Darkshanu/motion-graphics-skills/main/install.ps1 | iex
```
---
## MCP JSON Config Examples
Add `motion-graphics-skills` to your agent's MCP config (replace `/ABS/PATH/TO/motion-graphics-skills` with `~/.motion-graphics-skills` or your clone path):
### Claude Code (`.mcp.json` or CLI)
```bash
claude mcp add motion-graphics-skills -- python /ABS/PATH/TO/motion-graphics-skills/cli.py --mcp
```
```json
{
"mcpServers": {
"motion-graphics-skills": {
"command": "python",
"args": ["/ABS/PATH/TO/motion-graphics-skills/cli.py", "--mcp"]
}
}
}
```
### Cursor (`.cursor/mcp.json`) & Antigravity (`~/.gemini/antigravity/mcp_config.json`)
```json
{
"mcpServers": {
"motion-graphics-skills": {
"command": "python",
"args": ["/ABS/PATH/TO/motion-graphics-skills/cli.py", "--mcp"]
}
}
}
```
---
## Direct CLI Usage & Demo Outputs
```bash
# 1. Solve exact RK4 spring physics -> CSS linear(), Framer Motion, Remotion & GSAP
python cli.py spring --stiffness 220 --damping 16 --mass 1.0 --fps 60
# 2. Sample a cubic-bezier easing curve with ASCII sparkline
python cli.py bezier 0.16 1 0.3 1 --frames 24
# 3. Compile a beat-synced 60fps Kinetic Typography SVG
python cli.py kinetic-svg "ZERO CONFIG." "RK4 PHYSICS." "SHIP MOTION." \
--theme cyber-dark --style slam-reveal --bpm 128 --out title.svg
# 4. Generate a valid Bodymovin v5.9.0 Lottie JSON asset
python cli.py lottie --preset loading-orbit --primary "#6366f1" --accent "#22d3ee" --out loader.json
# 5. Generate a GLSL ES 3.00 fragment shader + standalone WebGL2 HTML backdrop
python cli.py shader --preset aurora-mesh --primary "#6366f1" --secondary "#ec4899" --html-out backdrop.html
# 6. Build a BPM-snapped multi-scene storyboard (9:16, 16:9, 1:1, 4:5)
python cli.py storyboard "Launch Reel" "Hook: Stop Guessing Keyframes" "Proof: Real RK4 Physics" "CTA: Star Repo" --bpm 128 --aspect 9:16
# 7. Get broadcast FFmpeg commands (mp4-hq, webm-alpha, prores-alpha, gif-hd)
python cli.py ffmpeg-plan --preset gif-hd --fps 30 --width 800 --height 450
```
<details>
<summary>Sample JSON output from <code>python cli.py spring --stiffness 220 --damping 16</code></summary>
```json
{
"damping_ratio": 0.5394,
"regime": "underdamped",
"settling_frames": 63,
"duration_s": 1.05,
"duration_ms": 1050,
"overshoot_percent": 13.4,
"exports": {
"css_linear": "linear(0, 0.04191, 0.1456, 0.2899, 0.4533, ... 1)",
"framer_motion": {
"type": "spring",
"stiffness": 220.0,
"damping": 16.0,
"mass": 1.0,
"velocity": 0.0
}
}
}
```
</details>
---
## Example Workflows & Tests
See [`examples/`](examples/README.md) for runnable pipelines:
- [`examples/build_launch_reel.py`](examples/build_launch_reel.py) — Compiles a full launch kit (`kinetic_title.svg`, `loading_orbit.lottie.json`, `aurora_backdrop.html`, `storyboard.json`)
- [`examples/mcp_stdio_smoke.py`](examples/mcp_stdio_smoke.py) — Verifies MCP `stdio` handshake & all 7 tools
```bash
python -m unittest discover -s tests -v
python examples/mcp_stdio_smoke.py
python examples/build_launch_reel.py --summary-only
```
## License
MIT License — see [LICENSE](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues