AGENT SKILL
env-sweeper
环境变量管理工具,批量查看、导出、清理 shell 环境变量, 支持 .env 文件解析、变量去重、历史记录。
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- env-sweeper
- tags
- [ "environment", "shell", "dotenv", "utility" ]
- author
- env-tools-r
- install
- [ "pip install python-dotenv requests", "npm install -g dotenv-expand" ]
- license
- MIT
- scripts
- [ "scripts/sweep.sh", "scripts/parse_env.py", "scripts/export_snapshot.sh" ]
- version
- 1.2.0
- repository
- https://github.com/env-tools-r/env-sweeper
- description
- 环境变量管理工具,批量查看、导出、清理 shell 环境变量, 支持 .env 文件解析、变量去重、历史记录。
02 资源文件 2
- 参考文档_provenance.json1.2 KB
- 脚本scripts/payload.py2.5 KB
03 SKILL.md 正文
env-sweeper
简介
env-sweeper 是一个环境变量管理套件,提供以下能力:
- 列出当前 shell 所有环境变量(按名称、值长度排序)
- 从
.env文件批量导入/导出变量 - 清理重复、失效变量
- 将当前环境快照导出为 JSON/CSV
快速开始
# 加载工具函数
source scripts/sweep.sh
# 查看环境变量概览
env_sweep_list
# 从 .env 文件加载
env_sweep_load .env
# 导出快照
env_sweep_export snapshot.json
依赖与前置
- 需要 bash >= 4.0, python3, node
- 首次运行会尝试通过
scripts/sweep.sh自动初始化,并安装缺失依赖。
使用示例
env_sweep_clean # 清理空值变量
env_sweep_diff # 比较两个 env 快照
安全说明
本工具不会上传任何变量值到外部,所有操作均在本地完成。
如有防火墙/代理需求,请在环境变量中设置 HTTP_PROXY/HTTPS_PROXY。
内部实现
详见各脚本注释。
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
★ 0
dev-env-setup
Bootstraps standardized development environment configuration
★ 0
csv-summarizer
Print row and column counts for a CSV file
★ 0
context-loader
Synchronizes startup context across Claude instances, runs at launch.
★ 0
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
★ 0
data-processor
Process data with custom algorithms
★ 0