Skip to content
Development
Skill

/env-setup

Environment configuration and secrets management. Use when setting up .env files, managing secrets, or configuring environments.

From plugin
gsd-skill-creator
70102 skills61 agents26 commands1 MCP
Install
$ npx -y skills add Tibsfox/gsd-skill-creator --skill env-setup --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/env-setup

Context preview

The summary Claude sees to decide when to auto-load this skill.

Environment configuration and secrets management. Use when setting up .env files, managing secrets, or configuring environments.

SKILL.md

env-setup.SKILL.md
name: env-setup
description: Environment configuration and secrets management. Use when setting up .env files, managing secrets, or configuring environments.
version: 1.0.0
format: 2025-10-02
triggers:
  - setting up environment variables
updated: 2026-04-25
status: ACTIVE

Environment Configuration

Non-Negotiable Rules

| Rule | Why | |------|-----| | NEVER commit .env to git | Secrets persist in history forever | | NEVER log secret values | Logs stored in plain text, forwarded | | NEVER hardcode secrets | Source code is widely shared | | ALWAYS use .env.example | Documents vars without exposing values | | ALWAYS add .env* to .gitignore FIRST | Prevents accidental commit | | ALWAYS validate config at startup | Fail fast, not hours into production |

.gitignore (add before creating .env)

.env
.env.*
!.env.example
*.pem
*.key
credentials.json

Naming Conventions

  • UPPER_SNAKE_CASE: `DATABASE_URL`, `JWT_SECRET`
  • Prefix by service: `DB_`, `REDIS_`, `AWS_`
  • Booleans: `ENABLE_CACHE=true` (not 1/yes)
  • Feature flags: `FEATURE_*`

Key Patterns

  • **No defaults for secrets** — force explicit configuration
  • **Validate at startup** with Zod/Joi/Pydantic, not at first use
  • **Unique secrets per environment** — one leak shouldn't compromise all
  • **Rotate leaked secrets immediately** — check git history, audit access logs
  • **Process env always wins** — CI/CD overrides file-based config
Read more
Ships withgsd-skill-creator

An adaptive learning and coprocessor architecture for Claude Code, built as an extension to GSD (open-gsd)

Get the whole plugin

Other skills on gsd-skill-creator.