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.
npx skills add byheaven/byheaven-skills --skill diagnosing-bugsgit clone --depth 1 https://github.com/byheaven/byheaven-skillsWrote 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.
[](https://agentmods.dev/skills/byheaven/byheaven-skills/diagnosing-bugs)<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.
<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>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.
| Model | Per session | Once 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 |
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 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.
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.
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.
- 23d ago Changed · +6 tokens per session 8e592e792a3f
- 1mo ago Changed 133e6ccc851b
- 1mo ago First seen · 58 lines · 64 tokens per session scan A 03665874d137
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.
diagnosing-bugs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnosing-bugsbyheaven/byheaven-skills | Skill | 2 | today | MIT | A | 70 | Claude Code, Codex |
| compare-site-configurationsmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 98 | Claude Code |
| memory-recallzilliztech/memsearch | Skill | 3.0k | 2d ago | MIT | A | 38 | Claude Code, Codex |
| release-itwondelai/skills | Skill | 2.8k | 2d ago | MIT | A | 131 | Claude Code, Codex |
| tidewave-integrationoliver-kriska/claude-elixir-phoenix | Skill | 580 | 2d ago | MIT | A | 38 | Claude Code |
| debugsd0xdev/sd0x-harness | Skill | 196 | 7d ago | MIT | A | 67 | Claude Code |
| git-investigatesd0xdev/sd0x-harness | Skill | 196 | 7d ago | MIT | A | 53 | Claude Code |