debug

debug is a skill for Claude Code, Codex from jmylchreest/aide. It costs 12 tokens per session (1,527 once invoked), scanned A, original, MIT.

A systematic debugging workflow for finding and fixing software bugs. It starts by reproducing the problem, then locating the relevant code, testing possible causes, applying a fix, and checking the result.

In plain words
What is it for?
Use it for failing tests, error messages, unexpected behavior, intermittent problems, and bugs affected by the runtime environment.
Why use it?
It replaces trial-and-error changes with a documented path from the observed failure to a verified solution.

Skill for Claude CodeCodex

Part of the aide plugin — 26 skills, 9 agents shipped together

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/jmylchreest/aide/debug
Any agent
npx skills add jmylchreest/aide --skill debug
Clone the repo
git clone --depth 1 https://github.com/jmylchreest/aide

Made for: Claude Code, Codex.

Or install aide, the plugin that ships this one along with the rest of its 26 skills, 9 agents.

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/jmylchreest/aide/debug.svg)](https://agentmods.dev/skills/jmylchreest/aide/debug)
Your own site
<a href="https://agentmods.dev/skills/jmylchreest/aide/debug"><img src="https://agentmods.dev/badge/skills/jmylchreest/aide/debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,527 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.00012 $0.01527
Opus 5 $0.00006 $0.00763
Sonnet 5 $0.00002 $0.00305
Haiku 4.5 $0.00001 $0.00153

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

How it starts

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

Debug Mode

Recommended model tier: smart (opus) - this skill requires complex reasoning

Systematic approach to identifying and fixing bugs.

Prerequisites

Before starting:

  • Get the exact error message or unexpected behavior description
  • Identify the entry point or trigger for the bug
  • Note any relevant environment details (Node version, OS, etc.)

Workflow

Step 1: Reproduce the Issue

Goal: Confirm the bug exists and understand its behavior.

# Run the failing code/test
npm test -- --grep "failing test"
# OR
node path/to/script.js

Document:

  • Exact error message
  • Steps to trigger
  • Expected vs actual behavior
  • Is it consistent or intermittent?

If cannot reproduce:

  • Check environment differences
  • Look for race conditions
  • Check for cached state

Step 2: Locate the Relevant Code

Use tools to find code related to the error:

# Search for function mentioned in stack trace
mcp__plugin_aide_aide__code_search query="functionName" kind="function"

# Get a structural overview of the suspect file (signatures + line ranges)
mcp__plugin_aide_aide__code_outline file="path/to/file.ts"

# Get symbols in suspect file
mcp__plugin_aide_aide__code_symbols file="path/to/file.ts"

# Search for error message text in code
Grep for "error message text"

Step 3: Trace the Execution Path

Follow the code flow from entry to error:

  1. Use code_outline on each file in the call chain to understand its structure
  2. Use code_references to find callers of the failing function
  3. Use Read with offset/limit to read specific functions in the execution path (use line numbers from the outline)
  4. Check type definitions with code_search kind="interface"

Outlines help you identify which functions matter, so you can read just those sections.

Step 4: Form Hypotheses

Based on the error type, consider these causes:

Symptom Likely Causes
"undefined is not a function" Variable is null/undefined, wrong import
"Cannot read property of undefined" Missing null check, async timing issue
"Type error" Type mismatch, wrong function signature
"Maximum call stack" Infinite recursion, circular reference
"Network error" Bad URL, CORS, timeout, server down
"State not updating" Mutation instead of new object, missing dependency

Read the full file on GitHub · 227 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 · 227 lines · 12 tokens per session scan A 8b251e4901f0

Subscribe to this mod's changes

debug is a skill published in the GitHub repository jmylchreest/aide (16 stars, last pushed 8d ago), licensed MIT. It adds 12 tokens to every session and 1,527 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

rulesync

Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Use when syncing AI rules, running rulesync commands, importing or generating rule files, or managing shared AI coding configurations.

dyoshikawa/rulesync · 64 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens

loongsuite-pilot-insight

基于 LoongSuite Pilot / AI Coding Agent 日志生成事件洞察、组织洞察、数据质量、研发效能和 AI Native 使用类 SLS 报表时使用;包含 AI Coding 事件表语义,以及团队报表可选的部门维表、deptuser 组织关系、指标口径和公共 CTE,通常与 sls-dashboard-builder 一起使用。.

alibaba/loongsuite-pilot · 91 tokens

map-fast

Minimal workflow for small, low-risk changes — no planning, no learning.

azalio/map-framework · 17 tokens

alipay-webhooks

Receive and verify Alipay (Antom / Alipay+) webhook notifications. Use when setting up Alipay webhook handlers, debugging RSA256 Signature header verification, or handling payment events like notifyPayment, notifyCapture, notifyRefund, notifyAuthorization, and notifyDispute.

hookdeck/webhook-skills · 58 tokens

clio-webhooks

Receive and verify Clio (Clio Manage) webhooks. Use when setting up Clio webhook handlers, debugging X-Hook-Signature verification, completing the X-Hook-Secret handshake, or handling legal practice events like matter.created, contact.updated, activity.created, or bill events.

hookdeck/webhook-skills · 64 tokens