Debug Hooks
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
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.jsonbut produce no output or stale behavior
Install
$ npx -y skills add parcadei/continuous-claude-v3 --skill debug-hooks -yInstalls 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- Describe Pr504
- Shapely Compute501
- Braintrust Tracing499
- Workflow Router499
- Opc Architecture498
- Math Router497
- Mcp Scripts496
- Recall496
- Firecrawl Scrape495
- Help495
- Cli Reference493
- Completion Check493
- Idempotent Redundancy493
- Morph Search493
- Skill Upgrader493
- Build492
- Search Tools492
- Slash Commands492
- Skill Developer491
- Skill Development491
- Braintrust Analyze490
- Fix490
- Morph Apply490
- Complete Skill489
Similar to Debug Hooks
More Debugginghooksparcadei/continuous-claude-v3510 installsShell-to-TypeScript hook pattern with templates, six lifecycle events, and settings registration for Claude Code.
debugyeachan-heo/oh-my-claudecode742 installsDiagnostic skill that isolates failures in OMC sessions using traces, state, and narrow reproduction before any fix.
errorsyonatangross/orchestkit186 installsError pattern analysis that captures tool failures, matches known fixes, and checks batch history for recurring issues.
hook-developerparcadei/continuous-claude-v3507 installsComplete Claude Code hook reference covering input and output schemas for every event, plus registration and testing.
diagnosing-bugsmattpocock/skills969.6K installsStructured diagnosis loop that builds a red-capable feedback command before any hypothesising or fixing.