dev-environment

Start a Docker Compose development environment with hot-reloading for Go code.

25|13|Updated Apr 27, 2025
One-click install
npx skills add https://github.com/blaxel-ai/sandbox --skill dev-environment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-environment
Source: https://github.com/blaxel-ai/sandbox/tree/main/.agents/skills/local-env
Command: npx skills add https://github.com/blaxel-ai/sandbox --skill dev-environment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the local development and testing of the sandbox-api by providing a ready-to-use environment with hot-reloading capabilities.

Core Features & Use Cases

  • Hot-Reloading Go Code: Automatically reloads the Go API server when code changes are detected, speeding up the development cycle.
  • Dockerized Environment: Ensures a consistent and isolated development environment using Docker Compose.
  • Prerequisite Management: Guides the user through installing necessary development tools like air, swag, and yq.
  • Use Case: When a developer needs to make changes to the sandbox-api's Go code, they can use this Skill to quickly start the development server and see their changes reflected instantly without manual restarts.

Quick Start

Start the local sandbox-api development environment with hot-reload.

Frequently Asked Questions about 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 for a Go API with hot-reloading?

This Skill initiates a Docker Compose environment for the sandbox-api, utilizing the `air` tool to automatically restart the Go server upon file modifications for rapid iteration.

What tools do I need to run a Dockerized Go sandbox-api with hot-reload?

You need Docker Compose to run the containerized sandbox-api, along with prerequisite development tools like `air` for hot-reloading, `swag` for API documentation, and `yq` for configuration parsing.

Does this development environment support automatic restarts when Go code changes?

Yes, the development environment supports automatic restarts when Go code changes by using the `air` tool within Docker Compose to detect file modifications and instantly rebuild the API server.

How do I start testing API changes locally without manual server restarts?

You can start testing API changes locally without manual server restarts by launching the provided Docker Compose script, which isolates the sandbox-api and applies hot-reloading to reflect code updates instantly.

Can I use Docker Compose to isolate and debug a Go API locally?

Yes, you can use Docker Compose to isolate and debug a Go API locally, as this Skill provides a ready-to-use Dockerized environment ensuring consistent testing and efficient debugging for the sandbox-api.