debugging

debugging is a skill for Claude Code from krzysztofsurdy/code-virtuoso. It costs 83 tokens per session (2,429 once invoked), scanned A, original, MIT.

A step-by-step method for finding the underlying cause of software bugs. It starts by reproducing the problem and examining evidence such as error messages, logs, stack traces, and user actions.

In plain words
What is it for?
Use it for bugs, failed or flaky tests, slow behaviour, production errors, and failures between connected parts of an application.
Why use it?
It reduces guesswork and prevents fixes that hide the visible symptom while leaving the real problem in place. It also helps make intermittent failures easier to investigate.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the knowledge-virtuoso plugin — 15 skills shipped together

Good fit Use it for bugs, failed or flaky tests, slow behaviour, production errors, and failures between connected parts of an application.

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

Made for: Claude Code.

Or install knowledge-virtuoso, the plugin that ships this one along with the rest of its 15 skills.

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/krzysztofsurdy/code-virtuoso/debugging/github.svg)](https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/debugging)
Your own site
<a href="https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/debugging"><img src="https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/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/krzysztofsurdy/code-virtuoso/debugging"><img src="https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,429 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.00083 $0.02429
Opus 5.5 $0.00033 $0.00972
Sonnet 5.5 $0.00017 $0.00486
Haiku 4.5 $0.00008 $0.00243

Measured 1mo ago against content hash 8a57b6ad6faf, 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 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.

skills/knowledge/debugging/SKILL.md · 244 lines

How it starts

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

Debugging

Systematic methodology for finding and fixing bugs. Prioritizes root cause analysis over symptom treatment, evidence over intuition, and prevention over recurrence.

Iron Law

No fix without root cause. Never apply a fix until you can explain WHY the bug exists, not just WHERE it manifests. Symptom-level fixes create new bugs.

When to Use

  • Bug report from QA or production alert
  • Test failure with unclear cause
  • Intermittent/flaky behavior
  • Performance degradation
  • Unexpected behavior that "used to work"
  • Integration failures between components

Workflow

Phase 1: Reproduce

Establish a reliable reproduction before investigating.

  1. Collect all evidence — error messages, stack traces, logs, screenshots, user steps
  2. Identify the exact conditions: environment, data state, user actions, timing
  3. Create a minimal reproduction — strip away everything that isn't needed to trigger the bug
  4. Confirm reproduction is consistent (if intermittent, note frequency and conditions)
  5. Write down the reproduction steps precisely — someone else should be able to follow them

Output: Documented reproduction steps, minimal test case

If you cannot reproduce: Document what you tried, check environment differences, add instrumentation and wait for next occurrence. Do not proceed to Phase 2 on guesswork — unreproducible bugs get logged, not "fixed."

Phase 2: Investigate

Gather evidence systematically. Do NOT form hypotheses yet — this phase is about observation, not explanation.

  1. Read the full error message and stack trace — every line, not just the first one
  2. Check git history — what changed recently? (git log --since="2 weeks ago", git bisect)
  3. Trace the data flow — follow the input from entry point to failure point
  4. Check boundaries — where does data cross component/service/layer boundaries?
  5. Collect environmental context — versions, configuration, dependencies, resource state
  6. Map the blast radius — what else is affected? Is this an isolated failure or systemic?

Read the full file on GitHub · 244 lines

Files

What ships with it

2 files 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. 1mo ago First seen · 244 lines · 83 tokens per session scan A 8a57b6ad6faf

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository krzysztofsurdy/code-virtuoso (39 stars, last pushed 5mo ago), licensed MIT. It adds 83 tokens to every session and 2,429 once invoked, about $0.0003 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

django-ticket-triage

Analyze a Django Trac ticket and produce a triage recommendation report — duplicate search, related PRs, forum threads, and the affected source code. Use when the user gives a Django ticket number, or asks whether a ticket is valid, a duplicate, or ready for a triage stage.

2ykwang/agent-skills · 65 tokens

gh-issues

Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5]…

SafeAI-Lab-X/ClawKeeper · 116 tokens

clawkeeper

Install, configure, verify, and debug the Clawkeeper watcher stack in this workspace. Use when a user asks to set up clawkeeper, initialize remote or local mode, enable clawkeeper-watcher, wire clawkeeper-bands, diagnose context-judge routing, inspect watcher logs, fix mode/config mismatches, or troubleshoot startup…

SafeAI-Lab-X/ClawKeeper · 98 tokens

openclaw-parallels-smoke

End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip…

SafeAI-Lab-X/ClawKeeper · 85 tokens

openclaw-pr-maintainer

Maintainer workflow for reviewing, triaging, preparing, closing, or landing OpenClaw pull requests and related issues. Use when Codex needs to validate bug-fix claims, search for related issues or PRs, apply or recommend close/reason labels, prepare GitHub comments safely, check review-thread follow-up, or perform…

SafeAI-Lab-X/ClawKeeper · 84 tokens

node-connect

Diagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale…

SafeAI-Lab-X/ClawKeeper · 81 tokens