debug

debug is a skill for Claude Code, Codex from victordibia/designing-multiagent-systems. It costs 11 tokens per session (326 once invoked), scanned A, original, Apache-2.0.

A step-by-step method for finding and fixing software errors and unexpected behavior.

In plain words
What is it for?
Investigating stack traces, locating faulty code, fixing common Python errors, and adding tests for bugs.
Why use it?
It reduces guesswork by requiring the error to be reproduced, traced to its cause, fixed with a small change, and checked with tests.

Skill for Claude CodeCodex

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

Good fit Investigating stack traces, locating faulty code, fixing common Python errors, and adding tests for bugs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/victordibia/designing-multiagent-systems/debug
About the project

Designing Multi-Agent Systems is the code repository for a book that teaches how to build applications in which multiple AI agents collaborate, including a framework called PicoAgents implemented from scratch. Developers and learners use its tested examples to study agent reasoning, orchestration patterns, evaluation, optimization, and deployment.

victordibia/designing-multiagent-systems · 1,397 stars · on GitHub · buy.multiagentbook.com

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 victordibia/designing-multiagent-systems --skill debug
Clone the repo
git clone --depth 1 https://github.com/victordibia/designing-multiagent-systems

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 debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/victordibia/designing-multiagent-systems/debug/github.svg)](https://agentmods.dev/skills/victordibia/designing-multiagent-systems/debug)
Your own site
<a href="https://agentmods.dev/skills/victordibia/designing-multiagent-systems/debug"><img src="https://agentmods.dev/badge/skills/victordibia/designing-multiagent-systems/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 debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/victordibia/designing-multiagent-systems/debug"><img src="https://agentmods.dev/badge/skills/victordibia/designing-multiagent-systems/debug.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 326 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00326
Opus 5.5 $0.00004 $0.00130
Sonnet 5.5 $0.00002 $0.00065
Haiku 4.5 $0.00001 $0.00033

Measured 3mo ago against content hash 8bc92ef9e526, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug 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.

picoagents/src/picoagents/skills/debug/SKILL.md · 53 lines

What it actually says

Debug Skill

Debugging Process

1. Reproduce

  • Get the exact error message
  • Find the minimal steps to trigger it
  • Note the environment (Python version, OS, dependencies)

2. Locate

  • Read the full stack trace (bottom = where it crashed, top = root cause)
  • Find the relevant file and line
  • Read surrounding code for context

3. Understand

  • What was the code trying to do?
  • What input caused the failure?
  • What assumption was violated?

4. Fix

  • Make the minimal change that fixes the issue
  • Don't refactor while debugging
  • Add a test that would have caught this

5. Verify

  • Run the failing case again
  • Run the full test suite
  • Check for similar patterns elsewhere

Common Patterns

NoneType errors: Something returned None unexpectedly. Check the call chain.

Import errors: Missing dependency or circular import. Check requirements and import order.

Key/Index errors: Accessing something that doesn't exist. Add existence checks.

Type errors: Wrong type passed. Check function signatures and callers.

Workflow

  1. grep for the error message in codebase
  2. Read the stack trace bottom-to-top
  3. Read the failing function
  4. Add logging/print if needed to trace values
  5. Fix and verify
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 · 53 lines · 11 tokens per session scan A 8bc92ef9e526

Subscribe to this mod's changes

debug is a skill published in the GitHub repository victordibia/designing-multiagent-systems (1,397 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 11 tokens to every session and 326 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-30.

Related

debug compared with skills from other repositories

debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debugvictordibia/designing-multiagent-systemsSkill1.4k3mo agoApache-2.0A11Claude Code, Codex
potpie-clipotpie-ai/potpieSkill5.8k6d agoApache-2.0A60Codex
potpie-debug-memorypotpie-ai/potpieSkill5.8k6d agoApache-2.0A41Claude Code, Codex
observal-advancedObserval/ObservalSkill4.2k16d agoApache-2.0A62Claude Code, Codex
resolve-handoffomnigent-ai/omnigentSkill12ktodayApache-2.0A23Claude Code, Codex
google-agents-cli-scaffoldgoogle/agents-cliSkill6.5k6d agoApache-2.0A147Claude Code
verify-omnigentomnigent-ai/omnigentSkill12ktodayApache-2.0A100Claude Code, Codex