ring:hardening-dockerfiles

ring:hardening-dockerfiles is a skill for Cursor from LerianStudio/ring. It costs 106 tokens per session (1,297 once invoked), scanned A, original, Apache-2.0.

A workflow for securing Dockerfiles and container images before publishing them to Docker Hub.

In plain words
What is it for?
Use it when creating or auditing a Dockerfile, preparing an image for Docker Hub, or improving its security health score.
Why use it?
It checks for common container risks such as running as root, vulnerable base images, unwanted licenses, and missing software supply-chain records.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app ./cmd/....

Part of the ring-dev-team plugin — 35 skills, 24 agents shipped together

Good fit Use it when creating or auditing a Dockerfile, preparing an image for Docker Hub, or improving its security health score.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring
agentmods
npx agentmods add skills/lerianstudio/ring/hardening-dockerfiles

Made for: Cursor.

Or install ring-dev-team, the plugin that ships this one along with the rest of its 35 skills, 24 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ring:hardening-dockerfiles

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/hardening-dockerfiles/github.svg)](https://agentmods.dev/skills/lerianstudio/ring/hardening-dockerfiles)
Your own site
<a href="https://agentmods.dev/skills/lerianstudio/ring/hardening-dockerfiles"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/hardening-dockerfiles/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ring:hardening-dockerfiles

Your own site · 80×15
<a href="https://agentmods.dev/skills/lerianstudio/ring/hardening-dockerfiles"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/hardening-dockerfiles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,297 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00106 $0.01297
Opus 5.5 $0.00042 $0.00519
Sonnet 5.5 $0.00021 $0.00259
Haiku 4.5 $0.00011 $0.00130

Measured 1mo ago against content hash a489c09e32c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ring:hardening-dockerfiles scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

dev-team/skills/hardening-dockerfiles/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Docker Security (Health Score Grade A)

When to use

  • Creating a new Dockerfile
  • Auditing an existing Dockerfile for security
  • Preparing images for Docker Hub publication
  • Docker Hub health score is below grade A

Skip when

  • Project has no Dockerfile and none is being created
  • Changes are application-code only with no Docker modifications
  • Using pre-built images without custom Dockerfile

Complementary: ring:implementing-tasks, ring:creating-helm-charts

General Dockerfile patterns: dev-team/docs/standards/devops.md#containers. This skill focuses on Docker Hub Health Score compliance.

Health Score Policies

# Policy Weight Compliance
1 Default non-root user Required USER directive with non-root user
2 No fixable critical/high CVEs Required Distroless or Alpine, multi-stage
3 No high-profile vulnerabilities (CISA KEV) Required Up-to-date base images
4 No AGPL v3 licenses Required Audit dependencies
5 Supply chain attestations (SBOM + provenance) Required Pipeline config
6 No outdated base images Optional Only for Docker Hub hosted images
7 No unapproved base images Optional Only for Docker Hub hosted images

Policies 6-7 are not evaluated when using non-Docker Hub base images (gcr.io/distroless, etc.).

Policy Implementation

Policy 1 — Non-Root User

# Alpine
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser

# Debian/Ubuntu
RUN groupadd -r appgroup && useradd -r -g appgroup appuser
USER appuser

# Distroless (pre-existing user)
USER nonroot:nonroot

USER root does NOT satisfy this policy.

Policies 2 & 3 — Minimal Attack Surface

# Go (statically compiled) — ~0 CVEs
FROM gcr.io/distroless/static-debian12

# Go (CGO) or general
FROM gcr.io/distroless/base-debian12

# Node.js
FROM node:22-alpine

# Multi-stage mandatory
FROM golang:1.23-alpine AS builder
# ... build ...
FROM gcr.io/distroless/static-debian12
COPY --from=builder /app/binary /app/binary

Read the full file on GitHub · 175 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 175 lines · 106 tokens per session scan A a489c09e32c9

Subscribe to this mod's changes

ring:hardening-dockerfiles is a skill published in the GitHub repository LerianStudio/ring (218 stars, last pushed 4d ago), licensed Apache-2.0. It adds 106 tokens to every session and 1,297 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

antidote

Stop AI agents from patching symptoms. Use this skill when coding, reviewing, refactoring, auditing, committing fixes, or adding guards, validation, workarounds, or 20+ lines without deleting code.

Avtr99/antidote · 47 tokens

review

Structured code review with parallel audit agents, confidence-scored triage, and optional auto-fix. Examines uncommitted changes, staged diffs, commit ranges, or specific paths. Produces a tiered report (MUST-FIX / RECOMMENDED / NIT) backed by evidence, then optionally applies fixes with verification.

greglas75/zuvo · 70 tokens

write-tests

Write tests for existing production code. Processes ONE file at a time through a full pipeline: analyze, inventory (frozen BEFORE writing), write, executable coverage gate, verify, blind coverage audit, adversarial review, log. Uses CodeSift for discovery and analysis when available. Modes: [path] (specific target)…

greglas75/zuvo · 87 tokens

db-audit

Database performance and safety audit. 70+ checks across 13 dimensions (DB1-DB13): query patterns, indexes, schema design, connections, transactions, migrations, caching, query optimization, ORM anti-patterns, observability, data lifecycle, DB security, and migration deployment safety. Code-level checks for all ORMs.…

greglas75/zuvo · 115 tokens

code-audit

Batch audit of production files against CQ1-CQ40 quality gates and CAP1-CAP29 anti-patterns. Tiered output (A/B/C/D), critical gate enforcement, evidence-backed scoring, cross-file pattern analysis, and prioritized execution plan. Flags: zuvo:code-audit all | [path] | [file] | --deep | --quick | --services |…

greglas75/zuvo · 83 tokens

plan

Analyzes architecture, selects patterns, assesses testability, then decomposes work into ordered TDD tasks with exact verification commands and explicit acceptance mapping. Works from an approved spec (zuvo:brainstorm output) or directly from a user-provided description.

greglas75/zuvo · 53 tokens