agent-api-designer

agent-api-designer is a skill for Claude Code from travisjneuman/.claude. It costs 36 tokens per session (587 once invoked), scanned A, original, MIT.

An API design specialist for REST and GraphQL, two common ways for software to communicate over a network. It helps define resource names, HTTP methods, status codes, response formats, and OpenAPI specifications.

In plain words
What is it for?
Use it to design or review REST and GraphQL APIs, define error responses, structure pagination, and document an API with OpenAPI.
Why use it?
It helps make APIs predictable for the developers and programs that use them. Clear conventions reduce confusion around requests, errors, updates, and returned data.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: agent in frontmatter; mentions subagents.

Good fit Use it to design or review REST and GraphQL APIs, define error responses, structure pagination, and document an API with OpenAPI.

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

Any agent
npx skills add travisjneuman/.claude --skill agent-api-designer
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 agent-api-designer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/travisjneuman/.claude/agent-api-designer"><img src="https://agentmods.dev/badge/skills/travisjneuman/.claude/agent-api-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 587 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.00036 $0.00587
Opus 5.5 $0.00014 $0.00235
Sonnet 5.5 $0.00007 $0.00117
Haiku 4.5 $0.00004 $0.00059

Measured 17d ago against content hash 950d5ed2d647, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-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 17d 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)
skills/agent-api-designer/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 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 · 120 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. 17d ago First seen · 120 lines · 36 tokens per session scan A 950d5ed2d647

Subscribe to this mod's changes

agent-api-designer is a skill published in the GitHub repository travisjneuman/.claude (101 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 587 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-09-30.