api-designer

api-designer is an agent for Claude Code from Yassinello/claude-plugin-prd-workflow. It costs 18 tokens per session (580 once invoked), scanned A, original, MIT.

An agent for planning REST and GraphQL APIs, which are structured ways for software systems to communicate. It also covers OpenAPI, a format for describing and documenting an API.

In plain words
What is it for?
Use it to design REST or GraphQL interfaces, plan versioning and pagination, define error responses, and create OpenAPI documentation.
Why use it?
It helps resolve design choices about endpoints, data queries, versions, pagination, errors, and rate limits before implementation creates inconsistencies.

Agent for Claude Code

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 agents/yassinello/claude-plugin-prd-workflow/api-designer
Clone the repo
git clone --depth 1 https://github.com/Yassinello/claude-plugin-prd-workflow

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/yassinello/claude-plugin-prd-workflow/api-designer.svg)](https://agentmods.dev/agents/yassinello/claude-plugin-prd-workflow/api-designer)
Your own site
<a href="https://agentmods.dev/agents/yassinello/claude-plugin-prd-workflow/api-designer"><img src="https://agentmods.dev/badge/agents/yassinello/claude-plugin-prd-workflow/api-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 580 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.00018 $0.00580
Opus 5 $0.00009 $0.00290
Sonnet 5 $0.00004 $0.00116
Haiku 4.5 $0.00002 $0.00058

Measured 4d ago against content hash 6fbfaae5d6dd, 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.

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 · 82 lines

What it actually says

API Designer Agent

Expert guidance on designing REST/GraphQL APIs with best practices.

Expertise

  • REST Design: RESTful endpoints, HTTP verbs, resource naming
  • GraphQL: Schema design, queries, mutations, subscriptions
  • Versioning: URL path (/v1/), header (Accept: application/vnd.api.v2+json)
  • Pagination: Cursor-based vs offset-based
  • Error Handling: RFC 7807 Problem Details, consistent error codes
  • OpenAPI: Auto-generated documentation with examples
  • Rate Limiting: Per-user, per-IP, token bucket algorithm

Example: REST API Design

// List users with pagination
GET /api/v1/users?page=1&limit=20&sort=created_at&order=desc

Response:
{
  "data": [
    { "id": "usr_123", "email": "[email protected]", "name": "John Doe" }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 150,
    "pages": 8,
    "next": "/api/v1/users?page=2&limit=20"
  }
}

// Get single user
GET /api/v1/users/:id

// Create user
POST /api/v1/users
Body: { "email": "...", "name": "..." }

// Update user (partial)
PATCH /api/v1/users/:id
Body: { "name": "New Name" }

// Delete user
DELETE /api/v1/users/:id

Error Response Format

{
  "error": {
    "code": "USER_NOT_FOUND",
    "message": "User with ID usr_123 not found",
    "status": 404,
    "details": {
      "user_id": "usr_123"
    }
  }
}

Best Practices

  1. Use plural nouns for resources (/users, not /user)
  2. HTTP verbs: GET (read), POST (create), PATCH (update), DELETE (delete)
  3. Versioning in URL: /api/v1/users (clear, cache-friendly)
  4. Pagination required: Prevent large responses
  5. Rate limiting: 1000 req/hour per API key
  6. Auth: Bearer tokens (JWT) in Authorization header
  7. CORS: Configure properly for web clients
  8. OpenAPI spec: Auto-generate docs from code
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 · 82 lines · 18 tokens per session scan A 6fbfaae5d6dd

Subscribe to this mod's changes

api-designer is an agent published in the GitHub repository Yassinello/claude-plugin-prd-workflow (12 stars, last pushed 9mo ago), licensed MIT. It adds 18 tokens to every session and 580 once invoked, about $0.0001 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-30.

Related

Other agents, from other repositories

release-manager

Cuts a brooks-lint release: sets the version in package.json, propagates it across the four plugin manifests and every version-bearing text file via npm run bump, writes the CHANGELOG entry, re-validates, then commits, pushes to main, tags, and publishes the GitHub release. Final pipeline stage of the brooks-harness…

hyhmrright/brooks-lint · 85 tokens

implementer

Takes one self-contained story from plan to commit or PR on its own branch, with tests and a self-review. Works only in the directory it was given, respects the hardware ceiling and the manifest of shared zones, and reports with raw command output rather than adjectives.

jjanczur/tyran · 57 tokens

spec-reviewer

Reviews design specifications for completeness, consistency, and implementability.

greglas75/zuvo · 16 tokens

company-finder

Discovery-mode agent. Given industry, geo, role, and size-band filters, finds candidate companies by composing WebSearch queries, OSM Overpass calls, and GitHub org searches. Emits structured candidate records back to the orchestrator — never writes files.

greglas75/zuvo · 55 tokens

evolve-tdd-engineer

Test-first agent for the Evolve Loop. Writes failing tests that encode acceptance criteria BEFORE Builder writes any production code. RED phase is the proof of understanding. Runs on Opus (tier-1) for anti-cooperative-bias separation from Builder's Sonnet (tier-2).

mickeyyaya/evolve-loop · 64 tokens

host-analyst

Analyzes SSH hardening, accounts, firewall, patch posture, logging, and filesystem checks for a single host bundle.

greglas75/zuvo · 29 tokens