← Back to Skills Marketplace
Docker Compose Generator
by
Sunshine-del-ux
· GitHub ↗
· v1.0.1
614
Downloads
0
Stars
3
Active Installs
2
Versions
Install in OpenClaw
/install docker-compose-generator
Description
生成 Docker Compose 配置,支持 MySQL, PostgreSQL, Redis, MongoDB, Elasticsearch 等常用服务。
README (SKILL.md)
Docker Compose Generator
生成 Docker Compose 配置,快速搭建开发环境。
支持的服务
- MySQL
- PostgreSQL
- Redis
- MongoDB
- Elasticsearch
- RabbitMQ
- Nginx
- Node.js
使用方法
docker-compose-generator --db mysql --cache redis
docker-compose-generator full-stack
功能
- 一键生成 docker-compose.yml
- 网络配置
- 数据持久化
- 环境变量模板
Usage Guidance
This skill is internally inconsistent: the documentation promises a flexible generator for many services, but the provided script only outputs a fixed docker-compose.yml for MySQL and Redis and ignores CLI flags. Before using it, review and edit the script — it contains a hardcoded MySQL root password ('root') and exposes host ports (3306, 6379), which are unsafe for production. If you want the advertised functionality, request the author or publisher for the real implementation or modify the script to properly parse arguments and only expose ports/credentials you control. Run it in a disposable directory or sandbox first to avoid overwriting an existing docker-compose.yml. If you need assurance about the publisher, seek a source/homepage or avoid installing until the mismatch is resolved.
Capability Analysis
Type: OpenClaw Skill
Name: docker-compose-generator
Version: 1.0.1
The `docker-compose-generator.sh` script allows writing to an arbitrary file path specified by the second argument. While the content written (a `docker-compose.yml`) is benign, this arbitrary file write vulnerability could be exploited by an attacker controlling the arguments to overwrite critical system files, leading to denial of service or system disruption. There is no evidence of intentional malicious behavior such as data exfiltration, backdoors, or prompt injection in SKILL.md.
Capability Assessment
Purpose & Capability
The skill claims to support many services (MySQL, PostgreSQL, Redis, MongoDB, Elasticsearch, RabbitMQ, Nginx, Node.js) and flexible CLI flags, but the shipped docker-compose-generator.sh only emits a static compose file containing mysql and redis regardless of arguments. This is a clear mismatch between stated purpose and actual capability.
Instruction Scope
SKILL.md shows example CLI flags and 'full-stack' usage, implying argument parsing and multi-service generation; the runtime file does not implement those behaviors. The script writes a file in the current directory and echoes a success message — it does not read extra files or env vars, but it will overwrite/create docker-compose.yml which is potentially surprising.
Install Mechanism
There is no install spec; the skill is instruction-only with a small shell script included. No downloads or package installs are performed.
Credentials
The skill requests no environment variables, credentials, or config paths. The script contains hardcoded credentials (MYSQL_ROOT_PASSWORD: root) and exposed ports, which are security-relevant but not an overreach in requested privileges.
Persistence & Privilege
Flags show normal behavior (always: false, user-invocable true). The skill does not request persistent platform privileges. Its only side effect is writing a docker-compose.yml and creating a named volume when run; it does not modify other skills or system configuration.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install docker-compose-generator - After installation, invoke the skill by name or use
/docker-compose-generator - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Updated
v1.0.0
Initial release of Docker Compose Generator.
- Generate Docker Compose configurations supporting MySQL, PostgreSQL, Redis, MongoDB, Elasticsearch, RabbitMQ, Nginx, and Node.js.
- One-click generation of docker-compose.yml files with network, persistence, and environment variable templates.
- Simple CLI usage for quick development environment setup.
Metadata
Frequently Asked Questions
What is Docker Compose Generator?
生成 Docker Compose 配置,支持 MySQL, PostgreSQL, Redis, MongoDB, Elasticsearch 等常用服务。 It is an AI Agent Skill for Claude Code / OpenClaw, with 614 downloads so far.
How do I install Docker Compose Generator?
Run "/install docker-compose-generator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Docker Compose Generator free?
Yes, Docker Compose Generator is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Docker Compose Generator support?
Docker Compose Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Docker Compose Generator?
It is built and maintained by Sunshine-del-ux (@sunshine-del-ux); the current version is v1.0.1.
More Skills