{"uid":"cap_qZYhokdeCRpKMnBXkFtEH","slug":"aiskills402-dockerfile-review-5bb897b1","name":"AISkills402: Dockerfile Review","description":"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 …","url":"https://api.aiskills402.com/v1/skills/dockerfile-review/file?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TZ1WOI1IDVGCunbbUZOh6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Security audit before production deploy","prompt":"Before I push this image to production, can you check my Dockerfile for any security issues — especially whether it runs as root, has secrets baked into layers, or uses an unpinned base image?"},{"title":"Slow Docker build cache investigation","prompt":"My Docker builds are taking forever even when I barely change any code — can you review my Dockerfile to see if I'm copying source files before installing dependencies and killing the layer cache?"},{"title":"CI pipeline Dockerfile gate","prompt":"I want to add an automated check to my CI pipeline — can you analyze my Dockerfile and flag any of the five classic mistakes like latest-tagged base images, secrets in ENV or ARG, or missing non-root user?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T20:44:41.423Z","isFirstParty":false,"canonicalSlug":"aiskills402-dockerfile-review-5bb897b1"}