Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kazdenc/builder-skills --skill env-configgit clone --depth 1 https://github.com/kazdenc/builder-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kazdenc/builder-skills/env-config)<a href="https://agentmods.dev/skills/kazdenc/builder-skills/env-config"><img src="https://agentmods.dev/badge/skills/kazdenc/builder-skills/env-config/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kazdenc/builder-skills/env-config"><img src="https://agentmods.dev/badge/skills/kazdenc/builder-skills/env-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00053 | $0.02073 |
| Opus 5.5 | $0.00021 | $0.00829 |
| Sonnet 5.5 | $0.00011 | $0.00415 |
| Haiku 4.5 | $0.00005 | $0.00207 |
Grade A, and why
env-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Environment Variable Configuration
Set up environment variables with validation, documentation, and secure handling across environments. If target names a service (Supabase, Stripe, etc.), scope to that service's vars. Otherwise, set up the full env system.
Step 1: File Structure
Create these files in the project root:
| File | Purpose | Committed to git? |
|---|---|---|
.env.local |
Local development overrides. Highest priority. | No |
.env.development |
Defaults for next dev |
Yes (no secrets) |
.env.production |
Defaults for next build |
Yes (no secrets) |
.env.example |
Template documenting every variable | Yes |
.env.test |
Test environment overrides | Yes (no secrets) |
Load order (Next.js)
Next.js loads env files in this order (later files override earlier):
.env(all environments).env.local(all environments, git-ignored).env.[environment](e.g.,.env.development).env.[environment].local(e.g.,.env.development.local, git-ignored)
Step 2: Naming Conventions
| Rule | Example | Why |
|---|---|---|
SCREAMING_SNAKE_CASE |
DATABASE_URL |
Standard convention |
NEXT_PUBLIC_ prefix for client-side |
NEXT_PUBLIC_APP_URL |
Next.js exposes only prefixed vars to the browser |
| Group by service | SUPABASE_URL, SUPABASE_ANON_KEY |
Easy to find related vars |
No NEXT_PUBLIC_ for secrets |
STRIPE_SECRET_KEY (not NEXT_PUBLIC_STRIPE_SECRET_KEY) |
Never expose secrets to the client |
Common variable groups
| Service | Variables | Client-safe? |
|---|---|---|
| App | NEXT_PUBLIC_APP_URL, NEXT_PUBLIC_APP_NAME |
Yes |
| Supabase | NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY |
URL and anon key: yes. Service role: no. |
| Stripe | NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY, STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET |
Publishable: yes. Others: no. |
| Auth | NEXTAUTH_SECRET, NEXTAUTH_URL |
No |
RESEND_API_KEY, EMAIL_FROM |
No | |
| Analytics | NEXT_PUBLIC_POSTHOG_KEY, NEXT_PUBLIC_POSTHOG_HOST |
Yes |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 247 lines · 53 tokens per session scan A 97afd64b40a8
env-config is a skill published in the GitHub repository kazdenc/builder-skills (46 stars, last pushed 8mo ago), licensed MIT. It adds 53 tokens to every session and 2,073 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
env-config compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| env-configkazdenc/builder-skills | Skill | 46 | 8mo ago | MIT | A | 53 | Claude Code |
| trigger-cost-savingstriggerdotdev/trigger.dev | Skill | 17k | today | Apache-2.0 | A | 68 | Claude Code, Codex |
| prepare-cloudflare-production-deploymentLubomirGeorgiev/cloudflare-workers-nextjs-saas-template | Skill | 791 | yesterday | MIT | A | 72 | Codex |
| deploy-releaseHoangNguyen0403/agent-skills-standard | Skill | 598 | today | MIT | A | 20 | Codex |
| portaljs-deploydatopian/portaljs | Skill | 2.4k | 1mo ago | MIT | A | 66 | Claude Code |
| vercel-optimizerobotostudio/turbo-start-sanity | Skill | 189 | today | MIT | A | 116 | Claude Code, Codex |
| system-design-building-blocksHoangNguyen0403/agent-skills-standard | Skill | 598 | today | MIT | A | 61 | Claude Code, Codex |