When your hooks aren't firing or silently failing, this gives you a systematic debugging workflow instead of guessing. It walks through checking outputs first, verifying registration in settings.json, testing hooks manually with echo, and catching the silent failure pattern where detached spawn with stdio ignore hides all errors. The rebuild reminder is critical since editing TypeScript source does nothing until you rebundle to .mjs. Built from 10 actual debugging sessions, so the common issues table covers real problems like hooks registered twice or wrong session IDs. Saves you from the frustrating cycle of edit, wonder why nothing changed, repeat.

skills.sh installs
501
GitHub stars
3.9K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/parcadei/continuous-claude-v3
Categories
Frontend Development, Debugging, Automation & Workflows
First seen
Jun 3, 2026

More from parcadei/continuous-claude-v3

All 108
12ykwang avatarhtml-visual2ykwang/agent-skillsGenerate an interactive single-file HTML visualization — mockup, wireframe, ERD, flowchart, chart, slides, architecture diagram, dashboard, timeline, mindmap, k500skills.sh installs
2secondsky avatarreact-native-skillssecondsky/claude-skillsReact Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing a490skills.sh installs
3aj-geddes avatarangular-module-designaj-geddes/useful-ai-promptsDesign Angular modules using feature modules, lazy loading, and dependency injection. Use when organizing large Angular applications with proper separation of c469skills.sh installs
4davila7 avatarreact-useeffectdavila7/claude-code-templatesReact useEffect best practices from official docs. Use when writing/reviewing useEffect, useState for derived values, data fetching, or state synchronization. T454skills.sh installs
5aj-geddes avatargit-hooks-setupaj-geddes/useful-ai-promptsImplement Git hooks using Husky, pre-commit, and custom scripts. Enforce code quality, linting, and testing before commits and pushes.450skills.sh installs
6davila7 avatarfrontend-to-backend-requirementsdavila7/claude-code-templatesDocument frontend data needs for backend developers. Use when frontend needs to communicate API requirements to backend, or user says 'backend requirements', 'w441skills.sh installs