mohitagw15856/pm-claude-skills/local-dev-setup
Claude Code and agent skill by mohitagw15856/pm-claude-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Write a local development environment setup guide for a service or project — covering prerequisites, repository setup, environment variables, local service dependencies, database seeding, running the service, running tests, common gotchas, IDE recommendations, and first-contribution checklist. Use when asked to write a dev setup guide, create onboarding documentation for engineers, document local environment setup, or write a getting-started guide for a codebase. Produces a complete setup guide…
Install
npx vskill@latest install mohitagw15856/pm-claude-skills/local-dev-setupSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as mohitagw15856/pm-claude-skills/local-dev-setup.
Local Dev Setup Skill
Produce a complete local development environment setup guide for a service or project — walking a new engineer from zero (a clean laptop) to a working local environment with passing tests in under 30 minutes. A good setup guide reduces onboarding time, prevents the "it works on my machine" problem, and lets engineers make their first contribution with confidence. Write every step as a concrete command or action — not a description of what needs to happen.
Required Inputs
Ask for these if not already provided:
- Service name and what it does
- Tech stack — language, framework, database, cache, message queue, and any external services
- Dependencies — databases, caches, message queues, and external services (mocked or real)
- Test framework — how tests are run and what the test suite covers
- CI/CD platform — GitHub Actions, CircleCI, Jenkins, etc. (for context on what "passing CI" means locally)
Output Format
Local Development Setup: [Service Name]
Tech stack: [Language + version] | [Framework] | [Database] | [Cache] Estimated setup time: [20–30 minutes] on a clean machine Last verified: [Date] on [macOS Ventura 13.x / Ubuntu 22.04] Questions? Ask in [Slack: #[team-channel]] or ping [@tech-lead-handle]
First contribution? Complete setup first (this doc), then read [CONTRIBUTING.md] for code standards and PR process.
Prerequisites
Install these tools before starting. The versions listed are the minimum required — newer patch versions are fine, newer major versions may have compatibility issues.
Required Tools
| Tool | Required version | Install | |
|---|---|---|---|
| [Git] | 2.x+ | Pre-installed on most systems; or brew install git | |
| [Language runtime — e.g. Go] | [1.22+] | [https://go.dev/dl/ or brew install go] | |
| [Docker] | 24.x+ | [https://docs.docker.com/get-docker/] | |
| [Docker Compose] | 2.x+ | Included with Docker Desktop; or brew install docker-compose | |
| [Make] | Any | Pre-installed on macOS/Linux | |
| [Tool — e.g. Node.js] | [20.x+] | [brew install node or https://nodejs.org] | |
| [Tool — e.g. psql client] | [15+] | brew install postgresql@15 (client only) |
Optional but Recommended
| Tool | Purpose | Install | |
|---|---|---|---|
| [direnv] | Auto-load .envrc environment variables | brew install direnv + setup instructions | |
| [jq] | Pretty-print JSON in terminal | brew install jq | |
| [k9s] | Kubernetes cluster UI (if using K8s locally) | brew install k9s | |
| [mkcert] | Local HTTPS certificates | brew install mkcert |
Required Accounts and Access
Before starting, make sure you have:
- [ ] GitHub access to [org/repo] — request via [access request process / Slack: #it-help]
- [ ] [AWS / GCP / Azure] account with [dev environment] access — request via [process]
- [ ] [Internal tool — e.g. 1Password] for retrieving development secrets — request via [process]
- [ ] [VPN access] if required to reach internal services — request via [process]
1. Repository Setup
If you see a permission denied error on clone: Your SSH key is not added to GitHub. Follow GitHub's SSH key guide or use HTTPS with a personal access token instead.
2. Environment Variables
The service requires environment variables for configuration. Never commit actual secrets to the repository.
Step 1 — Copy the example file
Step 2 — Fill in the values
Open .env.local in your editor. Below is a description of every variable and where to get its value:
| Variable | Description | Where to get it | Example (not real) | |
|---|---|---|---|---|
APP_ENV | Environment name | Set to development | development | |
APP_PORT | Port the service listens on | Set to 8080 for local | 8080 | |
DATABASE_URL | PostgreSQL connection string | Use value from Docker Compose (Section 3) | postgres://app:password@localhost:5432/[service]_dev | |
REDIS_URL | Redis connection string | Use value from Docker Compose | redis://localhost:6379 | |
SECRET_KEY | Application secret key | Generate with: openssl rand -hex 32 | [random 64-char hex] | |
[EXTERNAL_SERVICE]_API_KEY | API key for [External Service] | Retrieve from [1Password vault: "Dev API Keys"] or ask [name] | — | |
[EXTERNAL_SERVICE]_BASE_URL | Base URL for [External Service] | Use sandbox URL: https://sandbox.[external-service].com | https://sandbox.stripe.com | |
LOG_LEVEL | Logging verbosity | Set to debug for local development | debug | |
[FEATURE_FLAG_SDK_KEY] | Feature flag platform SDK key | Retrieve from [LaunchDarkly/Split dev project] | — |
Using direnv (recommended): Rename .env.local to .envrc, add dotenv at the top, and run direnv allow. Variables will load automatically when you cd into the project.
3. Local Service Dependencies
All infrastructure dependencies run in Docker Compose. You do not need to install PostgreSQL, Redis, or Kafka locally.
What Docker Compose Starts
| Service | Port | Purpose | Health check | |
|---|---|---|---|---|
| PostgreSQL [version] | 5432 | Primary database | pg_isready -U app | |
| Redis [version] | 6379 | Cache and session store | redis-cli ping | |
| [Kafka + Zookeeper] | 9092 / 2181 | Message queue | kafka-topics.sh --list | |
| [Mock server — e.g. WireMock] | 8089 | Mocks for external APIs in tests | curl localhost:8089/__admin | |
| [LocalStack] | 4566 | AWS service emulation (S3, SQS, etc.) | aws --endpoint-url=http://localhost:4566 s3 ls |
If a container exits immediately: See Troubleshooting section — common causes are port conflicts and Docker memory limits.
Stopping Dependencies
4. Install Dependencies and Build
5. Database Setup and Seeding
What the seed creates:
- [N] test user accounts (credentials in [scripts/seed/README.md or .env.example])
- [N] sample [resources] for development and testing
- Admin account:
[admin@example.com]/ password: see.env.examplefor dev password variable
To reset to a clean state:
6. Running the Service
Verify It's Working
Hot Reload (for Development)
7. Running Tests
Expected test results:
- Unit tests: [N] tests, all pass, [<30] seconds
- Integration tests: [N] tests, all pass, [<2] minutes
- Coverage: [≥80]% (enforced in CI — tests fail below this threshold)
Before pushing a PR, always run:
8. IDE Setup
VS Code (Recommended)
Install the recommended extensions (VS Code will prompt you automatically):
Workspace settings are in .vscode/settings.json — format on save is enabled, linter is configured automatically.
[Language]-specific setup:
JetBrains (IntelliJ / GoLand / PyCharm / WebStorm)
- Open the project root as the project directory
- [Language SDK]: set to [version] — File → Project Structure → SDKs
- Run configurations are checked into
.idea/runConfigurations/— they appear automatically - Enable "Run formatters on save" in Settings → Tools → Actions on Save
9. Common Gotchas and Troubleshooting
Docker container exits immediately on startup
Symptom: docker compose ps shows a container as Exited (1) seconds after starting.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/local-dev-setup/SKILL.md
Popularity
- Repository stars
- 1,178
- Repository forks
- 211
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 Jul 2026, 4 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mohitagw15856/pm-claude-skills/local-dev-setup)