fix-failing-tests

fix-failing-tests is a skill for Claude Code, Codex from googleapis/mcp-toolbox. It costs 87 tokens per session (2,162 once invoked), scanned A, original, Apache-2.0.

A debugging workflow for a failing test, build, or continuous-integration job. It starts with the real error, reproduces and narrows the failure, finds the underlying cause, and then fixes that cause.

In plain words
What is it for?
Use it when tests or CI are failing, a build breaks after a change, or many packages fail together. It helps diagnose the failure, confirm the cause, implement a fix, and verify the relevant checks.
Why use it?
It prevents developers from guessing or applying a symptom-only fix when several parts of a project fail. Every factual conclusion is tied to evidence such as code lines, logs, build records, or a commit.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go test -race -run 'TestX/subtest' -v ./path/... # one subtest.

Good fit Use it when tests or CI are failing, a build breaks after a change, or many packages fail together. It helps diagnose the failure, confirm the cause, implement a fix, and verify the relevant checks.

Compare 6 skills from other repositories ↓
About the project

MCP Toolbox for Databases is an open-source Model Context Protocol server that connects AI agents, development environments, and applications to enterprise databases through ready-made or custom tools. It is for exploring schemas, querying data, generating code, and building specialized database tools for production agents. The catalogue includes its skills, instructions, and MCP server integration.

googleapis/mcp-toolbox · 16,665 stars · on GitHub · mcp-toolbox.dev

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/googleapis/mcp-toolbox
agentmods
npx agentmods add skills/googleapis/mcp-toolbox/fix-failing-tests

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-failing-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/googleapis/mcp-toolbox/fix-failing-tests/github.svg)](https://agentmods.dev/skills/googleapis/mcp-toolbox/fix-failing-tests)
Your own site
<a href="https://agentmods.dev/skills/googleapis/mcp-toolbox/fix-failing-tests"><img src="https://agentmods.dev/badge/skills/googleapis/mcp-toolbox/fix-failing-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-failing-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/googleapis/mcp-toolbox/fix-failing-tests"><img src="https://agentmods.dev/badge/skills/googleapis/mcp-toolbox/fix-failing-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,162 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.02162
Opus 5.5 $0.00035 $0.00865
Sonnet 5.5 $0.00017 $0.00432
Haiku 4.5 $0.00009 $0.00216

Measured 1mo ago against content hash 14870e3511df, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-failing-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/maintainer/fix-failing-tests/SKILL.md · 194 lines

How it starts

The opening of the file, as written. The whole thing — 194 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagnose and Fix Failing Tests

Scope: googleapis/mcp-toolbox

Debug the way a careful developer does. Read the real error, find out what changed, reproduce it, shrink it until the cause is forced into the open, then fix the cause rather than the symptom.

The Evidence Rule

Every factual claim MUST cite evidence: a path with line numbers, a build ID, a log excerpt, or a SHA. Otherwise mark it [UNVERIFIED] and say what would confirm it.

Open every line you cite, including this skill's. Ensure all pointers are correct.

1. Read the actual failure

How you arrived decides what evidence you already hold and how much of step 2 you can skip.

You arrived from What you have Where that puts you
A gate failing on your PR A diff and a known-good parent Your change is the prime suspect, but confirm the same job is green on main before assuming it
A periodic-failure issue A build link buried in a long thread Take the newest comment's link. The title often describes a different, already-fixed failure
An issue someone filed A claim, often without a log Establish that it still fails before anything else. Reports go stale, and the fix may have landed already
main is red A range of commits, none of them yours Bisect over merges. Say you are inheriting it rather than absorbing it into your change
Fails locally, green in CI A reproduction Suspect your environment: stale build cache, leftover local state, missing env, different Go version
Green locally, fails in CI Neither Suspect what CI does differently: -race, another OS, concurrency, a clean checkout, no cached state

Whatever the door, get to the real error before theorising. Do not work from the job summary or the last line of the log. Find the first real error and read it in full.

  • Did a test fail at all? Some red jobs contain zero failing tests: a compile error before the test step, a coverage threshold, a separate lint job, or a shard that skipped itself. Confirm a real test failure before debugging one. references/ci-map.md lists the jobs that go red with everything green.
  • Which error is the cause? Compile errors cascade, so the first is the cause and the rest are consequences. Assertion failures do not cascade, so read them all: three unrelated ones mean something different from thirty identical ones.
  • What kind of failure is it? An assertion, a panic, a timeout, and a connection error each imply a different investigation. A connection error in a test that never touches the network usually means the process under test died.
  • What exactly was expected versus produced? Get the diff, the test name, and the subtest name. "The test failed" is not a starting point.

Read the full file on GitHub · 194 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 194 lines · 87 tokens per session scan A 14870e3511df

Subscribe to this mod's changes

fix-failing-tests is a skill published in the GitHub repository googleapis/mcp-toolbox (16,665 stars, last pushed today), licensed Apache-2.0. It adds 87 tokens to every session and 2,162 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

examples-qa

Verify Instructor behavior through the repository's ./examples/ suite in pass, live record, or hermetic replay mode. Use when running selected examples or the corpus, capturing and reusing recorded LLM HTTP responses, diagnosing hub results, or distinguishing real errors, assertion failures, skipped examples, and…

cognesy/instructor-php · 67 tokens

test-hang-watchdog

Prevent and diagnose hanging or long-running Gradle unit tests (> 30s) in Android/Kotlin coroutines codebases. Use when running tests, when a test execution takes unexpectedly long, when background test tasks appear frozen, or when taking thread dumps (jstack) to unblock coroutine deadlocks.

niki914/zafiro · 66 tokens

tricorder-cli

Full CLI reference for the tricorder daemon (build diagnostics, test results, source lookup, eval comments, logs). This is the fallback invoked by the tricorder skill when the tricorder-mcp MCP tools aren't available or aren't working — invoke tricorder first; it decides whether this is needed.

tweag/tricorder · 67 tokens

tricorder-mcp

Check GHCi build status, diagnostics, and test results for this Haskell project via the tricorder MCP server. Use when asked to check the build, see compiler errors/warnings, or run tricorder.

tweag/tricorder · 48 tokens

tricorder

Check GHCi build status, compiler errors/warnings, or test results for this Haskell project. Use when asked to check the build, see errors/warnings, or run tricorder.

tweag/tricorder · 42 tokens

review

Review code changes, pull requests, patches, or a scoped code area for actionable correctness, security, compatibility, and test risks with file and line evidence. Use for review or audit requests; do not use for general proofreading, feature implementation, or debugging a reported failure when the user wants a fix.

bigduu/Bamboo-agent · 62 tokens