env-setup
Scan codebase for environment variables, generate .env.example, validate .env, and ensure .gitignore safety
Why use this skill?
Efficiently scan your codebase for environment variables, validate configurations, and generate .env.example files automatically with the OpenClaw env-setup skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/fratua/env-setupWhat This Skill Does
The env-setup skill is a powerful developer utility designed to bring order to your environment variable chaos. It acts as an automated audit tool for your codebase, scanning files for references to environment variables across multiple programming languages including JavaScript, TypeScript, Python, Rust, and Go. By parsing these references, it extracts unique variable names, categorizes them based on their sensitivity and function (Secrets, Service URLs, Configuration, and Others), and generates a clean, standardized .env.example file. This practice ensures your project documentation remains up-to-date and prevents the common mistake of committing hard-coded credentials to version control.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/fratua/env-setup
Use Cases
This skill is indispensable for onboarding new developers to a project, preparing a codebase for open-source publication, or auditing legacy repositories. It is particularly useful when you need to quickly identify which services a project depends on to function correctly. By automatically generating documentation for your dependencies, you minimize 'works on my machine' errors and provide a clear roadmap for setting up local or production environments.
Example Prompts
- "Scan my current repository for all environment variables and generate an updated .env.example file."
- "Analyze my project structure and identify which variables in my .env are categorized as sensitive secrets that shouldn't be committed."
- "Please perform an environment audit on this codebase, grouping the variables by category and creating a template with sensible defaults."
Tips & Limitations
While env-setup is highly effective at identifying standard variable patterns, it relies on grep-based string matching. If your code uses highly dynamic or obfuscated ways of fetching environment variables (such as runtime assembly of key names), the tool might miss them. Always perform a quick manual review after generation, especially when dealing with production-grade secrets. Ensure that your .gitignore is configured correctly before running the skill to avoid accidental commits of your local .env file. The skill works best on projects with standard directory structures and will intelligently skip common noise folders like node_modules, .venv, and dist to save execution time.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-fratua-env-setup": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-read, file-write
Related Skills
doctorbot-ci-validator
Stop failing in production. Validate your GitHub Actions, GitLab CI & Keep workflows offline with surgical precision. Born from Keep bounty research, perfected for agents.
arc-shield
Output sanitization for agent responses - prevents accidental secret leaks
AURA Security Scanner
Scan AI agent skills for malware, credential theft, prompt injection, and dangerous permissions before installing them
context-compressor
Intelligently compress context — conversations, code, logs. Preserve key information while reducing token usage. Auto-detects content type and applies optimal compression.
markdown-knowledge
将本地 Markdown 知识库与 OpenClaw 集成,支持语义检索和上下文注入。仅在用户触发时检索(搜索知识库、查一下知识库等),不主动注入。