testing-plugin/skills/test-tier-selection/SKILL.md
Auto-select test tiers based on change scope — unit for small, full suite for large. Use when running tests, discussing testing strategy, or after code modifications.
npx skillsauth add laurigates/claude-plugins test-tier-selectionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automatic guidance for selecting appropriate test tiers based on change context and scope.
| Use this skill when... | Use test-consult instead when... | |---|---| | Mechanically deciding which tier to run for a given change | Reviewing overall test pyramid balance or strategy | | Mapping change type (refactor, API, UI) to required tiers | Designing a new feature's test approach | | Justifying why an E2E run is or isn't needed | Diagnosing flaky tests in an existing suite | | Picking between test-quick, test-run, and test-full | Setting up a project's test infrastructure (use test-setup) |
| Tier | Duration | Scope | When to Run | |------|----------|-------|-------------| | Unit | < 30s | Single function/module | After every code change | | Integration | < 5min | Component interactions | After feature completion | | E2E | < 30min | Full user flows | Before commit/PR |
| Change Type | Unit | Integration | E2E | |-------------|------|-------------|-----| | Single function fix | Required | Skip | Skip | | New feature (1 file) | Required | Required | Skip | | Multi-file feature | Required | Required | Required | | Refactoring | Required | Required | Optional | | API changes | Required | Required | Required | | UI changes | Required | Optional | Required | | Bug fix (isolated) | Required | Optional | Skip | | Database changes | Required | Required | Required | | Config changes | Required | Required | Optional |
Escalate to Integration when:
Escalate to E2E when:
# Tier 1: Unit (fast feedback)
/test:quick
# Tier 2: Integration (feature completion)
/test:full --coverage
# Tier 3: E2E (pre-commit)
/test:full
Consult test-architecture agent when:
3 flaky tests detected
Consult test-runner agent when:
Consult system-debugging agent when:
1. Run /test:quick
2. If pass: Continue working
3. If fail: Fix immediately
1. Run /test:full --coverage
2. Check coverage targets met
3. If gaps: /test:consult coverage
1. Run /test:full
2. All tiers must pass
3. Review coverage report
1. /test:consult new-feature
2. Write tests (TDD)
3. Run /test:quick during development
4. Run /test:full before PR
This skill auto-activates when:
/test:* commands invokedtesting
Verify accumulated bug claims at upstream HEAD and dedup against trackers before filing issues. Use when filing upstream reports from backlogs, audit docs, or git-history findings.
documentation
Gate outward-bound text (upstream issues, docs, PR bodies) through isolated haiku fresh-reader critique before publishing. Use when an artifact must survive a reader with zero project context.
tools
Suggest improvements to SKILL.md content, descriptions, or tool config from eval results. Use when raising pass rates, fixing triggering, or iterating on a skill after evaluation.
tools
deadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches.