debug

debug is a skill for Claude Code from Pharaoh-so/pharaoh-mcp. It costs 56 tokens per session (826 once invoked), scanned A, original, MIT.

A four-phase debugging method that investigates errors, reproduces the problem, traces its cause, tests a focused explanation, and only then suggests a fix.

In plain words
What is it for?
It helps investigate test failures, bugs, unexpected behavior, performance issues, build failures, and integration problems.
Why use it?
It avoids random patches that hide symptoms or create new problems.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the pharaoh plugin — 8 skills, 2 commands, 1 hook, 1 MCP server shipped together

Good fit It helps investigate test failures, bugs, unexpected behavior, performance issues, build failures, and integration problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pharaoh-so/pharaoh-mcp/debug
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 Pharaoh-so/pharaoh-mcp --skill debug
Clone the repo
git clone --depth 1 https://github.com/Pharaoh-so/pharaoh-mcp

Made for: Claude Code.

Or install pharaoh, the plugin that ships this one along with the rest of its 8 skills, 2 commands, 1 hook, 1 MCP server.

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/pharaoh-so/pharaoh-mcp/debug/github.svg)](https://agentmods.dev/skills/pharaoh-so/pharaoh-mcp/debug)
Your own site
<a href="https://agentmods.dev/skills/pharaoh-so/pharaoh-mcp/debug"><img src="https://agentmods.dev/badge/skills/pharaoh-so/pharaoh-mcp/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/pharaoh-so/pharaoh-mcp/debug"><img src="https://agentmods.dev/badge/skills/pharaoh-so/pharaoh-mcp/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 826 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.00056 $0.00826
Opus 5.5 $0.00022 $0.00330
Sonnet 5.5 $0.00011 $0.00165
Haiku 4.5 $0.00006 $0.00083

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

npx-skills/debug/SKILL.md · 72 lines

How it starts

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

Systematic Debugging

Find root cause before attempting fixes. Random fixes waste time and create new bugs.

If you haven't completed Phase 1, you cannot propose fixes.

When to Use

Any technical issue: test failures, bugs, unexpected behavior, performance problems, build failures, integration issues. Use this especially under time pressure — systematic is faster than thrashing.

The Four Phases

Phase 1: Root Cause Investigation

Before attempting ANY fix:

  1. Read error messages carefully — don't skip past them. Read stack traces completely. Note line numbers, file paths, error codes.
  2. Reproduce consistently — can you trigger it reliably? What are the exact steps? If not reproducible, gather more data — don't guess.
  3. Check recent changes — git diff, recent commits, new dependencies, config changes, environmental differences.
  4. Trace data flow — where does the bad value originate? What called this with the bad value? Keep tracing backward until you find the source. Fix at source, not symptom.

If Pharaoh tools are available, use get_blast_radius to understand what the buggy code affects.

Phase 2: Pattern Analysis

  1. Find working examples — locate similar working code in the same codebase
  2. Compare against references — if implementing a pattern, read the reference completely
  3. Identify differences — list every difference between working and broken, however small
  4. Understand dependencies — what components, config, environment does this need?

Phase 3: Hypothesis and Testing

  1. Form a single hypothesis — "I think X is the root cause because Y"
  2. Test minimally — smallest possible change, one variable at a time
  3. Verify — did it work? Yes: proceed to Phase 4. No: form a new hypothesis. Don't stack fixes.

Phase 4: Implementation

  1. Create a failing test that reproduces the issue
  2. Implement a single fix addressing root cause — one change, no "while I'm here" improvements
  3. Verify — test passes, no other tests broken, issue actually resolved
  4. If 3+ fixes have failed: STOP. Question the architecture. Each fix revealing new problems in different places means this is an architectural issue, not a bug. Discuss with the user before attempting more fixes.

Read the full file on GitHub · 72 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. 26d ago Changed a9e1f64f8203
  2. 1mo ago Changed · +1 lines 9dd3ccc813e8
  3. 1mo ago First seen · 71 lines · 56 tokens per session scan A d0f16b61cb4c

Subscribe to this mod's changes

debug is a skill published in the GitHub repository Pharaoh-so/pharaoh-mcp (2 stars, last pushed today), licensed MIT. It adds 56 tokens to every session and 826 once invoked, about $0.0002 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-10-21.

Related

debug compared with skills from other repositories

debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debugPharaoh-so/pharaoh-mcpSkill2todayMITA56Claude Code
codebase-intelligencebntvllnt/codebase-intelligenceSkill87d agoMITA54Claude Code, Codex
devlensdevlensio/devlensOSSSkill72yesterdayAGPL-3.0A50Claude Code
code-diagramusamaijazmughal/code-diagramSkill27mo agoMITA73Claude Code
codespacesdiskd-ai/codespacesSkill5516d agoMITA74Claude Code, Codex
roamCranot/roam-codeSkill517yesterdayApache-2.0A86Claude Code
mandu-lintkonamgil/manduSkill4613d agoMPL-2.0A53Claude Code, Codex