compose-motion

compose-motion is a skill for Claude Code, Codex from AThevon/genjutsu. It costs 29 tokens per session (3,294 once invoked), scanned A, a copy of compose-motion, MIT.

A foundation guide for animations in Jetpack Compose, Android's toolkit for building user interfaces with Kotlin.

In plain words
What is it for?
Use it for value animations, visibility changes, crossfades, coordinated states, looping effects, shared elements, layout changes, and drag interactions.
Why use it?
It helps match common animation needs with the appropriate Compose API instead of using unsuitable or outdated techniques.

Skill for Claude CodeCodex

Part of the genjutsu plugin — 17 skills shipped together

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/athevon/genjutsu/compose-motion
Any agent
npx skills add AThevon/genjutsu --skill compose-motion
Clone the repo
git clone --depth 1 https://github.com/AThevon/genjutsu

Made for: Claude Code, Codex.

Or install genjutsu, the plugin that ships this one along with the rest of its 17 skills.

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 compose-motion

README.md
[![agentmods](https://agentmods.dev/badge/skills/athevon/genjutsu/compose-motion.svg)](https://agentmods.dev/skills/athevon/genjutsu/compose-motion)
Your own site
<a href="https://agentmods.dev/skills/athevon/genjutsu/compose-motion"><img src="https://agentmods.dev/badge/skills/athevon/genjutsu/compose-motion.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,294 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 92% copy Near-identical to another mod 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.00029 $0.03294
Opus 5 $0.00015 $0.01647
Sonnet 5 $0.00006 $0.00659
Haiku 4.5 $0.00003 $0.00329

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

Security

Grade A, and why

compose-motion 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 4d 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.

Origin

This is a copy

92% identical to compose-motion — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/_jutsu/compose-motion/SKILL.md · 360 lines

How it starts

The opening of the file, as written. The whole thing — 360 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Compose Motion - Sub-skill

Jetpack Compose animation core. Loaded for Android Compose and Compose Multiplatform projects. Concise rules here. Deep-dive in references/. Baseline: current stable Jetpack Compose (1.7+). Modern stable APIs only - no swipeable, no animateContentSize hacks where AnimatedContent is correct.


API Decision Tree

Need API
Single value over time animateFloatAsState, animateDpAsState, animateColorAsState, etc.
Visibility / mount-unmount AnimatedVisibility(visible) { ... }
Crossfade between states Crossfade(target) { state -> ... }
Multi-state coordinated updateTransition(target).animateFloat { ... }
Manual control / interruption Animatable(initialValue) + animateTo(...)
Looping / infinite rememberInfiniteTransition().animateFloat(...)
Shared elements SharedTransitionLayout + Modifier.sharedElement(...) (Compose 1.7+)
Layout swap with anim AnimatedContent(target) { ... }
Drag / swipe Modifier.draggable + Animatable.snapTo/animateTo, or Modifier.anchoredDraggable for snap-points

Rule: climb the ladder only when needed. animate*AsState covers 70% of cases. Reach for Animatable only when you need to interrupt, chain, or read velocity.


Spring API (opinionated defaults)

Use Spec
UI snap (modal, drawer, tab) spring(stiffness = Spring.StiffnessMediumLow, dampingRatio = Spring.DampingRatioNoBouncy)
Tactile (button press release, toggle) spring(stiffness = Spring.StiffnessMedium, dampingRatio = 0.85f)
Bouncy reveal (toast, FAB, success) spring(stiffness = Spring.StiffnessLow, dampingRatio = Spring.DampingRatioMediumBouncy)
Drag follow (1:1 finger tracking) spring(stiffness = Spring.StiffnessHigh, dampingRatio = 1f)

Stiffness constants: VeryLow 200, Low 400, MediumLow 700, Medium 1500, High 10000. Higher = faster settle. Damping constants: HighBouncy 0.2, MediumBouncy 0.5, LowBouncy 0.75, NoBouncy 1.0. Below 1.0 overshoots. Springs ignore durationMillis; if you need a deterministic duration, use tween(...) instead.

Read the full file on GitHub · 360 lines

Files

What ships with it

3 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. 4d ago First seen · 360 lines · 29 tokens per session scan A e20a68002e3c

Subscribe to this mod's changes

compose-motion is a skill published in the GitHub repository AThevon/genjutsu (316 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 3,294 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to compose-motion, differing in 4 lines, and is treated as a copy.