env-manager — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited env-manager (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
当用户要求管理环境变量、.env 文件、配置同步、Secrets 检查时激活。
.env* 文件(.env / .env.local / .env.development / .env.production)process.env.XXX / os.environ['XXX'] / os.getenv('XXX')).env.example 模板(仅包含变量名和说明,不含真实值).env.schema.json(结构化校验规则)dotenv 加载配置(针对不同框架)# 应用配置
APP_NAME=my-app
APP_ENV=development # development | staging | production
APP_PORT=3000 # 服务端口 (1-65535)
APP_DEBUG=true # 调试模式
# 数据库
DB_HOST=localhost
DB_PORT=5432
DB_NAME=mydb
DB_USER= # 必填
DB_PASSWORD= # 必填,生产环境请使用 Secrets
# 第三方服务
REDIS_URL= # 必填,格式:redis://host:port
JWT_SECRET= # 必填,至少 32 位随机字符串📋 环境变量分析报告
==================
✅ 定义且使用: 12 个
⚠️ 定义未使用: 2 个(S3_BUCKET, OLD_API_KEY)
❌ 使用未定义: 1 个(SENDGRID_API_KEY)
🔒 硬编码敏感信息: 1 处(src/auth.js:23)
建议:
1. 删除 .env 中的 S3_BUCKET 和 OLD_API_KEY
2. 在 .env 中添加 SENDGRID_API_KEY
3. 将 src/auth.js:23 的硬编码 token 迁移到环境变量.env 已添加到 .gitignore.env.example 存在且与代码同步NEXT_PUBLIC_ 前缀的变量会暴露给客户端,后端专用变量不要加此前缀.env 中的变量必须以 REACT_APP_ 开头才会被注入VITE_ 前缀暴露变量给客户端.env 不会自动被子包读取,需要显式配置| 框架 | 客户端前缀 | 配置文件 | 加载方式 |
|---|---|---|---|
| Next.js | NEXT_PUBLIC_ | .env.local | 自动 |
| Vite | VITE_ | .env | 自动 |
| CRA | REACT_APP_ | .env | 自动 |
| Nuxt | NUXT_PUBLIC_ | .env | 自动 |
| Vue CLI | VUE_APP_ | .env | 自动 |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.