agentleFS
shinzoxDshinzoxD/knackbox/skills/coding/container-review/SKILL.md

container-review

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Review Dockerfiles and container configs for size, security, and

  • Reads credentials

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No secrets in layers (ENV passwords, copied .env).

    line 24
  2. Distinctive:

    Prefer distroless/slim only when debugging trade-offs are accepted.

    line 46
  3. Distinctive:

    Never suggest baking prod secrets into images.

    line 48
  4. Distinctive:

    Call out root containers in K8s as important when relevant.

    line 50
  5. Distinctive:

    Do not invent base image CVEs.

    line 51
  6. Distinctive:

    GPU / exotic bases: document host deps.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Container Review

Images should be minimal, reproducible, and runnable as non-root with clear health signals.

Checklist

  • Base image: pinned digest/tag policy; avoid latest in prod.
  • Multi-stage builds; no build tooling in final image when possible.
  • Non-root user; read-only root FS when feasible.
  • No secrets in layers (ENV passwords, copied .env).
  • Minimal attack surface: no unused shells/packages if practical.
  • Healthcheck / graceful shutdown notes for orchestrators.
  • Compose: resource limits, networks, bind-mount safety.

Output format

## Container review

### Findings
1. [blocking|important|nit] …

### Recommended Dockerfile sketch
…

### Build/run verify
…

Rules

  1. Prefer distroless/slim only when debugging trade-offs are accepted.
  2. Pin versions; explain rebuild policy.
  3. Never suggest baking prod secrets into images.
  4. Order layers for cache efficiency after correctness/security.
  5. Call out root containers in K8s as important when relevant.
  6. Do not invent base image CVEs; speak in classes of risk if versions unknown.

Edge cases

  • GPU / exotic bases: document host deps.
  • Windows containers: separate guidance; do not assume Linux paths.
  • Supply chain: SBOM/signing as optional hardening.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.