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 frankxai/claude-skills-library --skill diagnosing-bugsgit clone --depth 1 https://github.com/frankxai/claude-skills-libraryWrote 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/frankxai/claude-skills-library/diagnosing-bugs)<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/diagnosing-bugs"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/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/frankxai/claude-skills-library/diagnosing-bugs"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/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.00063 | $0.01217 |
| Opus 5.5 | $0.00025 | $0.00487 |
| Sonnet 5.5 | $0.00013 | $0.00243 |
| Haiku 4.5 | $0.00006 | $0.00122 |
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 17d 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.
2. A `curl` or HTTP script against a running dev server or a preview URL. How it starts
The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Diagnosing bugs
The whole skill is one discipline: get a command that goes red on this exact bug before you reason about causes. With that command, bisecting, testing hypotheses and verifying the fix are mechanical. Without it, reading code produces confident wrong answers, and the estate has a long record of gates that "worked" until someone tested them.
Redact first
Commands, logs and captured requests carry tokens and account names. Replace secrets with <REDACTED>, keep credentials in environment variables or Infisical, and quote only the lines that carry the signal. The secret guard will block a tool call that leaks one; do not route around it.
1. Build the loop (spend most of the effort here)
Pick the first that reaches the bug:
- A failing test at the seam that hits it (
pnpm test -- <name>,uv run pytest -k <name>,node --test <file>). - A
curlor HTTP script against a running dev server or a preview URL. - A CLI run on a fixture, diffed against a known-good output.
- A headless browser script through the shared
browseChromium or BrowserOS, asserting on DOM, console or network. - A replayed capture: save the real request, event or payload to disk and push it through the code path alone.
- A minimal harness: one service, mocked dependencies, one call.
- A property or fuzz loop for "sometimes wrong".
- A bisection script for "worked at X, broken at Y" (
git bisect run <script>). - A differential run: same input through old and new, diff the outputs.
- For machine state, an event-log or file-state probe: Windows event logs (
Get-WinEventon the right channel), file timestamps, SQLite row counts read withimmutable=1. These are loops too, and often the only honest ones.
Tighten it: faster setup, an assertion on the exact symptom rather than "did not crash", pinned time, seeds and network. For flaky bugs the goal is a higher reproduction rate, not a clean repro: loop the trigger, add stress, narrow timing.
Machine notes: there is no WSL here, so loops that shell out to bash fail for reasons unrelated to the bug; prefer node or pwsh. Run pp preflight before heavy loops and respect the 4 GiB RAM floor. Probes that touch browsers or credential stores belong in a script file, and must stay read-only.
What ships with it
7 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.
- 17d ago First seen · 67 lines · 63 tokens per session scan A 696038e91bf2
diagnosing-bugs is a skill published in the GitHub repository frankxai/claude-skills-library (51 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 1,217 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-11-13.
diagnosing-bugs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diagnosing-bugsfrankxai/claude-skills-library | Skill | 51 | today | MIT | A | 63 | Claude Code, Codex |
| diagnosing-bugsvinvcn/mattpocock-skills-zh-CN | Skill | 6.2k | 5d ago | MIT | A | 50 | Claude Code, Codex |
| token-saverchidekina/aria-superpowers | Skill | 2 | 1mo ago | none | C | 85 | Claude Code, Codex |
| wayfindervinvcn/mattpocock-skills-zh-CN | Skill | 6.2k | 5d ago | MIT | A | 40 | Claude Code, Codex |
| domain-modelingvinvcn/mattpocock-skills-zh-CN | Skill | 6.2k | 5d ago | MIT | A | 38 | Claude Code, Codex |
| migrate-to-shoehornvinvcn/mattpocock-skills-zh-CN | Skill | 6.2k | 5d ago | MIT | A | 53 | Claude Code, Codex |
| wizardvinvcn/mattpocock-skills-zh-CN | Skill | 6.2k | 5d ago | MIT | A | 70 | Claude Code, Codex |