debugging

debugging is a skill for Claude Code from hnikoloski/imlazy. It costs 38 tokens per session (979 once invoked), scanned A, original, MIT.

A step-by-step method for finding the underlying cause of a software problem before changing code. It requires examining errors, reproducing the problem, checking recent changes, and tracing data through connected parts.

In plain words
What is it for?
Investigating bugs, analysing error messages and stack traces, checking data flow, testing explanations, and deciding when a design needs reconsideration.
Why use it?
It prevents guesswork and repeated fixes that address symptoms instead of the actual cause.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the imlazy plugin — 26 skills, 1 command, 1 hook shipped together

Good fit Investigating bugs, analysing error messages and stack traces, checking data flow, testing explanations, and deciding when a design needs reconsideration.

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

Made for: Claude Code.

Or install imlazy, the plugin that ships this one along with the rest of its 26 skills, 1 command, 1 hook.

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/hnikoloski/imlazy/imlazy-debug/github.svg)](https://agentmods.dev/skills/hnikoloski/imlazy/imlazy-debug)
Your own site
<a href="https://agentmods.dev/skills/hnikoloski/imlazy/imlazy-debug"><img src="https://agentmods.dev/badge/skills/hnikoloski/imlazy/imlazy-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 debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/hnikoloski/imlazy/imlazy-debug"><img src="https://agentmods.dev/badge/skills/hnikoloski/imlazy/imlazy-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 979 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.00038 $0.00979
Opus 5 $0.00019 $0.00490
Sonnet 5 $0.00008 $0.00196
Haiku 4.5 $0.00004 $0.00098

Measured 9d ago against content hash 045ddcbbb78e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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/imlazy-debug/SKILL.md · 91 lines

How it starts

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

debugging

The Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

If you have not completed Phase 1, you cannot propose fixes.

The Four Phases

You MUST complete each phase before proceeding to the next.

Phase 1: Root Cause Investigation

BEFORE attempting ANY fix:

  1. Read error messages carefully. Don't skip past errors. Read stack traces completely. Note line numbers, file paths, error codes.

  2. Reproduce consistently. Can you trigger it reliably? What are the exact steps? If not reproducible, gather more data before guessing.

  3. Check recent changes. What changed that could cause this? git diff, recent commits, new dependencies, config changes.

  4. Gather evidence in multi-component systems (CI → build → signing, API → service → DB): Before proposing fixes, add diagnostic instrumentation at each component boundary — log what data enters, log what data exits. Run once to see WHERE it breaks, then investigate that component. See references/multi-component-debugging.md for a worked example.

  5. Trace data flow. Where does the bad value originate? What called this with the bad value? Keep tracing up until you find the source. Fix at source, not at symptom.

Phase 2: Pattern Analysis

  1. Find working examples — locate similar working code in the codebase.
  2. Read the reference implementation completely if implementing a pattern — don't skim.
  3. Identify differences — what's different between working and broken? List every difference.
  4. Understand dependencies — what config, environment, or state does this need?

Phase 3: Hypothesis and Testing

  1. Form one hypothesis: "I think X is the root cause because Y." Write it down. Be specific.
  2. Test minimally: make the smallest possible change to test the hypothesis. One variable at a time.
  3. Verify before continuing. Worked? → Phase 4. Didn't work? → form new hypothesis. Don't add more fixes on top.
  4. If you don't know, say "I don't understand X." Ask for help. Don't pretend.

Read the full file on GitHub · 91 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. 9d ago First seen · 91 lines · 38 tokens per session scan A 045ddcbbb78e

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository hnikoloski/imlazy (2 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 979 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

bug-detective

This skill should be used when the user asks to "debug this", "fix this error", "investigate this bug", "troubleshoot this issue", "find the problem", "something is broken", "this isn't working", "why is this failing", or reports errors/exceptions/bugs. Provides systematic debugging workflow and common error patterns.

Galaxy-Dawn/claude-scholar · 75 tokens

tfx-find

A codebase search tool for quickly locating files, functions, classes, variables, text, and project structure. A codebase is the collection of source files that make up a software project.

tellang/triflux · 87 tokens

do-it-code-quality

Use when designing, changing, or debugging code to locate causal ownership and close the affected behavior.

tdwhere123/do-it · 24 tokens

debug

Debug a stubborn bug with a deterministic reproduction, hypothesis ledger, one-variable fixes, and a regression test. Use after the first obvious look fails, reproduction is unclear, or a fix attempt failed. Not for routine obvious failures; use for "ไล่บั๊ก".

ohm41321/luciazero · 57 tokens

bisect

Pinpoint the first bad commit for a reproducible regression in a safe temporary worktree. Use when HEAD is bad, a known revision is good, and one unattended command distinguishes them; handles flaky endpoints and git-bisect skip exit 125.

ohm41321/luciazero · 53 tokens

bug-finder

Hunt for previously unknown correctness defects in an existing repository by deriving invariants, prioritizing high-risk surfaces, generating concrete bug candidates, and proving or retiring them with bounded evidence. Use when the user asks to find bugs, hidden defects, races, lifecycle failures, data-loss paths, or…

cmdr-chara/codex-toolkit · 97 tokens