一键导入
debug
Diagnose agent session issues — show recent logs, tool errors, and configuration problems
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose agent session issues — show recent logs, tool errors, and configuration problems
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Research and plan a large-scale mechanical change, then execute it in parallel across independent work units
Review staged changes and create a conventional git commit
Review auto-memory entries and promote useful ones to CLAUDE.md or project memory files
Review changed code for reuse, quality, and efficiency, then fix any issues found
Capture the current session's repeatable process into a reusable SKILL.md file
Diagnose a frozen, slow, or stuck agent session by inspecting running processes and recent logs
| name | debug |
| description | Diagnose agent session issues — show recent logs, tool errors, and configuration problems |
| when_to_use | When the agent is behaving unexpectedly, a tool keeps failing, permissions are being denied unexpectedly, or the user wants to understand what happened in the current session. |
| argument-hint | optional: specific issue to investigate, e.g. 'bash tool always denied' |
| context | inline |
| allowed-tools | ["read_file","glob","grep_file","bash"] |
| disable-model-invocation | true |
Diagnose the current session and report findings.
$ARGUMENTS
Read the following files (skip if absent):
~/.claude/settings.json — user-level permissions, hooks, env vars.claude/settings.json — project-level settings.claude/settings.local.json — local overridesLook for:
deny entries).Run:
# Show last 50 lines of the agent log if it exists
ls -t /tmp/ai-coding-*.log 2>/dev/null | head -1 | xargs tail -50 2>/dev/null || echo "No log file found"
Look for patterns:
permission denied → tool blocked by a deny rule or OS permissionexit code → command failed; note the exit code and stderrinterrupt → tool was suspended waiting for user approvalgit status --short 2>/dev/null | head -20
git log --oneline -5 2>/dev/null
This helps confirm whether file-write tools actually worked.
Structure the report as:
For each issue:
"allow": ["bash(go *)"] to .claude/settings.json)If nothing is wrong, say so and describe what was checked.