OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add parcadei/continuous-claude-v3 --skill debug-hooks
Systematic hook debugging workflow. Use when hooks aren't firing, producing wrong output, or behaving unexpectedly.
npx skills add parcadei/continuous-claude-v3 --skill debug-hooks
Systematic workflow for debugging Claude Code hooks.
If using detached spawn with stdio: 'ignore':
Fix: Add temporary logging:
If you edited TypeScript source, you MUST rebuild:
Source edits alone don't take effect - the shell wrapper runs the bundled .mjs.
| Symptom | Likely Cause | Fix |
|---|---|---|
| Hook never runs | Not registered in settings.json | Add to correct event in settings |
| Hook runs but no output | Detached spawn hiding errors | Add logging, check manually |
| Wrong session ID | Using "most recent" query | Pass ID explicitly |
| Works locally, not in CI | Missing dependencies | Check npx/node availability |
| Runs twice | Registered in both global + project | Remove duplicate |
ls -la .claude/cache/)grep -A10 '"hooks"' .claude/settings.json)ls .claude/hooks/*.sh)ls -la .claude/hooks/dist/)echo '{}' | ./hook.sh)stdio: 'ignore')Derived from 10 sessions (83% of all learnings):