review-api-design

review-api-design is a skill for Claude Code from psenger/ai-agent-skills. It costs 116 tokens per session (1,799 once invoked), scanned A, original, MIT.

A planning-stage review of REST API designs, including endpoint lists, OpenAPI specifications, and API contracts. REST APIs are interfaces that let software exchange data through web requests.

In plain words
What is it for?
Reviewing endpoint structure, request and response contracts, authentication plans, resilience, security, and operational concerns before implementation.
Why use it?
It can expose security, reliability, operational, and design gaps before developers build the API and make those choices expensive to change.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the psenger-skills plugin — 14 skills shipped together

Good fit Reviewing endpoint structure, request and response contracts, authentication plans, resilience, security, and operational concerns before implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/psenger/ai-agent-skills/review-api-design
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.

Any agent
npx skills add psenger/ai-agent-skills --skill review-api-design
Clone the repo
git clone --depth 1 https://github.com/psenger/ai-agent-skills

Made for: Claude Code.

Or install psenger-skills, the plugin that ships this one along with the rest of its 14 skills.

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 review-api-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/psenger/ai-agent-skills/review-api-design/github.svg)](https://agentmods.dev/skills/psenger/ai-agent-skills/review-api-design)
Your own site
<a href="https://agentmods.dev/skills/psenger/ai-agent-skills/review-api-design"><img src="https://agentmods.dev/badge/skills/psenger/ai-agent-skills/review-api-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for review-api-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/psenger/ai-agent-skills/review-api-design"><img src="https://agentmods.dev/badge/skills/psenger/ai-agent-skills/review-api-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,799 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00116 $0.01799
Opus 5 $0.00058 $0.00899
Sonnet 5 $0.00023 $0.00360
Haiku 4.5 $0.00012 $0.00180

Measured 11d ago against content hash d68e70ad4fee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

review-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 11d 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.

skills/review-api-design/SKILL.md · 162 lines

How it starts

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

REST API Design Review

Review the following API design: $ARGUMENTS

If no design was provided above, ask for an API design to review (OpenAPI spec, endpoint list, or verbal description).

This skill vets API designs before implementation — during the planning phase. It reviews contracts, endpoint structures, and architectural decisions against proven best practices. Reviews are constructive but thorough — challenging the design, flagging gaps, and surfacing trade-offs.

When This Skill Activates

  • An OpenAPI/Swagger specification (YAML or JSON)
  • A list of endpoints with descriptions
  • A verbal description of an API being planned
  • A diagram or document describing API architecture
  • Questions about how to design specific API aspects

Workflow

Step 1: Understand the Context

Before reviewing, gather context. Ask about anything not already clear:

  1. Domain — What business domain does this API serve?
  2. Consumers — Who will call this API? (frontend, mobile, third-party, internal services)
  3. Scale — Expected traffic volume and growth trajectory
  4. Auth requirements — What authentication/authorization is planned?
  5. Deployment — Where will this run? (cloud provider, on-prem, serverless)
  6. Existing systems — Does this integrate with legacy systems or other APIs?
  7. Team — How experienced is the team with REST API development?

Do not ask all of these mechanically. Read what was already provided and only ask what's missing and relevant. If given an OpenAPI spec, extract most of this from the spec itself.

When the input is a vague verbal description (no concrete endpoints, no spec, no endpoint list — just "I'm building an API for X"), asking clarifying questions is mandatory before producing any review. A vague description does not contain enough information to assign severity levels or make specific recommendations. Ask 3-5 targeted questions, wait for answers, then proceed to Step 2. Do not produce a full review from a verbal description alone.

Read the full file on GitHub · 162 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. 11d ago First seen · 162 lines · 116 tokens per session scan A d68e70ad4fee

Subscribe to this mod's changes

review-api-design is a skill published in the GitHub repository psenger/ai-agent-skills (10 stars, last pushed 3mo ago), licensed MIT. It adds 116 tokens to every session and 1,799 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

sdd-apply

Skill "sdd-apply" from Gentleman-Programming/gentle-ai, covering execution role, language domain contract, purpose, what you receive and execution and persistence contract.

Gentleman-Programming/gentle-ai · 0 tokens

design-patterns

Agents should invoke this skill when choosing patterns, designing traits/interfaces/components, deciding abstraction boundaries, evaluating dependency injection/callbacks, or comparing implementation approaches in Rust, TypeScript/React, or Django/Python.

waybarrios/opencode-power-pack · 46 tokens

mcp-builder

Guide the creation of high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when the user wants to build an MCP server to integrate an external API or service, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

waybarrios/opencode-power-pack · 68 tokens

argot-suggest-rules

Turn a convention argot has already discovered into a scripted custom rule. Runs argot conventions, surfaces the repo's mined placement conventions (where a kind of code lives — "validation in schema files", "DB access only in migrations", "business logic in the service layer, not views") and internal-API vocabulary…

get-tmonier/argot · 173 tokens

mold

Turn a high-leverage design decision into an approved spec through grounded dialogue. Use it when a leverage trigger fires (auth, irreversible effects, concurrency, contracts, destructive ops, a new slice, a cross-slice dependency, an invariant gap) or when the user asks for a spec or design. Typical phrases include…

paulnsorensen/easy-cheese · 182 tokens

boundary-validation

This skill should be used when the user asks to "validate input", "parse request data", "handle form data", "add Zod schema", "sanitize user input", or creates API endpoints and system boundaries. Provides parse-don't-validate patterns with schema validation for type-safe boundary enforcement and hostile input defense.

dean0x/devflow · 67 tokens