claudemods

All Claude Code modsjoeldg/claude-mods

secret-guard

A Claude Code mod in joeldg/claude-mods

Holds back a prompt that looks like it carries a secret (API keys, tokens, access-key pairs, private keys, passwords) before it reaches the transcript, puts it back in the box, and offers to save the secret as an env var in ~/.zshrc and send $NAME instead. No model calls.

secret-guard reaches L2 (writes or runs) and passed claude plugin validate with warnings.

To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runswrites files, writes the prompt box, reads files, reads env vars, reads mod state, draws

Validation

Passed with warnings

View the source on GitHub Back to the list

What the scan recorded

Observed events
every prompt
Hooks
session.start, prompt.submit, session.append {door=command}, command.run {command=secrets}, ui.render {component=AbovePrompt}
API calls
$.clock.now, $.command.register, $.env.get, $.fs.exists, $.fs.read, $.fs.write, $.prompt.fill, $.state.get, $.state.set, $.ui.log, $.ui.resolve, $.ui.toast
Validation
Passed with warnings
Scanned revision
2eab818ee6f7

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

More from joeldg/claude-mods

Badge for your README

Reach badge for secret-guard Validation badge for secret-guard

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/joeldg--claude-mods--secret-guard-reach.svg)](https://mods.aidojo.si/mods/joeldg--claude-mods--secret-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/joeldg--claude-mods--secret-guard-validates.svg)](https://mods.aidojo.si/mods/joeldg--claude-mods--secret-guard/)