debug-mode

debug-mode is a skill for Claude Code, Codex from hcaiano/skills. It costs 41 tokens per session (828 once invoked), scanned A, original, MIT.

An evidence-based process for finding the real cause of a bug when ordinary inspection has not proved it. It is aimed at unresolved, flaky, environment-specific, or production-only problems.

In plain words
What is it for?
Use it to diagnose and, when requested, fix difficult software bugs. It is not needed for errors whose cause and solution are already clear from compiler, test, or lint output.
Why use it?
It reduces the risk of applying a plausible fix that only works once. The process ties the diagnosis to symptoms, reproduction steps, expected behavior, and observed evidence.

Skill for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also agents/openai.yaml present.

Good fit Use it to diagnose and, when requested, fix difficult software bugs. It is not needed for errors whose cause and solution are already clear from compiler, test, or lint output.

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

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 debug-mode

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hcaiano/skills/debug-mode"><img src="https://agentmods.dev/badge/skills/hcaiano/skills/debug-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 828 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.00041 $0.00828
Opus 5.5 $0.00016 $0.00331
Sonnet 5.5 $0.00008 $0.00166
Haiku 4.5 $0.00004 $0.00083

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

Security

Grade A, and why

debug-mode 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 20d 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.

its exact symptom: a failing test, a curl script, a CLI run on a fixture, a
deprecated/debug-mode/SKILL.md · 76 lines

How it starts

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

Debug Mode

Fix only a proven cause; a plausible fix that passes once proves nothing. Already inside a debug-mode run → continue the loop.

Respect the user's verb: diagnose ends before Fix and applies no fix; remove every temporary log before its report. debug, or a bug report with no verb, runs through Fix.

Workflow

  1. Understand. Done when symptoms, affected surface, expected behavior, actual behavior, and a reproduction path are known.
  2. Red loop. Build one command that drives the bug's code path and asserts its exact symptom: a failing test, a curl script, a CLI run on a fixture, a headless-browser script, a replayed trace. Make it tight: deterministic, fast, runnable unattended, asserting the symptom rather than "didn't crash". For a flaky bug, raise the reproduction rate (loop the trigger, add stress) until it is debuggable. For slow code, the loop is a baseline measurement (timing harness, profiler, query plan, production traces) that goes red above a stated threshold. When no command is practical (auth-walled, user-specific, production-only), say so and rely on instrumentation in steps 5-6. Done when the command has run red on this bug, or its absence is stated.
  3. Minimize. With a loop, shrink the repro one cut at a time (inputs, callers, config, data, steps), rerunning the loop after each cut. Done when every remaining part matters: removing any one turns the loop green. Without a loop, go straight to step 4.
  4. Hypothesize. Done when 2-3 ranked hypotheses each name the observation that would confirm or reject it.
  5. Instrument. For slow code, profile the minimized repro or bisect between known-good and known-bad states (git bisect run with the loop). Otherwise add temporary logs. Done when the observations distinguish the hypotheses without leaking secrets or changing the behavior; if they change it, observe from a less invasive point.
  6. Reproduce. Done when the bug has been triggered and the evidence collected, through the loop when one exists. If the flow is auth-walled or user-specific, ask the user to reproduce and wait.
  7. Analyze. Done when evidence confirms one hypothesis or rejects every current one explicitly. When it rejects them all, write new hypotheses from the evidence and return to step 5.
  8. Fix. When a seam exercises the real bug pattern, turn the minimized repro into a regression test first. Done when the smallest evidence-backed fix is applied, the loop (when one exists) has gone green on the original scenario, and every temporary log is removed.

Read the full file on GitHub · 76 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. 20d ago Changed · -36 lines · -1 tokens per session a3292e8b2277
  2. 1mo ago First seen · 112 lines · 42 tokens per session scan A 15020d5d47bb

Subscribe to this mod's changes

debug-mode is a skill published in the GitHub repository hcaiano/skills (3 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 828 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-08-31.

Related

Other skills, from other repositories

claude-md-improver

Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project…

anthropics/claude-plugins-official · 82 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

gke-workload-security

Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (auditcluster.sh), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (gVisor), enforcing Pod…

google/skills · 171 tokens

gke-reliability

Improves GKE workload reliability, using PDBs, health probes, and topology spread constraints. Use when configuring GKE workload reliability, setting up PDBs, or configuring GKE health probes (liveness, readiness, startup). Don't use for generating K8s YAML manifests (use gke-manifest-generation) or disaster recovery…

google/skills · 85 tokens

google-cloud-solution-agentic-analytics-spark-knowledge-catalog

Discovers requirements and designs an end-to-end governed agentic analytics solution using Knowledge Catalog and Managed Service for Apache Spark (Lightning Engine). Use when designing data science and analytics workflows across structured and unstructured distributed data (including in S3, Azure Blob, AlloyDB, and…

google/skills · 132 tokens

glance-canonical-layouts

Use this skill to create home screen widgets using Jetpack Glance Canonical Layouts from the Android Platform Samples project, or when asked to implement standard widget layout patterns (including Check List, Image Grid, Snap Scrolling, and Standard Toolbar).

android/skills · 56 tokens