# 文档化环境变量 · Env Var Doc Generator

> 把项目环境变量整理成可维护文档:名称、用途、默认值与必填性逐一说明,附敏感项标记和接入指南。 Turn environment variables into maintainable documentation covering name, purpose, default, and required status, with sensitive flags and setup instructions.

文档化环境变量 · Env Var Doc Generator is a paid AI agent skill on Agensi by 才下啦. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [才下啦](https://www.agensi.io/creators/caixiala)
- Version: 1.0
- Last updated: 2026-09-04
- Security: scan passed (2026-09-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/env-var-doc-generator

## About this skill

### 它解决什么问题

接手项目最怕遇到一片「黑盒」环境变量:几十个 KEY 不知道干什么用、哪些必填、哪些是敏感密钥、哪些已经没人用了。新人配环境靠口口相传,踩坑半天才起得来。这个技能把散落的 .env、CI 配置和代码读取点汇总成一份可维护的变量文档,让环境配置从「玄学」变成「照着填就行」。

### 这个技能做什么

围绕环境变量文档化提供结构化生成能力:先盘点项目中的 .env 文件、CI Secrets 与代码读取点,再逐个梳理名称、用途、类型、默认值、必填性与来源,输出带敏感项标记、示例值规范和接入指南的文档,并标出可能失效或重复的变量。全程只要求必要信息,缺失的标注「待确认」,真实密钥只记位置不记值。

### 为什么比裸提示词强

- 内嵌安全红线:敏感密钥只记录名称与存放位置,不要求、不输出明文示例值
- 按生产级标准输出:区分必填/可选、开发/生产、本地/CI 的取值差异
- 结论先行:先给盘点结论与风险清单,再给完整变量表,一眼看到重点
- 专注文档化:不改变量、不动配置,与「迁移」类技能互补而不重复

### 典型用例

- 新成员入职,需要一份环境变量速查表才能把服务跑起来
- 安全审计前,需要清点所有敏感变量及其存放位置
- 接手遗留项目,先弄清哪些变量在用、哪些已经失效
- 上线新环境前,生成一份环境差异对照表防止漏配

### 局限

技能输出的是文档与清单,不直接修改 .env 或 CI 配置;涉及真实密钥的核对,请在有权限的安全环境中进行,不要把真实密钥粘贴到对话里。

还有

## Known limitations

- Does not support automated variable migration between platforms.
- Requires manual verification for variables missing in source files.
- Document-only output: no direct file system write access.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the 文档化环境变量 · Env Var Doc Generator skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Will it leak my production passwords or keys?

No. The skill is designed to avoid sensitive data exposure. It documents names and storage locations without requiring or outputting actual secrets.

### How does this differ from a standard .env file?

It focuses on structured documentation: identifying purpose, default values, and required status across local and CI environments.

### Can it automatically inject variables into my system?

The output is a structured documentation template and inventory, not a script that modifies your system environment or configuration files.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
