api-design

api-design is a skill for Claude Code, Codex from Omar-Obando/qwen-orchestrator. It costs 34 tokens per session (1,122 once invoked), scanned A, original, MIT.

Guidance for designing REST and GraphQL APIs: services that let programs exchange data and perform actions. It covers endpoints, data formats, versions, lists, filters, errors, and documentation.

In plain words
What is it for?
Planning API routes and schemas, defining request and response formats, adding pagination and filtering, handling errors, versioning an API, and documenting its behaviour.
Why use it?
It helps keep an API predictable for the people and applications that use it, reducing confusion when handling requests, responses, failures, and future changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Planning API routes and schemas, defining request and response formats, adding pagination and filtering, handling errors, versioning an API, and documenting its behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/omar-obando/qwen-orchestrator/api-design
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 Omar-Obando/qwen-orchestrator --skill api-design
Clone the repo
git clone --depth 1 https://github.com/Omar-Obando/qwen-orchestrator

Made for: Claude Code, Codex.

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-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/omar-obando/qwen-orchestrator/api-design/github.svg)](https://agentmods.dev/skills/omar-obando/qwen-orchestrator/api-design)
Your own site
<a href="https://agentmods.dev/skills/omar-obando/qwen-orchestrator/api-design"><img src="https://agentmods.dev/badge/skills/omar-obando/qwen-orchestrator/api-design/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-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/omar-obando/qwen-orchestrator/api-design"><img src="https://agentmods.dev/badge/skills/omar-obando/qwen-orchestrator/api-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,122 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.00034 $0.01122
Opus 5 $0.00017 $0.00561
Sonnet 5 $0.00007 $0.00224
Haiku 4.5 $0.00003 $0.00112

Measured 9d ago against content hash 243161542b4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

api-design 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 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.

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-design/SKILL.md · 165 lines

How it starts

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

API Design Skill — Professional API Patterns

This skill provides comprehensive API design guidance following industry best practices.

RESTful API Standards

URL Structure

GET    /api/v1/resources              # List (paginated, filtered)
GET    /api/v1/resources/:id          # Detail (with includes)
POST   /api/v1/resources              # Create
PATCH  /api/v1/resources/:id          # Partial update
PUT    /api/v1/resources/:id          # Full replace
DELETE /api/v1/resources/:id          # Delete (soft by default)
POST   /api/v1/resources/:id/restore  # Restore soft-deleted

Response Envelope

// Success - Single
{ data: { ... }, meta: { requestId, timestamp } }

// Success - Collection
{
  data: [...],
  meta: { requestId, timestamp },
  pagination: {
    page: 1,
    perPage: 20,
    total: 150,
    totalPages: 8,
    hasNext: true,
    hasPrev: false
  }
}

// Error
{
  error: {
    code: "VALIDATION_ERROR",
    message: "Human-readable message",
    details: [
      { field: "email", message: "Invalid email format" }
    ]
  },
  meta: { requestId, timestamp }
}

Filtering & Sorting

GET /api/v1/products?
  filter[category]=electronics&
  filter[price_min]=10&
  filter[price_max]=100&
  filter[status]=active&
  sort=-createdAt,name&
  page=2&
  perPage=50&
  include=category,variants

HTTP Status Codes

Code Usage
200 Success (GET, PATCH, PUT, DELETE)
201 Created (POST)
204 No Content (successful DELETE with no body)
400 Validation Error
401 Unauthorized (missing/invalid auth)
403 Forbidden (insufficient permissions)
404 Not Found
409 Conflict (duplicate, version mismatch)
422 Unprocessable Entity (business rule violation)
429 Too Many Requests (rate limiting)
500 Internal Server Error

Read the full file on GitHub · 165 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 165 lines · 34 tokens per session scan A 243161542b4e

Subscribe to this mod's changes

api-design is a skill published in the GitHub repository Omar-Obando/qwen-orchestrator (49 stars, last pushed 2mo ago), licensed MIT. It adds 34 tokens to every session and 1,122 once invoked, about $0.0002 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.