Skip to content

Step-by-step triage workflow for Claude Code hooks that won't fire or emit wrong output.

CCM score
56 of 100
skills.sh installs
504
GitHub stars
4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the debugging sequence: check cache outputs, verify registration, confirm hook files, test manually, then rebuild
  • Includes manual test commands for SessionEnd and PostToolUse hooks, a symptom-to-fix table, and a debug checklist
  • Flags silent failures from detached spawns with stdio: 'ignore' and shows how to capture stdout and stderr to a log
  • Designed for developers whose hooks are registered in settings.json but produce no output or stale behavior

Install

$ npx -y skills add parcadei/continuous-claude-v3 --skill debug-hooks -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Debug Hooks

Systematic workflow for debugging Claude Code hooks.

When to Use

  • "Hook isn't firing"
  • "Hook produces wrong output"
  • "SessionEnd not working"
  • "PostToolUse hook not triggering"
  • "Why didn't my hook run?"

Workflow

1. Check Outputs First (Observe Before Editing)

# Check project cache
ls -la $CLAUDE_PROJECT_DIR/.claude/cache/

# Check specific outputs
ls -la $CLAUDE_PROJECT_DIR/.claude/cache/learnings/

# Check for debug logs
tail $CLAUDE_PROJECT_DIR/.claude/cache/*.log 2>/dev/null

# Also check global (common mistake: wrong path)
ls -la ~/.claude/cache/ 2>/dev/null

2. Verify Hook Registration

# Project settings
cat $CLAUDE_PROJECT_DIR/.claude/settings.json | grep -A 20 '"SessionEnd"\|"PostToolUse"\|"UserPromptSubmit"'

# Global settings (hooks merge from both)
cat ~/.claude/settings.json | grep -A 20 '"SessionEnd"\|"PostToolUse"\|"UserPromptSubmit"'

3. Check Hook Files Exist

# Shell wrappers
ls -la $CLAUDE_PROJECT_DIR/.claude/hooks/*.sh

# Compiled bundles (if using TypeScript)
ls -la $CLAUDE_PROJECT_DIR/.claude/hooks/dist/*.mjs

4. Test Hook Manually

Details

Repository
github.com/parcadei/continuous-claude-v3
Categories
Debugging, Skill & Plugin Building
First seen
Jun 3, 2026

More from parcadei/continuous-claude-v3

All 108

Similar to Debug Hooks

More Debugging