Agent skill
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 this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/managing-env-vars
SKILL.md
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
.env.localfor local development. - Distinguish between
NEXT_PUBLIC_(Client access) and secret keys (Server access). - Add
.env*to.gitignore. - Use
process.env.VARIABLE_NAMEwith fallback or validation.
Required Variables
NEXT_PUBLIC_APPWRITE_ENDPOINT: Your Appwrite API endpoint.NEXT_PUBLIC_APPWRITE_PROJECT_ID: Your project ID.APPWRITE_API_KEY: Secret key for server-side operations (DO NOT prefix with NEXT_PUBLIC).
Instructions
- Leak Prevention: Never commit
.envfiles. - Validation: Use a
env.tsfile with Zod to validate variables at runtime if possible.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?