/claude-code-hook-debugging:claude-code-hook-debuggingfrom claude-code-hook-debugging
Diagnoses Claude Code hook errors (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse) by finding hooks.json files, testing hook commands manually, and resolving missing dependencies or auth issues.
Ships in claude-code-hook-debugging. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Claude Code shows generic "hook error" messages (e.g., "SessionStart:resume hook error", "UserPromptSubmit hook error") with no stack trace or details, making it unclear which plugin is failing and why.
SessionStart:resume hook error or similarUserPromptSubmit hook errorPostToolUse:Write hook blocking error# Search all plugin hooks.json files for the event name
grep -r "SessionStart\|UserPromptSubmit\|PreToolUse\|PostToolUse" \
~/.claude/plugins/cache/*/hooks/hooks.json
# Read the specific hooks.json files found above
# Look for the "command" field to see what's being executed
cat ~/.claude/plugins/cache/<plugin-name>/*/hooks/hooks.json
Run the command from the hooks.json directly in your terminal to see the actual error:
# Example: if the hook runs "semgrep mcp -k inject-secure-defaults"
semgrep mcp -k inject-secure-defaults
# This will show the real error (command not found, auth missing, etc.)
| Symptom | Cause | Fix |
|---|---|---|
command not found | Tool not installed | brew install <tool> |
No APP_TOKEN found | Tool needs authentication | Run the tool's login command |
Permission denied | Script not executable | chmod +x <script> |
blocking error | Hook is synchronous and failing | Fix or disable the plugin |
Edit ~/.claude/settings.json and set the plugin to false:
"plugin-name@marketplace": false
Changes take effect after /reload-plugins or restart.
/reload-plugins~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/hooks/hooks.json~/.claude/settings.json under the hooks keyasync: false flag in hooks.json means the hook blocks — if it fails, it can block Claude's responseWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dmaynor/dmaynor-skills-marketplace --plugin claude-code-hook-debugging