Skip to content
Back to skills

Test Triage

ASecurity

Classify failing tests as flaky vs. real regressions and propose a next step for each. Invoke when the user pastes failing test output, asks to triage CI failures, or asks "are these tests flaky".

  • 86 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 5, 2026
ai-agentsbashgitsecurity

Security analysis

A100/100

Scanned June 5, 2026

npx -y skills add MuhammadUsmanGM/claude-code-best-practices --skill test-triage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Triage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Triage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/muhammadusmangm-test-triage/badge)](https://www.skillsdirectory.com/skills/muhammadusmangm-test-triage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-triage
description: Classify failing tests as flaky vs. real regressions and propose a next step for each. Invoke when the user pastes failing test output, asks to triage CI failures, or asks "are these tests flaky".
allowed-tools: Bash(git log:*), Bash(git blame:*), Read, Grep, Glob
---

# Test Triage

Given a batch of failing tests, classify each and propose one concrete action per test.

## Input sources

Prefer in this order:
1. Test output the user pasted.
2. A CI log file the user points at (Read it).
3. Running the test suite locally — only if the user asks.

## For each failing test

1. Read the test file and the code under test.
2. `git log -5 --follow <test-file>` and the same for the implementation. Look for changes in the last ~24h or the last PR.
3. Classify:
   - **Real regression** — behavior under test changed in a recent commit, or the assertion is logically correct and the implementation is wrong.
   - **Flaky** — test depends on wall-clock time, ordering, network, randomness, shared global state, or external services without a stub.
   - **Environmental** — passes locally, fails in CI (or vice versa) due to missing env, OS differences, or toolchain versions.
   - **Stale test** — intended behavior changed; the test wasn't updated.
4. Propose one action: *fix the code*, *update the test*, *stub the dependency*, *add a retry with rationale*, *delete the test*, *reproduce locally with <command>*.

## Output format

A table, one row per failing test:

| Test | Classification | Likely cause | Proposed action |
|------|----------------|--------------|-----------------|

Then, below the table, list the tests ranked by **fix-first priority** (real regressions > stale tests > environmental > flaky-with-high-frequency > low-frequency flakes).

## Rules

- Do not modify code or tests during triage. This skill only diagnoses.
- If you can't classify a test in under ~90 seconds of investigation, mark it `unknown` and say what you'd need.
- Flag any test that looks security-sensitive (auth, crypto, input validation) so the user doesn't wave it through as "flaky."

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.