# env-config

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 326 repo stars
- Author: mrhlaingbwardev
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/HEAD/skills/env-config/SKILL.md
- Updated: 2026-11-01
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/env-config

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/env-config/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/env-config/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/env-config/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/env-config/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mrhlaingbwardev/agentic-hacking-skills skills/env-config
```

2. **Manually: put the files in place**
- File: `.github/skills/env-config/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill env-config -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mrhlaingbwardev/agentic-hacking-skills --path skills/env-config
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/env-config/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mrhlaingbwardev/agentic-hacking-skills/tree/HEAD/skills/env-config/SKILL.md

## When to use it
- move API keys out of source files
- exclude `.env` from Git
- create a shareable `.env.example` template
- stop a script when a required secret is missing
- keep secret values out of logs

## Example prompts
- Move this script's API keys into `.env` and load them as environment variables.
- Add `.env` to `.gitignore` and make a blank `.env.example` template.
- Check required environment variables and stop the script if a key is missing.

## Similar
- [config-env-parameters](https://affpapa.org/en/nevibecode/skills/config-env-parameters.md) — skill · ★ 234 repo stars
- [env-and-assets-bootstrap](https://affpapa.org/en/nevibecode/skills/env-and-assets-bootstrap.md) — skill · 502200 installs
- [convex-env](https://affpapa.org/en/nevibecode/skills/convex-env.md) — skill · 44000 installs
- [orca-per-workspace-env](https://affpapa.org/en/nevibecode/skills/orca-per-workspace-env.md) — skill · 12600 installs
- [om-prepare-test-env](https://affpapa.org/en/nevibecode/skills/om-prepare-test-env.md) — skill · 3900 installs
- [managing-astro-local-env](https://affpapa.org/en/nevibecode/skills/managing-astro-local-env.md) — skill · 1800 installs

From the same set: [mrhlaingbwardev/agentic-hacking-skills](https://affpapa.org/en/nevibecode/by/mrhlaingbwardev/agentic-hacking-skills.md) — 28 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
