- How you use it
- You ask for it
- What it can do
- writes files · network · runs shell
- What's inside
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 it | You ask for it | You ask for it |
| What it can do | writes files · network · runs shell | writes files |
| What's inside |
- 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, standalonevolume rmand 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. Fordocker 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 pruneand 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
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.