← 返回 Skills 市场
Env Alias Audit
作者
Daniel Lummis
· GitHub ↗
· v1.0.0
261
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install env-alias-audit
功能描述
Audit .env alias groups for missing required config, conflicting values, and canonical-key drift before deploy.
使用说明 (SKILL.md)
Env Alias Audit
Use this skill to catch environment-variable alias drift before runtime failures.
What this skill does
- Parses env vars from
.env-style files - Evaluates canonical key + alias groups (built-in defaults or custom spec)
- Flags missing required groups
- Detects conflicting values across aliases in the same group
- Reports alias-only usage where canonical keys are absent
Inputs
Optional:
ENV_FILE(default:.env)ALIAS_SPEC_FILE(default: built-in alias groups)REQUIRED_GROUPS(comma-separated canonical keys that must resolve)AUDIT_MODE(reportorstrict, default:strict)
Run
Use built-in alias groups:
ENV_FILE=.env \
REQUIRED_GROUPS=DATABASE_URL,STRIPE_API_KEY \
bash skills/env-alias-audit/scripts/audit-env-aliases.sh
Use custom alias spec:
ENV_FILE=.env.production \
ALIAS_SPEC_FILE=skills/env-alias-audit/fixtures/alias-spec.sample \
AUDIT_MODE=report \
bash skills/env-alias-audit/scripts/audit-env-aliases.sh
Run against fixtures:
ENV_FILE=skills/env-alias-audit/fixtures/.env.conflict \
REQUIRED_GROUPS=DATABASE_URL,STRIPE_API_KEY \
bash skills/env-alias-audit/scripts/audit-env-aliases.sh
Alias spec format
ALIAS_SPEC_FILE accepts one group per line:
CANONICAL_KEY=ALIAS_ONE,ALIAS_TWO
- Comments and blank lines are ignored
- Canonical key is always part of the checked group
Output contract
- Exit
0when no strict failures are found - Exit
1on invalid input, missing required groups (strict), or conflicting alias values - Prints per-group status (
OK,WARN,FAIL) plus a summary
安全使用建议
This skill appears to do exactly what it says: audit .env alias groups for missing or conflicting values. Before installing/running it, ensure you: 1) run it in a controlled environment (so snippets of secret values printed by the script won't leak to shared logs), 2) review any ALIAS_SPEC_FILE you point it at to confirm it's local and trusted, and 3) if you want stricter secrecy, modify the script's printing (short()) to fully redact values in logs. No network access or unrelated credentials are requested by the skill.
功能分析
Type: OpenClaw Skill
Name: env-alias-audit
Version: 1.0.0
The skill is a utility for auditing environment variable files (.env) to detect conflicting values or missing required keys across alias groups. The core logic in scripts/audit-env-aliases.sh (Python via Bash) parses local files and reports status to the console without any network activity, data exfiltration, or suspicious execution patterns.
能力评估
Purpose & Capability
The name/description match the implementation: the script parses .env-style files, evaluates canonical/alias groups, checks required groups, and reports conflicts. Required binaries (bash, python3) are exactly what's needed to run the provided wrapper script and embedded Python logic.
Instruction Scope
SKILL.md instructs running the included script against a specified ENV_FILE and optional ALIAS_SPEC_FILE. The script only reads the given files, validates alias groups, and prints status; it does not call external network endpoints, spawn unexpected commands, or read unrelated system files.
Install Mechanism
There is no install spec and no external downloads. This is an instruction-only skill with a bundled script, so nothing is fetched from third-party URLs or installed system-wide.
Credentials
The skill requests no credentials or special env vars beyond optional inputs (ENV_FILE, ALIAS_SPEC_FILE, REQUIRED_GROUPS, AUDIT_MODE). However, it will read the target env file (which may contain secrets) and prints short previews of values (truncating longer values). If you run this against production .env files, those value snippets may appear in logs or console output—consider running in a safe environment or modifying the script to redact outputs more aggressively.
Persistence & Privilege
The skill does not request permanent presence (always:false), does not modify other skills, and does not write persistent system configuration. It only reads specified files and exits with appropriate status codes.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install env-alias-audit - 安装完成后,直接呼叫该 Skill 的名称或使用
/env-alias-audit触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of env-alias-audit.
- Audits .env files for missing required config, conflicting alias values, and canonical-key drift.
- Supports built-in or custom alias group specifications.
- Flags missing required groups and reports alias-only usage without the canonical key.
- Configurable via environment variables for env file, alias spec, required groups, and audit mode.
- Provides clear output with per-group status and summary; exits nonzero on failures in strict mode.
元数据
常见问题
Env Alias Audit 是什么?
Audit .env alias groups for missing required config, conflicting values, and canonical-key drift before deploy. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 261 次。
如何安装 Env Alias Audit?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install env-alias-audit」即可一键安装,无需额外配置。
Env Alias Audit 是免费的吗?
是的,Env Alias Audit 完全免费(开源免费),可自由下载、安装和使用。
Env Alias Audit 支持哪些平台?
Env Alias Audit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Env Alias Audit?
由 Daniel Lummis(@daniellummis)开发并维护,当前版本 v1.0.0。
推荐 Skills