build-and-scan-container-image SKILL.md skillA

build-and-scan-container-image from byronscottjones/agents is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add byronscottjones/agents/build-and-scan-container-image@git:20260909.094cff3

Pins git:20260909.094cff3 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 19 of 19 checks passed
Kind
SKILL.md skill
Repository
byronscottjones/agents
Path
skills/build-and-scan-container-image/SKILL.md
Versions recorded
1
Latest version
git:20260909.094cff3, committed Sep 9, 2026
Size
1,613 bytes
Repository stars
7
License
MIT

Use when building, validating, scanning, or generating an SBOM for a container image. Checks Dockerfile safety, base images, secrets, non-root execution, vulnerabilities, reproducibility, and immutable tagging.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Build and Scan Container Image

Implement `containers.md` as a build-and-release gate.

## Parameters

- `dockerfilePath`: default `Dockerfile`.
- `contextPath`: default directory containing the Dockerfile.
- `image`: optional image tag.
- `registry`: optional push target.
- `scan`: default `true`.
- `sbom`: default `true`.
- `maxSeverity`: default `high`.
- `push`: default `false`.
- `format`: `summary`, `json`, or `sarif`; default `summary`.

## Workflow

1. Parse the Dockerfile and inspect `.dockerignore` and build context.
2. Check base-image support, multi-stage builds, secret leakage, user identity,
   ports, health checks, and reproducible dependency inputs.
3. Build without pushing unless explicitly requested.
4. Scan the resulting image with the configured scanner and generate an SBOM.
5. Verify runtime user, exposed capabilities, and immutable digest.
6. Push only after explicit confirmation and a passing policy gate.

## Safety

- Never place secrets in Dockerfiles, layers, arguments, or labels.
- Never push `latest` as the only release identifier.
- Default to no registry mutation.
- Report scanner limitations and unavailable checks.

## Output
…

Read the whole file at its exact version.

How to install

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_n6j7cdcry4orudly/41a03fa0965e5c274e731acd9ebbcb869cc563e32013e5cec9f1db98a2f28f9b.json

Then /plugin install build-and-scan-container-image@markdownregistry-n6j7cdcry4orudly in Claude Code. It installs git:20260909.094cff3, the one graded A here, pinned to the commit it was graded at, and leaves it there.

The exact contents, by fingerprint
mdr add byronscottjones/agents/build-and-scan-container-image@sha256:41a03fa0965e5c27

The line at the top of this page pins the label git:20260909.094cff3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_n6j7cdcry4orudly.svg)](https://markdownregistry.com/a/art_n6j7cdcry4orudly)

2 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in byronscottjones/agents/build-and-scan-container-image since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of build-and-scan-container-image from somewhere else? Ask it: where did my build-and-scan-container-image come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 1 version of this file, committed on Sep 9, 2026.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20260909.094cff3 latest2026-09-09 094cff3 1,613 BA view
Keep it current by itself, install once

Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

Install on GitHub

It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.

Keep it current by itself

Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml

It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  19 of 19 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (1613 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No encoded command decoded and run in a shell
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No decoded text run in a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

byronscottjones/agents · 7 stars · license MIT · pushed 2026-11-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_n6j7cdcry4orudly
GET https://markdownregistry.com/api/v1/resolve?ref=byronscottjones/agents/build-and-scan-container-image
GET https://markdownregistry.com/api/v1/blob/41a03fa0965e5c274e731acd9ebbcb869cc563e32013e5cec9f1db98a2f28f9b
GET https://markdownregistry.com/api/v1/list?kind=skill

Every file of this kind listed here, most starred first, in pages: send each page's next back as cursor. JSON, no key.

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from byronscottjones/agents

AGENTS.md AGENTS.md file
byronscottjones/agents · AGENTS.md · Always active; routes to the topic files required by the current task.
git:20261110.e13028c · audit A · 7 stars
address-pr-comments SKILL.md skill
byronscottjones/agents · skills/address-pr-comments/SKILL.md · Use when implementing, responding to, or resolving GitHub pull request review feedback. Retrieves comments with…
git:20260909.c0b9495 · audit A · 7 stars
execute-database-migration SKILL.md skill
byronscottjones/agents · skills/execute-database-migration/SKILL.md · Use when planning, validating, testing, executing, or rolling back a database schema migration. Defaults to read-only…
git:20260909.094cff3 · audit A · 7 stars
generate-adr SKILL.md skill
byronscottjones/agents · skills/generate-adr/SKILL.md · Use when recording a significant architecture or engineering decision. Generates a concise ADR from context…
git:20260909.094cff3 · audit A · 7 stars
generate-service-documentation SKILL.md skill
byronscottjones/agents · skills/generate-service-documentation/SKILL.md · Use when creating or refreshing a service record, ownership document, runbook index, or operational documentation from…
git:20260909.094cff3 · audit A · 7 stars
get-pr-comments SKILL.md skill
byronscottjones/agents · skills/get-pr-comments/SKILL.md · Use when an agent needs to retrieve GitHub pull request review comments, review threads, or general review feedback…
git:20260909.368f499 · audit A · 7 stars
incident-triage SKILL.md skill
byronscottjones/agents · skills/incident-triage/SKILL.md · Use when triaging a production incident, outage, security event, or service degradation. Collects bounded evidence and…
git:20260909.c0b9495 · audit A · 7 stars
install-dev-tools SKILL.md skill
byronscottjones/agents · skills/install-dev-tools/SKILL.md · Use when setting up a new machine or checking that the coding tools required by the agent guidance (Rust, Go, .NET…
git:20261023.ba5c91b · audit A · 7 stars
prepare-release SKILL.md skill
byronscottjones/agents · skills/prepare-release/SKILL.md · Use when preparing a release candidate, release notes, artifact promotion, deployment readiness check, migration notes…
git:20260909.c0b9495 · audit A · 7 stars
remediate-dependency-vulnerabilities SKILL.md skill
byronscottjones/agents · skills/remediate-dependency-vulnerabilities/SKILL.md · Use when scanning dependencies for CVEs, auditing software supply chains, or upgrading vulnerable packages. Detects…
git:20260909.094cff3 · audit A · 7 stars
review-configuration SKILL.md skill
byronscottjones/agents · skills/review-configuration/SKILL.md · Use when auditing application configuration for secret exposure, precedence conflicts, missing validation, undocumented…
git:20260909.094cff3 · audit A · 7 stars
twg-agentic-search SKILL.md skill
byronscottjones/agents · skills/twg-agentic-search/SKILL.md · Use with root `twg` for deep iterative enterprise/company knowledge search and internal research with Rovo Search…
git:20260930.a49ba16 · audit A · 7 stars

Every file in byronscottjones/agents

Browse by kind, by grade A, or by owner.