Docker Compose Generator

Docker Compose Generator is a skill for Claude Code, Codex from Notysoty/openagentskills. It costs 17 tokens per session (1,350 once invoked), scanned A, original, MIT.

A tool that creates a Docker Compose configuration for running an application and its services in containers. Docker containers package software with what it needs to run, while Compose defines how several containers work together.

In plain words
What is it for?
Use it to set up containerized applications, connect services such as a web app, database, or cache, or convert an existing stack to Compose.
Why use it?
It reduces the chance of overlooking operational details such as health checks, persistent storage, networking, restarts, environment settings, and resource limits.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/notysoty/openagentskills/docker-compose-generator
Any agent
npx skills add Notysoty/openagentskills --skill docker-compose-generator
Clone the repo
git clone --depth 1 https://github.com/Notysoty/openagentskills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Docker Compose Generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/notysoty/openagentskills/docker-compose-generator.svg)](https://agentmods.dev/skills/notysoty/openagentskills/docker-compose-generator)
Your own site
<a href="https://agentmods.dev/skills/notysoty/openagentskills/docker-compose-generator"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/docker-compose-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,350 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.01350
Opus 5 $0.00009 $0.00675
Sonnet 5 $0.00003 $0.00270
Haiku 4.5 $0.00002 $0.00135

Measured 5d ago against content hash 0d3c2aeb948b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Docker Compose Generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/docker-compose-generator/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Docker Compose Generator

What this skill does

This skill directs the agent to gather information about your application stack and produce a production-ready docker-compose.yml file. It includes health checks, named volumes, custom networks, environment variable placeholders, restart policies, and sensible resource limits — all things that are easy to miss when writing a Compose file from scratch.

Use this when bootstrapping a new project, when converting an existing app to run in containers, or when you want a solid starting point to customize from.

How to use

Claude Code / Cline

Copy this file to .agents/skills/docker-compose-generator/SKILL.md in your project root.

Then ask:

  • "Use the Docker Compose Generator skill to create a docker-compose.yml for my Node.js app with PostgreSQL and Redis."
  • "I have a Python FastAPI backend, a React frontend, and a Postgres database. Use the Docker Compose Generator skill."

The agent will ask clarifying questions before generating the file if your description is incomplete.

Cursor / Codex

Paste the instructions from the section below into your session along with a description of your stack.

The Prompt / Instructions for the Agent

When asked to generate a docker-compose.yml, follow these steps:

  1. Gather requirements. If not already provided, ask for:

    • The application services (e.g., web server, worker, frontend build)
    • The data stores (PostgreSQL, MySQL, MongoDB, Redis, etc.) and their versions
    • The runtime environment (Node.js, Python, Go, etc.) and version
    • Whether this is for development or production (they differ significantly)
    • Any custom ports, domains, or volume paths
  2. Apply these rules to every service:

    • Always set a restart policy (unless-stopped for production, on-failure for dev)
    • Add a healthcheck for every database or cache service
    • Use named volumes (not bind mounts) for persistent data in production
    • Use a custom named network — do not rely on the default bridge network
    • Put secrets and credentials in environment variables with ${VAR_NAME} placeholders, never hardcoded values
    • Set depends_on with condition: service_healthy for services that require a healthy DB before starting

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 165 lines · 17 tokens per session scan A 0d3c2aeb948b

Subscribe to this mod's changes

Docker Compose Generator is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 21d ago), licensed MIT. It adds 17 tokens to every session and 1,350 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories