GroundRules: Skill for Claude Code

.agents/skills/gsap/SKILL.md

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

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is chama-x/GroundRules's own configuration. It tells Claude Code and Codex how to work on GroundRules itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything GroundRules configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chama-x/GroundRules. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chama-x/GroundRules/master/.agents/skills/gsap/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/chama-x/GroundRules

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gsap

README.md
[![agentmods](https://agentmods.dev/badge/skills/chama-x/groundrules/gsap/github.svg)](https://agentmods.dev/skills/chama-x/groundrules/gsap)
Your own site
<a href="https://agentmods.dev/skills/chama-x/groundrules/gsap"><img src="https://agentmods.dev/badge/skills/chama-x/groundrules/gsap/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gsap

Your own site · 80×15
<a href="https://agentmods.dev/skills/chama-x/groundrules/gsap"><img src="https://agentmods.dev/badge/skills/chama-x/groundrules/gsap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00023 $0.00330
Opus 5.5 $0.00009 $0.00132
Sonnet 5.5 $0.00005 $0.00066
Haiku 4.5 $0.00002 $0.00033

Measured 1mo ago against content hash 7075d07a8188, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2mo ago), licensed MIT. It adds 23 tokens to every session and 330 once invoked, about $0.0001 per session on Opus 5.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.