debugging

debugging is a skill for Claude Code, Codex from dineshdb/pie. It costs 15 tokens per session (496 once invoked), scanned A, original, MIT.

A step-by-step method for debugging software by finding the original cause of an error before changing code.

In plain words
What is it for?
Investigating failing tests or commands, tracing incorrect values through a codebase, comparing working and broken implementations, and verifying a fix.
Why use it?
It reduces guesswork and repeated fixes by using error details, reproduction steps, data tracing, working examples, and focused tests.

Skill for Claude CodeCodex

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

Good fit Investigating failing tests or commands, tracing incorrect values through a codebase, comparing working and broken implementations, and verifying a fix.

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

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 debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/dineshdb/pie/debugging/github.svg)](https://agentmods.dev/skills/dineshdb/pie/debugging)
Your own site
<a href="https://agentmods.dev/skills/dineshdb/pie/debugging"><img src="https://agentmods.dev/badge/skills/dineshdb/pie/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/dineshdb/pie/debugging"><img src="https://agentmods.dev/badge/skills/dineshdb/pie/debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 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.
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.00015 $0.00496
Opus 5.5 $0.00006 $0.00198
Sonnet 5.5 $0.00003 $0.00099
Haiku 4.5 $0.00002 $0.00050

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

.pie/skills/debugging/SKILL.md · 71 lines

What it actually says

Debugging

Iron Law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION.

Phase 1: Root Cause

Before any fix:

  1. Read error completely — stack traces, line numbers, error codes
  2. Reproduce consistently — exact steps to trigger
  3. Check recent changes — git diff, new deps, config changes
  4. Trace data flow — where does the bad value originate?

Multi-component tracing:

# Trace a value through the stack
grep -rn "VARIABLE_NAME" src/
git log --oneline -10  # recent changes
git diff HEAD~3 -- src/module/  # what changed recently

Stack trace when lost:

import traceback; traceback.print_stack()
# or in Rust: println!("{:?}", std::backtrace::Backtrace::capture());

Phase 2: Pattern Analysis

  1. Find working examples in codebase: grep -rn "working_pattern" src/
  2. Read reference implementation completely
  3. Identify ALL differences between working and broken
  4. Understand dependencies and assumptions

Phase 3: Hypothesis

  1. State: "I think X is root cause because Y"
  2. Make SMALLEST possible change
  3. Test ONE variable at a time
  4. If 3+ fixes failed → question architecture

Phase 4: Implement + Defense-in-Depth

  1. Create failing test case
  2. Implement single fix (no "while I'm here" changes)
  3. Verify fix works using verification skill
  4. Add validation at every layer:
Layer Purpose
Entry Reject invalid input at boundary
Business Logic Ensure data makes sense for operation
Environment Prevent dangerous operations in context
Debug Capture context for forensics

Red Flags — STOP

  • "Quick fix for now"
  • "Just try changing X"
  • "Add multiple changes at once"
  • "I don't fully understand but this might work"
  • One more fix (when 2+ already failed)

All mean: Return to Phase 1. If 3+ failed → question architecture.

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 · 71 lines · 15 tokens per session scan A 9175187dd1a1

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository dineshdb/pie (2 stars, last pushed 28d ago), licensed MIT. It adds 15 tokens to every session and 496 once invoked, about $0.0001 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

Other skills, from other repositories

post-rollback-diagnose

On-demand diagnózis egy sikertelen frissítés + auto-rollback után. A dashboard "Frissítés diagnózisa" gombja indítja (opt-in). NEM cron-vezérelt.

Szotasz/marveen · 53 tokens

debug

Systematic debugging that finds the root cause before changing any code — collect symptoms, trace the code path, check what changed, reproduce deterministically, form a testable hypothesis, then fix the cause (not the symptom) and prove it with a regression test. Use when the user reports a bug, a crash, a failing…

genai-io/san · 84 tokens

troubleshoot-terva

Diagnose terva itself. Symptoms include an extension that will not load, a connector or bot that is down, missing tools, or MCP trouble. A bloated context or session/resume confusion also qualifies. Use when terva misbehaves, or when something that should be available is absent. Also use when the user asks why terva…

terva-sh/terva · 83 tokens

channel-plugin-duplicate-socket

Marveen flottában új channel plugin (slack-channel, telegram, stb.) telepítésekor a user-szintű /.claude/settings.json enabledPlugins minden agent-nek loadolja a plugin server-t, és ha az egy Socket Mode connection-t nyit (Slack), akkor TÖBB agent egyszerre nyit ugyanazon a workspace-en kapcsolatot. Akkor használd, ha…

Szotasz/marveen · 110 tokens

stuck

Diagnose frozen, stuck, or slow Qwen Code sessions on this machine. Scans for problematic processes, high CPU/memory usage, hung subprocesses, and debug logs. Use /stuck or /stuck to focus on a specific process.

QwenLM/qwen-code · 57 tokens

rust-check

Run cargo check on the current Rust project to find compile errors.

Hmbown/CodeWhale · 15 tokens