diagnosing-bugs

diagnosing-bugs is a skill for Claude Code, Codex from frankxai/claude-skills-library. It costs 63 tokens per session (1,217 once invoked), scanned A, original, MIT.

A bug-investigation workflow that first creates a test or command that reliably shows the exact failure. It then uses that repeatable check to investigate causes and confirm the fix.

In plain words
What is it for?
It helps investigate bugs, outages, slowdowns, flaky behavior, recurring failures, and some machine-level problems using tests, HTTP checks, command-line fixtures, browser checks, or captured requests.
Why use it?
Without a repeatable failure, debugging can produce confident explanations that do not address the real problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps investigate bugs, outages, slowdowns, flaky behavior, recurring failures, and some machine-level problems using tests, HTTP checks, command-line fixtures, browser checks, or captured requests.

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

Made for: Claude Code, Codex.

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/frankxai/claude-skills-library/diagnosing-bugs/github.svg)](https://agentmods.dev/skills/frankxai/claude-skills-library/diagnosing-bugs)
Your own site
<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.

agentmods 80×15 button for diagnosing-bugs

Your own site · 80×15
<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>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,217 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.00063 $0.01217
Opus 5.5 $0.00025 $0.00487
Sonnet 5.5 $0.00013 $0.00243
Haiku 4.5 $0.00006 $0.00122

Measured 17d ago against content hash 696038e91bf2, 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 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.
absorbed/engineering/diagnosing-bugs/SKILL.md · 67 lines

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:

  1. A failing test at the seam that hits it (pnpm test -- <name>, uv run pytest -k <name>, node --test <file>).
  2. A curl or HTTP script against a running dev server or a preview URL.
  3. A CLI run on a fixture, diffed against a known-good output.
  4. A headless browser script through the shared browse Chromium or BrowserOS, asserting on DOM, console or network.
  5. A replayed capture: save the real request, event or payload to disk and push it through the code path alone.
  6. A minimal harness: one service, mocked dependencies, one call.
  7. A property or fuzz loop for "sometimes wrong".
  8. A bisection script for "worked at X, broken at Y" (git bisect run <script>).
  9. A differential run: same input through old and new, diff the outputs.
  10. For machine state, an event-log or file-state probe: Windows event logs (Get-WinEvent on the right channel), file timestamps, SQLite row counts read with immutable=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.

Read the full file on GitHub · 67 lines

Files

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.

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. 17d ago First seen · 67 lines · 63 tokens per session scan A 696038e91bf2

Subscribe to this mod's changes

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.

Related

diagnosing-bugs compared with skills from other repositories

diagnosing-bugs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnosing-bugsfrankxai/claude-skills-librarySkill51todayMITA63Claude Code, Codex
diagnosing-bugsvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA50Claude Code, Codex
token-saverchidekina/aria-superpowersSkill21mo agononeC85Claude Code, Codex
wayfindervinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA40Claude Code, Codex
domain-modelingvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA38Claude Code, Codex
migrate-to-shoehornvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA53Claude Code, Codex
wizardvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA70Claude Code, Codex