gsap

gsap is a skill for Claude Code, Codex from chama-x/GroundRules. It costs 23 tokens per session (330 once invoked), scanned A, original, MIT.

A configuration guide for using GSAP, a JavaScript library for web animations, in React and Next.js applications. It sets rules for how animations are connected to page elements, cleaned up, triggered during scrolling, and kept efficient.

In plain words
What is it for?
It helps implement GSAP animations in React or Next.js, including scroll-based effects and animations that respond to changing layouts. It also guides which visual properties to animate for better performance.
Why use it?
Animation code can cause memory leaks, layout problems, or slow pages when it is attached or updated incorrectly. These rules define a consistent way to structure and limit animations.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/chama-x/groundrules/gsap
Any agent
npx skills add chama-x/GroundRules --skill gsap
Clone the repo
git clone --depth 1 https://github.com/chama-x/GroundRules

Made for: Claude Code, Codex.

Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 330 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00023 $0.00330
Opus 5 $0.00012 $0.00165
Sonnet 5 $0.00005 $0.00066
Haiku 4.5 $0.00002 $0.00033

Measured 3d ago against content hash 7075d07a8188, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gsap scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/gsap/SKILL.md · 24 lines

What it actually says

GSAP Architecture Configuration

This is a configuration profile, not a textbook. You already know the GSAP API. Apply these constraints strictly when writing GSAP code for this project:

React Integration

  1. Hook: ALWAYS use the @gsap/react useGSAP hook. Never use raw useEffect or useLayoutEffect for GSAP.
  2. Scope: Always pass the container ref to the useGSAP scope { scope: containerRef }.
  3. Cleanup: Rely on useGSAP's automatic cleanup. Do not manually kill tweens unless dynamically created outside the initial render cycle.

ScrollTrigger Rules

  1. Pinning: Pin to a specific local DOM node ref, never to document.body or window.
  2. Markers: Disable markers in production.
  3. Refresh: If layout changes dynamically (images loading, accordions), ensure ScrollTrigger.refresh() is called, but debounce it.

Performance Constraints

  1. Properties: Animate ONLY composited properties: transform (x, y, scale, rotation) and opacity.
  2. Layout Thrashing: NEVER animate width, height, top, left, margin, or padding. If you must scale a layout element, use transform: scale().
  3. Will-Change: Use will-change: transform cautiously, only on elements currently animating or about to animate.
Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 24 lines · 23 tokens per session scan A 7075d07a8188

Subscribe to this mod's changes

gsap is a skill published in the GitHub repository chama-x/GroundRules (5 stars, last pushed 19d ago), licensed MIT. It adds 23 tokens to every session and 330 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.