Skip to content
Back to skills

Fix Failing Tests

ASecurity

Runs the suite, groups failures by shared cause and fixes one cause at a time, rerunning after each fix.

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

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill fix-failing-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fix Failing Tests?

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

Security grade badge for Fix Failing Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-fix-failing-tests/badge)](https://www.skillsdirectory.com/skills/workspace-templates-fix-failing-tests)

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: fix-failing-tests
description: Runs the suite, groups failures by shared cause and fixes one cause at a time, rerunning after each fix.
argument-hint: "[test path, name pattern or empty for all]"
user-invocable: true
disable-model-invocation: true
---

Fix the failing tests. Scope: $ARGUMENTS (the full suite if empty).

1. Find the test command in package.json, Makefile, pyproject or CI config and run it. Save the failing test names and first error line for each.
2. Group failures by cause: same stack frame, same error message, same missing fixture, same changed import. Name each group and count its tests.
3. Take the largest group first. Read the test and the code it exercises and decide whether the code is wrong, the test is stale, or the environment is the problem (time, order, network, missing env var).
4. Fix the root cause with the smallest change. Never delete a test, skip it, loosen an assertion or add retries just to turn it green. If one of those is truly right, explain why and ask.
5. Rerun only the affected tests, then the full suite before moving to the next group.

Finish with a summary: groups fixed, tests per group, what changed, anything still red with your diagnosis. Ask before committing.

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.