Compose Gen for Openclaw

An AI-powered utility that scans your project to automatically generate a complete, production-ready docker-compose.yml file.

lxgicstudios
v1.0.1
Jan 29, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install docker-compose-gen

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install docker-compose-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Compose Gen?

Compose Gen eliminates the manual drudgery of writing container orchestration files from scratch. By analyzing your project's configuration files, it detects necessary services like databases, caches, and queues, then wires them together with optimized networking and persistence settings.

This tool is a standout entry among Openclaw Skills, providing a seamless transition from local development to containerized environments. It ensures that even complex applications are containerized correctly the first time, including critical infrastructure components that developers often forget to configure manually.

Compose Gen Use Cases

  • Containerizing an existing application without manual YAML writing
  • Quickly bootstrapping local development environments with complex service dependencies
  • Standardizing boilerplate for new microservices across a team
  • Ensuring best practices like health checks and named volumes are included by default

How Compose Gen Works

  1. Analyzes project manifest files like package.json or requirements.txt to identify the technology stack.
  2. Detects environment variables and configuration patterns to determine external dependencies.
  3. Maps identified dependencies to appropriate Docker images such as PostgreSQL, Redis, or RabbitMQ.
  4. Generates a structured docker-compose.yml file with predefined networks, volumes, and health checks.

Compose Gen Setup

To use this tool within the Openclaw Skills ecosystem, ensure you have Node.js 18+ installed and an OpenAI API key configured.

# Set your OpenAI API Key
export OPENAI_API_KEY=sk-...

# Run the generator directly using npx
npx ai-docker-compose

Compose Gen Data Schema & Taxonomy

Compose Gen interacts with your project structure to produce standardized configuration files. The following table describes the primary data components:

Component Description
Input Analysis Scans package.json, requirements.txt, and env files for service detection.
Output File Generates a valid docker-compose.yml in the root directory.
Dev Overrides Can generate docker-compose.override.yml for local environment variations.
Metadata Incorporates health checks, depends_on logic, and named volume definitions.

Compose Gen Advanced Features

  • Manual service specification using the --services flag to override auto-detection
  • Support for development-specific overrides with the --with-dev flag
  • Intelligent health check integration to manage service startup order effectively
  • Seamless redirection support for piping output directly into existing DevOps pipelines
  • Pinning of specific image versions to prevent breaking changes in production

SKILL.md


Loading

METADATA

Github Stars: 0
forks: 0

Featured*