env-guard
MatheusChiodi/cockpit
Protects .env files from reading and writing (Read, Edit, Write, cat and @mention)
196 mods
Guards sit in front of the tools Claude uses. They can allow, deny or rewrite a tool call before it runs, for example to block risky shell commands or keep secrets out of tool output, using the tool.call and tool.check hooks.
MatheusChiodi/cockpit
Protects .env files from reading and writing (Read, Edit, Write, cat and @mention)
MatheusChiodi/cockpit
Status line that warns when a .env file is tracked by git or missing from .gitignore
MatheusChiodi/cockpit
Lists the environment variable names the app expects, from .env.example, never their values
MatheusChiodi/cockpit
A toast when an edit reads process.env or import.meta.env variables that .env.example does not declare
MatheusChiodi/cockpit
Keeps the last failed command and its error line in view until a command passes
MatheusChiodi/cockpit
Tells Claude when an edit throws an error whose message names nothing, like "failed" or "something went wrong"
MatheusChiodi/cockpit
/errors opens a pane with every tool call that failed or was denied, its input and the first line of the error
MatheusChiodi/cockpit
Refuses require, module.exports and __dirname in .js files of a package that declares "type": "module"
MatheusChiodi/cockpit
After 15 reads and searches in one turn, a toast and a note to Claude to hand the rest of the exploring to a subagent
MatheusChiodi/cockpit
Status line with the reads against the edits of the turn, saying whether Claude is still exploring or already changing code
MatheusChiodi/cockpit
Refuses npm, pnpm or yarn installs of packages the Expo SDK pins and names the npx expo install command, and tells Claude to rebuild the dev client after a native one
MatheusChiodi/cockpit
The 20-20-20 rule: every 20 minutes of use, look 20 feet away for 20 seconds
MatheusChiodi/cockpit
Reminds Claude of the commands that failed earlier in this session, so it does not retry them blindly
MatheusChiodi/cockpit
Tells Claude when a Java edit adds @Autowired or @Inject on a field instead of the constructor
MatheusChiodi/cockpit
Toast when the same file is edited six times within half an hour, a sign to step back
MatheusChiodi/cockpit
/trail opens a pane with the files read and changed in the session
MatheusChiodi/cockpit
Fixed band with the files Claude changed in this session
MatheusChiodi/cockpit
A toast when the context window jumps 10 points or more in one step, naming the last tool that ran
MatheusChiodi/cockpit
Tells Claude when an edit renders a mapped list inside a vertical ScrollView, or nests a FlatList in one, in a React Native project
MatheusChiodi/cockpit
Tells Claude when a search or command returned over 300 lines, so it narrows the next one instead of repeating it
MatheusChiodi/cockpit
Band with the tool calls denied and the ones that stopped to ask you in the current turn, and the last one
MatheusChiodi/cockpit
Prevents edits in node_modules, dist, build, .next, coverage, .git and the like
MatheusChiodi/cockpit
Band with the branch, changed files, lines added and removed, ahead/behind and the last commit
MatheusChiodi/cockpit
Blocks destructive git: push --force, reset --hard, clean -f, --no-verify, branch -D
No tracking cookies, no third-party scripts. How we handle data