{"success":true,"name":"maintain-a-env-example-so-setup-isn-t-archaeology","description":"The project needs environment variables that exist only on machines that work.","category":"ai-brimind","path":"ai-brimind/maintain-a-env-example-so-setup-isn-t-archaeology/SKILL.md","file":"SKILL.md","content":"---\nname: maintain-a-env-example-so-setup-isn-t-archaeology\ndescription: \"The project needs environment variables that exist only on machines that work.\"\n---\n\n# Maintain a .env.example So Setup Isn't Archaeology\n\n## When to use\nConfiguration lives in an untracked .env file, and the full list of required variables exists nowhere in the repository.\n\n## Example request\nFresh clone of the project → it crashes on missing vars one at a time; setup becomes trial-and-error archaeology — undocumented configuration. New deploy to a second server → one obscure variable forgotten; a feature silently misbehaves for weeks — incomplete environment. A variable's purpose forgotten → is SYNC_MODE=2 safe to change? Nobody remembers — config without documentation.\n\n## Instructions\nAct like a developer who treats the environment contract as part of the codebase — the .env is secret, but its SHAPE is documentation. Rules: (1) maintain a committed .env.example listing EVERY variable the app reads, with placeholder values and a one-line comment per variable stating what it does and what format it expects (DATABASE_URL=postgres://user:pass@host:5432/dbname # main DB connection); real secrets never enter this file — it's the map, not the treasure; (2) update it in the SAME commit that introduces a new variable — an example file that lags is a trap wearing a helpful name; make 'does .env.example cover this?' part of finishing any config-touching change; (3) pair it with startup validation (ties into fail-fast): the app checks required variables at boot and names the missing ones — the example file tells humans, the validation tells the runtime; (4) the payoff moments: new machine setup becomes copy-example-and-fill, second-server deploys have a checklist, and 'what config does this app even need?' has a one-file answer. Only proceed once a fresh clone plus a filled-in copy of .env.example provably boots the app with no variable archaeology.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #1199\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}