# Hadolint

> Use this skill when the user wants to lint Dockerfiles, check Dockerfile best practices, or validate container build instructions.

- Skill: `javimosch/hadolint` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/hadolint`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/hadolint/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/hadolint

---


# hadolint Plugin

Dockerfile linter with inline-comment ignore support.

## Commands

### Lint
- `hadolint lint run` — Lint a Dockerfile
- `hadolint lint json` — Lint and output JSON

## Usage Examples
- "Check my Dockerfile for issues"
- "Lint the Dockerfile in this directory"
- "Validate best practices in my Dockerfile"

## Installation

```bash
brew install hadolint
```

## Examples

```bash
# Lint Dockerfile
hadolint Dockerfile

# JSON output
hadolint --format json Dockerfile

# Ignore rules
hadolint --ignore DL3003 Dockerfile

# Specify config
hadolint --config .hadolint.yaml Dockerfile
```

