env-config — Claude Code skill for secret configuration
The env-config Claude Code skill manages environment variables and secrets in tools and scripts. It activates around .env files, API keys, credentials, and secrets in Git.
LicenseRef-Proprietary ★ 326 updated 2026-11-01
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a claude-codeWhat env-config does
env-config sets out how tools and scripts should store and load secrets. It directs them to read keys from environment variables or .env rather than embedding values in source code. The local .env file goes in .gitignore, while .env.example provides blank entries to share.
For Python, the skill describes python-dotenv; for Node, dotenv. Go examples use godotenv or direct environment access, and PowerShell examples use $env:TOKEN. It also calls for validating required values and keeping secrets out of logs and console output. A script should stop with a clear error if a required variable is missing.
What it helps with
- move API keys out of source files
- exclude
.envfrom Git - create a shareable
.env.exampletemplate - stop a script when a required secret is missing
- keep secret values out of logs
Example prompts for the agent
- Move this script's API keys into
.envand load them as environment variables. - Add
.envto.gitignoreand make a blank.env.exampletemplate. - Check required environment variables and stop the script if a key is missing.
How to install env-config
1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a claude-code2Manually: put the files in place
~/.claude/skills/env-config/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/env-config/
1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a codex2Manually: put the files in place
.agents/skills/env-config/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a cursor2Manually: put the files in place
.cursor/skills/env-config/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mrhlaingbwardev/agentic-hacking-skills skills/env-config2Manually: put the files in place
.github/skills/env-config/SKILL.md1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a gemini-cli2Platform CLI
gemini skills install https://github.com/mrhlaingbwardev/agentic-hacking-skills --path skills/env-configManually: put the files in place
.devin/skills/env-config/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about env-config
How do I install env-config in Claude Code?
Run npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a claude-code. The skill file is at ~/.claude/skills/env-config/SKILL.md.
What does env-config do?
It guides secret handling through environment variables or .env, with a shareable .env.example and a Git ignore entry for the local file. It also calls for checking required values and keeping secrets out of output.
Which libraries does env-config use for loading .env files?
The examples name python-dotenv for Python, dotenv for Node, and godotenv as one option for Go. PowerShell examples use $env:TOKEN.