ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/fratua/env-setup
Or

What 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

  1. "Scan my current repository for all environment variables and generate an updated .env.example file."
  2. "Analyze my project structure and identify which variables in my .env are categorized as sensitive secrets that shouldn't be committed."
  3. "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

Author@fratua
Stars2387
Views3
Updated2026-03-09
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-fratua-env-setup": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#openclaw#agent-skills#automation#productivity#free#env#environment#configuration#security
Safety Score: 4/5

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.

bamontejano 4473

MacPowerTools

Safe local Mac optimization toolkit for OpenClaw agents on Apple Silicon. 1-trillion agent swarm simulation, local CoreML resource forecasting, safe cleanup & backups. 100% user-level, no internet, no persistence. Discoverable via ClawHub search.

aadipapp 4473

social-vault

社交平台账号凭证管理器。提供登录态获取、AES-256-GCM 加密存储、定时健康监测和自动续期。Use when managing social media account credentials, importing cookies, checking login status, or automating session refresh. Also covers platform adapter creation and browser fingerprint management.

2019-02-18 4473

arc-shield

Output sanitization for agent responses - prevents accidental secret leaks

arc-claw-bot 4473

undertow

Skill discovery engine for AI coding agents. Recommends and installs the right skill when you need it — code review, test generation, debugging, commit messages, PR preparation, security scanning, dependency audits, Docker setup, CI/CD pipelines, API documentation, refactoring, performance optimization, bundle analysis, git recovery, README generation, license compliance, migration guides, dead code removal, and secret detection. One install gives your agent access to a curated library of 20+ developer workflow skills. Use when the user asks for help with any development workflow, code quality, DevOps, security, testing, documentation, or project setup task.

8co 4473