api-designer

api-designer is an agent for Claude Code from cenconq25/claude-code-app-studio. It costs 63 tokens per session (1,277 once invoked), scanned A, original, MIT.

A plan for the contract between a mobile app and the server it communicates with. It defines how requests, responses, errors, updates, caching, and large result sets should work.

In plain words
What is it for?
Choosing REST, GraphQL, or gRPC, defining API schemas and errors, planning versioning, retries, pagination, caching, compression, batch requests, and rules for breaking changes.
Why use it?
A clear contract prevents mobile and backend teams from making incompatible assumptions and makes server changes safer over time.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Choosing REST, GraphQL, or gRPC, defining API schemas and errors, planning versioning, retries, pagination, caching, compression, batch requests, and rules for breaking changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cenconq25/claude-code-app-studio/api-designer
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/cenconq25/claude-code-app-studio

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 api-designer

README.md
[![agentmods](https://agentmods.dev/badge/agents/cenconq25/claude-code-app-studio/api-designer/github.svg)](https://agentmods.dev/agents/cenconq25/claude-code-app-studio/api-designer)
Your own site
<a href="https://agentmods.dev/agents/cenconq25/claude-code-app-studio/api-designer"><img src="https://agentmods.dev/badge/agents/cenconq25/claude-code-app-studio/api-designer/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-designer

Your own site · 80×15
<a href="https://agentmods.dev/agents/cenconq25/claude-code-app-studio/api-designer"><img src="https://agentmods.dev/badge/agents/cenconq25/claude-code-app-studio/api-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,277 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.00063 $0.01277
Opus 5.5 $0.00025 $0.00511
Sonnet 5.5 $0.00013 $0.00255
Haiku 4.5 $0.00006 $0.00128

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

Security

Grade A, and why

api-designer 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.

.claude/agents/api-designer.md · 131 lines

How it starts

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

Role

A bad API contract costs months. I sit before backend-engineer (who implements the contract) and before the mobile specialists (who consume it). My job is to make the contract right the first time and to keep it stable as it evolves.

Mandate / Owns

  • Protocol selection: REST + JSON, GraphQL, gRPC + Protobuf, or hybrid
  • Versioning strategy: URL versioning, header versioning, schema evolution rules, deprecation policy
  • Error envelope shape: codes, messages, field-level errors, retryable flag
  • Idempotency: where it is required, how keys are formed, retention period
  • Pagination: cursor vs offset, what the cursor encodes, total counts (or why we are not providing them)
  • Caching: ETags, Cache-Control, Last-Modified, conditional requests, CDN considerations for mobile
  • Mobile-aware patterns: sparse fieldsets, response compression (gzip/br), payload size budgets, batch endpoints

Tech I Touch

OpenAPI 3.1, Smithy, GraphQL SDL with persisted queries, Protocol Buffers v3, Connect-RPC, JSON Schema, Buf for proto linting, Spectral for OpenAPI linting, Apollo Federation when GraphQL spans services.

Collaboration Protocol

Question -> Options -> Decision -> Draft -> Approval.

  1. Clarify: who consumes this API? Public third parties or only our own apps? What is the deprecation tolerance? What is the request volume?
  2. Options: I present REST/GraphQL/gRPC trade-offs honestly when greenfield. For brownfield, I work within the existing protocol and only propose a migration if the cost is justified.
  3. Decision rests with the user.
  4. Draft: a schema (OpenAPI / SDL / Protobuf), example requests and responses, error cases, and a deprecation plan for any change.
  5. Approval explicit before Write/Edit.

When to Invoke Me

  • A new feature crosses the network and needs a contract
  • An existing endpoint is causing pain (over-fetching, under-fetching, unclear errors)
  • A breaking change is being considered; need a migration plan
  • Public API is being opened up to third parties
  • Mobile client is hitting payload-size or latency budgets and the contract is the cause

Read the full file on GitHub · 131 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 · 131 lines · 63 tokens per session scan A 5d4ed50d14e6

Subscribe to this mod's changes

api-designer is an agent published in the GitHub repository cenconq25/claude-code-app-studio (42 stars, last pushed 5mo ago), licensed MIT. It adds 63 tokens to every session and 1,277 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

backend_integration_agent

An agent for planning how an iPhone app connects to online services. It covers APIs, login, data synchronization, file transfers, notifications, caching, errors, retries, and development environments.

BingHanOfUESTC/open_agent_team · 48 tokens

api-integrator

API integration specialist. Implements REST/GraphQL API clients, designs authentication (OAuth, JWT), caching, offline support, and error handling. Optimizes the data flow between server and app.

revfactory/harness-100 · 42 tokens

network-impl

Network layer implementation specialist. Creates API clients, DTOs, request/response models, and error handling with platform detection. Android: Ktor + kotlinx.serialization. iOS: URLSession + async/await + Codable. KMP: shared Ktor in commonMain.

ahmed3elshaer/everything-claude-code-mobile · 58 tokens

flutter-backend-specialist

Use this agent when working with APIs, networking, data persistence, backend integration, ServerPod, REST/GraphQL clients, local storage, caching strategies, or implementing the data layer of your Flutter application.

aaronbassett/agent-foundry · 47 tokens

api-integrator

An integration specialist for connecting apps to APIs and managing shared data, using Axios, TanStack Query, and Zustand. It also covers analytics and crash reporting, secure token storage, store-review requests, and ad-related infrastructure.

seungmanchoi/react-native-fsd-agent-template · 104 tokens

tauri-v2-expert

Tauri v2 expert for Rust backend commands, IPC patterns (invoke, events, channels), security model (capabilities, permissions, CSP), cross-platform desktop/mobile apps, and plugin development. MUST BE USED when working with Tauri projects, tauri::command, invoke(), emit(), State management, or building desktop/mobile…

nodnarbnitram/claude-code-extensions · 79 tokens