Test failure triage

From charlieviettq/awesome-agent-skill · View interactive version

Test failure triage is an AI agent skill from the GitHub repository charlieviettq/awesome-agent-skill. Systematically triage failing tests by grouping errors, fixing root causes in priority order, and verifying incrementally. Use when CI fails, test suite is broken, or multiple tests fail after a refactor or merge.

How to use this skill

Skill file

Test failure triage

Workflow

1. Baseline run

Run the project's standard test command and capture full output (counts, error types, files).

2. Group failures

Group by:

Prioritize groups with highest downstream impact (imports/config before assertion tweaks).

3. Fix order

  1. Infrastructure: imports, deps, config, env
  2. API/signature changes: renamed modules, function args
  3. Logic: assertion and business-logic failures

4. Verify per group

After each group fix, re-run a focused subset (file or pattern), then full suite at the end.

# Example patterns (adapt to project)
pytest path/to/test_file.py -v
pytest -k "pattern" -v
make test

Practices

Output

Short summary: total failures, groups fixed, remaining risks, final full-suite result.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.