{"uid":"cap_O5rE6CKfjbWGykOFlRsGX","slug":"shell-script-review-via-bash-n-and-shellcheck-d0e985a6","name":"Shell Script Review via bash -n and ShellCheck","description":"Shell script review: bash -n syntax check plus full shellcheck analysis. Deterministic, no LLM, returns findings with line numbers and SC codes.","url":"https://scriptlint.com/review?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false}}},"responseSchema":{"example":{"review":{"syntax":"OK","shellcheck":"file.sh:3:8: note: Double quote to prevent globbing [SC2086]"}}},"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_yNJLqJL1TaDvLnCoCFcyO","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":"Runs bash -n syntax check and full ShellCheck static analysis on a shell script, returning findings with line numbers and SC codes.","exampleAgentPrompt":"Can you run a full shellcheck and bash syntax check on this script and show me any issues with line numbers and SC codes?","exampleUseCases":[{"title":"CI pipeline script validation","prompt":"Before we merge this PR, can you lint the deploy.sh script with bash -n and shellcheck so we catch any syntax errors or quoting problems, and list the findings by line number?"},{"title":"Debugging a failing cron job script","prompt":"My backup.sh script keeps failing silently — can you run a shellcheck analysis on it and tell me every warning or error it finds, including the SC codes?"},{"title":"Onboarding script quality audit","prompt":"I wrote this new user-onboarding shell script and want to make sure it's clean before shipping it — can you check it for shellcheck issues and bash syntax errors and give me the full report?"}],"resultDescription":"A JSON response containing a 'review' object with two fields: 'syntax' (either 'OK' or a bash -n error message) and 'shellcheck' (a string listing all ShellCheck findings in the format 'file.sh:LINE:COL: severity: message [SCxxxx]').","failureModes":["Empty or missing script body returns an error","Non-shell content submitted may produce misleading results","Network timeout for very large scripts","Payment failure returns HTTP 402 before analysis runs","Malformed JSON body returns 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need deterministic, LLM-free shell script linting that combines both bash -n syntax validation and ShellCheck static analysis in a single call, returning structured findings with line numbers and official SC codes suitable for automated CI pipelines or agent-driven code review workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:34:33.054Z","isFirstParty":false,"canonicalSlug":"shell-script-review-via-bash-n-and-shellcheck-d0e985a6"}