Claude Code Lifecycle Hooks

Configure shell command hooks with exit codes to control Claude Code agent behavior at specific lifecycle points (session start, pre/post tool use). Trigger when you need to prevent agents from modifying protected files like tests or enforce workflow constraints. Use exit code 2 for blocking errors, 0 for success. Use when this capability is needed.

tomevault-io d29c722 2 files · 4.0 KB Updated

File contents

tomevault-io/skills-registry/tree/main/jayalexandermg--skilljacked--claude-code-lifecycle-hooks commit d29c722320

Frequently asked questions

npx skillmds@latest add tomevault-io/claude-code-lifecycle-hooks