debugging

debugging is a skill for Claude Code, Codex from andreaswasita/copilot-agents-dojo. It costs 13 tokens per session (1,170 once invoked), scanned A, original, MIT.

A method for investigating difficult or unclear software bugs by collecting evidence, forming a testable explanation, and narrowing the possible cause. It uses reproduction steps, errors, logs, recent changes, and code history instead of guesswork.

In plain words
What is it for?
Use it when the error message does not make the cause obvious or normal debugging has failed. It reproduces the problem, tests one evidence-based hypothesis at a time, and narrows the failing component.
Why use it?
It helps with intermittent failures, bugs across several parts of a system, performance slowdowns, memory leaks, and race conditions. This avoids making unrelated changes until the actual cause is understood.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/andreaswasita/copilot-agents-dojo/debugging
Any agent
npx skills add andreaswasita/copilot-agents-dojo --skill debugging
Clone the repo
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo

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/andreaswasita/copilot-agents-dojo/debugging.svg)](https://agentmods.dev/skills/andreaswasita/copilot-agents-dojo/debugging)
Your own site
<a href="https://agentmods.dev/skills/andreaswasita/copilot-agents-dojo/debugging"><img src="https://agentmods.dev/badge/skills/andreaswasita/copilot-agents-dojo/debugging.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,170 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00013 $0.01170
Opus 5 $0.00006 $0.00585
Sonnet 5 $0.00003 $0.00234
Haiku 4.5 $0.00001 $0.00117

Measured 4d ago against content hash 6d481bc5729a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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/debugging/SKILL.md · 143 lines

How it starts

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

Debugging Skill

Investigates hard or non-obvious bugs by gathering evidence, forming a hypothesis, and narrowing the search space — never by guessing or shotgun-changing code. Complements autonomous-bug-fix with deeper diagnostic technique. Does NOT replace running the failing test and reading the actual error.

When to Use

  • The cause of a bug is not immediately obvious.
  • Intermittent or hard-to-reproduce failures.
  • Bugs spanning multiple components or layers.
  • Standard approaches ("read the error, fix the obvious") have failed.
  • Performance regressions, memory leaks, race conditions.
  • NOT when the failing test message already states the problem — just fix it.

Prerequisites

  • Ability to reproduce the failure (or evidence captured from production).
  • The view, grep, glob, and powershell Copilot tools.
  • git for history and bisect.
  • A test or repro script that exhibits the bug.

How to Run

1. Reproduce the failure. Capture the exact error and stack.
2. Gather evidence: recent commits, environment, inputs, logs.
3. Form ONE hypothesis based on evidence.
4. Test the hypothesis with the cheapest technique that disproves it.
5. Narrow the layer, then the line.
6. Write a regression test BEFORE the fix.
7. Fix the root cause, not the symptom.

Quick Reference

Technique Use when
git bisect Bug appeared recently, clean commit history
Print / log tracing Need to see execution flow
Minimal repro Complex system, need to isolate the variable
Breakpoint debugging Need to inspect state at a specific point
Diff analysis (git log, git diff) "It worked before" — something changed
Input shrinking Test with smaller inputs until the failure stops
Bug shape First place to look
Race condition Shared mutable state, missing await, missing lock
Memory leak Growing collections, unclosed resources, retained refs
Performance Database (N+1, missing index), network (uncached calls)
Intermittent Timing, external dependencies, ordering assumptions

Read the full file on GitHub · 143 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. 4d ago First seen · 143 lines · 13 tokens per session scan A 6d481bc5729a

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository andreaswasita/copilot-agents-dojo (51 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 1,170 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

analyze-project

Forensic root cause analyzer for Antigravity sessions. Classifies scope deltas, rework patterns, root causes, hotspots, and auto-improves prompts/health.

sinhoneyy/master-skills · 39 tokens

analyze-project

Forensic root cause analyzer for Antigravity sessions. Classifies scope deltas, rework patterns, root causes, hotspots, and auto-improves prompts/health.

marysatasselshaped667/skills-collection-1 · 39 tokens

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

AndreasKarz/Vibe-Coding-Dev-Setup · 45 tokens

database-specialist

Data-pipeline implementation specialist — change-tracker/data-loader configurations, stored procedure integration, MongoDB repository code, DI registration, and Squadron-based database tests. Triggers: SqlChangeTracker, SqlDataLoader, SqlExecutionContext, IMongoCollection, MongoConventions, DomainEntityRepository…

AndreasKarz/Vibe-Coding-Dev-Setup · 81 tokens

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when…

AndreasKarz/Vibe-Coding-Dev-Setup · 168 tokens

email-template-developer

Use this skill when working on email, SMS, or push notification templates — authoring Handlebars HTML email templates, understanding the backend template engine, visual testing with Playwright, or managing multi-tenant template deployment. Triggers on: body.hbs.html, subject.hbs.txt, Handlebars email templates…

AndreasKarz/Vibe-Coding-Dev-Setup · 108 tokens