atomic-debug

atomic-debug is a skill for Claude Code, Codex from damusix/atomic-claude. It costs 114 tokens per session (1,496 once invoked), scanned A, original, MIT.

A debugging workflow that investigates bugs, crashes, test failures, and unexpected behavior by forming and testing hypotheses. It starts with the exact symptom and tests the cheapest likely explanation first.

In plain words
What is it for?
Use it after an error, regression, failing test, crash, or report that something does not work, especially when the affected code or cause is unclear.
Why use it?
It reduces guesswork and discourages temporary fixes that hide the real cause. The process narrows the failure to its source before proposing a change.

Skill for Claude CodeCodex

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

Good fit Use it after an error, regression, failing test, crash, or report that something does not work, especially when the affected code or cause is unclear.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/damusix/atomic-claude/atomic-debug"><img src="https://agentmods.dev/badge/skills/damusix/atomic-claude/atomic-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,496 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. 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.00114 $0.01496
Opus 5.5 $0.00046 $0.00598
Sonnet 5.5 $0.00023 $0.00299
Haiku 4.5 $0.00011 $0.00150

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

Security

Grade A, and why

atomic-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 1mo 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.

context/skills/atomic-debug/SKILL.md · 125 lines

How it starts

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

Debug by hypothesis, not by guessing. Cheapest test first. Root cause, not symptom.

Auto-trigger on:

  • Error message or stack trace pasted
  • "broken", "doesn't work", "failing", "crash", "regression", "flaky"
  • Test failure output

Explicit: /atomic-debug or "let's debug X".

Five steps

1. State the symptom exactly

One sentence. Quote the exact error. Note what changed recently (commit, dep, env) if known.

Symptom: `POST /users` returns 500 since commit abc1234. Stack: `TypeError: Cannot read 'id' of undefined at users.ts:42`.

1b. Locate the surface (when not already in context)

Code-intel first (when an index is present). Before dispatching an agent, try atomic code explore "<symptom as a natural-language query>" for a one-shot digest of the failure neighborhood, or atomic code callers <suspect-fn> when the symptom names a symbol. This is a single shell command — cheaper than spawning an investigator and it returns caller-graph context grep would have to reconstruct. Fall through to the investigator dispatch below only when the index is absent or the query returns nothing useful.

If the suspect code isn't already mapped in the conversation (no file:line references, no recent reads of the relevant module), dispatch atomic-investigator BEFORE forming the hypothesis table. Haiku-backed and read-only, so it's cheap. Give it a focused brief:

Locate <symptom-relevant surface>. Report file:line table.

Example: "Locate the request pipeline for POST /users — middleware order, body parsing, auth check. Report file:line table."

Use its file:line — what table as the evidence base for the hypothesis table. The investigator spends Haiku tokens so the main context (running this skill) doesn't burn Sonnet/Opus on grep work.

Skip this step when: the symptom names the exact file:line (e.g. the stack trace pinpoints it), the bug is in code already in context, or the symptom is too abstract to map (e.g. "the build is slow" — there's no surface yet, hypotheses come first).

Read the full file on GitHub · 125 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. 1mo ago First seen · 125 lines · 114 tokens per session scan A becc4cd2545a

Subscribe to this mod's changes

atomic-debug is a skill published in the GitHub repository damusix/atomic-claude (113 stars, last pushed today), licensed MIT. It adds 114 tokens to every session and 1,496 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

sipcode-regress

Check the user's own local Claude Code and Codex logs for regressions after an update (prompt-cache misses, 5-minute cache TTL, uncached context, hourly cache rebuilds, Codex usage limit draining faster per token) and pin each one to the version that introduced it, using the Sipcode CLI. Use when the user asks whether…

Anuj7411/sipcode · 105 tokens

system-health

Suggest whether the machine needs a DISK or MEMORY cleanup — and catch the case where Heimdall ITSELF is the hog (runaway orphaned python from the presence keeper). Use when the machine is slow / swapping / laggy, disk or "System Data" is full, memory is exhausted, at the start of a long session, or when the user asks…

randomittin/heimdall · 102 tokens

vc:debug

Debug systematically with root-cause analysis before fixes. Use for bugs, test failures, unexpected behavior, performance issues, CI failures, or system investigation.

opencue/cuecards · 34 tokens

vc:chrome-devtools

Automate browsers with Puppeteer CLI scripts and persistent sessions. Use for screenshots, performance analysis, network monitoring, web scraping, form automation, JavaScript debugging.

opencue/cuecards · 38 tokens

mac-deep-clean

Deep-clean a macOS dev machine — reclaim disk (caches, dev-tool caches, dead repos, git worktrees, Android/Xcode/simulator bloat, System Data) and diagnose/fix memory exhaustion (runaway process leaks, swap thrashing, wired RAM). Use when disk is full, "System Data" is huge, the machine is swapping/slow, or the user…

randomittin/heimdall · 91 tokens

vc:sequential-thinking

Apply step-by-step analysis for complex problems with revision capability. Use for multi-step reasoning, hypothesis verification, adaptive planning, problem decomposition, course correction.

opencue/cuecards · 36 tokens