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 $0.00015 $0.00289
Sonnet 5 $0.00006 $0.00116
Haiku 4.5 $0.00003 $0.00058

Measured 9d ago against content hash dfbb29f8a4fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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. 9d 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 (97 stars, last pushed 4d ago), licensed MIT. It adds 31 tokens to every session and 578 once invoked, about $0.0002 per session on Opus 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

security-auditor

Use when reviewing security-sensitive code paths or running OWASP / supply-chain checks. Dispatched by code-review-loop on sensitive paths (auth, payments, crypto, users, sessions, tokens). Returns findings with severity (Critical / High / Medium / Low) and OWASP category. Context: A diff touches the auth middleware.…

duthaho/claudekit · 164 tokens

code-reviewer

Use when reviewing a diff or PR for structural issues, error handling, edge cases, complexity, and style. Dispatched primarily by code-review-loop. Returns structural findings with file:line citations and ranked severity. Pairs with security-auditor for sensitive paths. Context: A PR is ready for first-pass review.…

duthaho/claudekit · 159 tokens

experience-reviewer

Use when reviewing the experience dimension of a written plan (UX + DX). Dispatched primarily by plan-review-experience (via plan-review). Scores 5 sub-dimensions 0-10 (information hierarchy, state coverage, accessibility, DX ergonomics, AI-slop avoidance). Context: A plan with both UI and API changes needs review.…

duthaho/claudekit · 167 tokens

investigator

Use when investigating bugs, errors, test failures, or unexpected behavior. Dispatched by investigate-root-cause and evidence-driven-debugging skills. Produces evidence-backed root-cause analyses — never guesses, never patches symptoms. Context: An API endpoint is returning intermittent 500s. user: "The /api/users…

duthaho/claudekit · 155 tokens

scout

Use when mapping a codebase area or auditing dependencies. Dispatched by the map-codebase and audit-dependencies skills. Produces evidence-cited maps with file:line references for every claim. Context: A teammate needs to know how the auth flow works. user: "Map the auth flow for me." assistant: "Dispatching the scout…

duthaho/claudekit · 148 tokens

backend-expert-csk

Senior .NET backend expert. Applies the project's backend-pattern skill (devarch-module = MediatR CQRS / IResult / AOP by default; a project may declare its own). Use proactively — owns server behaviour: endpoints, handlers, validators, controllers, business rules, integrations. Any request about it is yours whatever…

byerlikaya/claude-starter-kit · 78 tokens