Skip to main content

hook-development

Write Navin lifecycle hooks (hooks.json, PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, Stop, SubagentStop) as shell commands that read the event JSON on stdin and block, warn or add context through exit codes and JSON output.

When to use​

Use when the user asks to "create a hook", "block dangerous commands", "validate file writes", "run a check after every edit", "load context at session start", "stop the agent from finishing too early", "add hooks to my plugin", or needs the hook event schema and debugging steps.

Inputs and tools​

The skill takes the request of the user in natural language: its frontmatter declares no argument. It declares no allowed-tools: the tools available are those of the agent that loads it, under the tool policy of the project.

Reference​

FieldValue
Namehook-development
CategoryGeneral
VersionNot declared
LicenceNot declared
Allowed toolsNot declared
Pluginshookify, plugin-dev
Sourcecatalog/navin/skills/hook-development/SKILL.md
Digestsha256:2179f83fca622f5c17cf786272e35f1261312f0bda97b8aca8f3a647b2f8aec4
skill_md_digestsha256:fef84703af4d63f59f06fb189a346b348e09d525183ebd01b2dbef1ed6838430

Bundled files​

PathCount
catalog/navin/skills/hook-development/examples4
catalog/navin/skills/hook-development/references3
catalog/navin/skills/hook-development/scripts4

Frontmatter​

Every field of the SKILL.md frontmatter, with the value of the source:

FieldValue
namehook-development
descriptionWrite Navin lifecycle hooks (hooks.json, PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, Stop, SubagentStop) as shell commands that read the event JSON on stdin and block, warn or add context through exit codes and JSON output. Use when the user asks to "create a hook", "block dangerous commands", "validate file writes", "run a check after every edit", "load context at session start", "stop the agent from finishing too early", "add hooks to my plugin", or needs the hook event schema and debugging steps.