Claude-skill-registry-data managing-env-vars
Manages environment variables and security. Distinguishes between public and secret keys. Use when setting up project configuration or adding API keys.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry-data
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry-data "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/managing-env-vars" ~/.claude/skills/majiayu000-claude-skill-registry-data-managing-env-vars && rm -rf "$T"
manifest:
data/managing-env-vars/SKILL.mdsource content
Environment and Security Variables
When to use this skill
- During project setup.
- When adding new Appwrite services (Storage, Databases).
- When deploying to production.
Workflow
- Create
for local development..env.local - Distinguish between
(Client access) and secret keys (Server access).NEXT_PUBLIC_ - Add
to.env*
..gitignore - Use
with fallback or validation.process.env.VARIABLE_NAME
Required Variables
: Your Appwrite API endpoint.NEXT_PUBLIC_APPWRITE_ENDPOINT
: Your project ID.NEXT_PUBLIC_APPWRITE_PROJECT_ID
: Secret key for server-side operations (DO NOT prefix with NEXT_PUBLIC).APPWRITE_API_KEY
Instructions
- Leak Prevention: Never commit
files..env - Validation: Use a
file with Zod to validate variables at runtime if possible.env.ts