compare-cache-runs
Skill by tuist
Compares two tuist cache runs to report changes in duration and cache hit rate, and finds the targets that invalidated the cache. Built for developers using Tuist who want to see why cache hits dropped between builds.
Install compare-cache-runs
Built from the published package, never by AI.
git clone --depth 1 https://github.com/tuist/tuist /tmp/tuist && mkdir -p ~/.claude/skills && cp -r /tmp/tuist/skills/skills/compare-cache-runs ~/.claude/skills/compare-cache-runsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/tuist/tuist /tmp/tuist && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tuist/skills/skills/compare-cache-runs ~/.gemini/antigravity-cli/skills/compare-cache-runsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill compares two tuist cache runs, a base and a head, and reports changes in duration, status, and cache hit rate. It accepts cache run IDs, dashboard URLs, or branch names. If no base is given, it uses the project's default branch, usually main. If no head is given, it uses the current git branch.
It then looks for the targets that caused cache invalidation. It maps files changed between the two commits to Tuist targets, separates direct changes from dependency cascades, and classifies each invalidation as expected, unexpected, or cascade. The result is a summary with recommendations. It is for developers who want to understand why cache hits dropped between two runs.
Written from the project's SKILL.md and checked against it.
What it can do
- Resolve cache runsFetches base and head cache runs by ID, dashboard URL, or branch name.
- Compare top-level metricsChecks duration, status, target counts, and local and remote hits between two runs.
- Compute hit ratesCalculates base and head cache hit rates and the delta between them.
- Find root cause targetsMaps changed files from git diff to Tuist targets that had direct changes.
- Measure cascade impactCounts downstream targets invalidated because their dependency hash changed.
- Classify invalidationsLabels each invalidation as expected, unexpected, or cascade.
- Recommend fixesProduces a summary with recommendations to reduce cache misses.
What you need
- Tuist CLI with the tuist cache-run command
- A Tuist project with cache runs
- A git repository for branch detection and diffs
Try asking
- Compare the cache run on main with the one on feature-x
- Why did the cache hit rate drop between run-123 and run-456?
- Find which targets caused cache invalidation on this branch
Good to know
- Root cause detection uses git diff heuristics when the module cache target detail endpoint is unavailable
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/skills/compare-cache-runs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to compare-cache-runs
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
compare-cache-runs: common questions
What inputs does compare-cache-runs accept?
It accepts cache run IDs, dashboard URLs, or branch names. Without a base, it uses the project's default branch, usually main.
How does it find the cause of a cache miss?
It checks git diff between the base and head commits and maps changed files to Tuist targets. Targets with direct source changes are treated as likely root causes.
What does the cache hit rate measure here?
The skill computes (local hits plus remote hits) divided by cacheable targets, as a percentage, for both runs and reports the difference.
How do I install compare-cache-runs?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is compare-cache-runs free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is compare-cache-runs safe to use?
It scores 80 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to compare-cache-runs?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
