painhardcore/developer-standards/compose-standard

Claude Code and agent skill by painhardcore/developer-standards

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when the user asks to write, edit, or review a local Docker Compose file (compose.yaml / docker-compose.yml) or a local service stack.

Install

npx vskill@latest install painhardcore/developer-standards/compose-standard

SKILL.md

The same SKILL.md was published earlier as painhardcore/developer-standards/compose-standard.

compose-standard

Lean local Compose stacks. Not a platform generator.

Scope

Not here: Make wrapper names such as up / down / logs (makefile-standard), image build internals (dockerfile-standard), GitHub Actions (ci-standard), Go layout and golangci (go-project-standard). K8s, Swarm, reverse proxies as a product, and runtime secret distribution are out of scope entirely.

Workflow

1. Inspect needs, not possibilities

Inventory: app entrypoints, existing Compose, Dockerfiles, .env* and README, the DB, cache, or queue the project already uses, Make compose targets, ports. Ignore sidecars nothing points to.

2. Apply standard

Read `references/rules.yaml`, the source of truth for rule IDs. Full rules: `references/compose-standard.md`.

Greenfield: adapt a template from `assets/` and replace every Adapt… marker. Never ship an unfinished placeholder.

Migrate: `references/migration-guide.md`, incrementally, dropping unused services, networks, and volumes.

3. YAGNI

Never unconditional: custom networks; multiple overlay files; Redis, Nginx, or adminer by reflex; profiles; deploy: keys; a Swarm or K8s translation; digest pins on every local dependency image.

4. Validate
bash
python3 scripts/validate_compose.py /path/to/compose.yaml
# structural check when Docker is available:
docker compose -f /path/to/compose.yaml config --quiet

Errors = fix. Warnings = human review. A static check is not proof the stack runs.

Validator logic is hardcoded today; the checks: blocks in rules.yaml are illustrative, not executed.

5. Report
  • Services included and the evidence for each
  • Filename chosen, compose.yaml or a legacy name kept
  • Healthcheck and depends_on decisions
  • Env and secrets approach, including any .env.example you added
  • Bind mount against named volume choices
  • Validation result, what you skipped, exceptions taken

Hard rules

  • Prefer compose.yaml for greenfield. Keep a legacy name only when callers depend on it.
  • MUST NOT use the obsolete top-level version:.
  • MUST NOT put a secret, password, or token literal in the file. Use ${VAR} or env_file, and never a ${VAR:-secret} default.
  • Third-party image: uses a controlled tag, never floating latest.
  • The project app uses build:. Image internals belong to dockerfile-standard.
  • Where startup order matters: healthcheck plus depends_on: condition: service_healthy, or document why not.
  • Networks, volumes, and profiles only when evidenced.
  • Apps must not depend on this repo at runtime.

Exceptions

yaml
# compose-standard: except <rule-id> — <reason>

Every ignored MUST needs an exception line with a reason. An ignored SHOULD needs a brief rationale when it is not obvious.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/painhardcore/developer-standards/compose-standard/badge)](https://verified-skill.com/skills/painhardcore/developer-standards/compose-standard)

Something wrong with this skill or its page? Tell us.