Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Docker Ops

ASecurity

Build, harden, and validate Dockerfiles, ignore files, and local compose configuration.

12 stars
0 votes
0 copies
0 views
Added 10/6/2026
ai-agentsdockerapi

Works with

api

Security Analysis

A100/100

Scanned 10/6/2026

$npx -y skills add startmeupai/swe-agents --skill docker-ops --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker Ops?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Docker Ops
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/startmeupai-docker-ops/badge)](https://www.skillsdirectory.com/skills/startmeupai-docker-ops)

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

Download with Pro
Files
SKILL.md
---
name: docker-ops
description: Build, harden, and validate Dockerfiles, ignore files, and local compose configuration.
---

# Docker Operations

## Trigger Conditions

Use for Dockerfiles, `.dockerignore` files, compose files, base images, build stages, runtime
users, secrets handling, healthchecks, image size, and container build failures.

## Required Inputs

- Services to containerize, build and runtime commands, base image policy, and size budget.
- Secrets contract by name, port and volume needs, and registry or deployment authority.

## Workflow

1. Inventory Dockerfiles, compose files, `.dockerignore` files, entrypoint scripts, and CI steps
   that build, scan, or push images.
2. Settle the base image for each stage, pinned to an exact tag or digest, and split build and
   runtime stages so toolchains and caches stay out of the final image.
3. Order layers for cache reuse with lockfile-based frozen installs, and exclude VCS data, `.env`
   files, dependencies, and build output through `.dockerignore`.
4. Harden the runtime stage: a non-root user, no secrets in layers, `ARG`, `ENV`, or labels
   (`RUN --mount=type=secret` for build-time credentials, runtime injection otherwise), explicit
   ports and volumes, and a healthcheck that uses a binary present in the image.
5. Validate with the pack's compose command (`docker compose config`) and build command
   (`docker build .`, with `-f` for other Dockerfiles), then measure each changed image against
   its size budget.
6. Run the pack's optional lint command (`hadolint Dockerfile`) and the project's named SBOM or
   vulnerability scan when available; record each as passed, failed, or not run.
7. Separate local build and compose proof from registry push, tag promotion, and deployment gates,
   which stay open without explicit authority.

## Deterministic Checks

- `docker compose config` parses with every referenced variable set or explicitly defaulted.
- Each changed image builds with pinned base images and frozen dependency installs.
- `docker image inspect` shows a non-root user, the declared healthcheck, and the declared ports.
- Measured image size is within budget, and lint and scan results are recorded by tool name.

## Safety and Permission Boundaries

- Never push images, promote tags, log in to registries, or deploy without explicit authority.
- Never write secret values into Dockerfiles, compose files, build arguments, or logs; reference
  them by name only.
- Remove only the containers, images, and volumes the task created; never prune shared resources.

## Required Evidence

- Changed files, base image references, compose validation output, and build result per image.
- Runtime user, healthcheck, measured size against budget, and lint and scan status.
- Registry and deployment gate status, stated as open unless proven with authority.

## Completion Condition

- Every changed image builds locally, compose configuration validates, hardening checks pass, and
  registry and deployment gates are either proven with authority or explicitly open.

## Example

`Harden the ExampleApp API image with a non-root runtime stage and validate it without pushing.`

Attribution

startmeupaistartmeupai
View sourceSee grades on GitHubMore from startmeupai →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →