debugging-failures

debugging-failures is a skill for Claude Code from onsi/ginkgo. It costs 122 tokens per session (1,981 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,086 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,981 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.01981
Opus 5.5 $0.00049 $0.00792
Sonnet 5.5 $0.00024 $0.00396
Haiku 4.5 $0.00012 $0.00198

Measured 1mo ago against content hash 5afbdd6cfb33, 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 · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 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 · 103 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 · +6 lines 5afbdd6cfb33
  2. 3mo 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,086 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 1,981 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

debugging-failures compared with skills from other repositories

debugging-failures next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debugging-failuresonsi/ginkgoSkill9.1ktodayMITA122Claude Code
oh-my-poshJanDeDobbeleer/oh-my-poshSkill24k2d agoMITA47Claude Code, Codex
network-rcakubeshark/kubesharkSkill12k8d agoApache-2.0A163Claude Code
pinchtab-devpinchtab/pinchtabSkill11k8d agoMITA77Claude Code, Codex
printing-press-amendmvanhorn/cli-printing-pressSkill5.1ktodayMITA222Claude Code
printing-press-output-reviewmvanhorn/cli-printing-pressSkill5.1ktodayMITA102Claude Code
golang-troubleshootingsamber/cc-skills-golangSkill4.0k2d agoMITA175Claude Code