motion-design-agent
CLAUDE.md7 starsChanged 10 months agoMITView on GitHub
This file instructs Claude on how to work with this project. Read this file first, then consult docs/spec.md for detailed specifications. This project implements a Motion Design Agent — a skill system that enables Claude to create animations and motion graphics using industry standards. The system is built on: Always check docs/spec.md first for the exact content, format, and structure of any file you're creating. The spec contains complete examples of: - W3C DTCG token format - SKILL.md frontmatter requirements…
In this repository87 other files it gives its agents.
- motion-designSkill
- 3d-transformsSkill
- accessibilitySkill
- android-nativeSkill
- animation-recipesSkill
- anticipationSkill
- arc-motionSkill
- attention-choreographySkill
- attentionSkill
- audio-reactiveSkill
- blurSkill
- brand-animationSkill
- cameraSkill
- characterSkill
- choice-resolutionSkill
- cinematicSkill
- code-generationSkill
- colorSkill
- component-animationsSkill
- compositingSkill
- consequenceSkill
- container-transformSkill
- css-advancedSkill
- data-visualizationSkill
- depthSkill
- distortionSkill
- dramaturgySkill
- durationSkill
- easingSkill
- emotional-journeySkill
- emotion-mappingSkill
- emotion-selectionSkill
- empty-statesSkill
- entrance-patternsSkill
- exaggerationSkill
- exit-patternsSkill
- exportSkill
- figma-integrationSkill
- follow-throughSkill
- frame-timingSkill
- gesture-motionSkill
- glow-shadowSkill
- intentSkill
- ios-nativeSkill
- loading-statesSkill
- loopingSkill
- lottieSkill
- masksSkill
- microstateSkill
- morphingSkill
- motion-auditSkill
- motion-blurSkill
- motion-principlesSkill
- motion-specsSkill
- narrative-arcSkill
- notificationsSkill
- onboardingSkill
- opacitySkill
- orchestratorSkill
- particlesSkill
- The first 60 shown.
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
18 rules. About 0 are common, 10 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 94
All token files use this structure:
- Very specific: line 132
Every SKILL.md must have:
- Very specific: line 158
Create these files following W3C DTCG format (see docs/spec.md for complete content):
- Distinctive: line 237
Before considering the project complete, verify:
- Very specific: line 273
Add to tokens/motion.tokens.json with full W3C DTCG format
- Very specific: line 275
Update relevant subset file (easing.tokens.json, etc.)
- Distinctive: line 276
Update any presets that should use the new token
- Very specific: line 281
Create SKILL.md with valid frontmatter
- Very specific: line 282
Create references/ subdirectory if needed
- Very specific: line 283
Add skill to index in root SKILL.md
- Very specific: line 289
Add to appropriate SKILL.md or create reference file
- Distinctive: line 296
Verify cross-system mappings are still accurate
- Distinctive: line 297
Update subset files if they exist
- Distinctive: line 320
Always import tokens rather than hardcoding:
- Distinctive: line 331
Always include reduced motion:
- Distinctive: line 346
When you need to verify against original sources:
- Distinctive: line 387
When working on this project, consider:
- Distinctive: line 412
Ensure WCAG accessibility compliance
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
Motion Design Agent System
This file instructs Claude on how to work with this project. Read this file first, then consult
docs/spec.mdfor detailed specifications.
Project Overview
This project implements a Motion Design Agent — a skill system that enables Claude to create animations and motion graphics using industry standards. The system is built on:
- agentskills.io specification for skill file format
- W3C Design Tokens (2025.10) for token interchange
- Material Design 3 as the primary motion baseline
- Lottie Specification v1.0 for animation export
- WCAG 2.1 for accessibility compliance
Directory Structure
motion-design/
├── CLAUDE.md # ← You are here. Project instructions.
├── docs/
│ └── spec.md # Complete specification document
│
├── SKILL.md # Root skill (orchestrator)
│
├── tokens/ # W3C DTCG format tokens
│ ├── motion.tokens.json # Complete token set
│ ├── easing.tokens.json # Easing curves only
│ ├── duration.tokens.json # Duration scale only
│ └── spring.tokens.json # Spring physics configs
│
├── references/ # Root-level references
│ ├── industry-standards.md
│ ├── design-system-comparison.md
│ └── tool-selection.md
│
├── skills/ # Sub-skills (agentskills.io compliant)
│ ├── motion-principles/
│ ├── easing/
│ ├── duration/
│ ├── transitions/
│ ├── entrance-patterns/
│ ├── exit-patterns/
│ ├── accessibility/
│ ├── lottie/
│ ├── remotion/
│ └── tools/
│
├── presets/ # Implementation presets
│ ├── remotion-m3.ts
│ ├── gsap-presets.js
│ └── framer-motion-presets.ts
│
└── templates/ # Starter templates
├── lottie/
└── remotion/How to Work on This Project
Reading Order
- This file (
CLAUDE.md) — Project overview and instructions docs/spec.md— Complete specification with all detailstokens/motion.tokens.json— Token values (if it exists)- Individual skill files — As needed for specific tasks
Key Principles
- Standards First — Every motion value must trace to an industry standard
- Tokens Over Raw Values — Always reference token names, not hardcoded numbers
- M3 as Baseline — Material Design 3 is the default; cross-reference others when needed
- Accessibility Required — Every animation must have a reduced-motion alternative
- agentskills.io Compliant — All SKILL.md files must have valid YAML frontmatter
When Building Files
Always check docs/spec.md first for the exact content, format, and structure of any file you're creating. The spec contains complete examples of:
- W3C DTCG token format
- SKILL.md frontmatter requirements
- Cross-system comparison tables
- Implementation code examples
Standards Quick Reference
W3C Design Tokens Format
All token files use this structure:
{
"tokenName": {
"$value": "<value>",
"$type": "<type>",
"$description": "<description with cross-system references>"
}
}Types used in this project:
duration— e.g.,"250ms"cubicBezier— e.g.,[0.2, 0, 0, 1]transition— composite of duration + timing + delayobject— for spring configs (non-standard but practical)
Material Design 3 Baseline
Easing (Primary):
| Token | Value | Use |
standard | (0.2, 0, 0, 1) | Most animations |
emphasized-decelerate | (0.05, 0.7, 0.1, 1) | Entrances |
emphasized-accelerate | (0.3, 0, 0.8, 0.15) | Exits |
linear | (0, 0, 1, 1) | Continuous |
Duration (Primary):
| Token | Value | Use |
short-1 | 50ms | Micro-interactions |
short-4 | 200ms | Buttons, controls |
medium-2 | 300ms | Dialogs, modals |
long-2 | 500ms | Page transitions |
agentskills.io SKILL.md Format
Every SKILL.md must have:
---
name: skill-name
description: What the skill does. When to use it. Must include both WHAT and WHEN.
---
# Skill Title
Content here...Constraints:
name: 1-64 chars, lowercase, hyphens only, must match directory namedescription: 1-1024 chars, must include capability AND usage context- Body: <5000 tokens (put details in
references/subdirectory)
Build Tasks
Task 1: Create Token Files
Location: tokens/
Create these files following W3C DTCG format (see docs/spec.md for complete content):
motion.tokens.json— Complete token set with all easing, duration, spring, and transition tokenseasing.tokens.json— Just the easing curves (subset of motion.tokens.json)duration.tokens.json— Just the duration scalespring.tokens.json— Spring physics configurations
Validation: Each token must have $value, $type, and $description with cross-system references.
Task 2: Create Root SKILL.md
Location: SKILL.md (project root)
This is the orchestrator that:
- Describes the motion-design agent capability
- Lists all sub-skills with their purposes
- Provides decision frameworks for easing, duration, tool selection
- Defines output requirements (cite standard, use tokens, include accessibility)
See docs/spec.md section "Root Skill: SKILL.md" for complete content.
Task 3: Create Sub-Skills
Location: skills/<skill-name>/SKILL.md
Each sub-skill needs:
SKILL.mdwith proper frontmatterreferences/directory with detailed documentation
Sub-skills to create:
| Skill | Purpose | Key References |
motion-principles | Motion philosophy from design systems | M3, Carbon, Fluent principles |
easing | Easing curve selection and implementation | Curve comparison, selection guide |
duration | Duration/timing selection | Frame conversion, context guide |
transitions | Page transition patterns | Container transform, shared axis, fade through |
entrance-patterns | Element entrance animations | Stagger patterns |
exit-patterns | Element exit animations | Exit strategies |
accessibility | WCAG compliance, reduced motion | WCAG requirements, alternatives |
lottie | Lottie/dotLottie specification | Lottie spec, supported features |
remotion | Remotion video rendering | Interpolate recipes, spring configs |
tools | Tool selection (GSAP, Framer, etc.) | Tool-specific guides |
Task 4: Create References
Location: references/ (root) and skills/<skill>/references/
Root-level references:
industry-standards.md— Overview of all standards useddesign-system-comparison.md— M3 vs Fluent vs Carbon vs Appletool-selection.md— When to use which animation tool
Skill-level references contain detailed documentation that would bloat the SKILL.md.
Task 5: Create Presets
Location: presets/
Implementation-ready code files:
remotion-m3.ts— TypeScript presets for Remotion with M3 tokensgsap-presets.js— GSAP animation presetsframer-motion-presets.ts— Framer Motion variants and transitions
These should import from tokens/ and export ready-to-use configurations.
Task 6: Create Templates
Location: templates/
Starter templates for common use cases:
lottie/— Lottie JSON templatesremotion/— Remotion composition templates (title cards, lower thirds, etc.)
Validation Checklist
Before considering the project complete, verify:
agentskills.io Compliance
- All
SKILL.mdfiles have YAML frontmatter withnameanddescription - All
namefields are lowercase with hyphens, ≤64 chars - All
descriptionfields include WHAT + WHEN, ≤1024 chars - Directory names match
namefields exactly - Each
SKILL.mdbody is <5000 tokens - Reference files are one level deep from SKILL.md
W3C Design Tokens Compliance
- All token files use
$value,$type,$description cubicBeziertype uses array format[x1, y1, x2, y2]durationtype uses string format"250ms"- Token references use
{path.to.token}syntax
Standards Compliance
- M3 is cited as primary baseline
- Cross-system mappings exist for Fluent, Carbon, Apple
- Lottie spec v1.0 referenced correctly
- WCAG 2.1 requirements addressed
Implementation Coverage
- CSS implementation examples
- GSAP implementation examples
- Framer Motion implementation examples
- Remotion implementation examples
- Lottie usage examples
- Reduced motion alternatives for all patterns
Common Operations
Adding a New Token
- Add to
tokens/motion.tokens.jsonwith full W3C DTCG format - Include
$descriptionwith cross-system references - Update relevant subset file (easing.tokens.json, etc.)
- Update any presets that should use the new token
Adding a New Skill
- Create directory:
skills/<skill-name>/ - Create
SKILL.mdwith valid frontmatter - Create
references/subdirectory if needed - Add skill to index in root
SKILL.md - Validate frontmatter constraints
Adding a New Pattern
- Determine which skill it belongs to
- Add to appropriate
SKILL.mdor create reference file - Include: token references, code example, accessibility alternative
- Cross-reference M3 (or other standard) documentation
Updating Token Values
- Update
tokens/motion.tokens.json - Verify cross-system mappings are still accurate
- Update subset files if they exist
- Presets auto-import, so they'll get new values
Code Style
Token File Naming
motion.tokens.json # Complete set
easing.tokens.json # Subset
duration.tokens.json # SubsetSkill Directory Naming
skills/motion-principles/ # lowercase, hyphens
skills/easing/ # single word OK
skills/entrance-patterns/ # descriptiveImplementation Code
Always import tokens rather than hardcoding:
// ✓ Good
import tokens from '../tokens/motion.tokens.json';
const duration = tokens.motion.duration['medium-1'].$value;
// ✗ Bad
const duration = '250ms';Always include reduced motion:
// ✓ Good
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const duration = prefersReducedMotion ? '0ms' : '250ms';
// ✗ Bad
const duration = '250ms'; // No accessibility considerationExternal References
When you need to verify against original sources:
| Standard | URL |
| W3C Design Tokens | https://designtokens.org |
| Material Design 3 Motion | https://m3.material.io/styles/motion |
| Fluent 2 Motion | https://fluent2.microsoft.design/motion |
| Carbon Motion | https://carbondesignsystem.com/guidelines/motion |
| Apple HIG Motion | https://developer.apple.com/design/human-interface-guidelines/motion |
| Lottie Spec | https://lottie.github.io |
| dotLottie Spec | https://dotlottie.io/spec |
| WCAG 2.1 Motion | https://www.w3.org/WAI/WCAG21/Understanding/animation-from-interactions |
| agentskills.io | https://agentskills.io |
| Remotion | https://remotion.dev/docs |
| GSAP | https://gsap.com/docs |
| Framer Motion | https://motion.dev/docs |
Getting Started
To build out this project:
- Read
docs/spec.md— Contains all the content to generate - Create
tokens/motion.tokens.json— Foundation for everything else - Create root
SKILL.md— Orchestrator - Create sub-skills in priority order:
easing/andduration/(core tokens)accessibility/(required for all)transitions/andentrance-patterns/(common patterns)lottie/andremotion/(implementation)tools/(selection guide)
- Create presets — Implementation-ready code
- Validate — Run through checklist
The spec.md file contains the complete content for every file. Your job is to generate the files in the correct locations with the correct format.
Questions to Ask
When working on this project, consider:
- Which standard applies? — Default to M3, but check if platform-specific
- Is this in the spec? — Check
docs/spec.mdbefore creating content - Does it have accessibility? — Every animation needs reduced-motion alternative
- Is it using tokens? — Never hardcode values that exist as tokens
- Is the skill compliant? — Check frontmatter, naming, token budget
Success Criteria
The project is complete when:
- ✅ All files from
docs/spec.mdare generated - ✅ All SKILL.md files pass agentskills.io validation
- ✅ All tokens follow W3C DTCG format
- ✅ All motion values trace to industry standards
- ✅ All patterns have accessibility alternatives
- ✅ Presets import from token files (not hardcoded)
- ✅ An agent using this skill system can:
- Select appropriate easing for any animation type
- Select appropriate duration for any element size
- Choose the right tool for the job
- Export Lottie-compliant animations
- Ensure WCAG accessibility compliance
- Cross-reference values across design systems
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

