openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Env Alias Audit

Audit .env alias groups for missing required config, conflicting values, and canonical-key drift before deploy.

开发与 DevOps

作者:Daniel Lummis @daniellummis

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 0 · 151 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :良性

Package:daniellummis/env-alias-audit

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill's files, runtime instructions, and requested binaries are consistent with an env-alias auditing tool and do not request unrelated credentials or network access.

目的

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.

说明范围

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.

安装机制

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.

证书

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 …

持久

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.

综合结论

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 i…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Env Alias Audit」。简介:Audit .env alias groups for missing required config, conflicting values, and ca…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/daniellummis/env-alias-audit/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: env-alias-audit
description: Audit .env alias groups for missing required config, conflicting values, and canonical-key drift before deploy.
version: 1.0.0
metadata: {"openclaw":{"requires":{"bins":["bash","python3"]}}}
---

# 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` (`report` or `strict`, default: `strict`)

## Run

Use built-in alias groups:

```bash
ENV_FILE=.env 
REQUIRED_GROUPS=DATABASE_URL,STRIPE_API_KEY 
bash skills/env-alias-audit/scripts/audit-env-aliases.sh
```

Use custom alias spec:

```bash
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:

```bash
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:

```text
CANONICAL_KEY=ALIAS_ONE,ALIAS_TWO
```

- Comments and blank lines are ignored
- Canonical key is always part of the checked group

## Output contract
- Exit `0` when no strict failures are found
- Exit `1` on invalid input, missing required groups (strict), or conflicting alias values
- Prints per-group status (`OK`, `WARN`, `FAIL`) plus a summary