debug 精选
Enable debug logging for this session and help diagnose issues
安装方式
cp -r Anthropic/claude-code/skills/debug ~/.claude/skills/debug把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/
https://raw.githubusercontent.com/asgeirtj/system_prompts_leaks/a09e0e708710093ed9fc15fb24bfc1374f584da4/Anthropic/claude-code/skills/debug/SKILL.md下载后另存为 ~/.claude/skills/debug/SKILL.md。链接锁定采集时的 commit,内容与本站展示一致。
整仓一次性获取:git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks.git
依赖与权限
- 无需 API Key
- 无需联网
- 无外部命令依赖
- 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
SKILL.md 正文
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 ~/.claude/debug/{{SESSION_ID}}.txt, 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: ~/.claude/debug/{{SESSION_ID}}.txt
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 ~/.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 - ~/.claude/settings.json
- project - /private/tmp/skillcap/.claude/settings.json
- local - /private/tmp/skillcap/.claude/settings.local.json
Instructions
- Review the user's issue description
- The last 20 lines show the debug file format. Look for [ERROR] and [WARN] entries, stack traces, and failure patterns across the file
- Consider launching the claude-code-guide subagent to understand the relevant Claude Code features
- Explain what you found in plain language
- Suggest concrete fixes or next steps
质量与来源
- 所属仓库
- asgeirtj/system_prompts_leaks
- 仓库星标
- 6.9 万
- 最近更新
- 今天
- 采集时间
- 今天
- commit
- a09e0e708710
- 内容指纹
- sha256:6b00ad3afdd1109
- 文件路径
- Anthropic/claude-code/skills/debug/SKILL.md