protected-paths-guard 0.2.0

Denies Edit, Write and NotebookEdit calls on sensitive paths (.env files, lockfiles, CI workflows, git internals, private keys) with a glob allowlist override. A tool.call hook with an array matcher.

claude-code-templates 32,507 on davila7/claude-code-templates

Install

Terminal
git clone https://github.com/davila7/claude-code-templates.git
claude --plugin-dir claude-code-templates/cli-tool/components/mods/security/protected-paths-guard

Run in a terminal. Claude Code loads the mod from that folder for the session.

Hooks into

  • Tool calls

Also in davila7/claude-code-templates

More guardrails mods

All guardrails mods
Repo stars
32,507
Repo forks
3,739
License
MIT
Last commit
Checked
c0ca7da,
Source on GitHub