fix-failing-tests

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

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

Made for: Claude Code, Codex.

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. Scan, not verified.
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 $0.00087 $0.02162
Opus 5 $0.00044 $0.01081
Sonnet 5 $0.00017 $0.00432
Haiku 4.5 $0.00009 $0.00216

Measured yesterday against content hash 14870e3511df, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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,283 stars, last pushed today), licensed Apache-2.0. It adds 87 tokens to every session and 2,162 once invoked, about $0.0004 per session on Opus 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

a2ui-renderer

Render A2UI (Agent-to-UI declarative surfaces) in CopilotKit v2. Enable the runtime via CopilotRuntime({ a2ui: {...} }), then enable the provider via . Auto-activates via /info — do NOT manually pass renderActivityMessages. createA2UIMessageRenderer ships from @copilotkit/react-core/v2; low-level primitives…

CopilotKit/CopilotKit · 175 tokens

copilotkit-develop

Use when building AI-powered features with CopilotKit v2 -- adding chat interfaces, registering frontend tools, sharing application context with agents, handling agent interrupts, and working with the CopilotKit runtime.

CopilotKit/CopilotKit · 46 tokens

copilotkit-upgrade

Use when migrating a CopilotKit v1 application to v2 -- updating package imports, replacing deprecated hooks and components, switching from GraphQL runtime to AG-UI protocol runtime, and resolving breaking API changes.

CopilotKit/CopilotKit · 48 tokens

adk-debug

Diagnoses misbehaving ADK agents by inspecting sessions, events, tool calls, and the exact request that reached the model. Covers the adk run CLI and the adk web dev server with its session, trace, and debug HTTP endpoints. Use when an agent returns the wrong answer, ignores a tool or swallows a tool error, hangs…

google/adk-python · 191 tokens

adk-unit-design

Writes an as-built architecture document for one ADK code unit — purpose, execution flow, data flow, cross-class dependencies, extension points, and the parts that must not change — to docs/design/{topic}/{unit}/index.md. It describes the code as implemented, not a proposed design, and its reader is a developer about…

google/adk-python · 181 tokens

agent-browser

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

vercel-labs/open-agents · 51 tokens