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 4e012dc 2.3 KB Updated 2 repo stars

File contents

yanacuti1121/Yana-AI/tree/main/core/skills/hook-block-commands commit 4e012dc069

Frequently asked questions

npx skillmds add yanacuti1121/hook-block-commands