# analyze-selective-testing

analyze-selective-testing diagnoses Tuist selective test runs in Xcode to spot skipped targets and identify cache invalidation causes.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 310 installs · ★ 35 repo stars
- Author: tuist
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/tuist/agent-skills/tree/HEAD/skills/analyze-selective-testing/SKILL.md
- Updated: 2026-03-27
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/analyze-selective-testing

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add tuist/agent-skills --skill analyze-selective-testing -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/analyze-selective-testing/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/analyze-selective-testing/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add tuist/agent-skills --skill analyze-selective-testing -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/analyze-selective-testing/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add tuist/agent-skills --skill analyze-selective-testing -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/analyze-selective-testing/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install tuist/agent-skills skills/analyze-selective-testing
```

2. **Manually: put the files in place**
- File: `.github/skills/analyze-selective-testing/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add tuist/agent-skills --skill analyze-selective-testing -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/tuist/agent-skills --path skills/analyze-selective-testing
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/analyze-selective-testing/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add tuist/agent-skills --skill analyze-selective-testing -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/tuist/agent-skills/tree/HEAD/skills/analyze-selective-testing/SKILL.md

## When to use it
- 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
- 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

## Similar
- [swift-testing](https://affpapa.org/en/nevibecode/skills/swift-testing.md) — skill · 4700 installs
- [cmux-testing](https://affpapa.org/en/nevibecode/skills/cmux-testing.md) — skill · 5100 installs
- [developing-ios-apps](https://affpapa.org/en/nevibecode/skills/developing-ios-apps.md) — skill · 1600 installs
- [limrun-ios-simulator](https://affpapa.org/en/nevibecode/skills/limrun-ios-simulator.md) — skill · 45300 installs
- [argent-ios-device-setup](https://affpapa.org/en/nevibecode/skills/argent-ios-device-setup.md) — skill · 17100 installs
- [limrun-xcode](https://affpapa.org/en/nevibecode/skills/limrun-xcode.md) — skill · 45300 installs

From the same set: [tuist/agent-skills](https://affpapa.org/en/nevibecode/by/tuist/agent-skills.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
