Skip to content
Back to skills

Triage Test Failure

ASecurity

Diagnoses one failing test from its output and tells you whether the test or the code is wrong, with the evidence.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill triage-test-failure --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Triage Test Failure?

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

Security grade badge for Triage Test Failure
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-triage-test-failure-ai-agent-templates/badge)](https://www.skillsdirectory.com/skills/workspace-templates-triage-test-failure-ai-agent-templates)

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: triage-test-failure
description: Diagnoses one failing test from its output and tells you whether the test or the code is wrong, with the evidence.
disable-model-invocation: true
---

Triage this failing test: $ARGUMENTS (a test name, a file, or pasted output).

1. Run the test alone and capture the full output. Run it three times to see if the result is stable. Then run it with the rest of its file to check for order effects.
2. Read the test and the code it exercises. Identify exactly which assertion fails, expected against actual.
3. Check what changed recently: `git log -n 5 --oneline -- <test file> <source file>` and the working tree diff. Name the commit most likely responsible.
4. Look for flake causes: wall-clock time, timezone, random data without a seed, shared global state, network calls, unawaited promises, hash or dict ordering.
5. Reach a verdict: **code bug**, **stale test**, **flaky test**, or **environment**. Give the three strongest pieces of evidence.
6. Do not edit anything.

Report the verdict, the evidence, the smallest fix and where it goes. Ask whether to apply it.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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