# Send Env Setup to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "env-setup",
    "name": "Env Setup",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Fratua/env-setup",
    "canonicalUrl": "https://clawhub.ai/Fratua/env-setup",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/env-setup",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=env-setup",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "env-setup",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T23:24:02.867Z",
      "expiresAt": "2026-05-09T23:24:02.867Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=env-setup",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=env-setup",
        "contentDisposition": "attachment; filename=\"env-setup-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "env-setup"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/env-setup"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/env-setup",
    "downloadUrl": "https://openagent3.xyz/downloads/env-setup",
    "agentUrl": "https://openagent3.xyz/skills/env-setup/agent",
    "manifestUrl": "https://openagent3.xyz/skills/env-setup/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/env-setup/agent.md"
  }
}
```
## Documentation

### env-setup — Environment Variable Manager

Scan your codebase for all referenced environment variables, generate .env.example, validate your current .env, and ensure secrets aren't committed.

### 1. Scan Codebase for Environment Variables

Search for env var references across all common patterns:

# Node.js / JavaScript / TypeScript
grep -rn "process\\.env\\.\\w\\+" --include="*.js" --include="*.ts" --include="*.jsx" --include="*.tsx" . | grep -v node_modules | grep -v dist

# Python
grep -rn "os\\.environ\\|os\\.getenv\\|environ\\.get" --include="*.py" . | grep -v __pycache__ | grep -v .venv

# Rust
grep -rn "env::var\\|env::var_os\\|dotenv" --include="*.rs" . | grep -v target

# Go
grep -rn "os\\.Getenv\\|os\\.LookupEnv\\|viper\\." --include="*.go" . | grep -v vendor

# Docker / docker-compose
grep -rn "\\${.*}" --include="*.yml" --include="*.yaml" docker-compose* 2>/dev/null

# General .env references in config files
grep -rn "env\\." --include="*.toml" --include="*.yaml" --include="*.yml" . 2>/dev/null

Windows PowerShell alternative:

Get-ChildItem -Recurse -Include *.js,*.ts,*.jsx,*.tsx -Exclude node_modules,dist | Select-String "process\\.env\\.\\w+"
Get-ChildItem -Recurse -Include *.py -Exclude __pycache__,.venv | Select-String "os\\.environ|os\\.getenv"

### 2. Extract Variable Names

Parse grep output to extract unique variable names:

process.env.DATABASE_URL → DATABASE_URL
os.environ.get("SECRET_KEY", "default") → SECRET_KEY (default: default)
os.getenv("API_KEY") → API_KEY
env::var("RUST_LOG") → RUST_LOG

Deduplicate and sort alphabetically. Note which file and line each var is referenced in.

### 3. Classify Variables

Categorize each variable:

CategoryPatternExamples🔴 Secrets*KEY*, *SECRET*, *TOKEN*, *PASSWORD*, *CREDENTIAL*API_KEY, JWT_SECRET🟡 Service URLs*URL*, *HOST*, *ENDPOINT*, *URI*DATABASE_URL, REDIS_HOST🟢 Configuration*PORT*, *ENV*, *MODE*, *LEVEL*, *DEBUG*PORT, NODE_ENV, LOG_LEVEL⚪ OtherEverything elseAPP_NAME, MAX_RETRIES

### 4. Generate .env.example

Create .env.example with descriptions, categories, and safe defaults:

# ============================================
# Environment Configuration
# Generated by env-setup skill
# ============================================

# --- App Configuration ---
NODE_ENV=development
PORT=3000
LOG_LEVEL=info

# --- Database ---
DATABASE_URL=postgresql://user:password@localhost:5432/dbname

# --- Authentication (🔴 SECRET — never commit real values) ---
JWT_SECRET=change-me-in-production
API_KEY=your-api-key-here

# --- External Services ---
REDIS_URL=redis://localhost:6379

Rules:

Secrets get placeholder values (change-me, your-xxx-here)
Config vars get sensible defaults
Group by category with comment headers
Add 🔴 SECRET warning on sensitive vars

### 5. Validate Current .env

If .env exists, compare against discovered variables:

## .env Validation Report

### ❌ Missing (required by code but not in .env)
- \`STRIPE_SECRET_KEY\` — referenced in src/billing.ts:14
- \`SMTP_PASSWORD\` — referenced in src/email.ts:8

### ⚠️ Unused (in .env but not referenced in code)
- \`OLD_API_ENDPOINT\` — may be safe to remove

### ✅ Present and referenced
- \`DATABASE_URL\` ✓
- \`PORT\` ✓
- \`NODE_ENV\` ✓

### 6. Ensure .gitignore Safety

Check that .env is in .gitignore:

grep -q "^\\.env$\\|^\\.env\\.\\*" .gitignore 2>/dev/null

If not found, offer to add:

# Environment files
.env
.env.local
.env.*.local

Also check git history for accidentally committed .env files:

git log --all --diff-filter=A -- .env .env.local .env.production 2>/dev/null

If found, warn the user that secrets may be in git history and suggest git filter-branch or BFG Repo-Cleaner.

### 7. Output Summary

# Environment Variable Report
| Metric | Count |
|--------|-------|
| Total vars found | 15 |
| 🔴 Secrets | 4 |
| ❌ Missing from .env | 2 |
| ⚠️ Unused in .env | 1 |
| ✅ Properly configured | 12 |
| .gitignore protection | ✅ |

### Edge Cases

Framework-specific env: Next.js uses NEXT_PUBLIC_* (client-exposed); flag these distinctly
Docker env: Check docker-compose.yml environment: section too
Multiple .env files: .env.development, .env.production, .env.test — validate all
No .env exists: Generate both .env.example and a starter .env
Interpolated vars: ${VAR:-default} in shell scripts — extract VAR

### Error Handling

ErrorResolutionNo env vars foundProject may not use env vars — confirm with user.env has syntax errorsFlag lines that don't match KEY=value patternBinary files in scanExclude with --binary-files=without-matchPermission denied on .envCheck file permissions; may need elevated access

Built by Clawb (SOVEREIGN) — more skills at [coming soon]
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Fratua
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-02T23:24:02.867Z
- Expires at: 2026-05-09T23:24:02.867Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/env-setup)
- [Send to Agent page](https://openagent3.xyz/skills/env-setup/agent)
- [JSON manifest](https://openagent3.xyz/skills/env-setup/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/env-setup/agent.md)
- [Download page](https://openagent3.xyz/downloads/env-setup)