← All skills
claude-hook-writer
72 / 100 · Review before installing
Check before installing. Some of what it can do is expected: a coding skill usually runs build and test commands.
By pr-pm/prpm (GitHub) · coding · 124 stars · scanned at commit d6b1b17
Expert guidance for writing secure, reliable, and performant Claude Code hooks - validates design decisions, enforces best practices, and prevents common pitfalls
Works with any agent that supports SKILL.md skills.
What this skill can do
Runs commands on your computer
This is disclosed by the author in the skill's SKILL.md or README. Expected for a coding skill.
Found in 26 places.
Show 17 more
- .claude/skills/claude-hook-writer/SKILL.md, line 159
if [[ "$FILE" != "$CLAUDE_PROJECT_DIR"* ]]; then - .claude/skills/claude-hook-writer/SKILL.md, line 175
BLOCKED_PATTERNS=( - .claude/skills/claude-hook-writer/SKILL.md, line 199
cat $FILE # Breaks on "my file.txt" - .claude/skills/claude-hook-writer/SKILL.md, line 211
./my-script.sh - .claude/skills/claude-hook-writer/SKILL.md, line 226
if ! command -v prettier &> /dev/null; then - .claude/skills/claude-hook-writer/SKILL.md, line 256
(heavy_operation "$FILE" &) - .claude/skills/claude-hook-writer/SKILL.md, line 263
LOG_FILE=~/.claude-hooks/my-hook.log - .claude/skills/claude-hook-writer/SKILL.md, line 320
LOCK_FILE="/tmp/claude-hook-${SESSION_ID}-${HOOK_NAME}.lock" - .claude/skills/claude-hook-writer/SKILL.md, line 339
set -euo pipefail - .claude/skills/claude-hook-writer/SKILL.md, line 389
set -euo pipefail - .claude/skills/claude-hook-writer/SKILL.md, line 440
set -euo pipefail - .claude/skills/claude-hook-writer/SKILL.md, line 510
echo '{ - .claude/skills/claude-hook-writer/SKILL.md, line 527
HOOK=./my-hook.sh - .claude/skills/claude-hook-writer/SKILL.md, line 781
prettier --write $FILE - .claude/skills/claude-hook-writer/SKILL.md, line 791
FILE=$(jq -r '.input.file_path') - .claude/skills/claude-hook-writer/SKILL.md, line 805
npm test - .claude/skills/claude-hook-writer/SKILL.md, line 817
if [[ $FILE == ".env" ]]; then
and 6 more places
Downloads and installs other software
The author does not mention this.
Found in 2 places.
Changes files outside its own folder
The author does not mention this.
Found in 1 place.
Safer alternatives
Low-risk skills in the same category (coding) that look related. Check that one does what you need.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'claude-hook-writer' ] || [ -L ~/.agents/skills/'claude-hook-writer' ]; then echo 'A skill folder named claude-hook-writer already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/pr-pm/prpm' "$d" && git -C "$d" checkout --quiet 'd6b1b17b4818281114267476ba2cc402c712b81f' -- '.claude/skills/claude-hook-writer' && mkdir -p ~/.agents/skills && cp -R "$d"/'.claude/skills/claude-hook-writer' ~/.agents/skills/'claude-hook-writer' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'claude-hook-writer' ~/.claude/skills/'claude-hook-writer' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for pr-pm/prpm shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/pr-pm/prpm/)
Score history
| Date | Version | Score |
|---|
| 2026-11-08 | d6b1b17 | 72 |