Add guardrails (timeouts, retries only for known flaky external issues)
Document root cause in a short comment or test name if helpful
Finish with:
Root cause (1–3 bullets)
Fix summary (what changed)
Commands run + results
Remaining flakes/todos (if any)
1---2name: test-triage3description: Workflow:4---56Workflow:71) Reproduce8- Run the repo standard test command(s)9- Re-run with verbosity and isolate to failing project/suite10- If flaky: run failing tests multiple times to confirm nondeterminism11122) Classify failure13- Logic/assertion mismatch (product bug vs test bug)14- Race condition / timing / async ordering15- Environment/config differences (timezone, culture, file paths, OS)16- Data dependence / test order dependence17- Snapshot/golden file drift18- External dependency (network, DB, file system) not isolated19203) Minimize21- Reduce to smallest repro:22 - single test23 - single project24 - single seed dataset25- Identify the first bad commit if possible (git bisect guidance if needed)26274) Fix28- Prefer product fix over changing expected outputs29- Make tests deterministic:30 - freeze time (clock abstraction)31 - remove random seeds or seed them deterministically32 - isolate shared mutable state33 - ensure proper awaits and synchronization34- Add regression coverage (or strengthen existing coverage)35365) Prevent recurrence37- Add guardrails (timeouts, retries only for known flaky external issues)38- Document root cause in a short comment or test name if helpful3940Finish with:41- Root cause (1–3 bullets)42- Fix summary (what changed)43- Commands run + results44- Remaining flakes/todos (if any)
Run npx skillmds@latest add askaret/test-triage in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Workflow: It is listed under Productivity on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
askaret (@askaret) published this skill. Their other Agent Skills are listed on their SkillMD profile.