debug

debug is a skill for Claude Code, Codex from asgeirtj/system_prompts_leaks. It costs 12 tokens per session (374 once invoked), scanned A, original, CC0-1.0.

A session debugging aid that turns on logging and helps inspect errors, warnings, and other clues from the current Claude Code session.

In plain words
What is it for?
Use it to reproduce a Claude Code problem, locate the session log, check for error or warning entries, and investigate settings or background-agent issues.
Why use it?
It gives you a record of what happened while an issue is reproduced, including problems that are otherwise hard to see. It also points to settings and background-process logs that may explain the failure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code.

Good fit Use it to reproduce a Claude Code problem, locate the session log, check for error or warning entries, and investigate settings or background-agent issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asgeirtj/system_prompts_leaks/debug
About the project

System Prompts Leaks is a collection of captured system instructions used to guide AI chatbots and coding agents before they receive user messages. It serves researchers and developers studying how different AI assistants are directed.

asgeirtj/system_prompts_leaks · 64,387 stars · on GitHub

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 asgeirtj/system_prompts_leaks --skill debug
Clone the repo
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks

Made for: Claude Code, Codex.

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/asgeirtj/system_prompts_leaks/debug/github.svg)](https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/debug)
Your own site
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/debug"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/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/asgeirtj/system_prompts_leaks/debug"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/debug.svg" alt="Reviewed on agentmods" width="80" 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 374 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. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 35
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Agent Snooping · line 36
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Agent Snooping · line 37
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
How audits are shown
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.00012 $0.00374
Opus 5 $0.00006 $0.00187
Sonnet 5 $0.00002 $0.00075
Haiku 4.5 $0.00001 $0.00037

Measured 9d ago against content hash b5c5f4ecc88e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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.

Anthropic/claude-code/skills/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. 9d ago First seen · 46 lines · 12 tokens per session scan B b5c5f4ecc88e

Subscribe to this mod's changes

debug is a skill published in the GitHub repository asgeirtj/system_prompts_leaks (64,387 stars, last pushed yesterday), licensed CC0-1.0. It adds 12 tokens to every session and 374 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.