# Shell Script Review via bash -n and ShellCheck

> Shell Script Review via bash -n and ShellCheck is a paid API for AI agents from scriptlint.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Runs bash -n syntax check and full ShellCheck static analysis on a shell script, returning findings with line numbers and SC codes.

## Facts

- Endpoint: POST https://scriptlint.com/review?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shell-script-review-via-bash-n-and-shellcheck-d0e985a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O5rE6CKfjbWGykOFlRsGX

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 shell-script-review-via-bash-n-and-shellcheck-d0e985a6 -d '<json body>'
```

Example prompt: Can you run a full shellcheck and bash syntax check on this script and show me any issues with line numbers and SC codes?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Shell script review: bash -n syntax check plus full shellcheck analysis. Deterministic, no LLM, returns findings with line numbers and SC codes.

## Output

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]').

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {
  "review": {
   "syntax": "OK",
   "shellcheck": "file.sh:3:8: note: Double quote to prevent globbing [SC2086]"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shell-script-review-via-bash-n-and-shellcheck-d0e985a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scriptlint.com](https://www.zero.xyz/host/scriptlint.com/llms.txt)
