farzanmrz/meta-dev/review-hook
Claude Code and agent skill by farzanmrz/meta-dev
- community
Checking that the SKILL.md file is still in the repository.
Read-only audit of Claude Code hook configuration and scripts — never modifies them. Use when the user asks to review or audit hooks, asks why a hook didn't fire or didn't block a tool call, or asks whether a hook is safe or correct. Not for authoring or fixing a hook.
Install
npx vskill@latest install farzanmrz/meta-dev/review-hookSKILL.md
The same SKILL.md was published earlier as farzanmrz/meta-dev/review-hook.
review-hook
Inventory, audit, spot-check, report — never edit. This operation exists so diagnosing a hook is never taxed with authoring machinery: every fix it finds routes to create-hook, and the hook files it inspects are untouched on exit.
Step 1 — Inventory every registration
List every place a hook could be registered:
settings.jsonat all scopes (user, project, local) and anyhooks:block inside enabled plugins'hooks/hooks.json.- Skill and agent frontmatter
hooks:fields for every loaded skill/agent.
Completion criterion: a flat list of hooks, each tagged with its source file and scope — nothing registered is left uninventoried.
Step 2 — Static audit per hook
Check each hook against ${CLAUDE_SKILL_DIR}/../../standards/hook.md:
- Event fit — is the registered event the narrowest one that sees what the hook needs, per the working set in hook.md's "Choosing the event"? A hook on a broad event when a narrow one exists is a finding, not a style note — the broad event fires (and costs latency) on cases the hook doesn't care about.
- Matcher correctness — flag unanchored regex that over-matches (e.g.
Edit.*also matchingNotebookEdit); flag matchers that look exact but aren't. - Decision contract currency — flag any
PreToolUsehook still emitting the deprecated top-leveldecision/approve/blockinstead ofhookSpecificOutput.permissionDecision. This is the single most common reason a hook silently no-ops after an SDK upgrade. - Exit-code correctness — flag any script that exits 1 (or any non-2 code) intending to block; only exit 2 blocks. This is the classic trap named in hook.md and the most likely answer to "why didn't the hook block."
- Script robustness — quoting of every variable,
jqfor stdin parsing, fail-open (exit 0) on missing dependencies, explicittimeout. - Portability —
${CLAUDE_PLUGIN_ROOT}quoted in every path reference; no persistent state written underPLUGIN_ROOT(it is replaced on update — state belongs in${CLAUDE_PLUGIN_DATA}).
Completion criterion: every inventoried hook has a per-dimension verdict (pass/flag) against all six checks above, each flag citing the specific hook.md rule it violates.
Step 3 — Behavioral spot-check
For hooks whose static audit is inconclusive (e.g. matcher intent is ambiguous, or exit-code behavior needs confirming against a real payload), run the hook's script against crafted stdin fixtures in a scratch directory:
- Write fixture JSON matching the event's stdin shape (
session_id,cwd,hook_event_name,permission_mode, plus event-specific fields liketool_name/tool_input) to a scratch file, then pipe it into the script and inspect exit code + stdout/stderr. - Transient writes to the scratch dir are allowed; never write to, or invoke in a mode that could mutate, the hook's own registration or script files.
Completion criterion: every flagged-inconclusive hook has been exercised against at least one crafted fixture, with observed exit code and output recorded.
Step 4 — Deliver the report
Report per hook, most-severe finding first:
Route every fix to create-hook for authoring the corrected version — this skill diagnoses, it does not patch. Completion criterion: report delivered covering every inventoried hook, and zero hook configuration or script files modified (verify with a diff/mtime check against the pre-audit inventory before finishing).
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/review-hook/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/farzanmrz/meta-dev/review-hook)