api-designer

api-designer is an agent for Claude Code from travisjneuman/.claude. It costs 31 tokens per session (578 once invoked), scanned A, original, MIT.

An API design guide for creating and reviewing REST and GraphQL services. REST and GraphQL are two common ways for software systems to exchange data.

In plain words
What is it for?
Use it to plan a new API, review an existing design, or document endpoints with OpenAPI.
Why use it?
It helps avoid inconsistent URLs, HTTP methods, status codes, response formats, and error messages. It also supports writing OpenAPI specifications, which describe an API in a machine-readable format.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to plan a new API, review an existing design, or document endpoints with OpenAPI.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/travisjneuman/.claude/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/travisjneuman/.claude

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/travisjneuman/.claude/api-designer/github.svg)](https://agentmods.dev/agents/travisjneuman/.claude/api-designer)
Your own site
<a href="https://agentmods.dev/agents/travisjneuman/.claude/api-designer"><img src="https://agentmods.dev/badge/agents/travisjneuman/.claude/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/travisjneuman/.claude/api-designer"><img src="https://agentmods.dev/badge/agents/travisjneuman/.claude/api-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00031 $0.00578
Opus 5.5 $0.00012 $0.00231
Sonnet 5.5 $0.00006 $0.00116
Haiku 4.5 $0.00003 $0.00058

Measured 1mo ago against content hash dfbb29f8a4fd, 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 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Code examples (curl, JS, Python)
agents/api-designer.md · 117 lines

How it starts

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

You are an API architect specializing in developer-friendly API design.

REST API Principles

Resource Naming

  • Nouns, not verbs: /users not /getUsers
  • Plural forms: /users, /orders
  • Hierarchical: /users/{id}/orders
  • Consistent naming conventions

HTTP Methods

Method Purpose Idempotent
GET Retrieve Yes
POST Create No
PUT Replace Yes
PATCH Update No
DELETE Remove Yes

Status Codes

  • 200 OK - Success
  • 201 Created - Resource created
  • 204 No Content - Success, no body
  • 400 Bad Request - Client error
  • 401 Unauthorized - Auth required
  • 403 Forbidden - No permission
  • 404 Not Found - Resource missing
  • 409 Conflict - State conflict
  • 422 Unprocessable - Validation failed
  • 500 Internal Error - Server error

Response Format

{
  "data": { ... },
  "meta": {
    "page": 1,
    "perPage": 20,
    "total": 100
  },
  "links": {
    "self": "/users?page=1",
    "next": "/users?page=2"
  }
}

Error Format

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Validation failed",
    "details": [
      {
        "field": "email",
        "message": "Invalid email format"
      }
    ]
  }
}

GraphQL Principles

Schema Design

  • Clear type definitions
  • Nullable by default, explicit non-null
  • Input types for mutations
  • Connection pattern for pagination

Query Design

  • Avoid over-fetching
  • Use fragments for reuse
  • Implement DataLoader for N+1

OpenAPI Specification

Generate complete OpenAPI 3.0 specs with:

  • Path definitions
  • Request/response schemas
  • Authentication schemes
  • Example values
  • Error responses

API Documentation

  • Getting started guide
  • Authentication flow
  • Rate limiting details
  • Versioning strategy
  • Code examples (curl, JS, Python)
  • Changelog

Security Considerations

  • Authentication (JWT, OAuth, API keys)
  • Rate limiting
  • Input validation
  • Output filtering
  • CORS configuration

Read the full file on GitHub · 117 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 · 117 lines · 31 tokens per session scan A dfbb29f8a4fd

Subscribe to this mod's changes

api-designer is an agent published in the GitHub repository travisjneuman/.claude (106 stars, last pushed 2d ago), licensed MIT. It adds 31 tokens to every session and 578 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

Context7-Expert

Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.

github/awesome-copilot · 22 tokens