Agent skill

Hadolint Dockerfile Security Linting

by AgentSecOps in AgentSecOps/SecOpsAgentKit

Lints Dockerfiles with Hadolint for security misconfigurations and best-practice violations, locally and in CI, with strict, balanced and permissive rule templates.

Custom licenceAuto-check passedSecurity

Install Hadolint Dockerfile Security Linting

skills CLI
$ npx skills add AgentSecOps/SecOpsAgentKit --skill container-hadolint -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AgentSecOps/SecOpsAgentKit container-hadolint --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AgentSecOps/SecOpsAgentKit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/devsecops/container-hadolint .claude/skills/container-hadolint && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
container-hadolint
GitHub stars
219
Used in
1 other repo
Token cost
~4.4k tokens
SKILL.md length
872 words
Files
9 (incl. references, assets)
Skills in repo
24
Repo updated
First seen
Licence
Custom licence

At a glance

Lints Dockerfiles with Hadolint for security misconfigurations and best-practice violations, locally and in CI, with strict, balanced and permissive rule templates.

  • Works in 6 steps: Local Development Scanning → CI/CD Pipeline Integration → Configuration Customization → …
  • Auditing a Dockerfile for security misconfigurations and anti-patterns
  • SKILL.md covers Overview, Quick Start, Core Workflows and Security Considerations, plus 3 more sections
  • Calls hadolint, docker and jq; reaches github.com

What it does

Hadolint checks Dockerfile instructions before images are built and deployed, and it passes RUN instructions through ShellCheck. The skill covers installing it, scanning a Dockerfile and producing JSON output for automation, and it explains the report format, with rule codes such as DL3008 and DL3025 and severity levels of error, warning and info. It cites 100+ built-in rules mapped to CIS Docker Benchmark controls.

Four workflows are laid out: local scanning, CI/CD integration with GitHub Actions and GitLab CI examples, rule customization through a .hadolint.yaml file, and security-focused validation, which the excerpt cuts off. The assets folder holds strict, balanced and permissive config templates plus the two CI files, and the references folder has a security rules guide and an example.

When your agent uses it

  • Auditing a Dockerfile for security misconfigurations and anti-patterns
  • Adding a Dockerfile lint step to a GitHub Actions or GitLab CI pipeline
  • Checking container builds for hardcoded secrets and credentials
  • Validating Dockerfiles against CIS Docker Benchmark requirements

Example prompts

  • “Scan the Dockerfile in this repo with Hadolint and explain each finding.”
  • “Add a Hadolint job to our GitLab CI pipeline that fails on warnings.”
  • “Set up a .hadolint.yaml that suits a legacy Dockerfile without drowning us in noise.”

Requirements

  • Hadolint
  • A Dockerfile to scan

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Local Development Scanning
  2. CI/CD Pipeline Integration
  3. Configuration Customization
  4. Security-Focused Validation
  5. Multi-Stage Build Validation
  6. Pre-Commit Hook Integration

What it can do on your machine

Read from SKILL.md and the folder at commit 6e25a4b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • hadolint
    • docker
    • jq
    • brew
    • wget
    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    Also links to:

    • cisecurity.org
    • docs.docker.com
    • shellcheck.net

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Hadolint Dockerfile Security Linting loads about 4.4k tokens when it runs, and up to ~6.9k if it reads all its reference files. Until then it costs about 147 tokens; SKILL.md has 872 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~147
When it runs · the whole SKILL.md, loaded when a task matches
~4.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 872 words (~4,354 tokens).

“Hadolint is a Dockerfile linter that validates container build files against security best practices and the CIS Docker Benchmark. It analyzes Dockerfile instructions to identify misconfigurations, anti-patterns, and security vulnerabilities before images are built and deployed.”

— opening of SKILL.md by AgentSecOps, Custom licence
name
container-hadolint
version
0.1.0
maintainer
SirAppSec
category
devsecops
tags
docker, hadolint, dockerfile, container-security, cis-benchmark, linting, ci-cd
frameworks
CIS, OWASP
dependencies.tools
hadolint, docker
references
https://github.com/hadolint/hadolint, https://www.cisecurity.org/benchmark/docker, https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

