Registry / xiaolai

xiaolai/nlpm/writing-hooks

How to write Claude Code hooks: events, matchers, blocking vs advisory, paths.

Agent skill · version 1.4.3 · from xiaolai/nlpm

Install

npx yarkr-cli add skill:xiaolai/nlpm/writing-hooks

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:xiaolai/nlpm/writing-hooks
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:xiaolai/nlpm/writing-hooks

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:xiaolai/nlpm/writing-hooks

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.