why-did-my-test-fail

why-did-my-test-fail is a skill for Claude Code from testingbot/mcp-server. It costs 61 tokens per session (324 once invoked), scanned A, original, MIT.

A failed-test investigation workflow for TestingBot sessions. TestingBot runs automated browser and mobile tests, and the workflow uses test details and logs to explain what failed and why.

In plain words
What is it for?
Use it to investigate a TestingBot test ID or session ID, quote relevant failure logs, suggest one to three fixes, and state confidence in the diagnosis.
Why use it?
It replaces guesswork with evidence from the failing step and log lines. It also separates likely application bugs, test-script problems, environment issues, and flaky behavior.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the testingbot plugin — 7 skills, 1 MCP server shipped together

Good fit Use it to investigate a TestingBot test ID or session ID, quote relevant failure logs, suggest one to three fixes, and state confidence in the diagnosis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/testingbot/mcp-server/why-did-my-test-fail
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.

Any agent
npx skills add testingbot/mcp-server --skill why-did-my-test-fail
Clone the repo
git clone --depth 1 https://github.com/testingbot/mcp-server

Made for: Claude Code.

Or install testingbot, the plugin that ships this one along with the rest of its 7 skills, 1 MCP server.

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 why-did-my-test-fail

README.md
[![agentmods](https://agentmods.dev/badge/skills/testingbot/mcp-server/why-did-my-test-fail/github.svg)](https://agentmods.dev/skills/testingbot/mcp-server/why-did-my-test-fail)
Your own site
<a href="https://agentmods.dev/skills/testingbot/mcp-server/why-did-my-test-fail"><img src="https://agentmods.dev/badge/skills/testingbot/mcp-server/why-did-my-test-fail/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 why-did-my-test-fail

Your own site · 80×15
<a href="https://agentmods.dev/skills/testingbot/mcp-server/why-did-my-test-fail"><img src="https://agentmods.dev/badge/skills/testingbot/mcp-server/why-did-my-test-fail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 324 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.
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.00061 $0.00324
Opus 5.5 $0.00024 $0.00130
Sonnet 5.5 $0.00012 $0.00065
Haiku 4.5 $0.00006 $0.00032

Measured 7d ago against content hash b286aa667ac0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

why-did-my-test-fail 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 7d 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.

plugins/testingbot/skills/why-did-my-test-fail/SKILL.md · 20 lines

What it actually says

Why did my TestingBot test fail?

Needs the TestingBot MCP server (@testingbot/mcp-server). If a tool says no credentials are configured, call tb_login (it opens a browser sign-in) and continue; never ask the user to paste a key or secret.

  1. Call getTestDetails with the session ID (or read the resource testingbot://tests/<sessionId>) for the status, status message, environment and which logs exist.
  2. If the analyzeTestFailure tool is available, call it. If it says AI Analysis is not enabled for the account, do not push the user to enable it; continue with the logs.
  3. Call getFailureLogs with failuresOnly: true. Read a full log (testingbot://tests/<sessionId>/logs/<type>) only when the failing lines are not enough.
  4. Report:
    • what the test was doing and the step that failed;
    • the most likely cause, classified as application bug, test script, environment or flaky;
    • the log lines that show it (quoted);
    • one to three concrete fixes.

Say how sure you are. Do not claim a cause the logs do not show.

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. 7d ago Changed b286aa667ac0
  2. 11d ago First seen · 20 lines · 61 tokens per session scan A 6bf834ad68de

Subscribe to this mod's changes

why-did-my-test-fail is a skill published in the GitHub repository testingbot/mcp-server (2 stars, last pushed 7d ago), licensed MIT. It adds 61 tokens to every session and 324 once invoked, about $0.0002 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-11-20.

Related

why-did-my-test-fail compared with skills from other repositories

why-did-my-test-fail next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
why-did-my-test-failtestingbot/mcp-serverSkill27d agoMITA61Claude Code
chrome-devtools-cliChromeDevTools/chrome-devtools-mcpSkill60kyesterdayApache-2.0A31Claude Code
n8n-error-handlingczlonkowski/n8n-mcpSkill23kyesterdayMITA128Claude Code, Codex
n8n-validation-expertczlonkowski/n8n-mcpSkill23kyesterdayMITA91Claude Code, Codex
agentcore-investigationawslabs/mcpSkill10.0ktodayApache-2.0A52Claude Code, Codex
openlore-analyze-codebaseclay-good/OpenLoreSkill371todayMITA48Claude Code, Codex
flutter-mcp-toolkit-intentcall-migrationArenukvern/mcp_flutterSkill4014d agoMITA58Claude Code