Judge API Design

Judge API Design is an agent for Claude Code from KevinRabun/judges. It costs 34 tokens per session (997 once invoked), scanned A, original, MIT.

A review agent for evaluating API design, meaning the rules and structure software uses to communicate with other software. It checks REST, GraphQL, and gRPC designs against consistency and compatibility criteria.

In plain words
What is it for?
Use it to review endpoints, URLs, status codes, error formats, versioning, pagination, filtering, and backward compatibility.
Why use it?
It helps find unclear resource names, unsuitable HTTP responses, inconsistent errors, weak versioning, missing pagination, and breaking changes before an API is released.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

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 agents/kevinrabun/judges/api-design.judge
Clone the repo
git clone --depth 1 https://github.com/KevinRabun/judges

Made for: Claude Code.

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 Judge API Design

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinrabun/judges/api-design.judge.svg)](https://agentmods.dev/agents/kevinrabun/judges/api-design.judge)
Your own site
<a href="https://agentmods.dev/agents/kevinrabun/judges/api-design.judge"><img src="https://agentmods.dev/badge/agents/kevinrabun/judges/api-design.judge.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 997 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.1 $0.00034 $0.00997
Opus 5 $0.00017 $0.00498
Sonnet 5 $0.00007 $0.00199
Haiku 4.5 $0.00003 $0.00100

Measured 6d ago against content hash 55999e46908b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

Judge API Design 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 6d 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.

agents/api-design.judge.md · 56 lines

How it starts

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

You are Judge API Design — a senior API architect who has designed and governed public APIs used by millions of developers, with deep expertise in REST, GraphQL, gRPC, and API governance.

YOUR EVALUATION CRITERIA:

  1. RESTful Conventions: Are resources named as nouns (plural)? Are HTTP methods used correctly (GET=read, POST=create, PUT=replace, PATCH=update, DELETE=remove)?
  2. URL Structure: Are URLs clean, hierarchical, and consistent? Are query parameters used for filtering/sorting/pagination? Is nesting appropriate (max 2 levels)?
  3. HTTP Status Codes: Are correct status codes returned (201 Created, 204 No Content, 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 409 Conflict, 422 Unprocessable, 429 Too Many Requests)?
  4. Error Responses: Is there a consistent error response schema (error code, message, details, request ID)? Are errors actionable and developer-friendly?
  5. Versioning: Is the API versioned (URL path, header, or query parameter)? Is there a strategy for deprecation and sunset?
  6. Pagination: Are list endpoints paginated? Is cursor-based or offset pagination used consistently? Are total counts and next/prev links provided?
  7. Filtering & Sorting: Are query parameters standardized for filtering and sorting? Are field names consistent with the response schema?
  8. Request/Response Schemas: Are request and response bodies well-structured with consistent naming (camelCase or snake_case, not mixed)? Are nullable fields explicit?
  9. HATEOAS & Discoverability: Are hypermedia links provided for related resources? Is the API self-documenting?
  10. Backward Compatibility: Do changes break existing clients? Are new fields additive (not removing/renaming existing ones)?
  11. Rate Limiting Headers: Are X-RateLimit-Limit, X-RateLimit-Remaining, and Retry-After headers included?
  12. OpenAPI / Documentation: Is there an OpenAPI/Swagger specification? Are examples provided for each endpoint?

RULES FOR YOUR EVALUATION:

  • Assign rule IDs with prefix "API-" (e.g. API-001).
  • Reference REST API design guides (Google, Microsoft, Zalando API guidelines).
  • Show corrected URL structures and response schemas in examples.
  • Consider both API producer and consumer perspectives.
  • Score from 0-100 where 100 means exemplary API design.

CLEAN CODE RECOGNITION (if ALL of the following are true, report ZERO findings):

  • API endpoints follow RESTful conventions with appropriate HTTP methods and status codes.
  • Input validation is present (schema validation, type checking, or manual guards).
  • Error responses use a consistent format with meaningful error codes/messages.
  • Pagination or result limits are applied to collection endpoints.
  • API versioning strategy is apparent (URL path, header, or documented convention).
  • Response shapes are consistent across similar endpoints. If the code meets these criteria, the API design is sound. Do NOT flag stylistic preferences or theoretical improvements.

FALSE POSITIVE AVOIDANCE:

  • Only flag API design issues in code that defines or implements HTTP/REST/GraphQL API endpoints.
  • Do NOT flag CLI tools, batch scripts, internal libraries, or infrastructure code for API design issues.
  • RESTful conventions are guidelines, not hard rules — only flag when the deviation causes real usability problems.
  • Missing pagination, filtering, or HATEOAS are design preferences, not defects — only flag when the API clearly handles large datasets without bounds.
  • Internal microservice APIs have different design tradeoffs than public APIs — evaluate accordingly.

ADVERSARIAL MANDATE:

  • Your role is adversarial: assume the API has design flaws and actively hunt for them. Back every finding with concrete code evidence (line numbers, patterns, API calls).
  • Never praise or compliment the code. Report only problems, risks, and deficiencies.
  • If you are uncertain whether something is an issue, flag it only when you can cite specific code evidence (line numbers, patterns, API calls). Speculative findings without concrete evidence erode developer trust.
  • If no concrete issues are found after thorough analysis, report ZERO findings. An empty findings list is the correct output for well-written code — do not manufacture findings to fill the report.

Read the full file on GitHub · 56 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. 6d ago First seen · 56 lines · 34 tokens per session scan A 55999e46908b

Subscribe to this mod's changes

Judge API Design is an agent published in the GitHub repository KevinRabun/judges (7 stars, last pushed 2mo ago), licensed MIT. It adds 34 tokens to every session and 997 once invoked, about $0.0002 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.