debugging-test-failures

debugging-test-failures is a skill for Claude Code from dork-labs/dorkos. It costs 38 tokens per session (719 once invoked), scanned A, original, MIT.

A method for finding the real cause of failing tests and fixing it with evidence-based checks.

In plain words
What is it for?
Use it to run focused tests, read failures, trace the related code, apply a minimal fix, and verify the result.
Why use it?
It prevents blind changes by separating problems in the application from problems in the test, mocks, or setup.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code; installed under .agents/ (shared by several agents).

Part of the flow plugin — 43 skills, 44 commands, 5 agents, 4 hooks shipped together

Good fit Use it to run focused tests, read failures, trace the related code, apply a minimal fix, and verify the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dork-labs/dorkos/debugging-test-failures
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 dork-labs/dorkos --skill debugging-test-failures
Clone the repo
git clone --depth 1 https://github.com/dork-labs/dorkos

Made for: Claude Code.

Or install flow, the plugin that ships this one along with the rest of its 43 skills, 44 commands, 5 agents, 4 hooks.

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 debugging-test-failures

README.md
[![agentmods](https://agentmods.dev/badge/skills/dork-labs/dorkos/debugging-test-failures/github.svg)](https://agentmods.dev/skills/dork-labs/dorkos/debugging-test-failures)
Your own site
<a href="https://agentmods.dev/skills/dork-labs/dorkos/debugging-test-failures"><img src="https://agentmods.dev/badge/skills/dork-labs/dorkos/debugging-test-failures/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 debugging-test-failures

Your own site · 80×15
<a href="https://agentmods.dev/skills/dork-labs/dorkos/debugging-test-failures"><img src="https://agentmods.dev/badge/skills/dork-labs/dorkos/debugging-test-failures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 719 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.00038 $0.00719
Opus 5.5 $0.00015 $0.00288
Sonnet 5.5 $0.00008 $0.00144
Haiku 4.5 $0.00004 $0.00072

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

Security

Grade A, and why

debugging-test-failures 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.

.agents/skills/debugging-test-failures/SKILL.md · 76 lines

How it starts

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

Debugging Test Failures

Overview

This is the shared-skill replacement for the legacy Claude Code /debug:test workflow.

Use it when tests are failing and the goal is to identify the real root cause instead of making blind changes.

Read First

Before acting, read:

  • .agents/skills/debugging-systematically/SKILL.md
  • .claude/skills/test-driven-development/SKILL.md when the failing test is tied to new feature work or a bugfix

Core Workflow

  1. Run the relevant test scope
    • one file or one pattern when possible
    • whole-suite only when needed
  2. Parse the failure output
    • failing test names
    • expected vs actual behavior
    • error messages and stack traces
  3. Check load-sensitivity before diving in
    • passes in isolation but fails in the full run
    • the assertion is about timing, throughput, or sample counts rather than behavior
    • the failure text names milliseconds, wall-clock boundaries, or "expected N samples"
    • the file is in a known flake family: harness atomic-write AP-10 (sample-throughput guard, MIN_SAMPLES fixed at 200), RoomLiveLane (wall-clock boundaries), agent-activity (teardown timing), palette-scope-chips (DOR-1502), and the browser spec apps/e2e/tests/settings/runtimes-tab.spec.ts "Make default moves the default, and it survives a reload" (DOR-2043: page.waitForResponse / locator.click 90s timeouts on merge-queue shard 2, three times on 2026-09-14 on diffs that cannot reach it)
    • a load-starved guard refusing to conclude is not a defect in your branch — re-run once before spending a cycle, and if it repeats, it belongs to the test's owner, not yours
  4. Read the failing test first
    • understand arrange / act / assert
    • explain what the test is trying to prove
  5. Read the implementation under test
    • trace inputs, transformations, and outputs
  6. Decide where the bug lives
    • implementation
    • test logic
    • mock/setup
    • broader shared root cause
  7. Apply a minimal fix
    • fix the real problem, not just the symptom
  8. Re-run verification
    • the failing test
    • nearby tests when relevant

Read the full file on GitHub · 76 lines

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 Changed · +4 lines e423bdf9c9cc
  2. 1mo ago Changed · +13 lines 9aef44696f54
  3. 1mo ago First seen · 59 lines · 38 tokens per session scan A 5a1598963fb6

Subscribe to this mod's changes

debugging-test-failures is a skill published in the GitHub repository dork-labs/dorkos (12 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 719 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-08-31.

Related

Other skills, from other repositories

fix-bug

Use when a ticket reports defective behaviour — a wrong result, a crash, a regression, "X doesn't work when Y" — and the fix must be proven with a test that fails before and passes after. Invoke for any bug, incident follow-up, or "this used to work" ticket before touching the code.

tmj-90/gaffer · 68 tokens

ralphctl-debugging-and-error-recovery

Systematic root-cause debugging. Use when tests fail, builds break, something that worked before broke, or behaviour does not match expectations — when you need to figure out what broke and why. Follow stop-the-line → reproduce → localize → reduce → root-cause → guard-with-regression-test → verify, not guessing; the…

lukas-grigis/ralphctl · 95 tokens

fix-feature-bug

Fix bugs using structured workflow with error classification and regression tests. Use when user reports bugs, errors, broken features, test failures, or mentions "fix", "broken", "not working", "failing". Can be invoked via /fix-feature-bug.

markmhendrickson/ateles · 57 tokens

test-master

Use when writing tests, creating test strategies, or building automation frameworks. Invoke for unit tests, integration tests, E2E, coverage analysis, performance testing, security testing.

zacklecon/claude-skills · 38 tokens

java-conventions

Use when a ticket adds or changes Java code and it must follow the repo's Java conventions — Effective Java, modern Java (records, sealed types, pattern matching, switch expressions), Optional discipline, immutability, try-with-resources, thread safety and virtual threads, Spring Boot constructor injection, and JUnit…

tmj-90/gaffer · 106 tokens

python-conventions

Use when a ticket adds or changes Python code and it must follow the repo's Python conventions — PEP 8, full type hints (PEP 484) checked by mypy/pyright, dataclasses, pythonic idioms, explicit error handling, asyncio and thread safety, ruff-clean, and pytest with coverage via the repo's env manager (uv/poetry).…

tmj-90/gaffer · 120 tokens