Environment Variable Manager (env-setup) for Openclaw

A specialized automation skill for scanning codebases to manage environment variables, generate template files, and ensure secret security.

fratua
v1.0.0
Feb 16, 2026
0
1.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install env-setup

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install env-setup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Environment Variable Manager (env-setup)?

The env-setup skill is a robust utility designed for developers using Openclaw Skills to streamline project configuration and security. It automates the tedious process of identifying environment variable references across various programming languages—including Node.js, Python, Rust, and Go—ensuring that your development environment remains consistent and secure.

By integrating this skill into your workflow, you can automatically generate comprehensive .env.example files with categorized variables and safe defaults. Furthermore, it performs critical security audits by verifying .gitignore configurations and checking git history for accidentally committed secrets, making it an essential tool for modern software development within the Openclaw Skills ecosystem.

Environment Variable Manager (env-setup) Use Cases

  • Initializing a new project by generating a standardized .env.example from existing source code.
  • Auditing a legacy codebase to identify missing or unused environment variables in the current .env file.
  • Enhancing repository security by ensuring sensitive credentials are never committed to version control.
  • Synchronizing environment configurations across distributed teams using Openclaw Skills.

How Environment Variable Manager (env-setup) Works

  1. The agent scans the entire codebase using pattern-matching tools like grep to identify environment variable references in source files and configuration scripts.
  2. Extracted variables are deduplicated and classified into categories such as Secrets, Service URLs, and General Configuration.
  3. A formatted .env.example file is generated, featuring descriptive headers and placeholder values for sensitive data.
  4. The skill validates the existing .env file against the discovered variables to report discrepancies like missing keys or unused definitions.
  5. It performs a final security check on .gitignore and git history to prevent secret leakage.

Environment Variable Manager (env-setup) Setup

To utilize this skill within your Openclaw Skills environment, ensure your agent has access to the project root. No external dependencies are required beyond standard shell utilities.

# Trigger a full environment audit
openclaw run env-setup --scan

# Generate a template file
openclaw run env-setup --generate-example

Environment Variable Manager (env-setup) Data Schema & Taxonomy

The skill organizes data by mapping variable occurrences to specific files and lines to provide a comprehensive audit trail.

Field Description
Variable Name The extracted key (e.g., DATABASE_URL)
Category Classification based on sensitivity (Secret, URL, Config)
References List of file paths and line numbers where the variable is used
Status Validation state (Present, Missing, or Unused)

Environment Variable Manager (env-setup) Advanced Features

  • Multi-language support covering JavaScript, TypeScript, Python, Rust, Go, and Docker configurations.
  • Framework-aware scanning for specific patterns like Next.js public environment variables.
  • Automated git history inspection to detect historical secret exposure in the repository.
  • Intelligent classification engine that identifies sensitive keys like tokens and passwords automatically using Openclaw Skills logic.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*