| name | claude-code-debug |
| description | Troubleshoot Claude Code extensions and behavior. Triggers on: debug, troubleshoot, not working, skill not loading, hook not running, agent not found. |
| compatibility | Claude Code CLI |
| allowed-tools | Bash Read |
| depends-on | [] |
| related-skills | ["claude-code-hooks","claude-code-headless","claude-code-templates"] |
Claude Code Debug
Troubleshoot extensions, hooks, and unexpected behavior.
Quick Diagnostics
claude --debug
/hooks
/agents
/memory
/config
Common Issues
| Symptom | Quick Check |
|---|
| Skill not activating | Verify description has trigger keywords |
| Hook not running | Check chmod +x, run /hooks |
| Agent not delegating | Add "Use proactively" to description |
| MCP connection fails | Test server manually with npx |
| Permission denied | Check settings.json allow rules |
Debug Mode Output
claude --debug
Quick Fixes
Skill Not Loading
ls -la .claude/skills/my-skill/
head -10 .claude/skills/my-skill/SKILL.md
grep "^name:" .claude/skills/my-skill/SKILL.md
Hook Not Executing
chmod +x .claude/hooks/my-hook.sh
echo '{"tool_name":"Bash"}' | .claude/hooks/my-hook.sh
echo $?
jq '.' ~/.claude/settings.json
Agent Not Being Used
ls ~/.claude/agents/
ls .claude/agents/
grep -i "use" agents/my-agent.md | head -5
Validation
just test
just validate-yaml
just validate-names
Official Documentation
Additional Resources
./references/common-issues.md - Issue → Solution lookup table
./references/debug-commands.md - All inspection commands
./references/troubleshooting-flow.md - Decision tree
See Also: claude-code-hooks for hook debugging, claude-code-templates for correct structure