用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Arete-Consortium/ai-skills --skill env命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | env |
| description | Environment Management |
| lifecycle | experimental |
Manage .env files, secrets, and environment configuration.
/env # Audit current env setup
/env --init # Create .env from .env.example
/env --check # Verify all required vars set
/env --rotate KEY # Rotate a secret
# Database
DATABASE_URL=postgresql://user:pass@localhost/db
# API Keys
API_KEY=sk-xxxxxxxxxxxx
SECRET_KEY=your-secret-key-here
# Feature Flags
DEBUG=true
LOG_LEVEL=debug
# Database
DATABASE_URL=postgresql://user:password@localhost/dbname
# API Keys (get from dashboard)
API_KEY=
SECRET_KEY=
# Feature Flags
DEBUG=false
LOG_LEVEL=info
.env
.env.local
.env.*.local
*.pem
*.key
credentials.json
secrets/
# Environment Audit: [Project]
## Files
| File | Status | Notes |
|------|--------|-------|
| .env | Exists | 12 variables |
| .env.example | Missing | Should create |
| .gitignore | OK | .env excluded |
## Variables
### Required (Missing)
| Variable | Used In | Purpose |
|----------|---------|---------|
| `API_KEY` | api.py:23 | External API auth |
### Required (Set)
| Variable | Status | Validated |
|----------|--------|-----------|
| `DATABASE_URL` | Set | Valid URL format |
| `SECRET_KEY` | Set | Sufficient length |
### Optional
| Variable | Default | Current |
|----------|---------|---------|
| `DEBUG` | false | true |
| `LOG_LEVEL` | info | debug |
## Security Issues
- [ ] `.env` in .gitignore
- [x] No secrets in source code
- [ ] No secrets in git history
## Recommendations
1. Create `.env.example` with all variables
2. Add `API_KEY` to .env
3. Run `git log -p | grep -i secret` to check history
# Find env var usage in Python
import os
os.environ.get("VAR_NAME")
os.getenv("VAR_NAME")
# Find in Rust
std::env::var("VAR_NAME")
# Find in shell scripts
$VAR_NAME
${VAR_NAME}
When /env is invoked: