Agent skill

Generating Docker Compose Files

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Execute use when you need to work with Docker Compose. An agent skill from jeremylongshore/tons-of-skills-marketplace.

MITAuto-check: notesDevOps & Cloud

Install Generating Docker Compose Files

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill generating-docker-compose-files -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace generating-docker-compose-files --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/generating-docker-compose-files .claude/skills/generating-docker-compose-files && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generating-docker-compose-files
GitHub stars
2.8k
Token cost
~1.1k tokens
SKILL.md length
449 words
Files
9 (incl. scripts, references, assets)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Execute use when you need to work with Docker Compose. An agent skill from jeremylongshore/tons-of-skills-marketplace.

  • Works in 10 steps: Scan the project for existing… → Identify all services that compose the… → Define each service with image or build… → …
  • You need to work with Docker Compose
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 3 more sections
  • Runs Shell and Python scripts from its folder; calls docker

What it does

Generating Docker Compose Files is an agent skill from jeremylongshore/tons-of-skills-marketplace. Execute use when you need to work with Docker Compose. This skill provides Docker Compose file generation with comprehensive guidance and automation. Trigger with phrases like "generate docker-compose", "create compose file", or "configure multi-container app".

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts, reference files and assets (for example `assets/README.md`, `assets/compose_template.yml` and `assets/example_app_architectures.md`). Compatibility notes: Designed for Claude Code

It sits in DevOps & Cloud, covering Containers. It works with Docker. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • You need to work with Docker Compose
  • With phrases like generate docker-compose
  • Create compose file
  • Configure multi-container app

Example prompts

  • “generate docker-compose”
  • “create compose file”
  • “configure multi-container app”
  • “/generating-docker-compose-files”

Requirements

  • Python 3
  • Node.js
  • A Bash shell
  • Docker
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Grep, Glob, Bash(docker:*), Bash(kubectl:*)

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Scan the project for existing Dockerfiles, docker-compose*.yml files, and application entry points
  2. Identify all services that compose the application stack (web server, API, database, cache, message queue, worker)
  3. Define each service with image or build context, port mappings, and environment variables
  4. Configure service dependencies using depends_on with health check conditions to ensure proper startup order
  5. Create named volumes for persistent data (database files, uploads, cache) and bind mounts for development hot-reload
  6. Define custom bridge networks to isolate service groups (frontend, backend, data tier)
  7. Add health checks for each service to enable dependency-aware startup and container orchestrator integration
  8. Set resource limits (deploy.resources.limits) for CPU and memory to prevent a single container from exhausting the host
  9. Create environment-specific override files: docker-compose.override.yml for development, docker-compose.prod.yml for production
  10. Validate the configuration with docker compose config to check for syntax errors

What it can do on your machine

Read from SKILL.md and the folder at commit 80f86df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Grep
    • Glob
    • Bash(docker:*)
    • Bash(kubectl:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Shell and Python), which the agent can run.

    Shell commands in SKILL.md call:

    • docker

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.docker.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Generating Docker Compose Files loads about 1.1k tokens when it runs, and up to ~1.1k if it reads all its reference files. Until then it costs about 73 tokens; SKILL.md has 449 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:34
    - Environment variable values or `.env` files for configuration
  • NoteMentions a .env fileSKILL.md:54
    - `.env` file template with documented variables

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit 80f86df, republished under its MIT licence (© jeremylongshore). 449 words, ~1,094 tokens.

Download SKILL.mdSave it as .claude/skills/generating-docker-compose-files/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
generating-docker-compose-files
description
Execute use when you need to work with Docker Compose. This skill provides Docker Compose file generation with comprehensive guidance and automation. Trigger with phrases like "generate docker-compose", "create compose file", or "configure multi-container app".
allowed-tools
Read, Write, Edit, Grep, Glob, Bash(docker:*), Bash(kubectl:*)
compatibility
Designed for Claude Code
version
1.28.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
tags
devops, docker, docker-compose

Generating Docker Compose Files

Overview

Generate production-ready docker-compose.yml files for multi-container applications. Define services, networks, volumes, health checks, resource limits, and environment-specific overrides for local development, testing, and single-host production deployments.

Prerequisites

  • Docker Engine 20.10+ and Docker Compose v2 (docker compose version)
  • Application Dockerfiles for each service or pre-built images available
  • Understanding of service dependencies and inter-service communication ports
  • Environment variable values or .env files for configuration
  • Sufficient disk space and memory for all containers defined in the stack

Instructions

  1. Scan the project for existing Dockerfiles, docker-compose*.yml files, and application entry points
  2. Identify all services that compose the application stack (web server, API, database, cache, message queue, worker)
  3. Define each service with image or build context, port mappings, and environment variables
  4. Configure service dependencies using depends_on with health check conditions to ensure proper startup order
  5. Create named volumes for persistent data (database files, uploads, cache) and bind mounts for development hot-reload
  6. Define custom bridge networks to isolate service groups (frontend, backend, data tier)
  7. Add health checks for each service to enable dependency-aware startup and container orchestrator integration
  8. Set resource limits (deploy.resources.limits) for CPU and memory to prevent a single container from exhausting the host
  9. Create environment-specific override files: docker-compose.override.yml for development, docker-compose.prod.yml for production
  10. Validate the configuration with docker compose config to check for syntax errors

Output

  • docker-compose.yml with service definitions, networks, and volumes
  • Environment-specific override files (docker-compose.override.yml, docker-compose.prod.yml)
  • .env file template with documented variables
  • Dockerfiles for services that require custom builds
  • Helper scripts for common operations (start.sh, stop.sh, logs.sh)
Show full SKILL.md (189 more words)Show less

Error Handling

