secrets-guard
Use when you touch configuration, credentials or environment files. Keeps secrets out of code, logs and prompts.
by crruton★ 15 GitHub stars
Install secrets-guard in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Secrets guard
A secret in a commit stays in the history after you delete it.
Rules
- Do not read, write or print
.env, keys, certificates or files insecrets/. - Do not put tokens, passwords or keys in code, tests, logs or comments.
- Read secrets from environment variables. Add a placeholder to
.env.example. - When you find a secret in the history, tell the human. The human must rotate the secret.
Check before you finish
- Run
bash gates/run-all.sh. The check-secrets gate must pass.
Origin
The agent tried to put a token into a dialog config. Now the gate and a hook stop this.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the secrets-guard skill do?
Use when you touch configuration, credentials or environment files. Keeps secrets out of code, logs and prompts.
How do I install the secrets-guard skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the secrets-guard skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…