add-hub-template

Create sandbox hub templates with Dockerfile, template.json, and docker-compose.yaml.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new, pre-configured micro VM environments (sandbox hub templates) to the system, enabling support for diverse development needs.

Core Features & Use Cases

  • Template Creation: Guides users through creating a new template directory structure.
  • Dockerfile Definition: Provides instructions and examples for writing a Dockerfile to build the template image.
  • Metadata Configuration: Details how to create a template.json file for template configuration.
  • Docker Compose Integration: Explains how to add the new template to docker-compose.yaml for local testing.
  • Testing & Validation: Outlines steps for building, testing locally, and running integration tests.
  • Use Case: A developer wants to add a new sandbox environment for a Go-based application. They would use this skill to create the necessary directory structure, Dockerfile, and configuration files, ensuring it can be built, tested, and deployed.

Quick Start

Follow the steps outlined in this skill to add a new hub template for a Go application.

Frequently Asked Questions about add-hub-template

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

FAQPage Schema
How do I add a new sandbox hub template for a custom development environment?

To add a new sandbox hub template, you need to create a specific directory structure, author a Dockerfile, configure a template.json file, and integrate the template into docker-compose.yaml for local testing and validation.

What is the correct directory structure and file configuration needed for a sandbox template?

A sandbox template requires a dedicated directory containing a Dockerfile for the image build, a template.json file for metadata configuration, and an entry in the docker-compose.yaml file to enable local testing.

How do I configure a Dockerfile for a sandbox hub template?

When configuring a Dockerfile for a sandbox hub template, you must follow Dockerfile best practices, ensure the sandbox-api binary is included, and properly expose the required ports for the development environment.

How do I test a new docker-compose template locally before deployment?

You test a new docker-compose template locally by adding the template configuration to docker-compose.yaml, then following the outlined steps to build the image, run local tests, and execute integration tests for validation.

Can I use this template creation process for any programming language or toolchain?

Yes, this process supports expanding development environment offerings for various languages and toolchains by creating the necessary directory structure and configuration files tailored to your specific application needs.

What are the limitations or best practices when building a sandbox micro VM environment?

When building a sandbox micro VM environment, you must adhere to specific file structures and Dockerfile best practices, particularly ensuring the sandbox-api binary inclusion and correct port exposure to avoid integration failures.