api-review

api-review is a command for coding agents from VersoXBT/claude-initial-setup. It costs 9 tokens per session (504 once invoked), scanned A, original, MIT.

A checklist for reviewing web API endpoints, which are the URLs that applications use to exchange data. It checks REST conventions, request validation, and error responses.

In plain words
What is it for?
Use it to list endpoints, check URL and HTTP-method conventions, validate request data, and review status codes and error formats.
Why use it?
It helps expose inconsistent routes, unchecked input, unclear errors, and incorrect HTTP behavior that can make an API harder or less safe to use.

Command

Part of the claude-initial-setup plugin — 24 skills, 15 commands, 14 agents, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/versoxbt/claude-initial-setup/api-review
Clone the repo
git clone --depth 1 https://github.com/VersoXBT/claude-initial-setup

Or install claude-initial-setup, the plugin that ships this one along with the rest of its 24 skills, 15 commands, 14 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/versoxbt/claude-initial-setup/api-review.svg)](https://agentmods.dev/commands/versoxbt/claude-initial-setup/api-review)
Your own site
<a href="https://agentmods.dev/commands/versoxbt/claude-initial-setup/api-review"><img src="https://agentmods.dev/badge/commands/versoxbt/claude-initial-setup/api-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 504 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00009 $0.00504
Opus 5 $0.00005 $0.00252
Sonnet 5 $0.00002 $0.00101
Haiku 4.5 $0.00001 $0.00050

Measured 3d ago against content hash cbab7943caf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/api-review.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Review

Review API endpoints for adherence to REST conventions, proper error handling, and documentation.

Steps

  1. Inventory all API endpoints:

    • List every route with its HTTP method, path, and handler.
    • Group endpoints by resource (users, orders, products, etc.).
    • Identify any endpoints that do not follow RESTful naming conventions.
  2. Check REST conventions:

    • Verify correct HTTP methods: GET (read), POST (create), PUT/PATCH (update), DELETE (remove).
    • Verify resource-based URLs (nouns, not verbs): /users/:id not /getUser.
    • Verify plural resource names: /users not /user.
    • Check that nested resources are properly scoped: /users/:id/orders.
    • Verify consistent URL casing (kebab-case preferred).
  3. Validate request handling:

    • All request bodies are validated with a schema before processing.
    • Query parameters are validated and sanitized.
    • Path parameters are validated (type, format, existence).
    • Content-Type headers are checked and enforced.
  4. Review error responses:

    • Verify consistent error response format across all endpoints.
    • Check that appropriate HTTP status codes are used (400, 401, 403, 404, 409, 422, 500).
    • Confirm error messages are helpful but do not leak internal details.
    • Verify that validation errors return specific field-level messages.
  5. Check pagination, filtering, and sorting:

    • List endpoints return paginated results (not unbounded queries).
    • Pagination uses consistent parameters (page/limit or cursor-based).
    • Filtering and sorting are supported where appropriate.
    • Response includes total count and pagination metadata.
  6. Review authentication and authorization:

    • All protected endpoints require authentication.
    • Authorization checks enforce proper access levels per endpoint.
    • Public endpoints are intentionally and explicitly public.
  7. Check API documentation:

    • All endpoints are documented with request/response schemas.
    • Examples are provided for common use cases.
    • Error responses are documented.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 60 lines · 9 tokens per session scan A cbab7943caf3

Subscribe to this mod's changes

api-review is a command published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 3mo ago), licensed MIT. It adds 9 tokens to every session and 504 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.