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.
npx skills add Pharaoh-so/pharaoh-mcp --skill debuggit clone --depth 1 https://github.com/Pharaoh-so/pharaoh-mcpWrote 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.
[](https://agentmods.dev/skills/pharaoh-so/pharaoh-mcp/debug)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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:
- Read error messages carefully — don't skip past them. Read stack traces completely. Note line numbers, file paths, error codes.
- Reproduce consistently — can you trigger it reliably? What are the exact steps? If not reproducible, gather more data — don't guess.
- Check recent changes — git diff, recent commits, new dependencies, config changes, environmental differences.
- 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
- Find working examples — locate similar working code in the same codebase
- Compare against references — if implementing a pattern, read the reference completely
- Identify differences — list every difference between working and broken, however small
- Understand dependencies — what components, config, environment does this need?
Phase 3: Hypothesis and Testing
- Form a single hypothesis — "I think X is the root cause because Y"
- Test minimally — smallest possible change, one variable at a time
- Verify — did it work? Yes: proceed to Phase 4. No: form a new hypothesis. Don't stack fixes.
Phase 4: Implementation
- Create a failing test that reproduces the issue
- Implement a single fix addressing root cause — one change, no "while I'm here" improvements
- Verify — test passes, no other tests broken, issue actually resolved
- 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.
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.
- 26d ago Changed a9e1f64f8203
- 1mo ago Changed · +1 lines 9dd3ccc813e8
- 1mo ago First seen · 71 lines · 56 tokens per session scan A d0f16b61cb4c
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.
debug compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debugPharaoh-so/pharaoh-mcp | Skill | 2 | today | MIT | A | 56 | Claude Code |
| codebase-intelligencebntvllnt/codebase-intelligence | Skill | 8 | 7d ago | MIT | A | 54 | Claude Code, Codex |
| devlensdevlensio/devlensOSS | Skill | 72 | yesterday | AGPL-3.0 | A | 50 | Claude Code |
| code-diagramusamaijazmughal/code-diagram | Skill | 2 | 7mo ago | MIT | A | 73 | Claude Code |
| codespacesdiskd-ai/codespaces | Skill | 55 | 16d ago | MIT | A | 74 | Claude Code, Codex |
| roamCranot/roam-code | Skill | 517 | yesterday | Apache-2.0 | A | 86 | Claude Code |
| mandu-lintkonamgil/mandu | Skill | 46 | 13d ago | MPL-2.0 | A | 53 | Claude Code, Codex |