compose
Skill0 starsChanged 8 months agoMITView on GitHub
Generate or update a docker-compose.yml file for a multi-service local development setup. Use when the user asks to create a docker-compose file, add a service to an existing compose setup, or stand up local dependencies like Postgres, Redis, MongoDB, or RabbitMQ.
- Reads credentials
8 other projects use a version of this.
Adopted by
Most recently taken up by
- jantichy/claudetheir own version, first seen Oct 2, 2026
- lulufoo/lulu-workflowtheir own version, first seen Oct 2, 2026
- Meet-Miyani/compose-skilltheir own version, first seen Oct 1, 2026
- csfh/skillstheir own version, first seen Sep 6, 2026
- cacardinal/lailatheir own version, first seen Jul 31, 2026
- xeroc/skillstheir own version, first seen Jul 17, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- Meet-Miyani/compose-skill★ 300same name
- renatoworks/strudel-claude★ 67same name
- jantichy/claude★ 38same name
- Epistates/sparX★ 3same name
- lulufoo/lulu-workflow★ 3same name
- cacardinal/laila★ 1same name
- xeroc/skills★ 1same name
- csfh/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- docker-debugSkill
- dockerfileSkill
- helm-reviewSkill
- k8s-debugSkill
- manifestSkill
- rbac-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 5 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Create or update a docker-compose.yml that runs the project and its local dependencies.
- Very specific: line 20
If $ARGUMENTS is empty, read the project to infer what the app needs (look for Prisma, Sequelize, psycopg, Redis clients, Mongoose, etc.) …
- Very specific: line 24
Check if a docker-compose.yml or compose.yaml already exists.
- Very specific: line 25
Check if a Dockerfile exists.
- Distinctive: line 26
Use Glob and Read to detect common libraries in the project's package manifests.
- Very specific: line 31
Pinned image tags: use a specific version such as postgres:16.2-alpine.
- Very specific: line 32
Healthchecks: add a healthcheck for database and cache services.
- Distinctive: line 34
Networks: use a single user-defined network so services can resolve each other by name.
- Very specific: line 35
Environment: read values from a .env file using env_file or ${VAR} substitution.
- Distinctive: line 36
Port mapping: only expose ports that need to be reachable from the host.
- Very specific: line 41
Write or update docker-compose.yml at the project root.
- Very specific: line 42
If there is no .env.example and the compose file references env vars, write a minimal .env.example with the keys and placeholder values.
- Very specific: line 109
Do not use version: "3" or any other top-level version field.
- Distinctive: line 110
Do not expose database or cache ports to the host unless the user asks for it.
- Distinctive: line 111
Do not put secrets directly in the file.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Generate or update docker-compose.yml
Create or update a docker-compose.yml that runs the project and its local dependencies.
Inputs
$ARGUMENTS describes the services the user wants. Examples:
postgres and redismy Node app plus Postgres 16 and Redis 7add a MinIO service to the existing compose file
If $ARGUMENTS is empty, read the project to infer what the app needs (look for Prisma, Sequelize, psycopg, Redis clients, Mongoose, etc.) and ask the user to confirm before generating.
Detection
- Check if a
docker-compose.ymlorcompose.yamlalready exists. If it does, plan to edit that file rather than replace it. - Check if a
Dockerfileexists. If not, mention to the user that the app service will need one. - Use Glob and Read to detect common libraries in the project's package manifests. This helps when the user says "plus its usual dependencies."
Required characteristics
- Named services: each service must have a clear name, for example
app,db,cache,queue. - Pinned image tags: use a specific version such as
postgres:16.2-alpine. Never uselatest. - Healthchecks: add a
healthcheckfor database and cache services. Make dependent services wait usingdepends_onwithcondition: service_healthy. - Volumes: declare named volumes for any stateful service so data survives container restarts.
- Networks: use a single user-defined network so services can resolve each other by name.
- Environment: read values from a
.envfile usingenv_fileor${VAR}substitution. Never hardcode secrets. - Port mapping: only expose ports that need to be reachable from the host. Internal service-to-service traffic should use the Docker network, not host ports.
- Restart policy: set
restart: unless-stoppedfor long-running services.
Output steps
- Write or update
docker-compose.ymlat the project root. - If there is no
.env.exampleand the compose file references env vars, write a minimal.env.examplewith the keys and placeholder values. - Explain in 3 to 5 bullets what services you added and any notable choices (pinned versions, healthcheck commands, named volumes).
- Show the usage commands:
docker compose up -d
docker compose logs -f app
docker compose downExample output
services:
app:
build: .
env_file: .env
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
restart: unless-stopped
networks:
- internal
db:
image: postgres:16.2-alpine
env_file: .env
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-app}"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- internal
cache:
image: redis:7.2-alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- cache_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
restart: unless-stopped
networks:
- internal
volumes:
db_data:
cache_data:
networks:
internal:
driver: bridgeDo not
- Do not use
version: "3"or any other top-levelversionfield. Modern Compose ignores it. - Do not expose database or cache ports to the host unless the user asks for it.
- Do not put secrets directly in the file.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

