Skip to main content
Generalmarkus41

hooks

Design, install, and debug Claude Code hooks (PreToolUse, PostToolUse, Notification, Stop, UserPromptSubmit, SessionStart). Use this skill whenever a user asks to "install hooks", "add a pre-tool hook", "format on save", "block dangerous commands", "protect sensitive files", "restore context after compact", "enforce tests before stop", or runs /cc-hooks. Also triggers on "hooks not firing", "hook keeps blocking", or any configuration of .claude/settings.json hook sections.

Stars
12
Source
markus41/claude
Updated
2026-05-11
Slug
markus41--claude--hooks
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/markus41/claude/HEAD/plugins/claude-code-expert/skills/hooks/SKILL.md -o .claude/skills/hooks.md

Drops the SKILL.md into .claude/skills/hooks.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.