create-hook

Lifecycle Hook Scaffold Generator

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "create-hook" with this command: npx skills add richfrem/agent-plugins-skills/richfrem-agent-plugins-skills-create-hook

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), or agent (spawn a subagent).

  • Where the hooks.json file should be appended.

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>

Confirmation: Print a success message showing the configured hook sequence.

Next Actions

  • Iterative Testing: Run ./scripts/benchmarking/run_loop.py to verify the hook's trigger conditions.

  • Review: Run ./scripts/eval-viewer/generate_review.py to analyze hook performance.

  • Audit: Run audit-plugin to validate the generated artifacts.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

markdown-to-msword-converter

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

zip-bundling

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

spec-kitty-checklist

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

ecosystem-standards

No summary provided by upstream source.

Repository SourceNeeds Review