con un clic
local-dev-setup
Setup local development environment from scratch for this project
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Setup local development environment from scratch for this project
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Debug code using detailed profiling and critical path timing before making suggestions
Workflow for investigating and fixing failing tests in this project
Making Python or TypeScript packages shareable (pip/npm)
Setup pytest with coverage reporting and watch mode for this Python project
Commands to execute tests in this project with various options and configurations
Format code according to project standards and fix linting issues
| name | local-dev-setup |
| description | Setup local development environment from scratch for this project |
| auto-activates | ["dev setup","local environment","install dependencies","setup development","getting started"] |
This skill activates when you need to:
git clone <repository-url>
cd <project-directory>
Look for indicators:
package.json → Node.js/JavaScriptrequirements.txt or pyproject.toml → Pythongo.mod → GoCargo.toml → RustGemfile → Rubypom.xml or build.gradle → JavaCheck Python version:
python --version
# or
python3 --version
Option A: pip + virtualenv
# Create virtual environment
python -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# If dev dependencies exist:
pip install -r requirements-dev.txt
Option B: Poetry
# Install Poetry if needed
curl -sSL https://install.python-poetry.org | python3 -
# Install dependencies
poetry install
# Activate shell
poetry shell
Option C: Pipenv
# Install Pipenv if needed
pip install pipenv
# Install dependencies
pipenv install --dev
# Activate shell
pipenv shell
Option D: conda
# Create environment
conda create -n projectname python=3.10
# Activate environment
conda activate projectname
# Install dependencies
conda install --file requirements.txt
# or
pip install -r requirements.txt
Check Node version:
node --version
npm --version
Install Node.js if needed:
nvm install nodeInstall dependencies:
Option A: npm
npm install
Option B: yarn
# Install Yarn if needed
npm install -g yarn
yarn install
Option C: pnpm
# Install pnpm if needed
npm install -g pnpm
pnpm install
Check Go version:
go version
Install dependencies:
# Download dependencies
go mod download
# Verify dependencies
go mod verify
# Tidy up (remove unused, add missing)
go mod tidy
Check Rust version:
rustc --version
cargo --version
Install Rust if needed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install dependencies:
cargo build
Check Ruby version:
ruby --version
Install dependencies:
# Install bundler if needed
gem install bundler
# Install gems
bundle install
Check Java version:
java -version
mvn --version
Install dependencies:
mvn clean install
Install dependencies:
./gradlew build
Check for environment variable requirements:
.env.example, .env.template, or .env.sampleCreate .env file:
# Copy example if it exists
cp .env.example .env
# Edit with your values
nano .env # or use your editor
Common environment variables to set:
# Database
DATABASE_URL=postgresql://localhost:5432/dbname
DB_HOST=localhost
DB_PORT=5432
DB_NAME=mydb
DB_USER=user
DB_PASSWORD=password
# API Keys (get from service providers)
API_KEY=your_api_key_here
SECRET_KEY=your_secret_key_here
# Environment
ENVIRONMENT=development
DEBUG=true
LOG_LEVEL=debug
# Ports
PORT=3000
API_PORT=8000
Check for database setup scripts:
# Look for:
- db/schema.sql
- migrations/
- init.sql
- seeds/
Common database setup:
Python (Django):
python manage.py migrate
python manage.py createsuperuser
python manage.py loaddata initial_data
Python (Flask/SQLAlchemy):
flask db upgrade
flask seed # if seed command exists
Node.js (Prisma):
npx prisma migrate dev
npx prisma db seed
Node.js (Sequelize):
npx sequelize-cli db:migrate
npx sequelize-cli db:seed:all
Ruby on Rails:
rails db:create
rails db:migrate
rails db:seed
JavaScript/TypeScript:
npm run build
Go:
go build
Rust:
cargo build --release
Java (Maven):
mvn package
Check {{dev_command}} or look for:
package.json scriptsCommon dev commands:
Python (Django):
python manage.py runserver
Python (Flask):
flask run
# or
python app.py
Python (FastAPI):
uvicorn main:app --reload
Node.js:
npm run dev
# or
npm start
Go:
go run main.go
# or
air # if using air for hot reload
Rust:
cargo run
# or
cargo watch -x run # if using cargo-watch
Ruby on Rails:
rails server
Run tests:
{{test_command}}
# or common commands:
pytest
npm test
go test ./...
cargo test
Access the application:
http://localhost:PORTCheck logs:
Solutions:
npm cache clean --forcepip cache purgego clean -modcachenpm install -g npm@latest--legacy-peer-deps (npm) or --forceSolutions:
docker ps or systemctl status postgresqlSolutions:
export $(cat .env | xargs)Solutions:
lsof -i :3000kill -9 <PID>Solutions:
# 1. Clone and navigate
git clone <url> && cd <project>
# 2. Install dependencies
[npm install | pip install -r requirements.txt | go mod download]
# 3. Setup environment
cp .env.example .env && nano .env
# 4. Initialize database
[migration commands]
# 5. Run dev server
[npm run dev | flask run | go run main.go]
# 6. Run tests
[npm test | pytest | go test ./...]