# AISkills402: Dockerfile Review

> AISkills402: Dockerfile Review is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Reviews a single Dockerfile for the five most common security and build-time mistakes, returning concise findings with fix recommendations or a clean bill of health.

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/dockerfile-review/file?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-dockerfile-review-5bb897b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qZYhokdeCRpKMnBXkFtEH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aiskills402-dockerfile-review-5bb897b1
```

Example prompt: Can you review my Dockerfile for the top security and build-time mistakes — things like running as root, unpinned base images, secrets leaking through build args, and cache-busting COPY order?

## When to prefer this

Choose this endpoint when you need a fast, opinionated, single-pass review of exactly the five highest-impact Dockerfile mistakes (root user, unpinned base, secrets exposure, cache-busting COPY order) and want one-line actionable findings at minimal cost. Prefer it over generic LLM prompting when you want consistent, structured output and reproducible scoring across multiple Dockerfiles in a pipeline gate.

## Known failure modes

- Dockerfile content not provided or not accessible via GET — returns empty or error response
- Dockerfile is too large or malformed — may produce incomplete analysis
- Edge-case Dockerfile syntax (BuildKit heredocs, multi-stage with unusual patterns) may not be detected
- Only five specific mistake categories are checked — other issues are out of scope and will not be reported

## How this service works

Dockerfile Review — Reviews ONE Dockerfile for the five build mistakes that cost security or build time, and lists only those, one line each with a fixed code, the instruction, why it hurts and the fix - or exactly No findings. It catches a final image that runs as root, a base image with no tag or the latest tag, a secret passed through an argument, an environment value or a file copy so that it stays in the image history, source copied in before the dependencies are installed so the cache is …

## Output

A concise list of up to five findings, each on a single line containing a finding code, the affected Dockerfile instruction, an explanation of why it is harmful, and a concrete fix. If no issues are found, the response is exactly 'No findings.' The five checked categories are: running final image as root, base image missing a tag or using 'latest', secrets passed via ARG/ENV or COPYed into the image, and COPY order causing cache invalidation before dependency installation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-dockerfile-review-5bb897b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
