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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to design REST or GraphQL interfaces, plan versioning and pagination, define error responses, and create OpenAPI documentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yassinello/claude-plugin-prd-workflow/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/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/github.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/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/yassinello/claude-plugin-prd-workflow/api-designer"><img src="https://agentmods.dev/badge/agents/yassinello/claude-plugin-prd-workflow/api-designer.svg" alt="Reviewed on agentmods" width="80" 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. 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.00018 $0.00580
Opus 5.5 $0.00007 $0.00232
Sonnet 5.5 $0.00004 $0.00116
Haiku 4.5 $0.00002 $0.00058

Measured 3mo ago against content hash 6fbfaae5d6dd, 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 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 3mo 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. 3mo 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 (13 stars, last pushed 1y ago), licensed MIT. It adds 18 tokens to every session and 580 once invoked, about $0.0001 per session on Opus 5.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

api-designer compared with agents from other repositories

api-designer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-designerYassinello/claude-plugin-prd-workflowAgent131y agoMITA18Claude Code
quality-fixer-frontendshinpr/claude-code-workflowsAgent725yesterdayMITA47Claude Code
task-executor-frontendshinpr/claude-code-workflowsAgent725yesterdayMITA55Claude Code
task-executorshinpr/claude-code-workflowsAgent725yesterdayMITA55Claude Code
document-reviewershinpr/claude-code-workflowsAgent725yesterdayMITA39Claude Code
quality-fixershinpr/claude-code-workflowsAgent725yesterdayMITA44Claude Code
code-reviewershinpr/claude-code-workflowsAgent725yesterdayMITA40Claude Code