CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dockerfile-validator

Validates, lints, and secures Dockerfiles by running syntax checking, detecting security vulnerabilities, validating layer ordering, checking for hardcoded secrets, verifying base image tags, and analyzing build optimization. Use when validating Dockerfile syntax, checking security best practices, optimizing image builds, auditing container security, or debugging Dockerfile errors. Applies to all Dockerfile variants (Dockerfile, Dockerfile.prod, Dockerfile.dev, etc.).

Quality

90%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

75%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The content is highly actionable — real commands, a real script, real bundle files, and a clear mandatory workflow with severity-ranked reporting. Its weaknesses are token efficiency (the workflow is described three times over and generic guidance repeats across sections) and a feedback loop that ends at 'apply fixes' without an explicit re-validation step, plus anti-pattern/optimization detail that belongs in the reference files.

Suggestions

Collapse the duplication: delete the 'Key Features' ✅ bullet list and the 'Example interaction' block (both restate the Overview / Validation Workflow / Mandatory Workflow), and keep one workflow description instead of three.

Add an explicit post-fix re-validation step to the Mandatory Workflow (e.g., after applying fixes, re-run bash scripts/dockerfile-validate.sh Dockerfile and only report success when it passes) so the feedback loop is a real checkpoint rather than a Notes bullet.

Move the ten Anti-Patterns and the basic good/bad optimization examples into a reference file (or merge with optimization_guide.md), keeping one-line WHY pointers in SKILL.md, and deduplicate the CI/CD-integration and generic guidance bullets repeated across 'When to Use', per-tool 'Best Practices', and 'Notes'.

DimensionReasoningScore

Conciseness

The body is mostly useful and Docker-specific, but it has recurring padding: the 'Key Features' ✅ bullets restate the Overview, the 'Example interaction' restates the Mandatory Workflow steps it follows, CI/CD integration is urged in at least four places, the Notes section's ten bullets largely duplicate the Anti-Patterns, and the bad/good examples (full distro vs. alpine, cache ordering) cover Docker knowledge Claude already has. Below a 4 because these redundant sections and basics cost real tokens; above a 2 because nothing is generic concept explanation and the bulk is actionable.

3 / 5

Actionability

Guidance is copy-paste executable throughout: 'bash scripts/dockerfile-validate.sh Dockerfile', hadolint/Checkov invocations with flags ('--format json', '--skip-check CKV_DOCKER_2'), grep-based checks, a checkov suppression snippet, a FORCE_TEMP_INSTALL test invocation, and an error→solution troubleshooting table. The referenced script and asset files all exist and match. Fully executable and covers the common cases — the top anchor.

5 / 5

Workflow Clarity

The Mandatory Workflow gives an ordered sequence (read the Dockerfile → run the script → summarize by severity → load the right reference file → propose fixes → ask before applying), with severity ordering and a reference-routing table. Not a 5 because the loop stops at 'apply fixes if approved': re-validation after applying fixes appears only as a Note bullet ('Test builds after applying fixes') rather than as an explicit step, so the feedback loop is implicit rather than a checkpoint.

4 / 5

Progressive Disclosure

References are one level deep, well signaled inline at the point of need ('see references/docker_best_practices.md', 'see references/security_checklist.md'), and catalogued again in a References section with per-file purpose tables; all referenced bundle files exist. Not a 5 because sizable content that belongs in the reference files is inlined instead — the ten-entry Anti-Patterns section and the basic optimization before/after examples (which duplicate optimization_guide.md) keep the 460-line body heavier than an overview needs to be.

4 / 5

Total

16

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is a strong example: third-person voice, comprehensive concrete actions, an explicit 'Use when' trigger clause, and Dockerfile-variant naming that sharply bounds its scope. It reads like the reference good examples rather than any weak pattern.

DimensionReasoningScore

Specificity

The description enumerates six concrete actions — 'running syntax checking, detecting security vulnerabilities, validating layer ordering, checking for hardcoded secrets, verifying base image tags, and analyzing build optimization' — giving comprehensive, non-abstract coverage of the skill's capabilities. This matches the anchor 'lists multiple specific concrete actions; comprehensive coverage'; nothing is generic padding that would pull it toward a 4.

5 / 5

Completeness

It answers 'what' with the enumerated action list and 'when' explicitly via 'Use when validating Dockerfile syntax, checking security best practices, optimizing image builds, auditing container security, or debugging Dockerfile errors', mirroring the anchor-5 example structure. Not a 4 because the trigger clause is explicit and specific rather than merely present.

5 / 5

Trigger Term Quality

It covers natural user phrasings — 'validating Dockerfile syntax', 'checking security best practices', 'optimizing image builds', 'auditing container security', 'debugging Dockerfile errors' — plus explicit file-name variants ('Dockerfile, Dockerfile.prod, Dockerfile.dev'). Coverage of natural terms including naming variants matches the top anchor; not a 4 because no common phrasing ('lint my Dockerfile', 'is my Dockerfile secure') is left unaddressed.

5 / 5

Distinctiveness Conflict Risk

The niche (Dockerfile validation/linting/security) is sharply defined with named file variants, and none of its triggers (syntax validation, secret detection, tag verification) plausibly fire for adjacent skills like image CVE scanning or manifest validation. Clear niche with distinct triggers; minimal conflict risk.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

pantheon-org/tekhne

Path

skills/infrastructure/dockerfile/validator/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.