DEV Community

Claude Code guardrails Series' Articles

Back to Agency Kit Studio's Series
Block rm -rf in Claude Code with a 27-line hook

Block rm -rf in Claude Code with a 27-line hook

Comments 1
5 min read
Keep Claude Code out of .env and .git: deny rules or a 29-line hook

Keep Claude Code out of .env and .git: deny rules or a 29-line hook

Comments
7 min read
Make Claude Code ask before git push: an ask rule or a 27-line hook

Make Claude Code ask before git push: an ask rule or a 27-line hook

Comments 1
9 min read
Screen agent personas before use: a 30-line script, run on 271 files

Screen agent personas before use: a 30-line script, run on 271 files

Comments
6 min read
843 commands against one rm -rf hook: what got through, and why

843 commands against one rm -rf hook: what got through, and why

Comments
6 min read
Turn Claude Code hooks into a plugin: five files, three checks

Turn Claude Code hooks into a plugin: five files, three checks

Comments 1
9 min read
rm -rf inside a script: an empty variable a hook cannot see

rm -rf inside a script: an empty variable a hook cannot see

Comments
4 min read