analyze-selective-testing — Claude Code skill: setup and usage
analyze-selective-testing diagnoses Tuist selective test runs in Xcode to spot skipped targets and identify cache invalidation causes.
no license 310 installs ★ 35 updated 2026-03-27
npx skills add tuist/agent-skills --skill analyze-selective-testing -a claude-codeWhat analyze-selective-testing does
This skill guides coding agents through inspecting Xcode test execution data reported by Tuist CLI. It inspects test run identifiers using tuist test xcode target list, classifying target outcomes into cache misses or skips resolved from local and remote storage. It then tallies the overall skipped ratio.
If selective efficiency drops, the skill inspects runs side by side. It compares target hashes alongside environment metadata such as xcode_version or macos_version, distinguishing global build environment drifts from targeted invalidation caused by shared dependency updates.
Running these checks requires an active Tuist setup capable of querying test run records.
What it helps with
- diagnose why unchanged Xcode test targets started executing in CI
- compare two Tuist test executions to isolate altered target hashes
- calculate selective testing hit rates across local and remote caches
- pinpoint the root shared dependency triggering widespread test invalidation
Example prompts for the agent
- Analyze selective testing hit rate for the most recent CI run on this branch
- Compare test runs run-101 and run-202 with Tuist to pinpoint what caused the cache miss
- List all test targets that fell back to a miss in test run test-884
How to install analyze-selective-testing
1Skills CLI (Vercel)
npx skills add tuist/agent-skills --skill analyze-selective-testing -a claude-code2Manually: put the files in place
~/.claude/skills/analyze-selective-testing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/analyze-selective-testing/
1Skills CLI (Vercel)
npx skills add tuist/agent-skills --skill analyze-selective-testing -a codex2Manually: put the files in place
.agents/skills/analyze-selective-testing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add tuist/agent-skills --skill analyze-selective-testing -a cursor2Manually: put the files in place
.cursor/skills/analyze-selective-testing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install tuist/agent-skills skills/analyze-selective-testing2Manually: put the files in place
.github/skills/analyze-selective-testing/SKILL.md1Skills CLI (Vercel)
npx skills add tuist/agent-skills --skill analyze-selective-testing -a gemini-cli2Platform CLI
gemini skills install https://github.com/tuist/agent-skills --path skills/analyze-selective-testingManually: put the files in place
.devin/skills/analyze-selective-testing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add tuist/agent-skills --skill analyze-selective-testing -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about analyze-selective-testing
How to install analyze-selective-testing in Claude Code?
Run npx skills add tuist/agent-skills --skill analyze-selective-testing -a claude-code in your terminal.
What does analyze-selective-testing do?
It inspects Tuist test run outputs, calculates the proportion of skipped targets, and investigates why test caching broke between runs.
What dependencies does this skill require?
It relies directly on Tuist CLI commands like tuist test show and access to recorded test runs for your project.