richfrem/project_sanctuary · Archived

create-hook

Interactive initialization script that generates a compliant lifecycle Hook for an AI Agent or Plugin. Use when you need to automate workflows based on events like PreToolUse or SessionStart.

First seen May 24, 2026

Installation

$ npx skills add richfrem/project_sanctuary --skill create-hook

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from richfrem/project_sanctuary · top by installs.

npx skills add richfrem/project_sanctuary

Browse all from richfrem/project_sanctuary

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 4
License LICENSE
Default branch main
Open issues 1
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Read, Write

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,236 B
  • docs SUMMARY.md 210 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

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.

  1. Scaffold the Hook:

You must execute the hidden deterministic scaffold.py script.

Run the following bash command: ``bash python3 ./scripts/scaffold.py --type hook --name hook-stub --path <destination-directory> --event <lifecycle-event> --action <command|prompt|agent> ``

  1. Confirmation:

Print a success message showing the configured hook sequence.

Next Actions

  • Offer to run audit-plugin to validate the generated artifacts.