skills/docker-ops/SKILL.md
Docker ops — check status, build, update/restart containers, cleanup
npx skillsauth add Rheinmir/skills-kit docker-opsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Task: $ARGUMENTS
Step 1: SNAPSHOT — run in parallel, always first:
docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}\t{{.Image}}"
docker images --format "table {{.Repository}}:{{.Tag}}\t{{.Size}}\t{{.CreatedSince}}"
docker system df
Step 2: DETECT mode from $ARGUMENTS + snapshot results:
| Mode | Trigger |
|------|---------|
| status | no args, or "check", "ps", "list" |
| build | "build", "b" — execute immediately, no confirmation |
| update | "update", "restart", "recreate", container name given |
| logs | "log", "tail", container name given |
| cleanup | "clean", "prune", "remove stopped" |
| compose | docker-compose.yml detected or "compose" in args |
Shorthand aliases (execute immediately, no confirmation prompt):
build / b → MODE: buildb <service> → build only that service's image (e.g. b frontend)b <service> --no-cache → build without cacheMODE: status
MODE: build ← triggered by "build" or "b", runs immediately without asking
Dockerfile* in working directory to find build targetsb frontend): build only that imagedocker build -t <name>:latest <context> — use --no-cache only if explicitly requesteddocker ps --filter name=<container> to confirm[OK] <image> — <size>, rebuilt in <time>MODE: update (rebuild + recreate running container)
docker compose up -d --build <service> (or all if no service named)docker build -t <image> . && docker stop <container> && docker rm <container> && docker run -d --name <container> <same flags as old container>docker inspect <container> --format '{{json .HostConfig}}' before stoppingdocker ps --filter name=<container>MODE: logs
docker logs --tail 100 -f <container> — stop after 5s if no error patternMODE: cleanup
docker container prune -fdocker image prune -fdocker volume prune -f — only if args explicitly say "volumes"docker network prune -fMODE: compose
docker-compose.yml (or specified file) firstdocker compose psup -d, up -d --build <svc>, restart <svc>, pull && up -dHard rules:
docker rm -f a running container without confirming first--no-cache only when user asks — default uses cache for speed[OK|WARN|ERR] <container/image> — <one-line status>development
Full autonomous execution from idea to working code
development
Full autonomous execution from idea to working code
documentation
Agentic memory system for writers - track characters, relationships, scenes, and themes
testing
Structured visual QA verdict for screenshot-to-reference comparisons