Environment Setup Guide
Overview
Help developers set up complete development environments from scratch. This skill provides step-by-step guidance for installing tools, configuring dependencies, setting up environment variables, and verifying the setup works correctly.
When to Use This Skill
- Use when starting a new project and need to set up the development environment
- Use when onboarding new team members to a project
- Use when switching to a new machine or operating system
- Use when troubleshooting environment-related issues
- Use when documenting setup instructions for a project
- Use when creating development environment documentation
Versions below are historical examples, not current supported-version recommendations. Use the project lockfiles, runtime constraints and official support matrix before installing; do not assume a newer major is compatible. Dependency installs may execute lifecycle scripts. Protect and gitignore secret environment files. Docker group membership grants root-equivalent host control; use rootless Docker where appropriate. The Compose stack is local development only: use unique credentials, bind published ports to loopback and add readiness checks rather than assuming depends_on means the database is ready.
How It Works
Step 1: Identify Requirements
I'll help you determine what needs to be installed:
- Programming language and version (Node.js, Python, Go, etc.)
- Package managers (npm, pip, cargo, etc.)
- Database systems (PostgreSQL, MongoDB, Redis, etc.)
- Development tools (Git, Docker, IDE extensions, etc.)
- Environment variables and configuration files
Step 2: Check Current Setup
Before installing anything, I'll help you check what's already installed:
# Check versions of installed tools
node --version
python --version
git --version
docker --version
Step 3: Provide Installation Instructions
I'll give platform-specific installation commands:
- macOS: Using Homebrew
- Linux: Using apt, yum, or package manager
- Windows: Using Chocolatey, Scoop, or direct installers
Step 4: Configure the Environment
Help set up:
- Environment variables (.env files)
- Configuration files (.gitconfig, .npmrc, etc.)
- IDE settings (VS Code, IntelliJ, etc.)
- Shell configuration (.bashrc, .zshrc, etc.)
Step 5: Verify Installation
Provide verification steps to ensure everything works:
- Run version checks
- Test basic commands
- Verify database connections
- Check environment variables are loaded
Examples
Example 1: Node.js Project Setup
## Setting Up Node.js Development Environment
### Prerequisites
- macOS, Linux, or Windows
- Terminal/Command Prompt access
- Internet connection
### Step 1: Install Node.js
**macOS (using Homebrew):**
\`\`\`bash
# Install Homebrew if not installed
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
curl -fsSLo "$tmpdir/homebrew-install.sh" https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
cat "$tmpdir/homebrew-install.sh" # review the full installer before executing
/bin/bash "$tmpdir/homebrew-install.sh"
# Install Node.js
brew install node
\`\`\`
**Linux (Ubuntu/Debian):**
\`\`\`bash
# Update package list
sudo apt update
# Install Node.js and npm
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
curl -fsSLo "$tmpdir/nodesource-setup.sh" https://deb.nodesource.com/setup_20.x
cat "$tmpdir/nodesource-setup.sh" # review the full installer before sudo
sudo -E bash "$tmpdir/nodesource-setup.sh"
sudo apt install -y nodejs
\`\`\`
**Windows (using winget):**
\`\`\`powershell
# Install Node.js
winget install OpenJS.NodeJS.LTS
\`\`\`
### Step 2: Verify Installation
\`\`\`bash
node --version # Should show v20.x.x or higher
npm --version # Should show 10.x.x or higher
\`\`\`
### Step 3: Install Project Dependencies
\`\`\`bash
# Clone the repository
git clone https://github.com/your-repo/project.git
cd project
# Install dependencies
npm install
\`\`\`
### Step 4: Set Up Environment Variables
Create a \`.env\` file:
\`\`\`bash
# Copy example environment file
cp .env.example .env
# Edit with your values
nano .env
\`\`\`
Example \`.env\` content:
\`\`\`
NODE_ENV=development
PORT=3000
DATABASE_URL=postgresql://localhost:5432/mydb
API_KEY=your-api-key-here
\`\`\`
### Step 5: Run the Project
\`\`\`bash
# Start development server
npm run dev
# Should see: Server running on http://localhost:3000
\`\`\`
### Troubleshooting
**Problem:** "node: command not found"
**Solution:** Restart your terminal or run \`source ~/.bashrc\` (Linux) or \`source ~/.zshrc\` (macOS)
**Problem:** "Permission denied" errors
**Solution:** Don't use sudo with npm. Fix permissions:
\`\`\`bash
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
\`\`\`
Example 2: Python Project Setup
## Setting Up Python Development Environment
### Step 1: Install Python
**macOS:**
\
1---2name: environment-setup-guide3description: Guide developers through setting up development environments with proper tools, dependencies, and configurations 4category: Document Processing5source: antigravity6tags: [python, node, markdown, api, ai, template, document, image, docker, cro]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/environment-setup-guide8metadata:9 source: https://skillmd.com/skills/ranbot-ai/environment-setup-guide10---111213# Environment Setup Guide1415## Overview1617Help developers set up complete development environments from scratch. This skill provides step-by-step guidance for installing tools, configuring dependencies, setting up environment variables, and verifying the setup works correctly.1819## When to Use This Skill2021- Use when starting a new project and need to set up the development environment22- Use when onboarding new team members to a project23- Use when switching to a new machine or operating system24- Use when troubleshooting environment-related issues25- Use when documenting setup instructions for a project26- Use when creating development environment documentation2728Versions below are historical examples, not current supported-version recommendations. Use the project lockfiles, runtime constraints and official support matrix before installing; do not assume a newer major is compatible. Dependency installs may execute lifecycle scripts. Protect and gitignore secret environment files. Docker group membership grants root-equivalent host control; use rootless Docker where appropriate. The Compose stack is local development only: use unique credentials, bind published ports to loopback and add readiness checks rather than assuming `depends_on` means the database is ready.2930## How It Works3132### Step 1: Identify Requirements3334I'll help you determine what needs to be installed:35- Programming language and version (Node.js, Python, Go, etc.)36- Package managers (npm, pip, cargo, etc.)37- Database systems (PostgreSQL, MongoDB, Redis, etc.)38- Development tools (Git, Docker, IDE extensions, etc.)39- Environment variables and configuration files4041### Step 2: Check Current Setup4243Before installing anything, I'll help you check what's already installed:44```bash45# Check versions of installed tools46node --version47python --version48git --version49docker --version50```5152### Step 3: Provide Installation Instructions5354I'll give platform-specific installation commands:55- **macOS:** Using Homebrew56- **Linux:** Using apt, yum, or package manager57- **Windows:** Using Chocolatey, Scoop, or direct installers5859### Step 4: Configure the Environment6061Help set up:62- Environment variables (.env files)63- Configuration files (.gitconfig, .npmrc, etc.)64- IDE settings (VS Code, IntelliJ, etc.)65- Shell configuration (.bashrc, .zshrc, etc.)6667### Step 5: Verify Installation6869Provide verification steps to ensure everything works:70- Run version checks71- Test basic commands72- Verify database connections73- Check environment variables are loaded7475## Examples7677### Example 1: Node.js Project Setup7879```markdown80## Setting Up Node.js Development Environment8182### Prerequisites83- macOS, Linux, or Windows84- Terminal/Command Prompt access85- Internet connection8687### Step 1: Install Node.js8889**macOS (using Homebrew):**90\`\`\`bash91# Install Homebrew if not installed92tmpdir="$(mktemp -d)"93trap 'rm -rf "$tmpdir"' EXIT94curl -fsSLo "$tmpdir/homebrew-install.sh" https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh95cat "$tmpdir/homebrew-install.sh" # review the full installer before executing96/bin/bash "$tmpdir/homebrew-install.sh"9798# Install Node.js99brew install node100\`\`\`101102**Linux (Ubuntu/Debian):**103\`\`\`bash104# Update package list105sudo apt update106107# Install Node.js and npm108tmpdir="$(mktemp -d)"109trap 'rm -rf "$tmpdir"' EXIT110curl -fsSLo "$tmpdir/nodesource-setup.sh" https://deb.nodesource.com/setup_20.x111cat "$tmpdir/nodesource-setup.sh" # review the full installer before sudo112sudo -E bash "$tmpdir/nodesource-setup.sh"113sudo apt install -y nodejs114\`\`\`115116**Windows (using winget):**117\`\`\`powershell118# Install Node.js119winget install OpenJS.NodeJS.LTS120\`\`\`121122### Step 2: Verify Installation123124\`\`\`bash125node --version # Should show v20.x.x or higher126npm --version # Should show 10.x.x or higher127\`\`\`128129### Step 3: Install Project Dependencies130131\`\`\`bash132# Clone the repository133git clone https://github.com/your-repo/project.git134cd project135136# Install dependencies137npm install138\`\`\`139140### Step 4: Set Up Environment Variables141142Create a \`.env\` file:143\`\`\`bash144# Copy example environment file145cp .env.example .env146147# Edit with your values148nano .env149\`\`\`150151Example \`.env\` content:152\`\`\`153NODE_ENV=development154PORT=3000155DATABASE_URL=postgresql://localhost:5432/mydb156API_KEY=your-api-key-here157\`\`\`158159### Step 5: Run the Project160161\`\`\`bash162# Start development server163npm run dev164165# Should see: Server running on http://localhost:3000166\`\`\`167168### Troubleshooting169170**Problem:** "node: command not found"171**Solution:** Restart your terminal or run \`source ~/.bashrc\` (Linux) or \`source ~/.zshrc\` (macOS)172173**Problem:** "Permission denied" errors174**Solution:** Don't use sudo with npm. Fix permissions:175\`\`\`bash176mkdir ~/.npm-global177npm config set prefix '~/.npm-global'178echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc179source ~/.bashrc180\`\`\`181```182183### Example 2: Python Project Setup184185```markdown186## Setting Up Python Development Environment187188### Step 1: Install Python189190**macOS:**191\