Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Fix Failing Tests?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/arpan404-fix-failing-tests)
---
name: fix-failing-tests
description: Find and fix failing tests or a red CI run.
---
# Fix failing tests
1. Call `context` with `topics: ["notes", "prs", "changes"]`. Project notes often say how tests run here (for example "use `bun run test`, never `bun test`"). Follow them. `prs` shows whether CI on a linked pull request is failing.
2. Reproduce the failure first, running only the failing test files rather than the whole suite. Read the first real error, not the last line.
3. Find the cause before you change anything. Decide whether the code or the test is wrong. Never weaken an assertion just to make it pass.
4. Make the smallest fix, then rerun the same tests, then their neighbours.
5. If several unrelated failures need fixing, you may hand independent ones to children with one `delegate` call (one task each), then collect them with `wait`.
6. If you learned how this project's tests must be run, save it with `note_add` so the next thread doesn't relearn it.