env-guard

by Plagemes · ★ 8 · updated 15 Oct 2026

GuardsAutomationvalidates

0

Protects .env files, SSH keys and credential stores from being read or modified.

install env-guard

Install

/plugin marketplace add Plagemes/claude-mods
/plugin install env-guard@claude-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.starttool.call
API calls
$.clock.after$.env.get$.fs.read$.fs.stat$.mods.hello$.mods.mode$.mods.publish$.mods.registerTab$.ui.log
Can see
/"^(?:Read|Edit|Write|MultiEdit|NotebookEdit|Grep)$"/ callsBash calls
Reach
level 1 of 3 reads filesreads env varsdrawsother: $.mods.helloother: $.mods.modeother: $.mods.publishother: $.mods.registerTab

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/Plagemes/claude-mods
Path in repo
mods/env-guard
Source commit
e9815ce the exact code the scan read
Author
@Plagemes
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from Plagemes/claude-mods

error-buzz

Plagemes/claude-mods

A short buzz when a command or test run fails.

★ 8GuardsAudioAutomation

error-feed

Plagemes/claude-mods

Collects every failed command and tool error in one pane.

★ 8PanesStatus lineGuards

explain-diff

Plagemes/claude-mods

/explain-diff explains in plain words what changed in the last turn and why.

★ 8PanesGuardsCommands

explain-level

Plagemes/claude-mods

/eli5, /normal and /expert set how deep Claude's explanations go.

★ 8Status lineCommandsPrompt

file-size-watch

Plagemes/claude-mods

Warns when an edited file grows past a size that hurts readability.

★ 8ToastsGuards

files-touched

Plagemes/claude-mods

A pane of every file read, edited or created in the session, with counts.

★ 8PanesGuardsCommands

fixture-factory

Plagemes/claude-mods

/fixtures generates realistic test data that matches your schema or types.

★ 8PanesCommands

flaky-detector

Plagemes/claude-mods

Detects tests that pass and fail at random and keeps a list of the suspects.

★ 8PanesGuardsCommands

focus-timer

Plagemes/claude-mods

A Pomodoro timer in the status line with focus and break cycles.

★ 8Status lineCommandsPrompt

force-push-guard

Plagemes/claude-mods

Forbids force-pushing to protected branches and suggests --force-with-lease.

★ 8ToastsGuards

git-status-line

Plagemes/claude-mods

Shows the current branch, ahead/behind and dirty file count in the status line.

★ 8Status lineGuards

gitignore-guard

Plagemes/claude-mods

Warns before node_modules, build output, OS junk or huge files get staged.

★ 8GuardsAutomation

Other mods in Guards, close to this one by stars.