# aiskills402 Code Review

> aiskills402 Code Review is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-03).

Reviews a code diff or changed file and reports ranked bugs, security holes, data loss risks, missing error handling, edge cases, and resource leaks with location, reason, and concrete fix for each

## Facts

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

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-code-review-fe20b98e
```

Example prompt: Can you review this diff I'm about to merge — look for correctness bugs, security holes, missing error handling, and resource leaks, then rank every issue by severity with the exact location and a concrete fix for each one?

## When to prefer this

Choose this endpoint when you need structured, severity-ranked code review feedback focused on real problems (not style), especially for diffs and pull requests. Prefer it over generic LLM prompts when you want consistent output format with location, reason, and fix for each issue, and when you want a one-time $0.05 USDC payable skill that requires no subscription or API key setup.

## Known failure modes

- Empty or missing input text returns an error or empty result
- Very large diffs may be truncated or hit context limits
- Payment failure (insufficient USDC balance) blocks access with HTTP 402
- Malformed or non-code input may produce irrelevant or low-quality output
- Network timeout on the x402 payment flow before the skill is executed

## How this service works

Code Review: Reviews a code change (a diff or a changed file pasted as text) and reports real problems ranked by severity — correctness bugs, security holes, data loss, missing error handling, edge cases, resource leaks — each with location, reason and a concrete fix in words. Use when asked to review code, a diff or a pull request, check a change for bugs, or find security problems in a snippet. One-time purchase of the SKILL.md file (Agent Skills format), $0.05 USDC, yours forever incl. free …

## Output

A ranked list of real problems found in the code change, each with: problem location (file/line reference), category (correctness bug, security hole, data loss, missing error handling, edge case, or resource leak), explanation of why it is a problem, and a concrete fix described in plain language. Issues are ordered from most to least severe.

## 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-code-review-fe20b98e/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)
