SkillKit.Hooks.Command (SkillKit v0.1.0)

Copy Markdown View Source

Hook handler that shells out to a command.

Exit code semantics (matching Claude Code):

  • 0:ok (allow)
  • 2{:deny, output} (block)
  • Other — :ok (non-blocking error)

The hook context is passed as JSON in the HOOK_INPUT environment variable.