add-animation

A command that adds a web animation to the project's shared semantic animation catalogue. It creates the animation utility and keyframes there, then rebuilds the catalogue.

In plain words
What is it for?
Use it when a component needs a new animation, including when compliance checks report an unknown animation class. Pair the result with reduced-motion handling.
Why use it?
It keeps animations in one tracked location and prevents components from using unregistered animations or their own isolated keyframes.

Command for Claude Code

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 commands/aziontech/webkit/add-animation
Clone the repo
git clone --depth 1 https://github.com/aziontech/webkit

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 351 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.00000 $0.00351
Opus 5 $0.00000 $0.00176
Sonnet 5 $0.00000 $0.00070
Haiku 4.5 $0.00000 $0.00035

Measured yesterday against content hash 114a4e82ed33, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

add-animation 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 yesterday.

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.

.claude/commands/add-animation.md · 23 lines

What it actually says

/add-animation [component]

Scaffold a new webkit animation in the one correct place — the semantic animation catalog — so components never ship a component-local @keyframes or an off-catalog animate-[…]. Triggered by hand, or pointed at by validate-spec-compliance when a component uses an animate-* that is not yet in the catalog.

Run the add-animation skill (.claude/skills/add-animation/SKILL.md). It:

  1. Adds a .animate-<name> utility + its @keyframes to packages/theme/src/tokens/semantic/animations.js, using the duration / curve tokens from primitives/animations/animate.js — published as @aziontech/theme/animations — (never a raw ms / cubic-bezier literal).
  2. Records a Theme gaps row in the component's .specs/<component>.md (when a component is given) so the addition is tracked.
  3. Regenerates the catalog (pnpm --filter @aziontech/webkit catalog:build) so tokens.animations includes <name> and the compliance cross-check passes.
  4. Reminds you to pair the class with motion-reduce:* in the component.

Do not edit .claude/docs/DESIGN.md — the catalog + semantic/animations.js are the source of truth; DESIGN.md is a human mirror updated separately.

<name> is kebab-case (e.g. slide-left). The keyframe name is its camelCase form.

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. yesterday First seen · 23 lines · 0 tokens per session scan A 114a4e82ed33

Subscribe to this mod's changes

add-animation is a command published in the GitHub repository aziontech/webkit (2 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 351 tokens. 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.