FormingSkillclaude-codepublished fresh until

Stop your agent running docker system prune on a whim, and get saner Compose files, with Docker's official skills

Summary Docker’s Apache-2.0 skills guide destructive-command confirmations and Compose configuration. The guardrail permits narrowly scoped container cleanup; Compose owns its volume-deletion rules. Install with npx skills add docker/skills --skill docker-compose-patterns --yes

Not for destructive commands outside Docker; see agent-wiped-my-home-folder-or-drive-where-should-it-run-instead

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The options

Same job, different trade-offs. Pick one in Try it.

Option
ASkill · v0.3.1+wwfix.2Docker Compose patterns skill (Docker)
BSkill · v0.3.1Docker destructive-command guardrails skill (Docker)
How you use itYou ask for itYou ask for it
What it can dowrites files · network · runs shellwrites files
What's inside
ASkill · v0.3.1+wwfix.2Docker Compose patterns skill (Docker)
How you use it
You ask for it
What it can do
writes files · network · runs shell
What's inside
BSkill · v0.3.1Docker destructive-command guardrails skill (Docker)
How you use it
You ask for it
What it can do
writes files
What's inside

What this thread does

Docker’s skills distinguish scoped container cleanup from destructive operations requiring confirmation.

Do first: Identify the exact container or volume and whether Compose owns it before asking the agent to clean up.

What it is

Dan Kornas highlighted Docker's own skill collection, docker/skills, on 2 October 2026. It holds 11 SKILL.md folders across Dockerfiles, Compose, Docker Sandboxes, Docker Agent and one cross-product guardrail. Two are packaged here, locked to release v0.3.1:

  • docker-destructive-guardrails. Before any Docker command that deletes or resets state (docker system prune, image prune -a, rm -f, rmi, network prune, builder prune, standalone volume rm and more) the agent must state what will be lost and get your confirmation. A narrow exception lets it remove a stopped container, or one it started itself for a test this session, when you asked for clean-up. For docker stop, the current skill permits stopping the agent’s own test/debug container from this session with a report afterwards; other containers require confirmation about interruption and unsaved in-memory state. Current guardrail. A reference file lists exact flags and a scoped, safer alternative for each command.
  • docker-compose-patterns. Patterns for multi-container compose.yaml: service dependencies and health checks, volumes and networks, dev overrides, a bad-vs-good example file, and it owns the Compose-specific destructive cases (docker compose down -v, rm -v).

Other skills in the repo

docker-project-foundations (Dockerize a project), docker-build-strategies (multi-stage builds, caching, non-root, image size) and the Sandboxes and Docker Agent skills. docker-build-strategies is not packaged here: its SKILL.md lists ~/.aws/credentials as something to keep out of images, which is good advice but matches our scanner's credential-read rule. Install it the same way if you want it.

Other routes: npx skills add docker/skills --skill docker-compose-patterns --yes (project scope), or the README's per-agent instructions.

Caveats

  • A skill is guidance, not enforcement. If you need a hard stop, also deny docker system prune and similar commands in your agent's permission rules.
  • Early project (v0.3.x); some skills are marked experimental. The Compose skill's validation script needs Docker installed.
  • Related: secure-agent-setup-four-boundaries-reference-architecture, fewer-approval-prompts-without-full-access.

Started from a post by @DanKornas, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Stop your agent running docker system prune on a whim, and get saner Compose files, with Docker's official skills
Summary: Docker’s Apache-2.0 skills guide destructive-command confirmations and Compose configuration. The guardrail permits narrowly scoped container cleanup; Compose owns its volume-deletion rules. Install with `npx skills add docker/skills --skill docker-compose-patterns --yes`

## Options
- A · Docker Compose patterns skill (Docker) · early, no verdict yet · writes files · network · runs shell
- B · Docker destructive-command guardrails skill (Docker) · early, no verdict yet · writes files
Copy for agent
get the whatworks thread docker-official-skills-destructive-guardrails-compose and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread docker-official-skills-destructive-guardrails-compose

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Docker Compose patterns skill (Docker)

Docker's official skill for writing and reviewing multi-container compose.yaml files: service dependencies and health checks, volumes and networks, dev overrides, and safe handling of Compose-specific destructive commands such as docker compose down -v.

Format
Skill
Source
github:docker/skills#skills/docker-compose-patterns
Pinned
v0.3.1+wwfix.2 · 8afc2c6ef4e0
Content hash
8afc2c6ef4e0ec2e
Audit
scan passed
Can do
writes files · network · runs shell
Works with
claude-code
Check
Installed skill has its entry file; Skill entry file names docker-compose-patterns; Bundled service dependency reference is present; Bundled Compose web app example is present
Author
@docker
Kudos
0
Are you @docker? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package docker-compose-patterns-skill before installing

B · Docker destructive-command guardrails skill (Docker)

Docker's official cross-product skill: before any Docker command that deletes or irreversibly resets state (prune, rm -f, rmi, network/volume removal, builder prune), the agent states what will be lost and asks for confirmation, with a narrow exception for its own test containers.

Format
Skill
Source
github:docker/skills#skills/docker-destructive-guardrails
Pinned
v0.3.1 · 8afc2c6ef4e0
Content hash
8afc2c6ef4e0ec2e
Audit
scan passed
Can do
writes files
Works with
claude-code
Check
Skill installed in the project; SKILL.md front matter names the skill; Command reference with safer alternatives is present; The core confirm-before-deleting rule is in the file
Author
@docker
Kudos
0
Are you @docker? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package docker-destructive-guardrails-skill before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package docker-compose-patterns-skill

B · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package docker-destructive-guardrails-skill
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp