smithery.ai

env-management

Manage environment variables with split .env.client and .env.api structure. Use when adding new env vars, debugging config issues, or setting up environments.

First seen Apr 3, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,461 B
  • docs SUMMARY.md 180 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Environment Variables

Split Structure

This project uses split env files (see docs/PRDs/env-system-refactor.md):

File Purpose Prefix
.env.client Public browser vars NEXTPUBLIC*
.env.api Server secrets No prefix

Adding New Variables

Client-side (Public)

  1. Add to .env.client:

`` NEXTPUBLICAPI_URL=https://api.example.com ``

  1. Access in code:

``typescript const url = process.env.NEXTPUBLICAPI_URL; ``

Server-side (Secret)

  1. Add to .env.api:

`` STRIPESECRETKEY=sklivexxx ``

  1. Access only in server code:

``typescript // Only in app/api/, server/, or Server Components const key = process.env.STRIPESECRETKEY; ``

Security Rules

  • Never put secrets in .env.client
  • Never prefix secrets with NEXTPUBLIC
  • Supabase anon key is public (safe for client)
  • Supabase service role key is secret (API only)

Local Development

Copy example files:

cp .env.client.example .env.client
cp .env.api.example .env.api

Cloudflare Deployment

Set vars in Cloudflare Pages dashboard under Settings > Environment Variables.