debugging

debugging is a skill for Claude Code from tamnguyendinh/Anvien. It costs 11 tokens per session (1,658 once invoked), scanned A, original, MIT.

A step-by-step method for fixing software bugs from the first symptom to a verified correction. It requires reproducing the problem, finding its underlying cause, planning the change, and checking the result with new evidence.

In plain words
What is it for?
Reproducing failures, tracing their root causes, planning fixes, adding safeguards, and verifying changes in code repositories.
Why use it?
It reduces guesswork by requiring evidence before a fix and verification before declaring the work complete.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Reproducing failures, tracing their root causes, planning fixes, adding safeguards, and verifying changes in code repositories.

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

Made for: Claude Code.

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/tamnguyendinh/anvien/debugging/github.svg)](https://agentmods.dev/skills/tamnguyendinh/anvien/debugging)
Your own site
<a href="https://agentmods.dev/skills/tamnguyendinh/anvien/debugging"><img src="https://agentmods.dev/badge/skills/tamnguyendinh/anvien/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/tamnguyendinh/anvien/debugging"><img src="https://agentmods.dev/badge/skills/tamnguyendinh/anvien/debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,658 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.00011 $0.01658
Opus 5.5 $0.00004 $0.00663
Sonnet 5.5 $0.00002 $0.00332
Haiku 4.5 $0.00001 $0.00166

Measured 3mo ago against content hash 9d3abaa21bb0, 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 3mo 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.

internal/aicontext/skills/debugging/SKILL.md · 173 lines

How it starts

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

Debugging With Anvien

Use this skill to debug from symptom to verified fix in repositories where Anvien rules or Anvien evidence apply. The workflow is continuous: capture the failure, reproduce it, locate the owner, trace the root cause, write a plan, check impact, fix the source, add defenses when needed, and verify with fresh evidence.

Iron Laws

  • MUST understand the root cause before fixing.
  • MUST write a plan before fixing.
  • MUST run a full build before testing when active repository rules require it.
  • MUST verify with fresh evidence before claiming completion.
  • MUST follow active repository rules, including Anvien rules when present.

Phase 1: Capture The Symptom

Record the failing command, log, stack trace, screenshot, test, route, input, output, or runtime behavior.

Do not propose a fix yet.

Phase 2: Reproduce

Reproduce the failure consistently.

If the failure is not reproducible, gather more evidence instead of guessing:

  • run the failing command again
  • isolate the input
  • capture logs
  • add temporary diagnostic instrumentation when appropriate
  • compare local, CI, browser, runtime, and environment differences

Phase 3: Locate Candidate Owner

Use source inspection, logs, tests, and repository tools to identify the likely owner.

When active repository rules require Anvien:

  • Run anvien analyze --force before graph-based investigation.
  • Unknown owner: anvien query "<symptom>" --repo <repo>
  • Candidate files: anvien query files "<symptom>" --repo <repo>
  • Suspect file: anvien file-detail <path> --repo <repo> --json
  • Suspect symbol: anvien context symbol "<symbol>" --repo <repo>
  • Ambiguous symbol: anvien context symbol "<symbol>" --file <path> --repo <repo>
  • Route, tool, consumer, or contract behavior: anvien query api, anvien api route-map, anvien api tool-map, anvien api shape-check, or anvien api impact
  • Graph, index, resolution, source-site, or retrieval quality issue: anvien graph-health summary --repo <repo> --json, anvien graph-health files --repo <repo> --json, anvien graph-health explain "File:<path>" --repo <repo> --json, anvien resolution-inventory --graph .anvien/graph.json, anvien source-site-accuracy --graph .anvien/graph.json, or anvien query-health --repo <repo>
  • Stuck analyze, stale MCP server, lock, or runtime process issue: anvien doctor locks --repo <repo> --json or anvien doctor processes --json

Read the full file on GitHub · 173 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. 3mo ago First seen · 173 lines · 11 tokens per session scan A 9d3abaa21bb0

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository tamnguyendinh/Anvien (12 stars, last pushed today), licensed MIT. It adds 11 tokens to every session and 1,658 once invoked, about $0.0000 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
debuggingtamnguyendinh/AnvienSkill12todayMITA11Claude Code
code-graphFalkorDB/code-graphSkill35322d agoMITA64Claude Code, Codex
usageFreePeak/LeanKGSkill222yesterdayApache-2.0A27Claude Code
qartezkuberstar/qartez-mcpSkill7322d agononeA48Claude Code, Codex
source-command-hooks-post-editayushcodes10/echo-memSkill22mo agoApache-2.0A15Claude Code, Codex
source-command-sparc-refinement-optimization-modeayushcodes10/echo-memSkill22mo agoApache-2.0A38Claude Code, Codex
source-command-swarm-optimizationayushcodes10/echo-memSkill22mo agoApache-2.0A17Claude Code, Codex