debug

debug is a skill for Claude Code, Codex from ohm41321/luciazero. It costs 57 tokens per session (556 once invoked), scanned A, original, MIT.

A structured method for investigating difficult software bugs through reproduction, smaller test cases, explicit hypotheses, and regression tests.

In plain words
What is it for?
Use it when a bug is stubborn, intermittent, unclear, or still present after an obvious fix attempt.
Why use it?
It replaces guesswork with observations that can confirm or rule out possible causes.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also reads $CODEX_HOME. Also seen: mentions Codex.

Part of the luciazero plugin — 16 skills, 1 agent, 7 hooks shipped together

Good fit Use it when a bug is stubborn, intermittent, unclear, or still present after an obvious fix attempt.

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

Made for: Claude Code, Codex.

Or install luciazero, the plugin that ships this one along with the rest of its 16 skills, 1 agent, 7 hooks.

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 debug

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ohm41321/luciazero/debug"><img src="https://agentmods.dev/badge/skills/ohm41321/luciazero/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 556 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.00057 $0.00556
Opus 5.5 $0.00023 $0.00222
Sonnet 5.5 $0.00011 $0.00111
Haiku 4.5 $0.00006 $0.00056

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

Security

Grade A, and why

debug 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 15d 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.

skills/debug/SKILL.md · 59 lines

How it starts

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

Debug

For bugs that resist the first obvious look: debugging starts with a hypothesis, not an edit. Reality, not a plausible patch, decides.

1. Reproduce first

Find one command that shows the failure deterministically. It is ground truth. Do not theorize about causes of a failure you cannot trigger.

For intermittent failures, fix the seed, pin the time/timezone, run it in a loop, and identify the trigger before proceeding.

2. Minimize

Shrink to smaller input, fewer flags, one test instead of the suite. Stop when further reduction costs more than it clarifies.

3. Hypothesis ledger

Before inventing causes, search the symptom in:

  • repo ledger docs/lessons.md;
  • configured harness luciazero-heuristics.md under ${CLAUDE_CONFIG_DIR:-$HOME/.claude} or ${CODEX_HOME:-$HOME/.codex}.

A match becomes H1, but must pass its proven-by observation.

H<N>: <suspected cause> — refutable by: <command / observation> → <refuted|confirmed|pending>

Run the observation, not the edit. Choose the cheapest discriminating log, query, debugger stop, grep, or bisect. Trust real state. Dead hypotheses stay in the ledger marked refuted. Keep the ledger visible in the conversation.

4. One variable per iteration

Change one thing, re-run the reproduction, and record the result. A failed fix gets reverted before the next attempt. Two consecutive failed fixes on the same hypothesis means the hypothesis is dead; widen to environment, versions, input, concurrency, or a wrong test.

5. Close out

  • Commit a regression test. Run it both ways and quote both results: red before the fix, green after. Use the done skill's revert-probe.cjs when applicable; once the fix is committed, pass the pre-fix commit as its base ref.
  • Remove all instrumentation: prints, sleeps, debug flags.
  • Run the full verify tier.
  • If the cause, footgun, or null result is not obvious from code, run /retro; debugged failures go to docs/lessons.md as symptom → cause → proof → fix.

Read the full file on GitHub · 59 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. 15d ago Changed · +1 lines f262c3c4886b
  2. 1mo ago First seen · 58 lines · 57 tokens per session scan A 2c99b57c0721

Subscribe to this mod's changes

debug is a skill published in the GitHub repository ohm41321/luciazero (6 stars, last pushed 13d ago), licensed MIT. It adds 57 tokens to every session and 556 once invoked, about $0.0002 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.