agentleFS
viknesh20-20viknesh20-20/claude-code-tool-kit/.claude/skills/env-setup/SKILL.md

env-setup

Skill7 starsChanged 7 months agoMITView on GitHub

Environment setup assistant — detects project requirements, generates .env.example, documents prerequisites, creates setup scripts, and verifies the development environment is ready. Use when setting up a project for the first time.

  • Reads credentials

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify each requirement is met:

    line 66
  2. Distinctive:

    Create or update setup documentation:

    line 73
  3. Distinctive:

    Run a series of checks:

    line 82
  4. Distinctive:

    Never put real secrets in .env.example

    line 91
  5. Distinctive:

    Use descriptive comments for every variable

    line 92
  6. Distinctive:

    Document which variables have safe defaults

    line 95

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Environment Setup

Detect Requirements

!ls package.json requirements.txt pyproject.toml go.mod Cargo.toml *.csproj Gemfile composer.json mix.exs 2>/dev/null !ls .env .env.example .env.sample .env.template 2>/dev/null !ls Dockerfile docker-compose* Makefile Procfile 2>/dev/null

Current Environment

!node --version 2>/dev/null || echo "Node.js: not installed" !python3 --version 2>/dev/null || echo "Python: not installed" !go version 2>/dev/null || echo "Go: not installed" !rustc --version 2>/dev/null || echo "Rust: not installed" !docker --version 2>/dev/null || echo "Docker: not installed" !git --version 2>/dev/null


Setup Process

Step 1: Identify Requirements

Scan project files to determine:

  • Runtime(s) and version(s) needed
  • Package manager(s)
  • Database(s)
  • Cache (Redis, Memcached)
  • External services (S3, email, payment, etc.)
  • Build tools
  • Required CLI tools

Step 2: Generate .env.example

Scan the codebase for environment variable references:

grep -rn "process\.env\." --include="*.ts" --include="*.js" | ...
grep -rn "os\.environ\|os\.getenv" --include="*.py" | ...
grep -rn "os\.Getenv" --include="*.go" | ...

Generate .env.example with:

# Application
APP_PORT=3000
APP_ENV=development
APP_SECRET=change-me-to-a-random-string

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

# External Services
# API_KEY=your-api-key-here

Include:

  • Comments explaining each variable
  • Safe defaults for development
  • Placeholder values for secrets (never real values)
  • Grouped by category

Step 3: Check Prerequisites

Verify each requirement is met:

RequirementStatusVersionRequired
Node.jsOK/MISSINGv20.x>=18
............

Step 4: Generate Setup Instructions

Create or update setup documentation:

  1. Prerequisites to install
  2. Clone and install steps
  3. Environment configuration
  4. Database setup (create, migrate, seed)
  5. Start development server
  6. Verify everything works

Step 5: Verify

Run a series of checks:

  • All required runtimes installed at correct versions
  • Dependencies installed successfully
  • Environment variables configured
  • Database accessible (if applicable)
  • Dev server starts without errors
  • Tests pass

Rules

  • Never put real secrets in .env.example
  • Use descriptive comments for every variable
  • Group variables by service/purpose
  • Include both required and optional variables
  • Document which variables have safe defaults

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.