# greensock/gsap-skills architecture

> Architecture diagram of the GitHub repository greensock/gsap-skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/greensock/gsap-skills
- Repository: https://github.com/greensock/gsap-skills

## Overview

#### 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: [`skills/gsap-core/SKILL.md`](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-core/SKILL.md) (Core animation), [`skills/gsap-react/SKILL.md`](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-react/SKILL.md) (React integration), [`examples/vanilla/main.js`](https://github.com/greensock/gsap-skills/blob/main/examples/vanilla/main.js) (Client-side examples), [`skills/gsap-scrolltrigger/SKILL.md`](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-scrolltrigger/SKILL.md) (ScrollTrigger)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_distribution["Distribution"]
  node_skills["skills directory<br/>skill bundle"]
  node_skills_cli["skills CLI<br/>distribution channel"]
  node_claude_marketplace["Claude marketplace<br/>agent platform<br/>[plugin.json]"]
  node_cursor_rules["Cursor remote rules<br/>agent platform<br/>[plugin.json]"]
end

subgraph group_catalog["Discovery &amp; Routing"]
  node_skill_index["Skill discovery index<br/>routing index<br/>[llms.txt]"]
  node_agent_task["GSAP coding task<br/>consumer input"]
end

subgraph group_guidance["Skill Guidance"]
  node_core_skill["Core animation<br/>skill package<br/>[SKILL.md]"]
  node_timeline_skill["Timeline sequencing<br/>skill package<br/>[SKILL.md]"]
  node_scroll_skill["ScrollTrigger<br/>skill package<br/>[SKILL.md]"]
  node_plugins_skill["GSAP plugins<br/>skill package<br/>[SKILL.md]"]
  node_performance_skill["Performance policy<br/>skill package<br/>[SKILL.md]"]
  node_utils_skill["GSAP utilities<br/>skill package<br/>[SKILL.md]"]
end

subgraph group_adapters["Agent &amp; Framework Adapters"]
  node_react_skill["React integration<br/>skill package<br/>[SKILL.md]"]
  node_frameworks_skill["Framework integration<br/>skill package<br/>[SKILL.md]"]
  node_copilot_instructions["Copilot instructions<br/>path-scoped guidance"]
end

subgraph group_examples["Reference Examples"]
  node_reference_examples["Client-side examples<br/>reference implementations<br/>[main.js]"]
  node_gsap_npm{{"GSAP npm package<br/>external dependency"}}
end

node_skills_cli -->|"installs"| node_skills
node_claude_marketplace -->|"publishes"| node_skills
node_cursor_rules -->|"references"| node_skills
node_skills -->|"contains"| node_skill_index
node_skill_index -->|"routes guidance for"| node_agent_task
node_agent_task -->|"selects"| node_core_skill
node_agent_task -->|"selects"| node_timeline_skill
node_agent_task -->|"selects"| node_scroll_skill
node_agent_task -->|"selects"| node_plugins_skill
node_agent_task -->|"selects"| node_react_skill
node_core_skill -->|"provides primitives to"| node_timeline_skill
node_plugins_skill -.->|"separates optional APIs from"| node_scroll_skill
node_performance_skill -.->|"constrains"| node_core_skill
node_performance_skill -.->|"constrains"| node_scroll_skill
node_utils_skill -.->|"supports"| node_core_skill
node_react_skill -.->|"specializes lifecycle patterns from"| node_frameworks_skill
node_copilot_instructions -.->|"mirrors guidance"| node_react_skill
node_reference_examples -->|"imports"| node_gsap_npm
node_reference_examples -.->|"demonstrates"| node_core_skill
node_reference_examples -.->|"demonstrates"| node_react_skill

