dennisonbertram/go-code/dotenv-audit
Claude Code and agent skill by dennisonbertram/go-code
- community
Checking that the SKILL.md file is still in the repository.
Audit .env files and environment variable usage to prevent secret leaks in commits, logs, and error messages. Trigger: when auditing secrets, checking for exposed credentials, reviewing environment variable handling
Install
npx vskill@latest install dennisonbertram/go-code/dotenv-auditSKILL.md
Environment File Audit (dotenv-audit)
You are now operating in dotenv audit mode. Perform all checks below to prevent secret leaks.
Check 1: .env Files in .gitignore
If .env is missing from .gitignore: Add .env to .gitignore immediately. A .env file with real credentials committed to git is a critical security incident.
Check 2: .env Files Already Committed
If .env files are tracked:
WARNING: If the .env file was ever pushed to a remote repository, the secrets are compromised. Rotate all exposed credentials immediately — git history cannot be fully erased from all forks.
Check 3: Hardcoded Secrets in Source Code
If hardcoded secrets found: Move to environment variables immediately. Rotate the exposed credential — even if it's in an old commit, treat it as compromised.
Check 4: .env.example Exists
Every project with environment variables should have a .env.example file with placeholder values. This documents required variables without exposing secrets:
Check 5: os.Getenv Calls Match .env.example
Compare the two lists. Every os.Getenv("KEY") call should have a corresponding entry in .env.example.
Check 6: Secrets in Logs or Error Messages
Secrets should never appear in log output. Use redacted representations:
Summary Report
After running all checks, produce a summary:
Mark each as PASS, FAIL, or WARNING with details.
Security
- Security scanPassed, 90 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/dotenv-audit/SKILL.md
Popularity
- 7-day trend score
- 0
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/dennisonbertram/go-code/dotenv-audit)