diagnosing-bugs

diagnosing-bugs is a skill for Claude Code, Codex from byheaven/byheaven-skills. It costs 70 tokens per session (1,135 once invoked), scanned A, original, MIT.

A workflow for investigating difficult or intermittent software bugs by first building a repeatable command that demonstrates the exact failure.

In plain words
What is it for?
It helps create fast, automated reproductions for failing tests, command-line checks, browser probes, traces, harnesses, fuzzing, and bug classification.
Why use it?
It prevents changing code based only on an early theory, especially when a defect is hard to reproduce or crosses system boundaries.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the byworkflow plugin — 10 skills, 2 agents shipped together

Good fit It helps create fast, automated reproductions for failing tests, command-line checks, browser probes, traces, harnesses, fuzzing, and bug classification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/byheaven/byheaven-skills/diagnosing-bugs
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 byheaven/byheaven-skills --skill diagnosing-bugs
Clone the repo
git clone --depth 1 https://github.com/byheaven/byheaven-skills

Made for: Claude Code, Codex.

Or install byworkflow, the plugin that ships this one along with the rest of its 10 skills, 2 agents.

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 diagnosing-bugs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/byheaven/byheaven-skills/diagnosing-bugs"><img src="https://agentmods.dev/badge/skills/byheaven/byheaven-skills/diagnosing-bugs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,135 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00070 $0.01135
Opus 5.5 $0.00028 $0.00454
Sonnet 5.5 $0.00014 $0.00227
Haiku 4.5 $0.00007 $0.00113

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

Security

Grade A, and why

diagnosing-bugs scanned grade A with 1 finding 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 23d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Construct one command that observes the failure. Candidate forms, preferred first: failing test → curl/CLI script with fixture diff → headless browser probe → replayed captured trace → disposable harness → property/fuzz
plugins/byworkflow/skills/diagnosing-bugs/SKILL.md · 58 lines

How it starts

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

Diagnosing Bugs

A fix is done when a command that observes the user's exact failure goes red before it and green after it. Building that feedback loop is the skill; everything after is mechanical. Build it as early as the bug allows: a theory formed from the code before anything observes the failure tends to fix the wrong thing, while a loop turns each theory into a quick yes or no. Reading code to find where and how to observe the failure is part of building it.

Phase 1 — Build the feedback loop

Construct one command that observes the failure. Candidate forms, preferred first: failing test → curl/CLI script with fixture diff → headless browser probe → replayed captured trace → disposable harness → property/fuzz loop → bisect harness → last resort, a human-in-the-loop script that tells the user exactly what to click and captures the result, whose capture then feeds an agent-runnable replay.

Phase 1 is complete only when you can state one command you have already run at least once (show the invocation and redacted output) and all four hold:

  • Red-capable — it asserts the user's exact symptom, not merely "no error".
  • Deterministic — pin time, seed randomness; for flaky bugs the goal is a raised reproduction rate (loop it 100×, parallelize, add pressure), not a clean repro.
  • Fast — as fast as the bug allows, since every probe and every hypothesis reruns it.
  • Agent-runnable — you can run it yourself without a human.

If the loop truly cannot be built, ask the user as Asking says: "I could not build a command that reproduces this bug. I tried: . Can you give me <environment access, a capture, or production instrumentation>?"

Redact secrets everywhere: literals become <REDACTED>, loops read from environment variables, captures quote only the signal-bearing lines.

Phase 2 — Reproduce and minimize

Confirm the loop is red on the failure the user described — fixing the wrong bug is the expensive version of fixing nothing. Then minimize the repro until what remains makes the cause clear.

Read the full file on GitHub · 58 lines

Files

What ships with it

2 files 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. 23d ago Changed · +6 tokens per session 8e592e792a3f
  2. 1mo ago Changed 133e6ccc851b
  3. 1mo ago First seen · 58 lines · 64 tokens per session scan A 03665874d137

Subscribe to this mod's changes

diagnosing-bugs is a skill published in the GitHub repository byheaven/byheaven-skills (2 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 1,135 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.

Related

diagnosing-bugs compared with skills from other repositories

diagnosing-bugs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnosing-bugsbyheaven/byheaven-skillsSkill2todayMITA70Claude Code, Codex
compare-site-configurationsmicrosoft/power-platform-skillsSkill1.2ktodayMITA98Claude Code
memory-recallzilliztech/memsearchSkill3.0k2d agoMITA38Claude Code, Codex
release-itwondelai/skillsSkill2.8k2d agoMITA131Claude Code, Codex
tidewave-integrationoliver-kriska/claude-elixir-phoenixSkill5802d agoMITA38Claude Code
debugsd0xdev/sd0x-harnessSkill1967d agoMITA67Claude Code
git-investigatesd0xdev/sd0x-harnessSkill1967d agoMITA53Claude Code