C
convex-env
by @convexv
4.6(120)
为 Convex 应用设置并接通部署环境变量与密钥:用 npx convex env set 按部署写入,在 action 中通过 process.env 读取,并用 env list --names-only 校验而不打印明文。它让密钥远离代码与 Git,每个部署各持独立值,显著降低硬编码与泄漏风险,适合本地、预发、生产的快速配置与安全核对。
安装方式
npx skills add https://github.com/convex/agent-skills --skill convex-envcompare_arrows
Before / After 效果对比
2 组使用前
开发者把密钥硬编码在源码或散落的 .env 文件里,再逐个环境手动粘贴,靠记忆判断哪个部署配好了,漏配或配错往往到线上报错才发现。
使用后
此技能按部署写入密钥、在 action 中通过 process.env 读取,并用 env list --names-only 一眼核对已配置的名称,切换环境不再靠记忆。
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
npx convex env set KEY value(per deployment).- Read via process.env.KEY inside actions (not queries/mutations).
- Never hardcode or commit secrets; add to .env.local only for local.
- 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.
用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价
统计数据
安装量35.0K
评分4.6 / 5.0
版本
更新日期2026年10月23日
对比案例2 组
用户评分
4.6(120)
5
37%
4
43%
3
13%
2
5%
1
2%
为此 Skill 评分
0.0
兼容平台
🤖claude-code
时间线
创建2026年10月17日
最后更新2026年10月23日