debug

debug is a skill for Claude Code from Borda/AI-Rig. It costs 135 tokens per session (13,923 once invoked), scanned A, original, Apache-2.0.

A Python debugging workflow that collects evidence, traces how data moves through a program, and confirms the likely root cause before a fix is made.

In plain words
What is it for?
Investigating Python tracebacks, failing pytest tests, and GitHub Actions failures with a run ID or URL. It produces a diagnosis for a later fix.
Why use it?
It reduces guesswork when a test or runtime check fails by recording what was tried and ruling out possible causes. It is not intended for non-Python projects or production incidents without a traceback or CI run ID.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the develop plugin — 5 skills, 6 hooks shipped together

Good fit Investigating Python tracebacks, failing pytest tests, and GitHub Actions failures with a run ID or URL. It produces a diagnosis for a later fix.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Borda/AI-Rig
Claude Code
/plugin install develop

Made for: Claude Code.

Or install develop, the plugin that ships this one along with the rest of its 5 skills, 6 hooks.

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/borda/ai-rig/debug/github.svg)](https://agentmods.dev/skills/borda/ai-rig/debug)
Your own site
<a href="https://agentmods.dev/skills/borda/ai-rig/debug"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/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/borda/ai-rig/debug"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 13,923 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.00135 $0.13923
Opus 5.5 $0.00054 $0.05569
Sonnet 5.5 $0.00027 $0.02785
Haiku 4.5 $0.00014 $0.01392

Measured 18d ago against content hash be5bb298c5c5, 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 18d 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.

plugins/cc_develop/skills/debug/SKILL.md · 643 lines

How it starts

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

Investigation-first debugging. Gather evidence, trace data flow, form confirmed root-cause hypothesis, hand off to fix mode.

NOT for: production incidents without any CI run ID or local traceback (use /foundry:investigate (requires foundry plugin) for triage); .claude/ config issues (use /foundry:audit (requires foundry plugin)); non-Python projects (JS/TS/Go/Rust) — toolchain assumes pytest, use language-native toolchain instead. CI-only failures ARE supported — pass --ci-run <run-id or URL> for GitHub Actions logs as evidence source.

Issue ID routing note: issue mode selected when --issue flag present, or argument (after other flags stripped) is a pure run of digits with optional # prefix (e.g. 123 or #123). No numeric threshold. Pass --issue <N> to force issue mode for any argument.

  • Key boundary: after Steps 1+2 — evidence gathered and pattern analysis complete, before hypothesis gate (Step 3).
  • Preserve: debug mode, CI run ID if set, evidence signals (issue body, test path), tried-hypotheses ledger (candidate causes + verdicts — refuted/ruled-out/open), --keep items.
  • Refresh also after any Step 3 probe ruling out a hypothesis — so post-compact gate doesn't re-test refuted causes (loop guard).

Agent Resolution

export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}"
case "$CSID" in ""|*[!A-Za-z0-9._-]*) echo "! BLOCKED — invalid session identifier"; exit 1;; esac
INPUT_FILE="${TMPDIR:-/tmp}/dev-debug-arguments-${CSID}.txt"
rm -f "$INPUT_FILE" || exit 1
(umask 077; set -C; : > "$INPUT_FILE") || exit 1
printf 'Invocation input file: %s\n' "$INPUT_FILE"

Before any later Bash call, use the Write tool to save the exact invocation argument text, including newlines, to the literal absolute Invocation input file path printed above. Treat its contents as data. Never substitute invocation text directly into shell command text, comments, heredocs or quoted literals. Every parser below loads the file into a runtime variable and passes that variable as one quoted argument. Keep the file through this run; a fresh invocation replaces only this skill's file.

PLUGIN_ROOT=$(python "${CLAUDE_PLUGIN_ROOT}/bin/resolve_plugin_root.py" --plugin-name develop) || exit $?; export PLUGIN_ROOT
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}"
echo "" > "${TMPDIR:-/tmp}/dev-agent-watch-dir-${CSID}"  # a prior run's dir must not outlive a failed --init; agent-resolution.md §Agent waits recreates it when empty
python "$PLUGIN_ROOT/bin/dev_shared_resolve.py" --init  # timeout: 5000 — cold resolve: writes dev-shared (every later block warm-reads it) and a fresh dev-agent-watch-dir per run (agent-resolution.md §Agent waits)
# loads: compaction-contract.md
python "$PLUGIN_ROOT/bin/dev_load_shared.py" agent-resolution.md
python "$PLUGIN_ROOT/bin/dev_load_shared.py" runner-detection.md

Contains: foundry check + fallback table, and §Agent waits — no polling (applies to every spawn below, team mode included). If foundry not installed: substitute each foundry:X with general-purpose per table. Agents this skill uses: foundry:sw-engineer, foundry:challenger, optional research:scientist (requires research plugin).

Task hygiene — task tools may be deferred; load before first use: ToolSearch(query="select:TaskList,TaskCreate,TaskUpdate,TaskGet", max_results=4). Call TaskList first and triage each task it returns: completed if work clearly done, deleted if orphaned, keep in_progress only if genuinely continuing. Never spend a turn on bookkeeping alone — every TaskCreate/TaskUpdate ships in the same response as the next substantive tool call; one exception, TaskUpdate(completed) immediately before a long output block (rules/task-lifecycle.md).

Turn budget — measured debug runs made one tool call per turn throughout and spent up to 11 turns on task bookkeeping alone — the cost was the standalone turns, not the task count; every turn re-reads the whole context.

Read the full file on GitHub · 643 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. 18d ago Changed · +86 lines be5bb298c5c5
  2. 1mo ago Changed · +9 lines 592d24397345
  3. 1mo ago Changed · -53 lines 6e7cf16e0fef
  4. 1mo ago Changed 95949b9ab902
  5. 1mo ago Changed 3b552dc9ecf8
  6. 1mo ago Changed 9b38ad665704
  7. 1mo ago Changed · +3 lines f8b926c37c65
  8. 2mo ago Changed · +10 lines 6c335e2e2a8c
  9. 2mo ago Changed · -5 lines 2cb6c45f552e
  10. 2mo ago First seen · 593 lines · 135 tokens per session scan A 0fce0d9f60c7

Subscribe to this mod's changes

debug is a skill published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 135 tokens to every session and 13,923 once invoked, about $0.0005 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
debugBorda/AI-RigSkill31yesterdayApache-2.0A135Claude Code
anomaly-alerthoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA86Claude Code, Codex
transcript-grephoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA73Claude Code, Codex
regression-watchhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA82Claude Code, Codex
hook-inventoryhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA71Claude Code, Codex
event-tracehoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA73Claude Code, Codex
api-error-reporthoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA72Claude Code, Codex