setup-dev-environment

Initialize and reset local development environments with Docker, Go, and database migrations.

1|1|Updated Dec 16, 2023
One-click install
npx skills add https://github.com/sjtw/tarkov-build-optimiser --skill setup-dev-environment
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: setup-dev-environment
Source: https://github.com/sjtw/tarkov-build-optimiser/tree/main/.cursor/skills/setup-dev-environment
Command: npx skills add https://github.com/sjtw/tarkov-build-optimiser --skill setup-dev-environment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sets up or resets the local development environment for the project, including PostgreSQL, migrations, and essential tooling, ensuring a consistent starting point for all developers.

Core Features & Use Cases

  • Full setup with Go tooling, Docker services, and database migrations
  • Go-only setup when external schemas or Node.js are not required
  • Verification and troubleshooting guidance to validate a healthy environment

Quick Start

Run the setup task to initialize and configure the local development environment, including database migrations and dependencies.

Frequently Asked Questions about setup-dev-environment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a local development environment with Go, Docker, and PostgreSQL?▼

To set up a local development environment with Go, Docker, and PostgreSQL, you need running Docker Compose, the Go toolchain, and a configured .env file. The setup task automates initializing database migrations and bringing services online.

What is the best way to automate database migrations and dependency setup after cloning a repository?▼

The best way to automate database migrations and dependency setup is running an automated setup task. It leverages repository scripts to apply migrations and configure tooling, ensuring a consistent starting point without manual configuration.

Do I need Docker Compose to run Go-based local development workflows?▼

Docker Compose is required for full setups involving PostgreSQL and external services. However, you can perform a Go-only setup that skips Docker services when external schemas or Node.js dependencies are not required.

Can I reset my local development environment after switching branches?▼

Yes, you can reset your local development environment after switching branches. The setup task handles both initialization and recovery, reapplying database migrations and tooling configurations to restore a healthy state.

How do I verify that my Docker and Go development environment is healthy?▼

To verify your Docker and Go development environment is healthy, the setup task includes built-in verification and troubleshooting guidance. This validates that services are online and database migrations have applied correctly.

Why does my local development environment setup fail when starting Docker services?▼

Your local development environment setup fails when Docker services cannot start if prerequisites are missing. You must have Docker running, Docker Compose installed, the Go toolchain configured, and a valid .env file before execution.