
Description
agent-hooks is an agent skill from Starchild's official skills collection for managing shell hooks through the /hooks command. A hook is a user script that runs at fixed points in the agent's lifecycle. It can block a dangerous action, rewrite an input or outgoing message, inject extra context for the model, or warn the user. Hooks can be written in any language and talk to the agent with JSON on standard input and output. The skill uses file reading, file writing and bash tools to set them up, and is meant for cases where the user wants the agent to enforce a rule or react to an event every time without being asked. Note the mixed audit results listed below before installing.…
Highlights
- Manage hooks with the /hooks command
- Block, rewrite, inject context or warn at lifecycle points
- Hook scripts in any language
- Simple JSON-over-stdin/stdout protocol
Ratings & Reviews
No ratings yet
Be the first to rate agent-hooks.
People also visit
agent-hooks FAQ
What are agent hooks?
User scripts that run at fixed points in the agent's lifecycle to block an action, rewrite an input or outbound message, add context for the model, or warn the user.
What language do hooks use?
Any language. The script exchanges JSON with the agent over stdin and stdout.
How do I install it?
Run: npx skills add https://github.com/starchild-ai-agent/official-skills --skill agent-hooks
What were the security audit results on skills.sh?
Gen Agent Trust Hub: Pass. Socket: Warn. Snyk: Fail.
What are the best agent-hooks alternatives?
Popular alternatives to agent-hooks include hookify-rules, customaize-agent and add-skill. See all agent-hooks alternatives




















