Alison Aquinas logoAlison's LLM Plugins

claude-hook-design

Included in pluginshared-skillsView on GitHub ↗

Files

SKILL.mdagentsreferences

Install

Install the containing plugin
/plugin install shared-skills@llm-skills
Invoke this skill after installation
/shared-skills:claude-hook-design
Download claude-hook-design-skill.zip
This skill is bundled inside shared-skills. Install the plugin once, then Claude Code can use any of its included skills. Browse the full plugin repository at github.com/alisonaquinas/llm-shared-skills.

SKILL.md


name: claude-hook-design description: > Design phase for hook automation rule development. Use when planning, designing, building, testing, validating, or refining a hook automation rule as it moves through a full delivery lifecycle. Triggers include drafting the hook spec, locking contracts, wiring runtime placement, scoring quality, running live scenarios, or choosing the right re-entry point after a failure.

Hook Design

Lock event contracts, matcher rules, return behavior, portability expectations, and safety rules before creation starts.

Intent Router

Load reference files on demand only when the corresponding topic is active:

  • references/event-contract.md — Load when defining events, matchers, environment variables, and return JSON
  • references/safety-patterns.md — Load when the hook can block actions, rewrite files, or trigger other tools

Quick Start

[ ] Capture the current hook spec
[ ] Complete the required outputs for this phase
[ ] Record evidence for the gate
[ ] Hand off the evidence to the next phase

Phase Workflow

Start from the current hook spec and tighten only the decisions owned by this phase. Work forward until the gate is satisfied, then hand the evidence to the next phase in the family. Keep the workflow description portable even when the runtime wiring is specific to one environment.

Example Evidence

{
  "event": "<event-name>",
  "matcher": "<condition>",
  "env": ["..."],
  "returns": ["approve", "block"],
  "failure_modes": ["..."]
}

Gate

Design is complete when every event, matcher, input, output, and decision path is explicit and no safety rule is left implicit.

Safety Notes

Do not start creation while event semantics, return behavior, or fallback handling are still ambiguous.

Resource Index

Reference FileLoad When
references/event-contract.mdLoad when defining events, matchers, environment variables, and return JSON
references/safety-patterns.mdLoad when the hook can block actions, rewrite files, or trigger other tools
← Back to marketplace