How greensock/gsap-skills works
Purpose and Distribution
This repository distributes GSAP guidance as Agent Skills rather than a production application or GSAP library implementation. Its primary output is a portable skills/ directory that AI coding agents ingest to generate correct animation code. Entry/install surfaces are the skills CLI, Claude marketplace metadata, Cursor remote-rule metadata, and copied skill directories.
Grounding: README.md, skills/, .claude-plugin/plugin.json, .cursor-plugin/plugin.json.
Skill Catalog and Routing
skills/llms.txt is the compact discovery index: it exposes skill names, purposes, and likely trigger terms to skill-aware agents. The individual skill packages are the authoritative instructional units, each centered on a SKILL.md. This forms the main control flow: agent detects a GSAP-related task → selects relevant skill(s) → applies their practices in the target project.
Grounding: skills/llms.txt, skills/gsap-core/SKILL.md, skills/gsap-plugins/SKILL.md.
Core Animation Guidance
The foundational layer teaches GSAP tween creation, easing, duration, stagger, defaults, and property choices. Timeline guidance builds sequencing and playback on top of those primitives. These are separate packages so an agent can load basic animation instructions independently or combine them for orchestrated motion.
Grounding: skills/gsap-core/SKILL.md, skills/gsap-timeline/SKILL.md.
Scroll and Plugin Boundary
Scroll-driven animation is isolated in a dedicated ScrollTrigger skill, including lifecycle-sensitive concerns such as layout refresh and cleanup. Broader GSAP extensions—including Flip, Draggable, SVG, text, physics, and easing plugins—are grouped in the plugins skill. This boundary distinguishes a core GSAP import from optional plugin registration and feature-specific APIs.
Grounding: skills/gsap-scrolltrigger/SKILL.md, skills/gsap-plugins/SKILL.md, .github/instructions/scrolltrigger.instructions.md.
Framework Integration and Lifecycle
Framework guidance separates React-specific integration from generalized Vue/Svelte and other framework patterns. The architectural concern is lifecycle ownership: scope DOM selection, initialize after mount, and revert/clean up animations on unmount; React additionally centers @gsap/react/useGSAP and SSR-aware usage. GitHub Copilot receives analogous path-scoped guidance through instruction files because it does not consume the skill format directly.
Grounding: skills/gsap-react/SKILL.md, skills/gsap-frameworks/SKILL.md, .github/instructions/react.instructions.md.
Performance and Utility Policy
Performance guidance defines cross-cutting animation constraints, favoring transforms and controlling costly scroll/layout work. Utility guidance documents gsap.utils for range mapping, interpolation, snapping, collection selection, and composition. These act as supporting policy layers usable by core, timeline, scroll, and framework tasks.
Grounding: skills/gsap-performance/SKILL.md, skills/gsap-utils/SKILL.md.
Reference Implementations and External Dependencies
Minimal examples validate how guidance maps to runnable client-side projects: vanilla JavaScript, React via Vite, Vue via Vite, and Nuxt. They import the public gsap npm package; the repository itself has no backend, database, or deployed service. The only material external systems are GSAP/npm, the skills CLI ecosystem, and agent platforms such as Claude Code, Cursor, and GitHub Copilot.
Grounding: examples/vanilla/main.js, examples/react/main.jsx, examples/vue/main.js, examples/nuxt/app/composables/useGSAP.ts.
Main entry points: gsap-core/SKILL.md Core animation · gsap-react/SKILL.md React integration · main.js Client-side examples · gsap-scrolltrigger/SKILL.md ScrollTrigger
Components 17
Distribution
Portable agent-skill delivery surfaces.
- skills directory · Portable repository output consumed by coding agents.
- skills CLI
- Claude marketplace
.claude-plugin/plugin.json - Cursor remote rules
.cursor-plugin/plugin.json
Discovery & Routing
Skill selection for GSAP tasks.
- Skill discovery index · Names, purposes, and trigger terms for skill-aware agents.
skills/llms.txt - GSAP coding task · An agent selects guidance before generating target-project code.
Skill Guidance
Authoritative instructional packages.
- Core animation · Tweens, easing, durations, staggers, defaults, and properties.
skills/gsap-core/SKILL.md - Timeline sequencing · Builds sequencing and playback on core primitives.
skills/gsap-timeline/SKILL.md - ScrollTrigger · Scroll lifecycle, refresh, and cleanup guidance.
skills/gsap-scrolltrigger/SKILL.md - GSAP plugins · Optional plugin registration and feature APIs.
skills/gsap-plugins/SKILL.md - Performance policy · Transform-first and costly scroll/layout constraints.
skills/gsap-performance/SKILL.md - GSAP utilities · Mapping, interpolation, snapping, selection, and composition.
skills/gsap-utils/SKILL.md
Agent & Framework Adapters
Platform-specific instructions and lifecycle guidance.
- React integration · useGSAP, SSR-aware setup, and unmount cleanup.
skills/gsap-react/SKILL.md - Framework integration · Vue, Svelte, and general mount-scoped animation patterns.
skills/gsap-frameworks/SKILL.md - Copilot instructions · Direct guidance for platforms that do not consume skills.
.github/instructions/react.instructions.md
Reference Examples
Runnable consumers of the published guidance.
- Client-side examples · Vanilla, React, Vue, and Nuxt usage examples.
examples/vanilla/main.js - GSAP npm package · Public runtime package imported by examples and target projects.
Connections 20
- skills CLI → skills directory: installs
- Claude marketplace → skills directory: publishes
- Cursor remote rules → skills directory: references
- skills directory → Skill discovery index: contains
- Skill discovery index → GSAP coding task: routes guidance for
- GSAP coding task → Core animation: selects
- GSAP coding task → Timeline sequencing: selects
- GSAP coding task → ScrollTrigger: selects
- GSAP coding task → GSAP plugins: selects
- GSAP coding task → React integration: selects
- Core animation → Timeline sequencing: provides primitives to
- GSAP plugins → ScrollTrigger: separates optional APIs from
- Performance policy → Core animation: constrains
- Performance policy → ScrollTrigger: constrains
- GSAP utilities → Core animation: supports
- React integration → Framework integration: specializes lifecycle patterns from
- Copilot instructions → React integration: mirrors guidance
- Client-side examples → GSAP npm package: imports
- Client-side examples → Core animation: demonstrates
- Client-side examples → React integration: demonstrates