Hook Block Commands

Pattern guide for writing PreToolUse hooks that block dangerous shell commands. Use when: building or auditing a guard-destructive hook, adding new blocked patterns, reviewing what the current hook covers. Covers 3 safety levels (critical/high/strict) and 58+ regex patterns. Inspired by: karanb192/claude-code-hooks block-dangerous-commands pattern (MIT).

yanacuti1121 Updated 13 repo stars
Yana AI

File contents

yanacuti1121/Yana-AI commit 4e012dc069

Frequently asked questions

npx get-skill add yanacuti1121/hook-block-commands