← ClaudeAtlas

docker-doctorlisted

Use when finishing a Docker change, before committing a Dockerfile or Compose file, or when the user types `/docker-doctor`, asks to scan, triage, or clean up Docker diagnostics. Covers security, performance, best practices, Compose, and image size. Includes a score-regression check and a full local-triage workflow.
PunGrumpy/docker-doctor · ★ 3 · DevOps & Infrastructure · score 74
Install: claude install-skill PunGrumpy/docker-doctor
# Docker Doctor Scans Dockerfile and Docker Compose files for security, performance, best-practices, Compose, and image-size issues. Outputs a 0–100 health score. ## After editing a Dockerfile or Compose file: Capture the score before you touch anything, make your changes, then re-scan and confirm the score did not drop before committing. ```bash npx @docker-doctor/cli@latest . --score # note the number BEFORE editing, and again AFTER ``` The CLI scans the whole project — there is no changed-only scope — so compare the two whole-project scores. If the score dropped, fix the regressions before committing. ## For general cleanup or code improvement: Run the full scan and fix by severity — `ERROR` first, then `WARN`, then `INFO`. ```bash npx @docker-doctor/cli@latest . --verbose ``` `--verbose` prints the offending file, line number, an explanation, and a `Help:` fix hint for every diagnostic. ## /docker-doctor — full local triage workflow When the user types `/docker-doctor`, says "run docker doctor", or asks for a full triage / cleanup pass (not just a regression check), run this scan → triage → fix → validate loop. It edits the working tree directly — **never commit, never open a PR.** 1. **Scan.** `npx @docker-doctor/cli@latest . --verbose` and read every diagnostic. Each one carries its rule key (e.g. `docker-doctor/no-root-user`), severity, file:line, and a `Help:` line with the canonical fix. 2. **Triage.** Order by severity: `ERROR` → `WARN` → `INFO`. Withi