C

convex-env

by @convexv
4.6(120)

Sets and wires Convex deployment environment variables and secrets for an app: write values per deployment with npx convex env set, read them through process.env inside actions, and verify with npx convex env list --names-only so secret values never appear in logs or chat. It keeps credentials out of code and Git, gives each deployment its own values, and prevents accidental leakage or hardcoded keys during local, staging, and production setup.

convexenv-varssecretsdeploymentdevopsGitHub
Installation
npx skills add https://github.com/convex/agent-skills --skill convex-env
compare_arrows

Before / After Comparison

2 组
Before

Developers hardcode secrets in source files or scattered .env files, then paste them into each deployment by hand and rely on memory to know which environment is configured, discovering gaps only when production breaks.

After

This Skill sets values per deployment, reads them via process.env inside actions, and lets you confirm which names exist with env list --names-only, so switching environments no longer depends on memory.

SKILL.md

Manage env vars + secrets

Store secrets as Convex deployment env vars (npx convex env set), read them with process.env in actions, never commit them.

Workflow

  1. npx convex env set KEY value (per deployment).
  2. Read via process.env.KEY inside actions (not queries/mutations).
  3. Never hardcode or commit secrets; add to .env.local only for local.
  4. Confirm it's set with npx convex env list --names-only, which lists names without printing the secret values.

Rules

  • Secrets live in Convex env vars, never in code or git.
  • process.env only in actions ('use node' if needed), not queries/mutations.
  • Different deployments need their own values.
  • Check what is set with npx convex env list --names-only; never print secret values into the conversation.

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs35.0K
Rating4.6 / 5.0
Version
Updated2026年10月23日
Comparisons2

User Rating

4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年10月17日
Last Updated2026年10月23日
🎁 Agent Knowledge Cards
Survey