Skip to content

Tibsfox/gsd-skill-creator / examples/skills/patterns/env-setup

env-setup

Verified

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

Environment Configuration

Non-Negotiable Rules

RuleWhy
NEVER commit .env to gitSecrets persist in history forever
NEVER log secret valuesLogs stored in plain text, forwarded
NEVER hardcode secretsSource code is widely shared
ALWAYS use .env.exampleDocuments vars without exposing values
ALWAYS add .env* to .gitignore FIRSTPrevents accidental commit
ALWAYS validate config at startupFail 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
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 466kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 466kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 466kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 192kUpdated Claude CodeCodexVerifiedInstall