# Saylor Innovations Dockerfile Linter

> Saylor Innovations Dockerfile Linter is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Lints a Dockerfile against 25+ rules, returning a letter grade (A–F), numeric score, categorized findings, fix suggestions, and multi-stage build advice.

## Facts

- Endpoint: GET https://saylorinnovations.com/api/dockerfile/lint?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-dockerfile-linter-e7ef2cbb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y6m0pIbfkYymPNEPEr_yB

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 saylor-innovations-dockerfile-linter-e7ef2cbb
```

Example prompt: Can you lint this Dockerfile for me and give it a grade? FROM ubuntu:latest\nRUN apt-get update && apt-get install -y curl\nCOPY . /app\nCMD ["/app/start.sh"] — I want to see what rules it fails and how to fix them.

## When to prefer this

Choose this endpoint when you need automated, rule-based Dockerfile quality assessment with letter grading and actionable fix suggestions — especially useful in CI/CD pipelines, pre-deployment gates, or developer tooling where a quick, cheap ($0.01) structured lint report with 25+ rules and multi-stage awareness is sufficient, and you don't need a full container-image vulnerability scan or runtime analysis.

## Known failure modes

- Missing 'dockerfile' query parameter returns an error
- Dockerfile text exceeding 20,000 characters is rejected
- Malformed or non-Dockerfile text may produce low-confidence or empty findings
- Network timeout on large Dockerfile inputs
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Dockerfile linter - 25+ rules with fixes, A-F grade and multi-stage advice

## Output

Returns a JSON object containing: a letter grade (A–F), a numeric score (0–100), a pass/fail boolean, an array of findings (issues or observations with associated rules), an array of fix advice strings, stage count, list of base images detected, a multi-stage boolean flag, categorized issue counts, a scope note describing coverage, and pointers to related endpoints.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "dockerfile"
     ],
     "properties": {
      "dockerfile": {
       "type": "string",
       "description": "required Dockerfile text, up to 20000 characters (query, URL-encoded)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "stages",
      "instructions",
      "findings",
      "counts",
      "passes"
     ],
     "properties": {
      "grade": {
       "type": "string",
       "description": "Letter grade"
      },
      "score": {
       "type": "number",
       "description": "Score from 0 (worst) to 100 (best)"
      },
      "advice": {
       "type": "array",
       "description": "The advice text"
      },
      "counts": {
       "type": "object",
       "properties": {
        "info": {
         "type": [
          "integer"
         ]
        },
        "error": {
         "type": [
          "integer"
         ]
        },
        "warning": {
         "type": [
          "integer"
         ]
        }
       },
       "additionalProperties": true
      },
      "passes": {
       "type": "boolean"
      },
      "stages": {
       "type": "number"
      },
      "findings": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "fix": {
          "type": [
           "string"
          ]
         },
         "line": {
          "type": [
           "integer"
          ]
         },
         "rule": {
          "type": [
           "string"
          ]
         },
         "message": {
          "type": [
           "string"
          ]
         },
         "severity": {
          "type": [
           "string"
          ]
         }
        },
        "additionalProperties": true
       },
       "description": "Issues or observations found"
      },
      "scope_note": {
       "type": "string",
       "de
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-dockerfile-linter-e7ef2cbb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
