Fix Failing Test — Testing skill for Claude Code
Fix a failing test the right way: read the failure, find the real cause, smallest fix, prove it.
How to install Fix Failing Test
Installs to ~/.claude/skills/tidybytetools-claude-code-commands-fix-failing-test/SKILL.md
mkdir -p ~/.claude/skills/tidybytetools-claude-code-commands-fix-failing-test && curl -fsSL https://raw.githubusercontent.com/tidybytetools/claude-code-commands/HEAD/commands/fix-failing-test.md -o ~/.claude/skills/tidybytetools-claude-code-commands-fix-failing-test/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Fix Failing Test does
description: "Fix a failing test the right way: read the failure, find the real cause, smallest fix, prove it" argument-hint: "[test name or file, optional]" allowed-tools: "Read Grep Glob Bash(git status *) Bash(git diff *) Bash(git log *) Bash(git show *) Bash(git blame *)"
Context (read-only snapshot taken when you run this)
- Status: !
git status --short --branch || true
Fix the failing test: $ARGUMENTS (find the failing ones if empty).
- Find the project's test command (pack
Alternatives in Testing
- Test Discovery — Discover and write missing tests for altimate-code 817 ★
- TDD Diagnostics.V1 — Follow strict TDD stages 272 ★
- Code Quality Fix — Refactor code to meet quality standards (smallest safe diff), then typecheck + test 52 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Bughunt Skill
Agent skill that plays your app or game like real users (seeded personas), checks invariants every step, and t
Logic Locate
Locate the root cause of a confirmed failure — use when you have a stack trace, failing test, or wrong output
Cha Fix
Write the failing test first, then the smallest fix that turns it green. One writer, one defect, one commit.
Pstack Correct
Find the mistakes agents keep repeating in this repo and make each one impossible. Try architecture first, the
Plan Bugfix
Find the root cause of a bug and plan a test-first fix
Root Cause Fix
Root-cause-first TDD loop for any bug or data fix. Forces a failing reproduction test BEFORE touching producti
Related Agents
Duel Fix Builder
Use when one established cause of a defect has a failing repro test and needs the smallest fix that makes that
Cdebug Fix
Leaf fix-implementation agent for /cdebug. Given a failing repro test and a root-cause analysis (both produced
Bug Investigation
Investigates a bug to its root cause and applies the smallest safe fix with a regression test. Use for defects