ericrisco/rsc-harness / skills/docker
docker
VerifiedUse when authoring or auditing a Dockerfile, shrinking a bloated image, hardening a container that runs as root, picking a base image, or wiring a Compose dev loop with hot reload. NOT CI builds or deploy-to-host (that is `deployment`), NOT k8s autoscaling (that is `scaling`), NOT app-level injection or secrets-in-code (that is `security-audit`).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.8 KB |
| evals/README.md | markdown | 788 B |
| evals/cases.yaml | config | 2.4 KB |
| references/base-images-and-stages.md | markdown | 3.9 KB |
| references/compose-recipes.md | markdown | 3.3 KB |
| scripts/verify.shexecutable | script | 5.2 KB |
evals/cases.yaml
View on GitHubskill: docker
should_trigger:
- prompt: "Dockerize this FastAPI service so it's ready for prod."
why: Core authoring of a Dockerfile for a Python web app — the skill's primary job.
- prompt: "Our node image is 1.2GB, shrink it."
why: Size symptom with no mention of "Dockerfile" — non-obvious entry that maps to multi-stage + base choice.
- prompt: "Set up docker compose with live reload for local dev."
why: Compose dev loop via develop.watch, the skill's Compose half.
- prompt: "This Dockerfile runs as root and trivy flags it — harden it."
why: Image/container hardening (non-root, scan) which is in-scope, not app-level security.
- prompt: "El build de docker tarda siglos y la imagen pesa demasiado."
why: Catalan/Spanish, non-obvious — slow build + heavy image map to cache mounts, layer order, multi-stage.
should_not_trigger:
- prompt: "Write the GitHub Actions workflow to build and push to ghcr."
route_to: deployment
why: CI pipeline + registry push is downstream of the image; deployment owns it.
- prompt: "Add k8s HPA autoscaling for this service."
route_to: scaling
why: Orchestration/autoscaling above a single image is scaling's domain.
- prompt: "Fix the SQL injection in this endpoint."
route_to: security-audit
why: App-level vulnerability, not image/container hardening.
- prompt: "Install and configure Coolify on my Hetzner box."
route_to: coolify
why: Self-hosted PaaS host operation, not authoring the image.
capability:
- scenario: >
Given a naive single-stage Dockerfile that uses FROM node:latest, runs npm install after
COPY . ., runs as root, has no .dockerignore and no healthcheck, produce a hardened
replacement plus the supporting files.
must_include:
- Multi-stage build (separate build and runtime FROM stages)
- BuildKit cache mount on the dependency install (e.g. --mount=type=cache,target=/root/.npm)
- Non-root USER in the final image
- Pinned, non-latest base image (tag or digest, not :latest)
- A .dockerignore that excludes .git, node_modules, .env
- EXEC-form CMD/ENTRYPOINT (JSON array, not shell form)
- A HEALTHCHECK instruction
- A compose.yaml using develop.watch for the dev loop
- No secrets in ARG/ENV (build secrets via --mount=type=secret)
- Mentions verifying with hadolint and trivy
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |