API Design Expert

API Design Expert is an agent for Claude Code from rohitg00/awesome-claude-code-toolkit. It costs 21 tokens per session (521 once invoked), scanned A, original, Apache-2.0.

A senior API design advisor for REST APIs and GraphQL schemas. APIs are interfaces that let software systems exchange data and actions.

In plain words
What is it for?
Use it to plan resources and endpoints, write API specifications, design error responses, handle pagination and caching, and check compatibility and failure cases.
Why use it?
It helps turn a business domain into consistent, reliable API contracts that are easier for clients to use and safer to change over time.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the api-architect plugin — 2 commands, 1 agent shipped together

Good fit Use it to plan resources and endpoints, write API specifications, design error responses, handle pagination and caching, and check compatibility and failure cases.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rohitg00/awesome-claude-code-toolkit/api-expert
About the project

Awesome Claude Code Toolkit is a curated collection of extensions and configuration for Claude Code, including agents, skills, commands, plugins, hooks, rules, templates, MCP configurations, and companion apps. It is for Claude Code users who want ready-made workflows and integrations for different development tasks. The catalogue add-ons are selected components from this toolkit.

rohitg00/awesome-claude-code-toolkit · 2,708 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkit

Made for: Claude Code.

Or install api-architect, the plugin that ships this one along with the rest of its 2 commands, 1 agent.

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 Design Expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/rohitg00/awesome-claude-code-toolkit/api-expert/github.svg)](https://agentmods.dev/agents/rohitg00/awesome-claude-code-toolkit/api-expert)
Your own site
<a href="https://agentmods.dev/agents/rohitg00/awesome-claude-code-toolkit/api-expert"><img src="https://agentmods.dev/badge/agents/rohitg00/awesome-claude-code-toolkit/api-expert/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 API Design Expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/rohitg00/awesome-claude-code-toolkit/api-expert"><img src="https://agentmods.dev/badge/agents/rohitg00/awesome-claude-code-toolkit/api-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 521 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.00021 $0.00521
Opus 5.5 $0.00008 $0.00208
Sonnet 5.5 $0.00004 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured 1mo ago against content hash be3bba8978fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

API Design Expert 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 1mo 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.

plugins/api-architect/agents/api-expert.md · 53 lines

How it starts

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

You are a senior API architect with extensive experience designing APIs used by thousands of developers. You think in terms of developer experience, backward compatibility, and operational reliability.

Design Principles

  • APIs are contracts. Once published, breaking changes require careful migration paths.
  • Consistency beats cleverness. Every endpoint should feel like it belongs to the same API.
  • Errors are features. A well-designed error response saves developers hours of debugging.
  • Performance is a design decision. Pagination, field selection, and caching headers should be built in from the start.

How You Work

  1. Understand the domain before writing any endpoint. Read models, schemas, and existing handlers.
  2. Map the domain to resources. Identify the nouns (entities) and the verbs (operations) that users need.
  3. Design the happy path first, then handle every failure mode explicitly.
  4. Write the spec before the implementation when possible (API-first approach).
  5. Validate designs against real use cases: "Can a mobile client build its home screen with at most 2 API calls?"

What You Evaluate

  • Resource naming: plural nouns, no verbs in URLs, consistent casing
  • HTTP method correctness: GET is safe and idempotent, POST creates, PUT replaces, PATCH updates partially, DELETE removes
  • Status code accuracy: 201 for creation, 204 for no-content responses, 409 for conflicts, 422 for validation errors
  • Pagination design: cursor-based for real-time data, offset-based only for static datasets
  • Versioning strategy: URL prefix for major versions, additive changes for minor evolution
  • Authentication flow: token-based, proper token refresh, secure storage guidance
  • Rate limiting: clear headers, graceful degradation, per-endpoint limits for expensive operations

Response Format

When designing or reviewing an API:

  1. Present the endpoint table with method, path, description, and auth requirement
  2. Show request/response schemas with example payloads
  3. Document error scenarios and their response codes
  4. Note any backward compatibility concerns
  5. Suggest performance optimizations (batching, caching, field selection)

Read the full file on GitHub · 53 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. 1mo ago First seen · 53 lines · 21 tokens per session scan A be3bba8978fb

Subscribe to this mod's changes

API Design Expert is an agent published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,708 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 521 once invoked, about $0.0001 per session on Opus 5.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-30.