skills/hooks/SKILL.md
Hook design and maintenance for local automation. Use when creating, renaming, wiring, reviewing, or debugging hooks, hook matchers, JSON payload handling, lifecycle reminders, autofix behavior, or safety gates.
npx skillsauth add oornnery/.agents hooksInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use skill for local hook automation, wiring, policies. Hooks small, predictable, easy smoke test.
Covers:
hooks/*.shtemplates/settings/local.hooks.jsonNot replace:
skills/security/SKILL.md for threat modeling or secret handlingskills/docs/SKILL.md for broader docs structureskills/rtk/SKILL.md for RTK behavior itselfhooks/autofix.sh for file-type-aware formatting helpershooks/git-safety-gate.sh for unsafe git command blockinghooks/session-context.sh for session-start contexthooks/project-state-reminder.sh for SPEC/DESIGN/TODO/.spec/.mem remindershooks/compact-state.sh and hooks/compact-reminder.sh for compaction lifecyclehooks/stop-reminders.sh for end-of-session remindershooks/rtk-rewrite.sh for RTK integrationhooks/desktop-notify.sh for local notificationsUse when full hook example beats isolated snippets.
assets/project/hooks/git-safety-gate.sh -- focused blocker hookassets/project/hooks/session-context.sh -- JSON-emitting reminder hookassets/project/templates/settings/local.hooks.json -- matching local settings wiringjq over hand-built JSON stringsDecide:
Each hook one job:
No broad automation hidden inside safety gate.
Reflect in templates/settings/local.hooks.json for Claude Code-style wiring, or
the equivalent local hook config for Codex/OpenCode:
Validate scripts:
bash -n hooks/*.sh
Validate settings wiring:
jq empty templates/settings/local.hooks.json
Smoke test changed hook with smallest reproducible input.
development
--- name: verification description: Discover and run project validation gates: format, lint, typecheck, LSP diagnostics, tests, build, static security checks, dependency audits, and RTK output handling. Use before claiming work is complete, when fixing broken checks, or when setting up a validation plan. --- # Verification Use this skill to prove changes with the strongest practical checks the repo already supports. ## Discovery Order 1. Read task aliases: `package.json`, `pyproject.toml`, `
tools
Build, review, or validate standalone Python scripts run with uv inline metadata. Use for one-file automation, operational scripts, script dependencies, shebangs, idempotency, safety, representative runs, and promoting scripts to packages.
development
Build, review, or validate Python packages and libraries where public API stability, packaging metadata, imports, examples, changelogs, build output, and compatibility matter.
tools
Build, review, or validate Python command-line applications and terminal tools. Use for argparse, Typer, Rich, Textual-adjacent CLI UX, stdout/stderr contracts, exit codes, automation-friendly flags, help output, and CLI tests.