Skip to content
SkillModel-led3,432 tokens in use

GSAP Utils

Use the gsap.utils helpers for clamping, mapping, snapping, random values and array handling.

18,822 stars on the repository MIT Licensegreensock/gsap-skills · skills/gsap-utils
npx skills add https://github.com/greensock/gsap-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing GSAP Utils costs

62tokens idle
3,432tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter15/15
  • Structure9/25
  • Examples12/15
  • Output10/15
  • Size15/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Needs attention
  • Development activity12
  • Maintenance0
  • Community52
  • Maturity32
  • Momentum40

GSAP Utils is the official GreenSock skill for the gsap.utils helper functions. It covers clamp, mapRange, normalize and interpolate, random, snap, shuffle and distribute, unit and color parsing, and selector, toArray, pipe, wrap and wrapYoyo.

Each helper has a short section with usage, and the skill ends with best practices and a Do Not list.

What You Get

  • Reference sections for each gsap.utils function
  • Examples for ranges, random and snap values
  • Best practices and a Do Not list

Common Use Cases

  • Mapping scroll or mouse position to a value
  • Looping through a set of items with wrap
  • Picking random or snapped values

What Makes It Unique

It documents the helpers as one reference so the assistant uses them in place of hand-written math, with the function signatures spelled out.

Under The Hood

The skill is a single SKILL.md with no scripts. It guides the assistant to call gsap.utils in your code. It runs no commands and reaches no network.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers