debugging

debugging is a skill for Codex from kreek/consult. It costs 28 tokens per session (713 once invoked), scanned A, original, MIT.

A coding guide for investigating software failures by reproducing symptoms, isolating causes, examining evidence, and fixing the underlying bug.

In plain words
What is it for?
Use it for broken tests, regressions, flaky or timing-sensitive behavior, production incidents, and unclear failures.
Why use it?
It keeps debugging focused on verified root causes instead of guesses or fixes that only hide symptoms.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it for broken tests, regressions, flaky or timing-sensitive behavior, production incidents, and unclear failures.

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

Made for: 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 debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/kreek/consult/debugging/github.svg)](https://agentmods.dev/skills/kreek/consult/debugging)
Your own site
<a href="https://agentmods.dev/skills/kreek/consult/debugging"><img src="https://agentmods.dev/badge/skills/kreek/consult/debugging/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 debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/kreek/consult/debugging"><img src="https://agentmods.dev/badge/skills/kreek/consult/debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 713 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00028 $0.00713
Opus 5.5 $0.00011 $0.00285
Sonnet 5.5 $0.00006 $0.00143
Haiku 4.5 $0.00003 $0.00071

Measured 2mo ago against content hash e79baed1f108, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debugging scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/.agents/skills/debugging/SKILL.md · 63 lines

How it starts

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

Debugging

Iron Law

NO FIX WITHOUT ROOT-CAUSE EVIDENCE.

When to Use

  • Defects, flakes, timing-sensitive bugs, regressions, production incidents, unclear failures, or stuck debugging sessions.

When NOT to Use

  • Planned refactors with no failing behavior; use refactoring.
  • Slowness as the symptom; use performance.
  • Bisect and reflog mechanics; pair with git-workflow.

Rules

  1. Reproduce before fixing, or record why reproduction is not yet possible. Capture the exact symptom: command, input, output, stack trace, timing, environment.
  2. One hypothesis at a time. Predict what else must be true, run the smallest experiment that confirms or refutes it, and change one variable per experiment. After the third experiment, keep a short debug log.
  3. Before editing, state the failure model: likely cause, evidence for it, and the observation that would disprove it. A fix you cannot explain is not a fix.
  4. The root cause is named in one sentence, explains every observed symptom, and names the evidence that ruled out the main alternatives.
  5. The fix is one atomic change aimed at that cause, with a regression test or operational guard that fails before and passes after.
  6. A flake is a bug. Identify whether the test, the code, or the environment failed; never retry it away.
  7. Timing-sensitive bugs are verified with non-invasive observation or replay, not by adding sleeps.
  8. Incidents produce blameless learning with owned, dated follow-ups. "Human error" is never the root cause.
  9. Unproven root-cause or fix claims are reported as unproven.

Tripwires

Trigger Do this instead False alarm
"Probably X, let me try fixing" Gather evidence that confirms X before editing. The user asked for a speculative explanation, not a fix.
"No time to reproduce" Create the smallest reproduction or state why it is blocked. Production-only incident where logs and traces are the reproduction.
"One more guess and it'll work" Stop editing. Collect a new observation that changes the model. A syntax or wiring typo visible in the failing output.
"Fixed it locally, ship it" Name the root cause and run the regression guard. The local run is the requested diagnostic, not a completion claim.
"Flake, just retry" Treat it as a bug and find which of test, code, or environment failed. Infrastructure outage already confirmed outside the code under review.
"Probably a race condition" Show interleaving, shared state, or timing evidence before touching concurrency code. A failing sanitizer or trace already demonstrates the race.

Read the full file on GitHub · 63 lines

Files

What ships with it

1 file 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. 2mo ago Changed · +8 tokens per session e79baed1f108
  2. 3mo ago Changed · -19 lines a14202f0cf76
  3. 3mo ago First seen · 82 lines · 20 tokens per session scan A e7fb12f9d4c8

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository kreek/consult (1 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 713 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

debugging compared with skills from other repositories

debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debuggingkreek/consultSkill12mo agoMITA28Codex
bug-fixkardebadas/claude-pluginSkill317d agoApache-2.0A74Claude Code
bug-investigatekardebadas/claude-pluginSkill317d agoApache-2.0A83Claude Code
diagnose-projectgaelic-ghost/socketSkill123mo agoApache-2.0A39Claude Code
xcode-build-run-workflowgaelic-ghost/socketSkill123mo agoApache-2.0A67Claude Code, Codex
xcode-debugger-mcp-workflowgaelic-ghost/socketSkill123mo agoApache-2.0A70Claude Code, Codex
safari-mcp-workflowgaelic-ghost/socketSkill123mo agoApache-2.0A48Claude Code, Codex