Setting the file. One moment. Example Hook Backed Skill · Skill Writer · getsentry/skills · Skills Docs23.10
Example Hook Backed Skill
Goal: create a skill that enforces a deterministic check at a specific lifecycle or tool boundary.
- official hook lifecycle and schema docs
- security guidance for shell-executed hooks
- examples of narrow matchers vs over-broad hooks
- fallback behavior for environments without hooks
Required dimensions tracked during synthesis:
- event and matcher scope
- decision behavior
- security boundaries
- fallback behavior
- portability constraints
The resulting skill references included:
- hook configuration example
- safety checklist
- fallback path without hooks
- anti-pattern showing over-broad or unsafe hook scope
- the hook scope was narrow and auditable
- security assumptions were explicit
- the skill still described what to do when hooks were unavailable
references/example-hook-backed-skill.md