api-designer

api-designer is a skill for Claude Code, Codex from wyattowalsh/agents. It costs 53 tokens per session (2,339 once invoked), scanned A, original, MIT.

A contract-first API design tool for REST, GraphQL, and gRPC—the common ways software systems communicate. It creates and reviews OpenAPI 3.1 specifications, which formally describe an API's operations and data.

In plain words
What is it for?
Use it to design API endpoints, review an existing API, plan versioning and compatibility, and generate starter client code from the API description.
Why use it?
It clarifies how an API should work before implementation and helps identify changes that would break existing users or applications.

Skill for Claude CodeCodex

Part of the agents plugin — 16 skills, 20 agents, 5 hooks shipped together

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.

agentmods
npx agentmods add skills/wyattowalsh/agents/api-designer
Any agent
npx skills add wyattowalsh/agents --skill api-designer
Clone the repo
git clone --depth 1 https://github.com/wyattowalsh/agents

Made for: Claude Code, Codex.

Or install agents, the plugin that ships this one along with the rest of its 16 skills, 20 agents, 5 hooks.

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/skills/wyattowalsh/agents/api-designer.svg)](https://agentmods.dev/skills/wyattowalsh/agents/api-designer)
Your own site
<a href="https://agentmods.dev/skills/wyattowalsh/agents/api-designer"><img src="https://agentmods.dev/badge/skills/wyattowalsh/agents/api-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,339 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00053 $0.02339
Opus 5 $0.00026 $0.01170
Sonnet 5 $0.00011 $0.00468
Haiku 4.5 $0.00005 $0.00234

Measured 4d ago against content hash cfb585d533f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d ago.

The scan reads SKILL.md. This mod also ships 11 executable files (scripts/api-endpoint-matrix.py, scripts/api-spec-validator.py, scripts/asset_toolkit/__init__.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/api-designer/SKILL.md · 220 lines

How it starts

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

API Designer

Contract-first API design across REST, GraphQL, and gRPC. Produces OpenAPI 3.1 specs, reviews existing APIs, analyzes backward compatibility, and scaffolds client code.

Canonical Vocabulary

Term Definition
spec An OpenAPI 3.1 document (YAML or JSON) describing an API's surface
endpoint A path + method combination in a REST API; a query/mutation in GraphQL; an RPC in gRPC
breaking change Any modification that causes existing clients to fail without code changes
non-breaking change A backward-compatible modification (additive fields, new endpoints, optional params)
resource A domain entity exposed through the API (noun-based URL segment in REST)
contract The formal agreement between API producer and consumer defined by the spec
protocol The API paradigm: REST, GraphQL, or gRPC
surface The complete set of endpoints, types, and operations an API exposes
versioning strategy How breaking changes are communicated: URL path, header, or query parameter

Dispatch

$ARGUMENTS Action
design <requirements> Design a new API from requirements
spec <code or path> Generate OpenAPI 3.1 spec from existing code
review <spec or path> Audit an existing API design
version <spec or path> Versioning and deprecation strategy
compat <old> <new> Backward compatibility diff analysis
sdk <spec or path> Scaffold client code structure
Natural language about API design Auto-detect mode from intent
Empty Show mode menu with examples

Mode Menu (empty args)

# Mode Example
1 Design design "User management API with RBAC"
2 Spec spec src/routes/
3 Review review openapi.yaml
4 Version version openapi.yaml
5 Compat compat v1.yaml v2.yaml
6 SDK sdk openapi.yaml

Pick a number or describe what you need.

Read the full file on GitHub · 220 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. 4d ago First seen · 220 lines · 53 tokens per session scan A cfb585d533f9

Subscribe to this mod's changes

api-designer is a skill published in the GitHub repository wyattowalsh/agents (5 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 2,339 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens