arnie016/codex-prompt-templates/auto-skill-safety-mcp-secret-guard
Claude Code and agent skill by arnie016/codex-prompt-templates
- community
Checking that the SKILL.md file is still in the repository.
Prevent secret leakage when adding or reviewing MCP server configs. Use when you see `mcpServers` JSON, `.env`, config snippets, tool docs, or logs that might contain API keys/tokens. Produces a redacted config + a short secret hygiene report.
Install
npx vskill@latest install arnie016/codex-prompt-templates/auto-skill-safety-mcp-secret-guardSKILL.md
The same SKILL.md was published earlier as arnie016/codex-prompt-templates/auto-skill-safety-mcp-secret-guard.
MCP Secret Guard (Config Hygiene)
Generated by: Codex Supercharge maintenance automation.
Goal: keep credentials out of repos, prompts, and MCP config files while still producing a usable config snippet.
Trigger
- You are adding/editing MCP config (e.g.,
mcpServersJSON). - A repo/README shows tokens/keys in examples.
- Logs or screenshots may include secrets.
Workflow
- Identify config surfaces
- Search for likely MCP config locations:
rg -n \"\\bmcpServers\\b\" -S --hidden .rg -n \"mcp\" -S --hidden .codex* ~/.codex 2>/dev/null || true
- Detect secret-shaped strings (local only)
- Run conservative scans (don’t paste results into chat unredacted):
rg -n \"(api[_-]?key|access[_-]?token|secret|private[_-]?key|bearer)\" -S --hidden .rg -n \"sk-[A-Za-z0-9]{20,}|ghp_[A-Za-z0-9]{20,}|xox[baprs]-[A-Za-z0-9-]{10,}\" -S --hidden .
- Normalize config to env-var references
- Replace inline secrets with env-var placeholders:
- Prefer
"env": { \"API_KEY\": \"${API_KEY}\" }style. - Never commit
.env; add to.gitignoreif needed.
- Redact before sharing
- Any time you must include an example, redact to:
***REDACTED***or${ENV_VAR}(never partial key fragments).
- Record where secrets should live
- OS keychain / password manager / CI secret store.
- Minimal env var list required to run.
Output
Skip When
- You are only reviewing high-level architecture and no configs/logs are involved.
Validation
- Re-run the scans in step 2 after edits; expect 0 inline secrets in tracked files.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/auto-skill-safety-mcp-secret-guard/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arnie016/codex-prompt-templates/auto-skill-safety-mcp-secret-guard)