debug

debug is a skill for Claude Code from imMamdouhaboammar/get-fable. It costs 15 tokens per session (377 once invoked), scanned B, original, MIT.

A troubleshooting guide for finding the cause of software errors, failed tests, or unexpected program behavior. It uses session and daemon logs when available.

In plain words
What is it for?
Investigate problems in the current coding-agent session, ask the user to reproduce an issue after logging is enabled, and review session or background-daemon logs.
Why use it?
It provides a structured way to collect relevant logs and identify warnings or errors instead of guessing from symptoms.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code.

Part of the get-fable plugin — 78 skills, 20 agents, 5 hooks 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/immamdouhaboammar/get-fable/debug
Any agent
npx skills add imMamdouhaboammar/get-fable --skill debug
Clone the repo
git clone --depth 1 https://github.com/imMamdouhaboammar/get-fable

Made for: Claude Code.

Or install get-fable, the plugin that ships this one along with the rest of its 78 skills, 20 agents, 5 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/immamdouhaboammar/get-fable/debug.svg)](https://agentmods.dev/skills/immamdouhaboammar/get-fable/debug)
Your own site
<a href="https://agentmods.dev/skills/immamdouhaboammar/get-fable/debug"><img src="https://agentmods.dev/badge/skills/immamdouhaboammar/get-fable/debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 377 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.1 $0.00015 $0.00377
Opus 5 $0.00008 $0.00188
Sonnet 5 $0.00003 $0.00075
Haiku 4.5 $0.00002 $0.00038

Measured 6d ago against content hash f9f9a62f5b67, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

debug scanned grade B with 1 finding 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 6d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

* user - {user_home}/.claude/settings.json
assets/skills/claude-code/debug/SKILL.md · 46 lines

What it actually says

Debug Skill

Help the user debug an issue they're encountering in this current Claude Code session.

Debug Logging Just Enabled

Debug logging was OFF for this session until now. Nothing prior to this /debug invocation was captured.

Tell the user that debug logging is now active at {debug_log_path}, ask them to reproduce the issue, then re-read the log. If they can't reproduce, they can also restart with claude --debug to capture logs from startup.

Session Debug Log

The debug log for the current session is at: {debug_log_path}

No log file exists yet.

For additional context, grep for [ERROR] and [WARN] lines across the full file.

Daemon

No daemon lock or status file found — the background daemon does not appear to be running. If the issue involves background sessions or claude agents, the daemon log (if any) is at {user_home}/.claude/daemon.log.

Issue Description

The user did not describe a specific issue. Read the debug log and summarize any errors, warnings, or notable issues.

Settings

Remember that settings are in:

  • user - {user_home}/.claude/settings.json
  • project - {working_directory}/.claude/settings.json
  • local - {working_directory}/.claude/settings.local.json

Instructions

  1. Review the user's issue description
  2. The last 20 lines show the debug file format. Look for [ERROR] and [WARN] entries, stack traces, and failure patterns across the file
  3. Consider launching the claude-code-guide subagent to understand the relevant Claude Code features
  4. Explain what you found in plain language
  5. Suggest concrete fixes or next steps
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. 6d ago First seen · 46 lines · 15 tokens per session scan B f9f9a62f5b67

Subscribe to this mod's changes

debug is a skill published in the GitHub repository imMamdouhaboammar/get-fable (3 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 377 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.