Read the full SKILL.md on GitHub

Files

SKILL.md and 8 other files (references, assets) in skills/devsecops/container-hadolint of AgentSecOps/SecOpsAgentKit.

  • SKILL.md
  • assets/.gitkeep
  • assets/github-actions.yml
  • assets/gitlab-ci.yml
  • assets/hadolint-balanced.yaml
  • assets/hadolint-permissive.yaml
  • assets/hadolint-strict.yaml
  • references/EXAMPLE.md
  • references/security_rules.md

Open the folder on GitHubat commit 6e25a4b

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in AgentSecOps/SecOpsAgentKit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Hadolint Dockerfile Security Linting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Hadolint Dockerfile Security Linting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hadolint Dockerfile Security Linting this skillAgentSecOps/SecOpsAgentKit2191 repos~4.4kAutomated safety check: PassCustom licence
Code Securitysemgrep/skills322—~1.2kAutomated safety check: PassCustom licence
CI/CD Pipeline Principlesirahardianto/awesome-agv157—~2.7kAutomated safety check: NotesMIT
Megatron-LM Base Image BumpNVIDIA/Megatron-LM18k—~2.8kAutomated safety check: PassApache-2.0
Building Devsecops Pipeline With GitLab CImukul975/Anthropic-Cybersecurity-Skills34k—~2.2kAutomated safety check: PassApache-2.0
Senior DevOps Toolkitmaslennikov-ig/claude-code-orchestrator-kit2596 repos~1.1kAutomated safety check: NotesCustom licence

Similar skills

  • Code Security

    semgrep/skills

    Official

    Security guidelines for writing secure code. An agent skill from semgrep/skills.

    322 GitHub stars~1.2k tokensUpdated 2 mo ago
    SecurityAuto-check passed
  • CI/CD Pipeline Principles

    irahardianto/awesome-agv

    Rules for designing CI/CD pipelines in layers: universal lint, test and scan stages, container builds with SBOM attestation, and GitOps for orchestrated deployments.

    157 GitHub stars~2.7k tokensUpdated 2 days ago
    DevOps & CloudAuto-check: notes
  • Megatron-LM Base Image Bump

    NVIDIA/Megatron-LM

    Official

    Moves Megatron-LM CI to a newer NVIDIA PyTorch base image, updating both the GitHub and GitLab pins together and handling the CI follow-up.

    18k GitHub stars~2.8k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Building Devsecops Pipeline With GitLab CI

    mukul975/Anthropic-Cybersecurity-Skills

    Configure a GitLab CI/CD pipeline that embeds SAST (Semgrep, SpotBugs, Gosec, Bandit, NodeJsScan), DAST, container scanning, dependency scanning, and secret detection via GitLab's managed security…

    34k GitHub stars~2.2k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Senior DevOps Toolkit

    maslennikov-ig/claude-code-orchestrator-kit

    Comprehensive DevOps skill for CI/CD, infrastructure automation, containerization, and cloud platforms (AWS, GCP, Azure). Includes pipeline setup…

    259 GitHub starsUsed in 6 repos~1.1k tokens
    DevOps & CloudAuto-check: notes
  • GitHub Actions Creator

    FNOSP/FlyNarwhal

    A skill your agent uses when the user wants to create, generate, or set up a GitHub Actions workflow.

    495 GitHub starsUsed in 1 repo~2.4k tokens
    DevOps & CloudAuto-check passed

More from AgentSecOps/SecOpsAgentKit

