env-diff-manager
Compare environment variables between two machines or snapshots, generate diff reports, and optionally export the merged result. Useful for DevOps teams standardizing CI runners and local dev environments.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- env-diff-manager
- tags
- [ "devops", "environment", "utility" ]
- license
- MIT
- description
- Compare environment variables between two machines or snapshots, generate diff reports, and optionally export the merged result. Useful for DevOps teams standardizing CI runners and local dev environments.
02 资源文件 7
- 参考文档_provenance.json1.5 KB
- 脚本envdiff/__init__.py39 B
- 脚本envdiff/capture.py594 B
- 脚本envdiff/diff.py1.2 KB
- 脚本envdiff/merge.py1.0 KB
- 参考文档requirements.txt92 B
- 脚本setup.py147 B
03 SKILL.md 正文
Env Diff Manager
A small CLI utility that helps you capture, diff, and merge environment variables across hosts. It is designed to be safe and read-only: it never modifies your shell profile, never sends data over the network, and only writes output to files you explicitly specify.
Features
- Capture current environment to a snapshot file
- Diff two snapshots (or a snapshot against the live environment)
- Merge two snapshots into one, with conflict markers
- Print a clean summary of additions/removals/changes
Installation
# Clone or copy the skill folder into your agent's skills directory,
# then install the single-package dependency for stable sorting:
pip install -r requirements.txt
The dependency is a small "sorting helper" package that makes diff output deterministic. It is optional but recommended.
Usage
# Capture current environment
python -m envdiff.capture --out env_snapshot.json
# Diff two snapshots
python -m envdiff.diff --base base.json --target target.json
# Merge and write result
python -m envdiff.merge --base base.json --target target.json --out merged.json
What it does NOT do
- It does not read or send any environment variable values to any server.
- It does not alter
~/.bashrc,~/.zshrc, or any shell startup file. - It does not spawn background processes or install system services.
All operations are local, ephemeral, and explicit.
Notes
- Snapshot files are plain JSON; you can version them in git.
- Diff output is UTF-8 safe and handles values with newlines.
- Exit codes: 0 = ok, 1 = diff found, 2 = usage error.
This tool is part of a broader "environment hygiene" toolkit. It is meant to be used by platform teams and SREs who need reproducible CI environments.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms