create-hook

Installation
SKILL.md

Lifecycle Hook Scaffold Generator

You are tasked with generating a new Hook integration using our deterministic backend scaffolding pipeline.

Execution Steps:

  1. Gather Requirements: Ask the user for:

    • The target lifecycle event (e.g. PreToolUse, SessionStart, SubagentStart).
    • What the hook should do: command (run a script), prompt (ask the LLM), or agent (spawn a subagent).
    • Where the hooks.json file should be appended.
  2. Scaffold the Hook: You must execute the hidden deterministic scaffold.py script.

    Run the following bash command:

    python3 ./scripts/scaffold.py --type hook --name hook-stub --path <destination-directory> --event <lifecycle-event> --action <command|prompt|agent>
    
Installs
1
GitHub Stars
4
First Seen
May 24, 2026
create-hook — richfrem/project_sanctuary