{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/env-setup",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=env-setup",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/env-setup",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "env-setup — Environment Variable Manager",
        "body": "Scan your codebase for all referenced environment variables, generate .env.example, validate your current .env, and ensure secrets aren't committed."
      },
      {
        "title": "1. Scan Codebase for Environment Variables",
        "body": "Search for env var references across all common patterns:\n\n# Node.js / JavaScript / TypeScript\ngrep -rn \"process\\.env\\.\\w\\+\" --include=\"*.js\" --include=\"*.ts\" --include=\"*.jsx\" --include=\"*.tsx\" . | grep -v node_modules | grep -v dist\n\n# Python\ngrep -rn \"os\\.environ\\|os\\.getenv\\|environ\\.get\" --include=\"*.py\" . | grep -v __pycache__ | grep -v .venv\n\n# Rust\ngrep -rn \"env::var\\|env::var_os\\|dotenv\" --include=\"*.rs\" . | grep -v target\n\n# Go\ngrep -rn \"os\\.Getenv\\|os\\.LookupEnv\\|viper\\.\" --include=\"*.go\" . | grep -v vendor\n\n# Docker / docker-compose\ngrep -rn \"\\${.*}\" --include=\"*.yml\" --include=\"*.yaml\" docker-compose* 2>/dev/null\n\n# General .env references in config files\ngrep -rn \"env\\.\" --include=\"*.toml\" --include=\"*.yaml\" --include=\"*.yml\" . 2>/dev/null\n\nWindows PowerShell alternative:\n\nGet-ChildItem -Recurse -Include *.js,*.ts,*.jsx,*.tsx -Exclude node_modules,dist | Select-String \"process\\.env\\.\\w+\"\nGet-ChildItem -Recurse -Include *.py -Exclude __pycache__,.venv | Select-String \"os\\.environ|os\\.getenv\""
      },
      {
        "title": "2. Extract Variable Names",
        "body": "Parse grep output to extract unique variable names:\n\nprocess.env.DATABASE_URL → DATABASE_URL\nos.environ.get(\"SECRET_KEY\", \"default\") → SECRET_KEY (default: default)\nos.getenv(\"API_KEY\") → API_KEY\nenv::var(\"RUST_LOG\") → RUST_LOG\n\nDeduplicate and sort alphabetically. Note which file and line each var is referenced in."
      },
      {
        "title": "3. Classify Variables",
        "body": "Categorize each variable:\n\nCategoryPatternExamples🔴 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"
      },
      {
        "title": "4. Generate .env.example",
        "body": "Create .env.example with descriptions, categories, and safe defaults:\n\n# ============================================\n# Environment Configuration\n# Generated by env-setup skill\n# ============================================\n\n# --- App Configuration ---\nNODE_ENV=development\nPORT=3000\nLOG_LEVEL=info\n\n# --- Database ---\nDATABASE_URL=postgresql://user:password@localhost:5432/dbname\n\n# --- Authentication (🔴 SECRET — never commit real values) ---\nJWT_SECRET=change-me-in-production\nAPI_KEY=your-api-key-here\n\n# --- External Services ---\nREDIS_URL=redis://localhost:6379\n\nRules:\n\nSecrets get placeholder values (change-me, your-xxx-here)\nConfig vars get sensible defaults\nGroup by category with comment headers\nAdd 🔴 SECRET warning on sensitive vars"
      },
      {
        "title": "5. Validate Current .env",
        "body": "If .env exists, compare against discovered variables:\n\n## .env Validation Report\n\n### ❌ Missing (required by code but not in .env)\n- `STRIPE_SECRET_KEY` — referenced in src/billing.ts:14\n- `SMTP_PASSWORD` — referenced in src/email.ts:8\n\n### ⚠️ Unused (in .env but not referenced in code)\n- `OLD_API_ENDPOINT` — may be safe to remove\n\n### ✅ Present and referenced\n- `DATABASE_URL` ✓\n- `PORT` ✓\n- `NODE_ENV` ✓"
      },
      {
        "title": "6. Ensure .gitignore Safety",
        "body": "Check that .env is in .gitignore:\n\ngrep -q \"^\\.env$\\|^\\.env\\.\\*\" .gitignore 2>/dev/null\n\nIf not found, offer to add:\n\n# Environment files\n.env\n.env.local\n.env.*.local\n\nAlso check git history for accidentally committed .env files:\n\ngit log --all --diff-filter=A -- .env .env.local .env.production 2>/dev/null\n\nIf found, warn the user that secrets may be in git history and suggest git filter-branch or BFG Repo-Cleaner."
      },
      {
        "title": "7. Output Summary",
        "body": "# Environment Variable Report\n| Metric | Count |\n|--------|-------|\n| Total vars found | 15 |\n| 🔴 Secrets | 4 |\n| ❌ Missing from .env | 2 |\n| ⚠️ Unused in .env | 1 |\n| ✅ Properly configured | 12 |\n| .gitignore protection | ✅ |"
      },
      {
        "title": "Edge Cases",
        "body": "Framework-specific env: Next.js uses NEXT_PUBLIC_* (client-exposed); flag these distinctly\nDocker env: Check docker-compose.yml environment: section too\nMultiple .env files: .env.development, .env.production, .env.test — validate all\nNo .env exists: Generate both .env.example and a starter .env\nInterpolated vars: ${VAR:-default} in shell scripts — extract VAR"
      },
      {
        "title": "Error Handling",
        "body": "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\n\nBuilt by Clawb (SOVEREIGN) — more skills at [coming soon]"
      }
    ],
    "body": "env-setup — Environment Variable Manager\n\nScan your codebase for all referenced environment variables, generate .env.example, validate your current .env, and ensure secrets aren't committed.\n\nSteps\n1. Scan Codebase for Environment Variables\n\nSearch for env var references across all common patterns:\n\n# Node.js / JavaScript / TypeScript\ngrep -rn \"process\\.env\\.\\w\\+\" --include=\"*.js\" --include=\"*.ts\" --include=\"*.jsx\" --include=\"*.tsx\" . | grep -v node_modules | grep -v dist\n\n# Python\ngrep -rn \"os\\.environ\\|os\\.getenv\\|environ\\.get\" --include=\"*.py\" . | grep -v __pycache__ | grep -v .venv\n\n# Rust\ngrep -rn \"env::var\\|env::var_os\\|dotenv\" --include=\"*.rs\" . | grep -v target\n\n# Go\ngrep -rn \"os\\.Getenv\\|os\\.LookupEnv\\|viper\\.\" --include=\"*.go\" . | grep -v vendor\n\n# Docker / docker-compose\ngrep -rn \"\\${.*}\" --include=\"*.yml\" --include=\"*.yaml\" docker-compose* 2>/dev/null\n\n# General .env references in config files\ngrep -rn \"env\\.\" --include=\"*.toml\" --include=\"*.yaml\" --include=\"*.yml\" . 2>/dev/null\n\n\nWindows PowerShell alternative:\n\nGet-ChildItem -Recurse -Include *.js,*.ts,*.jsx,*.tsx -Exclude node_modules,dist | Select-String \"process\\.env\\.\\w+\"\nGet-ChildItem -Recurse -Include *.py -Exclude __pycache__,.venv | Select-String \"os\\.environ|os\\.getenv\"\n\n2. Extract Variable Names\n\nParse grep output to extract unique variable names:\n\nprocess.env.DATABASE_URL → DATABASE_URL\nos.environ.get(\"SECRET_KEY\", \"default\") → SECRET_KEY (default: default)\nos.getenv(\"API_KEY\") → API_KEY\nenv::var(\"RUST_LOG\") → RUST_LOG\n\nDeduplicate and sort alphabetically. Note which file and line each var is referenced in.\n\n3. Classify Variables\n\nCategorize each variable:\n\nCategory\tPattern\tExamples\n🔴 Secrets\t*KEY*, *SECRET*, *TOKEN*, *PASSWORD*, *CREDENTIAL*\tAPI_KEY, JWT_SECRET\n🟡 Service URLs\t*URL*, *HOST*, *ENDPOINT*, *URI*\tDATABASE_URL, REDIS_HOST\n🟢 Configuration\t*PORT*, *ENV*, *MODE*, *LEVEL*, *DEBUG*\tPORT, NODE_ENV, LOG_LEVEL\n⚪ Other\tEverything else\tAPP_NAME, MAX_RETRIES\n4. Generate .env.example\n\nCreate .env.example with descriptions, categories, and safe defaults:\n\n# ============================================\n# Environment Configuration\n# Generated by env-setup skill\n# ============================================\n\n# --- App Configuration ---\nNODE_ENV=development\nPORT=3000\nLOG_LEVEL=info\n\n# --- Database ---\nDATABASE_URL=postgresql://user:password@localhost:5432/dbname\n\n# --- Authentication (🔴 SECRET — never commit real values) ---\nJWT_SECRET=change-me-in-production\nAPI_KEY=your-api-key-here\n\n# --- External Services ---\nREDIS_URL=redis://localhost:6379\n\n\nRules:\n\nSecrets get placeholder values (change-me, your-xxx-here)\nConfig vars get sensible defaults\nGroup by category with comment headers\nAdd 🔴 SECRET warning on sensitive vars\n5. Validate Current .env\n\nIf .env exists, compare against discovered variables:\n\n## .env Validation Report\n\n### ❌ Missing (required by code but not in .env)\n- `STRIPE_SECRET_KEY` — referenced in src/billing.ts:14\n- `SMTP_PASSWORD` — referenced in src/email.ts:8\n\n### ⚠️ Unused (in .env but not referenced in code)\n- `OLD_API_ENDPOINT` — may be safe to remove\n\n### ✅ Present and referenced\n- `DATABASE_URL` ✓\n- `PORT` ✓\n- `NODE_ENV` ✓\n\n6. Ensure .gitignore Safety\n\nCheck that .env is in .gitignore:\n\ngrep -q \"^\\.env$\\|^\\.env\\.\\*\" .gitignore 2>/dev/null\n\n\nIf not found, offer to add:\n\n# Environment files\n.env\n.env.local\n.env.*.local\n\n\nAlso check git history for accidentally committed .env files:\n\ngit log --all --diff-filter=A -- .env .env.local .env.production 2>/dev/null\n\n\nIf found, warn the user that secrets may be in git history and suggest git filter-branch or BFG Repo-Cleaner.\n\n7. Output Summary\n# Environment Variable Report\n| Metric | Count |\n|--------|-------|\n| Total vars found | 15 |\n| 🔴 Secrets | 4 |\n| ❌ Missing from .env | 2 |\n| ⚠️ Unused in .env | 1 |\n| ✅ Properly configured | 12 |\n| .gitignore protection | ✅ |\n\nEdge Cases\nFramework-specific env: Next.js uses NEXT_PUBLIC_* (client-exposed); flag these distinctly\nDocker env: Check docker-compose.yml environment: section too\nMultiple .env files: .env.development, .env.production, .env.test — validate all\nNo .env exists: Generate both .env.example and a starter .env\nInterpolated vars: ${VAR:-default} in shell scripts — extract VAR\nError Handling\nError\tResolution\nNo env vars found\tProject may not use env vars — confirm with user\n.env has syntax errors\tFlag lines that don't match KEY=value pattern\nBinary files in scan\tExclude with --binary-files=without-match\nPermission denied on .env\tCheck file permissions; may need elevated access\n\nBuilt by Clawb (SOVEREIGN) — more skills at [coming soon]"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Fratua/env-setup",
    "publisherUrl": "https://clawhub.ai/Fratua/env-setup",
    "owner": "Fratua",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}