Skip to content
Back to skills

Document Env Vars

ASecurity

Finds every environment variable your code reads and writes an example env file plus a table of what each one does.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsshelldocker

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill document-env-vars --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Document Env Vars?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Document Env Vars
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-document-env-vars/badge)](https://www.skillsdirectory.com/skills/workspace-templates-document-env-vars)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: document-env-vars
description: Finds every environment variable your code reads and writes an example env file plus a table of what each one does.
argument-hint: "[folder, default whole project]"
user-invocable: true
disable-model-invocation: true
---

Document the environment variables used by: $ARGUMENTS (whole project if empty).

1. Search for reads in every language present: `process.env`, `import.meta.env`, `os.environ`, `os.getenv`, `ENV[`, `System.getenv`, `std::env::var`, and config loaders such as dotenv or pydantic settings. Also search Dockerfiles, compose files, CI workflows and shell scripts.
2. For each variable record: name, file and line of first use, whether code fails without it (required) or falls back to a default, the default value, and the expected type or format.
3. Mark likely secrets by name (KEY, TOKEN, SECRET, PASSWORD, DSN). Leave their example value empty or as a clear dummy value such as `changeme`.
4. Read existing .env files only to learn names. Never print or copy actual values.
5. Write `.env.example` grouped by area with a comment above each line, and a Markdown table with the columns Name, Required, Default, Purpose.

Show the table and the file contents, list variables found in code but missing from the old .env.example, and ask before creating or overwriting anything.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.