Skip to content
Back to skills

Images

ASecurity

Use this skill to write, review or shrink a container image: a Containerfile or Dockerfile, a multi-stage build, a base-image choice, layer caching, image size, tags and digests, or "how should I containerize this app". Triggers include "write a Dockerfile", "containerize", "image too big", "slow docker build", "which base image", "multi-stage", "สร้าง image". Works from references/best-practices.md and a reference Containerfile per stack; lint with hadolint and audit with the security-audit ...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentspythondockersecurity

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add th3r-dev/th3-skills --skill images --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Images?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Images
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/th3r-dev-images/badge)](https://www.skillsdirectory.com/skills/th3r-dev-images)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: containers-images
description: Use this skill to write, review or shrink a container image: a Containerfile or Dockerfile, a multi-stage build, a base-image choice, layer caching, image size, tags and digests, or "how should I containerize this app". Triggers include "write a Dockerfile", "containerize", "image too big", "slow docker build", "which base image", "multi-stage", "สร้าง image". Works from references/best-practices.md and a reference Containerfile per stack; lint with hadolint and audit with the security-audit sub-skill before calling it done.
---

# Containers: images

Read [`references/best-practices.md`](references/best-practices.md) before writing or reviewing a build file.

## Workflow

1. **Read the app**: language, how it builds, what it runs, which port, what it writes to disk.
2. **Start from the matching reference** in [`references/reference-images.md`](references/reference-images.md); change only what the app needs.
3. **Build** with `podman build -t <name>:dev .` and run it once (`podman run --rm -p <port>:<port> <name>:dev`).
4. **Check**: `hadolint Containerfile`, `uv run --no-project python ../security-audit/scripts/audit.py Containerfile`, and `dive <name>:dev` when size matters. Report the image size before and after.

## Done means

- Pinned base (tag + digest), multi-stage when there is a build step, non-root `USER`, a `.containerignore` / `.dockerignore`.
- `audit.py` exits 0 and hadolint has no errors.
- The image runs and answers on its port.

Files in this skill

  • SKILL.md1.5 KB
  • references/best-practices.md2 KB
  • references/reference-images.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.