← All skills
hook-recipes
77 / 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 Tibsfox/gsd-skill-creator (GitHub) · coding · 71 stars · scanned at commit e179dfe
Curated collection of ready-to-use Claude Code hook recipes for safety, automation, formatting, logging, and context injection. Use when configuring hooks, setting up safety guards, automating workflows, or when user mentions 'hooks', 'PreToolUse', 'PostToolUse', 'guard', 'automation', 'claude hooks'.
Works with any agent that supports SKILL.md skills.
What this skill can do
Connects to the internet
The author does not mention this.
Found in 1 place.
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 17 places.
Show 14 more
- examples/skills/patterns/hook-recipes/SKILL.md, line 137
"command": "bash -c '[[ \"$CLAUDE_TOOL_INPUT\" =~ (npm\\s+audit\\s+fix\\s+--force|npm\\s+install\\s+--force|--legacy-peer-deps) ]]'", - examples/skills/patterns/hook-recipes/SKILL.md, line 167
"command": "bash -c 'FILE=$(echo \"$CLAUDE_TOOL_INPUT\" | jq -r \".file_path // .filePath // empty\"); if [[ -n \"$FILE\" && \"$FILE\" =~ \\.(ts|tsx|js|jsx|json - examples/skills/patterns/hook-recipes/SKILL.md, line 195
"command": "bash -c 'FILE=$(echo \"$CLAUDE_TOOL_INPUT\" | jq -r \".file_path // .filePath // empty\"); if [[ -n \"$FILE\" && \"$FILE\" =~ \\.(ts|tsx|js|jsx)$ ]] - examples/skills/patterns/hook-recipes/SKILL.md, line 223
"command": "bash -c 'echo \"$(date -u +\"%Y-%m-%dT%H:%M:%SZ\") [PRE] $CLAUDE_TOOL_NAME: $(echo $CLAUDE_TOOL_INPUT | head -c 200)\" >> /tmp/claude-audit.log'", - examples/skills/patterns/hook-recipes/SKILL.md, line 236
"command": "bash -c 'echo \"$(date -u +\"%Y-%m-%dT%H:%M:%SZ\") [POST] $CLAUDE_TOOL_NAME: exit=$CLAUDE_TOOL_EXIT_CODE\" >> /tmp/claude-audit.log'", - examples/skills/patterns/hook-recipes/SKILL.md, line 264
"command": "bash -c 'echo \"$(date -u +\"%Y-%m-%dT%H:%M:%SZ\") [$CLAUDE_TOOL_NAME] $(echo $CLAUDE_TOOL_INPUT | jq -r \".file_path // .filePath // .command // em - examples/skills/patterns/hook-recipes/SKILL.md, line 292
"command": "bash -c 'if [ ! -f /tmp/.claude-context-loaded ]; then cat .claude/project-context.md 2>/dev/null; touch /tmp/.claude-context-loaded; fi'", - examples/skills/patterns/hook-recipes/SKILL.md, line 320
"command": "bash -c 'FILE=$(echo \"$CLAUDE_TOOL_INPUT\" | jq -r \".file_path // .filePath // empty\" 2>/dev/null); if [[ -n \"$FILE\" && -f \"$FILE\" ]]; then e - examples/skills/patterns/hook-recipes/SKILL.md, line 347
"command": "bash -c 'echo \"Before stopping, verify: 1) All tests pass 2) No lint errors 3) Changes committed 4) Summary provided\"'", - examples/skills/patterns/hook-recipes/SKILL.md, line 376
"command": "bash -c 'if [ -f /tmp/.claude-tests-passed ]; then exit 1; fi; echo \"Tests have not been verified. Run tests before completing.\"; exit 0'", - examples/skills/patterns/hook-recipes/SKILL.md, line 407
"command": "bash -c 'notify-send \"Claude Code\" \"Task completed\" 2>/dev/null || osascript -e \"display notification \\\"Task completed\\\" with title \\\"Cla - examples/skills/patterns/hook-recipes/SKILL.md, line 476
claude --debug - examples/skills/patterns/hook-recipes/SKILL.md, line 487
export CLAUDE_TOOL_NAME="Bash" - examples/skills/patterns/hook-recipes/SKILL.md, line 491
bash -c '[[ "$CLAUDE_TOOL_INPUT" =~ (git\s+push\s+--force) ]]'
Downloads and installs other software
The author does not mention this.
Found in 2 places.
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/'hook-recipes' ] || [ -L ~/.agents/skills/'hook-recipes' ]; then echo 'A skill folder named hook-recipes already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/Tibsfox/gsd-skill-creator' "$d" && git -C "$d" checkout --quiet 'e179dfe911f3b3c2ff8bcd90ecd6ee4738648d17' -- 'examples/skills/patterns/hook-recipes' && mkdir -p ~/.agents/skills && cp -R "$d"/'examples/skills/patterns/hook-recipes' ~/.agents/skills/'hook-recipes' && 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/'hook-recipes' ~/.claude/skills/'hook-recipes' (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 Tibsfox/gsd-skill-creator shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/Tibsfox/gsd-skill-creator/)
Score history
| Date | Version | Score |
|---|
| 2026-11-07 | e179dfe | 77 |