ErrorCauseSolution
port is already allocatedAnother container or host process using the same portChange the host port mapping or stop the conflicting process
network not foundReferenced network not defined in the compose fileAdd the network under the top-level networks: key
service depends on undefined serviceTypo in depends_on or missing service definitionVerify service names match exactly between depends_on and service definitions
volume mount permission deniedHost directory owned by different user than container processUse user: directive in service or set proper ownership with an init script
OOM killedContainer exceeded memory limitIncrease deploy.resources.limits.memory or optimize application memory usage

Examples

  • "Generate a docker-compose.yml for a Node.js API + PostgreSQL + Redis stack with health checks, named volumes, and a development override with hot-reload."
  • "Create a compose file for a WordPress site with MySQL, Nginx reverse proxy, and Certbot for automatic SSL certificate renewal."
  • "Build a docker-compose stack for a microservices app with 3 APIs, RabbitMQ message broker, and a shared Postgres database with isolated networks."

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts, references, assets) in skills/.curated/generating-docker-compose-files of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • assets/README.md
  • assets/compose_template.yml
  • assets/example_app_architectures.md
  • references/README.md
  • scripts/README.md
  • scripts/deploy.sh
  • scripts/generate_env_file.py
  • scripts/validate_compose.sh

Open the folder on GitHubat commit 80f86df

Compare with similar skills

Generating Docker Compose Files next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generating Docker Compose Files compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generating Docker Compose Files this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: NotesMIT
Iron Proxy Gateway for NanoClawnanocoai/nanoclaw31k—~4.6kAutomated safety check: NotesMIT
GreptimeDB Dev Docker ImageGreptimeTeam/greptimedb6.7k—~4kAutomated safety check: NotesApache-2.0
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2606 repos~1.1kAutomated safety check: NotesCustom licence
LangBot Deployment Guidelangbot-app/LangBot18k—~1.2kAutomated safety check: NotesApache-2.0
Build Openshell Mxc WindowsNVIDIA/OpenShell16k—~4.9kAutomated safety check: PassApache-2.0

Similar skills

  • Installs or refreshes Iron Proxy and its Iron Control web console for NanoClaw, with a local Docker setup, database, credentials and a human approval bridge.

    31k GitHub stars~4.6k tokensUpdated 3 days ago
    DevOps & CloudAuto-check: notes
  • GreptimeDB Dev Docker Image

    GreptimeTeam/greptimedb

    Packages a locally built GreptimeDB debug binary into a development-only Docker image for local-cluster testing, with an optional push to a dev registry.

    6.7k GitHub stars~4k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    260 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • LangBot Deployment Guide

    langbot-app/LangBot

    Deploys and configures a LangBot instance with Docker Compose or Kubernetes, covering config.yaml, the Box sandbox runtime, the plugin runtime and the global API key.

    18k GitHub stars~1.2k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Official

    Maintain and validate OpenShell's build-only Windows MSVC lane for x64 and ARM64.

    16k GitHub stars~4.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Megatron-LM Base Image Bump

    NVIDIA/Megatron-LM

    Official

    Moves Megatron-LM CI to a newer NVIDIA PyTorch base image, updating both the GitHub and GitLab pins together and handling the CI follow-up.

    18k GitHub stars~2.8k tokensUpdated today
    DevOps & CloudAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Generating Docker Compose Files

What does Generating Docker Compose Files do?

Execute use when you need to work with Docker Compose. An agent skill from jeremylongshore/tons-of-skills-marketplace. Generating Docker Compose Files is an agent skill from jeremylongshore/tons-of-skills-marketplace. Execute use when you need to work with Docker Compose.

When should I use Generating Docker Compose Files?

Generating Docker Compose Files fits situations like: you need to work with Docker Compose; with phrases like generate docker-compose; create compose file; configure multi-container app.

How do I install Generating Docker Compose Files in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill generating-docker-compose-files -a claude-code`. Or copy the skill folder (skills/.curated/generating-docker-compose-files in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/generating-docker-compose-files in your project. Claude Code loads it when a task matches its description.

How do I install Generating Docker Compose Files in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill generating-docker-compose-files -a codex`. Or copy the skill folder (skills/.curated/generating-docker-compose-files in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/generating-docker-compose-files in your project. Codex loads it when a task matches its description.

Can I use Generating Docker Compose Files in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill generating-docker-compose-files -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generating-docker-compose-files, .gemini/skills/generating-docker-compose-files, .github/skills/generating-docker-compose-files and .opencode/skills/generating-docker-compose-files in your project.

What does Generating Docker Compose Files need to run?

Going by SKILL.md and its folder, Generating Docker Compose Files needs a shell and Python for the scripts in its folder and the command-line tools its instructions call (docker). Our summary lists: Python 3; Node.js; A Bash shell; Docker. Its frontmatter pre-approves these tools: Read, Write, Edit, Grep, Glob, Bash(docker:*), Bash(kubectl:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Generating Docker Compose Files access the network?

SKILL.md names 1 domain. As links in the text: docs.docker.com. This is read from the text; nothing was executed.

Is Generating Docker Compose Files safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Generating Docker Compose Files use?

Generating Docker Compose Files is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generating Docker Compose Files use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 17 tokens, read only when the agent opens those files.

What are the alternatives to Generating Docker Compose Files?

Skills that share tags, products or a category with Generating Docker Compose Files: Iron Proxy Gateway for NanoClaw (nanocoai/nanoclaw, 31k stars), GreptimeDB Dev Docker Image (GreptimeTeam/greptimedb, 6.7k stars), Senior DevOps Toolkit (maslennikov-ig/claude-code-orchestrator-kit, 260 stars) and LangBot Deployment Guide (langbot-app/LangBot, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generating Docker Compose Files?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,825 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 9, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.