All 24 skills in this repo
  • Sast Semgrep

    AgentSecOps/SecOpsAgentKit

    Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

    219 GitHub starsUsed in 2 repos~2.4k tokens
    Auto-check passed
  • Secrets Gitleaks

    AgentSecOps/SecOpsAgentKit

    Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks.

    219 GitHub starsUsed in 2 repos~4.1k tokens
    Auto-check passed
  • DefectDojo Vulnerability Management

    AgentSecOps/SecOpsAgentKit

    Aggregates scanner results into DefectDojo, deduplicates findings, tracks remediation SLAs and prepares compliance reports across products and pipelines.

    219 GitHub stars~2.3k tokensUpdated 5 mo ago
    Auto-check passed
  • TShark Traffic Analysis

    AgentSecOps/SecOpsAgentKit

    Guides authorized packet capture and analysis with TShark, Wireshark's command-line tool, for security investigations, malware detection and forensic examination of network traffic.

    219 GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check: notes
  • Container Scanning with Grype

    AgentSecOps/SecOpsAgentKit

    Scans container images, filesystems and SBOMs with Grype for known vulnerabilities, ranks them by CVSS, EPSS and CISA KEV, and wires scans into CI/CD thresholds.

    219 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Hashcat Password Recovery Workflow

    AgentSecOps/SecOpsAgentKit

    Guides authorized password-hash recovery with hashcat for security audits, forensic cases and policy testing, starting with an explicit authorization check before any cracking runs.

    219 GitHub starsUsed in 1 repo~3.3k tokens
    Auto-check: notes

Questions about Hadolint Dockerfile Security Linting

What does Hadolint Dockerfile Security Linting do?

Lints Dockerfiles with Hadolint for security misconfigurations and best-practice violations, locally and in CI, with strict, balanced and permissive rule templates. Hadolint checks Dockerfile instructions before images are built and deployed, and it passes RUN instructions through ShellCheck. The skill covers installing it, scanning a Dockerfile and producing JSON output for automation, and it explains the report format, with rule codes such as DL3008 and DL3025 and severity levels of error, warning and info.

When should I use Hadolint Dockerfile Security Linting?

Hadolint Dockerfile Security Linting fits situations like: auditing a Dockerfile for security misconfigurations and anti-patterns; adding a Dockerfile lint step to a GitHub Actions or GitLab CI pipeline; checking container builds for hardcoded secrets and credentials; validating Dockerfiles against CIS Docker Benchmark requirements.

How do I install Hadolint Dockerfile Security Linting in Claude Code?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill container-hadolint -a claude-code`. Or copy the skill folder (skills/devsecops/container-hadolint in AgentSecOps/SecOpsAgentKit) into .claude/skills/container-hadolint in your project. Claude Code loads it when a task matches its description.

How do I install Hadolint Dockerfile Security Linting in Codex?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill container-hadolint -a codex`. Or copy the skill folder (skills/devsecops/container-hadolint in AgentSecOps/SecOpsAgentKit) into .agents/skills/container-hadolint in your project. Codex loads it when a task matches its description.

Can I use Hadolint Dockerfile Security Linting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AgentSecOps/SecOpsAgentKit --skill container-hadolint -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/container-hadolint, .gemini/skills/container-hadolint, .github/skills/container-hadolint and .opencode/skills/container-hadolint in your project.

What does Hadolint Dockerfile Security Linting need to run?

Going by SKILL.md and its folder, Hadolint Dockerfile Security Linting needs the command-line tools its instructions call (hadolint, docker, jq, brew, wget and git). Our summary lists: Hadolint; A Dockerfile to scan.

Does Hadolint Dockerfile Security Linting access the network?

SKILL.md names 4 domains. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. As links in the text: cisecurity.org, docs.docker.com and shellcheck.net. This is read from the text; nothing was executed.

Is Hadolint Dockerfile Security Linting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Hadolint Dockerfile Security Linting use?

Hadolint Dockerfile Security Linting has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Hadolint Dockerfile Security Linting use?

About 4.4k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.6k tokens, read only when the agent opens those files.

What are the alternatives to Hadolint Dockerfile Security Linting?

Skills that share tags, products or a category with Hadolint Dockerfile Security Linting: Code Security (semgrep/skills, 322 stars), CI/CD Pipeline Principles (irahardianto/awesome-agv, 157 stars), Megatron-LM Base Image Bump (NVIDIA/Megatron-LM, 18k stars) and Building Devsecops Pipeline With GitLab CI (mukul975/Anthropic-Cybersecurity-Skills, 34k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hadolint Dockerfile Security Linting?

AgentSecOps (a GitHub organization) maintains it in AgentSecOps/SecOpsAgentKit, which has 219 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on April 15, 2026.

Source: AgentSecOps/SecOpsAgentKit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.