testing-animations-deterministically

testing-animations-deterministically is a skill for Claude Code, Codex from skydoves/android-testing-skills. It costs 156 tokens per session (4,177 once invoked), scanned A, original, Apache-2.0.

A guide for testing Jetpack Compose animations with a test-controlled clock. Jetpack Compose is Android's toolkit for building screens, and the controlled clock lets a test inspect exact points in an animation.

In plain words
What is it for?
Use it to check an animation halfway through, test fading or scrolling, handle looping progress indicators, or replace unreliable sleeps with explicit time steps.
Why use it?
It prevents tests from depending on real time, which can make them flaky, and handles looping animations that otherwise stop with an error during tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check an animation halfway through, test fading or scrolling, handle looping progress indicators, or replace unreliable sleeps with explicit time steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skydoves/android-testing-skills/testing-animations-deterministically
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.

Any agent
npx skills add skydoves/android-testing-skills --skill testing-animations-deterministically
Clone the repo
git clone --depth 1 https://github.com/skydoves/android-testing-skills

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 testing-animations-deterministically

README.md
[![agentmods](https://agentmods.dev/badge/skills/skydoves/android-testing-skills/testing-animations-deterministically/github.svg)](https://agentmods.dev/skills/skydoves/android-testing-skills/testing-animations-deterministically)
Your own site
<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/testing-animations-deterministically"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/testing-animations-deterministically/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 testing-animations-deterministically

Your own site · 80×15
<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/testing-animations-deterministically"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/testing-animations-deterministically.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,177 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 60
    Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.
    Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
How audits are shown
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.00156 $0.04177
Opus 5.5 $0.00062 $0.01671
Sonnet 5.5 $0.00031 $0.00835
Haiku 4.5 $0.00016 $0.00418

Measured 3mo ago against content hash 1105b7a1cdd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing-animations-deterministically 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 3mo 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.

compose/synchronization/testing-animations-deterministically/SKILL.md · 302 lines

How it starts

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

Testing Animations Deterministically — autoAdvance = false Or Bust

A Compose animation test that does not pause the clock is by definition flaky. With mainClock.autoAdvance = true (the default), the framework's InfiniteAnimationPolicy throws CancellationException as soon as an indeterminate animation starts, and finite animations finish in a single auto-advanced burst with no observable intermediate state. This skill teaches the five-line recipe that fixes that, plus the runOnUiThread-vs-runOnIdle gotcha that bites every developer who tries it for the first time.

When to use this skill

  • The test asserts an intermediate frame of an animation (mid-fade alpha, mid-scroll offset, mid-Crossfade dispose).
  • The composable contains an indeterminate animation (LinearProgressIndicator() with no progress argument, rememberInfiniteTransition, looping withFrameMillis).
  • The developer reports CancellationException("Infinite animations are disabled on tests") and asks how to make it stop.
  • The developer reaches for Thread.sleep(500) to "wait for the animation".
  • The developer's animation test passes locally and fails on CI, or vice versa.
  • The developer mentions autoAdvance, advanceTimeByFrame, advanceTimeBy, Crossfade, "flaky animation test", or InfiniteAnimationPolicy.

When NOT to use this skill

  • The animation is a side effect; the test only cares about the final state. Default autoAdvance = true is faster — see ../synchronizing-with-idle/SKILL.md.
  • The clock semantics themselves are unclear (frame model, rounding rules, v1 vs v2 dispatcher). Read ../controlling-the-test-clock/SKILL.md first.
  • The condition under test is not Compose state (a Job.isCompleted, a Mockito.verify). Use waitUntil or an IdlingResource from ../synchronizing-with-idle/SKILL.md.
  • The test uses screenshot comparison waiting on the RenderThread for ripple/elevation pixels. That is the one legitimate Thread.sleep site (skydoves hot take #7).

Read the full file on GitHub · 302 lines

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. 3mo ago First seen · 302 lines · 156 tokens per session scan A 1105b7a1cdd8

Subscribe to this mod's changes

testing-animations-deterministically is a skill published in the GitHub repository skydoves/android-testing-skills (351 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 156 tokens to every session and 4,177 once invoked, about $0.0006 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-30.

Related

testing-animations-deterministically compared with skills from other repositories

testing-animations-deterministically next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testing-animations-deterministicallyskydoves/android-testing-skillsSkill3516mo agoApache-2.0A156Claude Code, Codex
android-ui-journey-testingsickn33/agentic-awesome-skillsSkill51ktodayMITA27Claude Code
android_ui_verificationsickn33/agentic-awesome-skillsSkill51ktodayMITA22Claude Code
solopi-aialipay/SoloPiSkill6.8ktodayApache-2.0A82Codex
public-transitchromium/chromiumSkill25ktodayBSD-3-ClauseA53Claude Code, Codex
eas-simulatorexpo/skillsSkill4.3ktodayMITA251Claude Code, Codex
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code