debugging-failures

debugging-failures is a skill for Claude Code from onsi/ginkgo. It costs 122 tokens per session (1,824 once invoked), scanned A, original, MIT.

A workflow for diagnosing failed Ginkgo tests, a Go testing framework, by combining the terminal result with a structured JSON report. jq is a command-line tool for querying JSON files.

In plain words
What is it for?
Use it to run a Ginkgo suite, identify failed or panicked tests, extract messages and file locations, inspect captured logs, and clean up the report.
Why use it?
Terminal output can be difficult to parse, especially when tests run in parallel, while the JSON report makes individual failures easier to locate and inspect.

Skill for Claude Code

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

Part of the ginkgo plugin — 13 skills shipped together

Good fit Use it to run a Ginkgo suite, identify failed or panicked tests, extract messages and file locations, inspect captured logs, and clean up the report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onsi/ginkgo/debugging-failures
About the project

Ginkgo is a Go testing framework for writing organized, expressive specifications, including unit, integration, and performance tests. Go developers use it with the Gomega matcher library to describe behavior and run test suites.

onsi/ginkgo · 9,066 stars · on GitHub · onsi.github.io

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 onsi/ginkgo --skill debugging-failures
Clone the repo
git clone --depth 1 https://github.com/onsi/ginkgo

Made for: Claude Code.

Or install ginkgo, the plugin that ships this one along with the rest of its 13 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/onsi/ginkgo/debugging-failures"><img src="https://agentmods.dev/badge/skills/onsi/ginkgo/debugging-failures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,824 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
  • 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.00122 $0.01824
Opus 5.5 $0.00049 $0.00730
Sonnet 5.5 $0.00024 $0.00365
Haiku 4.5 $0.00012 $0.00182

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

Security

Grade A, and why

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

plugins/ginkgo/skills/debugging-failures/SKILL.md · 97 lines

How it starts

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

Debugging Ginkgo failures (especially as an agent)

Ginkgo's terminal output is good for a human; for programmatic diagnosis, prefer a hybrid: terminal for the verdict, JSON + jq for the details. This is empirically the most reliable, lowest-token workflow. Docs: https://onsi.github.io/ginkgo/#reporting-and-profiling-suites.

The workflow: one run, JSON-first diagnosis

# One invocation gives you BOTH the human verdict on the terminal AND a structured report.
# --json-report does NOT suppress console output, so you don't pay for two runs.
ginkgo -r -p --no-color --json-report=report.json --output-dir=.ginkgo-report
  1. Read the terminal tail for the one-line verdict: FAIL! -- 5 Passed | 6 Failed | 1 Pending | 1 Skipped. Cheap, immediate.
  2. If there are failures, query the JSON with jq (filters below) to get exactly the failing specs — stable, addressable, order-independent.
  3. Clean up the report dir when done.

Why hybrid and not one or the other:

  • Terminal-only is brittle to parse (free-form text) and, under -p, interleaves failures in nondeterministic order.
  • JSON-only is wasteful if you dump it: the full report.json is ~9× the tokens of the terminal output. A jq failures-only extraction is a fraction of either. The discipline is filter, don't dump.

Where the JSON lands (use --output-dir deliberately)

  • --json-report=report.json alone writes report.json to the current directory — which scatters into package dirs under -r and risks getting committed.
  • Prefer --output-dir=DIR to collect everything in one known place (auto-created). With -r, all suites merge into one DIR/report.json — ideal: one file, one set of jq filters.
  • Use a gitignored or temp location: a repo-local .ginkgo-report/ (add it to .gitignore) or an absolute temp path (--output-dir=/tmp/ginkgo-report). Don't leave report.json in the working tree.
  • --keep-separate-reports (with -r) writes one PACKAGE_report.json per package instead of merging — only reach for it when you must attribute failures per package.

Read the full file on GitHub · 97 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 First seen · 97 lines · 122 tokens per session scan A 22d20c055d43

Subscribe to this mod's changes

debugging-failures is a skill published in the GitHub repository onsi/ginkgo (9,066 stars, last pushed 9d ago), licensed MIT. It adds 122 tokens to every session and 1,824 once invoked, about $0.0005 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

pinchtab-dev

Develop and contribute to the PinchTab project. Use when working on PinchTab source code, adding features, fixing bugs, running tests, or preparing PRs. Triggers on "work on pinchtab", "pinchtab development", "contribute to pinchtab", "fix pinchtab bug", "add pinchtab feature".

pinchtab/pinchtab · 77 tokens

dev-cycle

Crawlberg iteration loops codified as Taskfile tasks — alef install/generate/format/bump, core and binding builds, e2e generate/build/test cycles, cleanup tiers, and the mock-server / stale-.so / precompiled-NIF / generated-e2e gotchas. Load when running or debugging crawlberg build, alef regeneration, or e2e…

xberg-io/crawlberg · 86 tokens

config-loader-helper

Diagnose configuration-related failures, enumerate required env vars, and guide safe local test setup (no secrets).

pilinux/gorest · 25 tokens

fix-suggester

Diagnose failures and propose minimal, test-backed fixes with verification and rollback instructions.

pilinux/gorest · 21 tokens

functions-development

Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…

CrowdStrike/foundry-skills · 195 tokens

systematic-debugging

Find the root cause before changing code. Use when encountering any bug, test failure, crash, flaky test, performance regression, or unexpected behavior, before proposing or applying a fix. After the fix, use verification-before-completion to prove it; for production failure modes (timeouts, cascades), see release-it.

clubpay/ronykit · 68 tokens