create-hook
SKILL.md
Lifecycle Hook Scaffold Generator
You are tasked with generating a new Hook integration using our deterministic backend scaffolding pipeline.
Execution Steps:
-
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), oragent(spawn a subagent). - Where the
hooks.jsonfile should be appended.
- The target lifecycle event (e.g.
-
Scaffold the Hook: You must execute the hidden deterministic
scaffold.pyscript.Run the following bash command:
python3 ./scripts/scaffold.py --type hook --name hook-stub --path <destination-directory> --event <lifecycle-event> --action <command|prompt|agent> -
Confirmation: Print a success message showing the configured hook sequence.
Next Actions
- Iterative Testing: Run
./scripts/benchmarking/run_loop.pyto verify the hook's trigger conditions. - Review: Run
./scripts/eval-viewer/generate_review.pyto analyze hook performance. - Audit: Run
audit-pluginto validate the generated artifacts.
Weekly Installs
12
Repository
richfrem/agent-…s-skillsGitHub Stars
1
First Seen
9 days ago
Security Audits
Installed on
opencode12
gemini-cli12
github-copilot12
codex12
amp12
cline12