click node_claude_marketplace "https://github.com/greensock/gsap-skills/blob/main/.claude-plugin/plugin.json"
click node_cursor_rules "https://github.com/greensock/gsap-skills/blob/main/.cursor-plugin/plugin.json"
click node_skill_index "https://github.com/greensock/gsap-skills/blob/main/skills/llms.txt"
click node_core_skill "https://github.com/greensock/gsap-skills/blob/main/skills/gsap-core/SKILL.md"
click node_timeline_skill "https://github.com/greensock/gsap-skills/blob/main/skills/gsap-timeline/SKILL.md"
click node_scroll_skill "https://github.com/greensock/gsap-skills/blob/main/skills/gsap-scrolltrigger/SKILL.md"
click node_plugins_skill "https://github.com/greensock/gsap-skills/blob/main/skills/gsap-plugins/SKILL.md"
click node_performance_skill "https://github.com/greensock/gsap-skills/blob/main/skills/gsap-performance/SKILL.md"
click node_utils_skill "https://github.com/greensock/gsap-skills/blob/main/skills/gsap-utils/SKILL.md"
click node_react_skill "https://github.com/greensock/gsap-skills/blob/main/skills/gsap-react/SKILL.md"
click node_frameworks_skill "https://github.com/greensock/gsap-skills/blob/main/skills/gsap-frameworks/SKILL.md"
click node_copilot_instructions "https://github.com/greensock/gsap-skills/blob/main/.github/instructions/react.instructions.md"
click node_reference_examples "https://github.com/greensock/gsap-skills/blob/main/examples/vanilla/main.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_skills,node_skills_cli,node_claude_marketplace,node_cursor_rules toneBlue
class node_skill_index,node_agent_task toneAmber
class node_core_skill,node_timeline_skill,node_scroll_skill,node_plugins_skill,node_performance_skill,node_utils_skill toneMint
class node_react_skill,node_frameworks_skill,node_copilot_instructions toneRose
class node_reference_examples,node_gsap_npm toneIndigo
```

## Components

### Distribution

Portable agent-skill delivery surfaces.

- **skills directory**: skill bundle · Portable repository output consumed by coding agents.
- **skills CLI**: distribution channel
- [Claude marketplace](https://github.com/greensock/gsap-skills/blob/main/.claude-plugin/plugin.json): agent platform · `.claude-plugin/plugin.json`
- [Cursor remote rules](https://github.com/greensock/gsap-skills/blob/main/.cursor-plugin/plugin.json): agent platform · `.cursor-plugin/plugin.json`

### Discovery & Routing

Skill selection for GSAP tasks.

- [Skill discovery index](https://github.com/greensock/gsap-skills/blob/main/skills/llms.txt): routing index · Names, purposes, and trigger terms for skill-aware agents. · `skills/llms.txt`
- **GSAP coding task**: consumer input · An agent selects guidance before generating target-project code.

### Skill Guidance

Authoritative instructional packages.

- [Core animation](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-core/SKILL.md): skill package · Tweens, easing, durations, staggers, defaults, and properties. · `skills/gsap-core/SKILL.md`
- [Timeline sequencing](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-timeline/SKILL.md): skill package · Builds sequencing and playback on core primitives. · `skills/gsap-timeline/SKILL.md`
- [ScrollTrigger](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-scrolltrigger/SKILL.md): skill package · Scroll lifecycle, refresh, and cleanup guidance. · `skills/gsap-scrolltrigger/SKILL.md`
- [GSAP plugins](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-plugins/SKILL.md): skill package · Optional plugin registration and feature APIs. · `skills/gsap-plugins/SKILL.md`
- [Performance policy](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-performance/SKILL.md): skill package · Transform-first and costly scroll/layout constraints. · `skills/gsap-performance/SKILL.md`
- [GSAP utilities](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-utils/SKILL.md): skill package · Mapping, interpolation, snapping, selection, and composition. · `skills/gsap-utils/SKILL.md`

### Agent & Framework Adapters

Platform-specific instructions and lifecycle guidance.

- [React integration](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-react/SKILL.md): skill package · useGSAP, SSR-aware setup, and unmount cleanup. · `skills/gsap-react/SKILL.md`
- [Framework integration](https://github.com/greensock/gsap-skills/blob/main/skills/gsap-frameworks/SKILL.md): skill package · Vue, Svelte, and general mount-scoped animation patterns. · `skills/gsap-frameworks/SKILL.md`
- [Copilot instructions](https://github.com/greensock/gsap-skills/blob/main/.github/instructions/react.instructions.md): path-scoped guidance · 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](https://github.com/greensock/gsap-skills/blob/main/examples/vanilla/main.js): reference implementations · Vanilla, React, Vue, and Nuxt usage examples. · `examples/vanilla/main.js`
- **GSAP npm package**: external dependency · Public runtime package imported by examples and target projects.

## Connections

- 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
