diagnosing-bugs

diagnosing-bugs is a skill for Claude Code, Codex from znlgis/my-opencode-deepseek-config. It costs 47 tokens per session (695 once invoked), scanned A, original, MIT.

A debugging process that first creates a small, repeatable way to reproduce a bug or failed test. It then guides investigation through hypotheses, instrumentation, the fix, and cleanup.

In plain words
What is it for?
Use it for bugs, failing tests, unexpected behavior, HTTP failures, command-line cases, browser issues, recorded traces, and other reproducible failures.
Why use it?
It replaces guesswork with a feedback loop that clearly turns red when the problem is present. This makes it easier to tell whether a proposed fix actually works.

Skill for Claude CodeCodex

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

Good fit Use it for bugs, failing tests, unexpected behavior, HTTP failures, command-line cases, browser issues, recorded traces, and other reproducible failures.

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

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/znlgis/my-opencode-deepseek-config/diagnosing-bugs/github.svg)](https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/diagnosing-bugs)
Your own site
<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/diagnosing-bugs"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/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/znlgis/my-opencode-deepseek-config/diagnosing-bugs"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/diagnosing-bugs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 695 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00047 $0.00695
Opus 5.5 $0.00019 $0.00278
Sonnet 5.5 $0.00009 $0.00139
Haiku 4.5 $0.00005 $0.00069

Measured 2mo ago against content hash cf4078c5a273, 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 2mo 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`/HTTP request against a running instance
opencode/skills/diagnosing-bugs/SKILL.md · 84 lines

How it starts

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

Diagnosing Bugs

Debugging is a discipline, not a guessing game. The single most important rule: build a tight, red-capable feedback loop BEFORE you theorize. No hypothesis is worth anything until you have a command that reproduces the failure and turns red when it is present.

Phase 1 — Build a red-capable feedback loop

Do not theorize yet. Construct the fastest command that reproduces the failure and fails (turns red) when the bug is present. This is the skill.

Construction options, in priority order:

  1. A failing test that exercises the bug
  2. A curl/HTTP request against a running instance
  3. A CLI fixture or script that drives the code path
  4. A headless-browser interaction (UI bugs)
  5. A replay of a recorded trace
  6. A throwaway harness that calls the suspect function directly
  7. A property/fuzz check that asserts the invariant
  8. A bisection script over inputs or commits
  9. A differential check against a known-good reference
  10. A human-in-the-loop bash command (last resort)

Then tighten it: strip it to the smallest input that still turns red, and make it run in seconds, not minutes.

Completion criterion: you have a command that reproduces the failure and turns red. Do not proceed until this exists.

Phase 2 — Reproduce and minimise

Run the loop to confirm it reproduces reliably. Minimise the failing input and the code path until you cannot remove anything without the failure disappearing.

Completion criterion: the failure reproduces on the minimal input.

Phase 3 — Hypothesise

Generate 3-5 falsifiable hypotheses about the root cause. Rank them by likelihood and by how cheap each is to test. Each must be stated so that a specific experiment could disprove it.

Completion criterion: a ranked list of falsifiable hypotheses.

Phase 4 — Instrument

Test hypotheses one at a time. Change one variable per experiment. When you add debug output, tag it so cleanup is a single grep:

[DEBUG-<hex>] <what you are observing>

Read the full file on GitHub · 84 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. 2mo ago First seen · 84 lines · 47 tokens per session scan A cf4078c5a273

Subscribe to this mod's changes

diagnosing-bugs is a skill published in the GitHub repository znlgis/my-opencode-deepseek-config (65 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 695 once invoked, about $0.0002 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-09-03.

Related

diagnosing-bugs compared with skills from other repositories

diagnosing-bugs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnosing-bugsznlgis/my-opencode-deepseek-configSkill65yesterdayMITA47Claude Code, Codex
qa-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A53Claude Code
ai-slop-cleanerYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA25Claude Code
aoe-runtime-lifecycleagent-of-empires/agent-of-empiresSkill5.2ktodayMITA76Claude Code, Codex
kimaki-debugremorses/kimakiSkill1.5ktodayMITA95Claude Code, Codex
horizon-mobilepeters/horizonSkill726todayMITA109Claude Code
lcx-report-bugcode-yeongyu/oh-my-openagentSkill71ktodaynoneA85Codex