diagnosing-bugs

diagnosing-bugs is a skill for Claude Code from jellydn/my-ai-tools. It costs 34 tokens per session (1,411 once invoked), scanned A, original, MIT.

A bug-investigation workflow that reproduces the user's actual symptom, tests possible causes, and adds a regression test for the fix. A regression test is a check that helps ensure a fixed bug does not return.

In plain words
What is it for?
Use it to investigate failing tests, broken requests or user flows, intermittent bugs, and slowdowns.
Why use it?
It avoids guessing from code inspection alone and creates a small, repeatable feedback loop for failures, flaky behavior, and performance regressions.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Codex; built for cline; mentions OpenCode.

Good fit Use it to investigate failing tests, broken requests or user flows, intermittent bugs, and slowdowns.

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

Made for: Claude Code.

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/jellydn/my-ai-tools/diagnosing-bugs/github.svg)](https://agentmods.dev/skills/jellydn/my-ai-tools/diagnosing-bugs)
Your own site
<a href="https://agentmods.dev/skills/jellydn/my-ai-tools/diagnosing-bugs"><img src="https://agentmods.dev/badge/skills/jellydn/my-ai-tools/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/jellydn/my-ai-tools/diagnosing-bugs"><img src="https://agentmods.dev/badge/skills/jellydn/my-ai-tools/diagnosing-bugs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,411 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.00034 $0.01411
Opus 5.5 $0.00014 $0.00564
Sonnet 5.5 $0.00007 $0.00282
Haiku 4.5 $0.00003 $0.00141

Measured 26d ago against content hash 0cc783c883b6, 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 26d 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 service.
configs/amp/plugins/my-ai-tools-skills/skills/diagnosing-bugs/SKILL.md · 119 lines

How it starts

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

Diagnosing Bugs

Use this workflow for bugs, flaky failures, and performance regressions. The central rule is simple: do not start with a theory. First build a feedback loop that can go red on the user's actual symptom.

When to Use

Use when:

  • A test, command, request, or UI flow is failing.
  • Behavior is incorrect but the failure is not yet understood.
  • A bug is intermittent or timing-sensitive.
  • A performance regression needs measurement before optimization.

Do not claim a diagnosis from code inspection alone when the symptom has not been reproduced or captured.

Process

1. Redact and gather context

Redact secrets from commands, logs, screenshots, traces, and environment output before showing or storing them. Read the relevant project instructions, glossary, ADRs, issue, and recent changes. Record the exact user-visible symptom, not a nearby error.

2. Build a tight feedback loop

Prefer the smallest unattended command that exercises the real path and asserts the symptom:

  1. A failing unit, integration, or end-to-end test at the correct public seam.
  2. A curl or HTTP script against a running service.
  3. A CLI fixture and expected-output comparison.
  4. A browser script asserting DOM, console, or network behavior.
  5. A replay of a captured request, event, or trace.
  6. A minimal harness with real collaborators at the failing boundary.
  7. A property or fuzz loop for input-dependent failures.
  8. A bisection or differential loop when the regression has a known range.

Tighten the loop: cache setup, narrow assertions to the exact symptom, pin time and randomness, isolate the filesystem, and remove unnecessary network work. A slow or flaky loop is not a sufficient feedback loop until it is made deterministic or its reproduction rate is high enough to debug.

If no red-capable loop can be built, stop and report what was tried. Ask for a redacted trace, log, HAR, core dump, screen recording with timestamps, or access to the reproducing environment rather than guessing.

Read the full file on GitHub · 119 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. 26d ago Changed · +10 lines 0cc783c883b6
  2. 1mo ago Changed · +4 lines c429a420bc37
  3. 1mo ago First seen · 105 lines · 34 tokens per session scan A 546677f6d7f0

Subscribe to this mod's changes

diagnosing-bugs is a skill published in the GitHub repository jellydn/my-ai-tools (130 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 1,411 once invoked, about $0.0001 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-07.

Related

diagnosing-bugs compared with skills from other repositories

diagnosing-bugs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnosing-bugsjellydn/my-ai-toolsSkill130todayMITA34Claude Code
testing-blocksadobe/skillsSkill342todayApache-2.0A114Claude Code
testing-setupandroid/skillsSkill11k7d agoApache-2.0A42Claude Code
qaadobe/skillsSkill342todayApache-2.0A150Claude Code
experiment-iterative-coderEvoScientist/EvoSkillsSkill48817d agoApache-2.0A145Claude Code
verifysd0xdev/sd0x-harnessSkill1965d agoMITA17Claude Code
check-coveragesd0xdev/sd0x-harnessSkill1965d agoMITA27Claude Code