Pular para o conteúdo
TakoAPI
Voltar às skills

env-setup

por fratua

Coding Agents & IDEs
429Downloads informados pelo clawskills.sh
0Visualizações
0 curtidaEntre para curtir esta skill
—Ainda sem avaliações
Sua avaliação

Resumo

Scan codebase for environment variables, generate .env.example, validate .env, and ensure .gitignore safety.

Descrição

O que esta skill faz

Scans a codebase for all referenced environment variables across JavaScript, TypeScript, Python, Go, Rust, and Docker files. Generates a .env.example with categorized placeholders, validates an existing .env against discovered variables, and checks .gitignore for secret safety.

Replaces manual grep sessions and guesswork by scanning all common env patterns across multiple languages in one pass and cross-referencing them against your actual .env.

Quando usá-la

  • Finding missing env vars before a deployment fails
  • Onboarding a new developer with a complete .env.example
  • Auditing which secrets are exposed in git history
  • Cleaning up stale variables left in .env after refactoring
  • Verifying .gitignore protects all environment files

Exemplo de fluxo de trabalho

ENTRADA

User asks: scan my project and generate a .env.example

AGENTE
  1. 1

    Grep codebase across .js, .ts, .py, .go, .rs, and docker-compose files for env var references

  2. 2

    Extract and deduplicate variable names, noting source file and line number for each

  3. 3

    Classify variables into secrets, service URLs, and configuration groups

  4. 4

    Generate .env.example with placeholder values and category comment headers

  5. 5

    Check .gitignore for .env entries and scan git history for accidentally committed env files

SAÍDA

A .env.example file with 15 categorized variables, a validation report showing 2 missing and 1 unused variable in the current .env, and a .gitignore safety confirmation

Instalação

clawhub install fratua/env-setup

Execute o comando da CLI ou cole o prompt no Claude Code, Cursor, Codex ou no agente de código que você usa.

Links