← 返回
开发者工具 中文

README Env Table Sync

Generate and sync a README environment-variable table from .env.example using marker blocks, with drift detection for CI.
利用标记块从 .env.example 生成并同步 README 环境变量表,支持 CI 漂移检测。
daniellummis
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 473
下载
💾 6
安装
1
版本
#latest

概述

README Env Table Sync

Use this skill to keep README environment-variable docs aligned with the real .env.example file.

What this skill does

  • Parses env keys from .env.example (or another env template file)
  • Generates a markdown table with key/default values
  • Detects doc drift by comparing generated table with the README marker block
  • Optionally applies the update directly into README

Inputs

Optional:

  • ENV_FILE (default: .env.example)
  • README_FILE (default: README.md)
  • SYNC_MODE (report or apply, default: report)
  • TABLE_START_MARKER (default: )
  • TABLE_END_MARKER (default: )

Run

Drift report (CI-friendly):

ENV_FILE=.env.example \
README_FILE=README.md \
bash skills/readme-env-table-sync/scripts/sync-readme-env-table.sh

Apply sync:

ENV_FILE=.env.example \
README_FILE=README.md \
SYNC_MODE=apply \
bash skills/readme-env-table-sync/scripts/sync-readme-env-table.sh

Run against included fixtures:

ENV_FILE=skills/readme-env-table-sync/fixtures/.env.sample \
README_FILE=skills/readme-env-table-sync/fixtures/README.sample.md \
SYNC_MODE=apply \
bash skills/readme-env-table-sync/scripts/sync-readme-env-table.sh

Output contract

  • Exit 0 when table is already in sync (report) or update is applied (apply)
  • Exit 1 on invalid inputs, missing markers, parse errors, or detected drift in report mode
  • Prints a short summary with key count and mode

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 15:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,502
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,450
security-compliance

GitHub Actions Trigger Health Audit

daniellummis
审计 GitHub Actions 运行状态,按触发事件和工作流划分,快速定位并优先处理不稳定的自动化源。
★ 0 📥 725