api-design-document

api-design-document is a skill for Claude Code from fattain-naime/engineering-docs. It costs 62 tokens per session (3,464 once invoked), scanned A, original, MIT.

A guide for writing a complete API specification: the agreed rules for how software services exchange requests and responses. It follows OpenAPI 3.1 and also covers REST, GraphQL, and event-based APIs.

In plain words
What is it for?
Use it to define resources, endpoints, data formats, authentication, versions, errors, rate limits, and pagination.
Why use it?
It makes the interface clear before implementation, reducing breaking changes and misunderstandings between the service and its users.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions Codex.

Part of the engineering-docs plugin — 22 skills, 4 agents, 1 hook, 1 MCP server shipped together

Good fit Use it to define resources, endpoints, data formats, authentication, versions, errors, rate limits, and pagination.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fattain-naime/engineering-docs/api-design-document
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 fattain-naime/engineering-docs --skill api-design-document
Clone the repo
git clone --depth 1 https://github.com/fattain-naime/engineering-docs

Made for: Claude Code.

Or install engineering-docs, the plugin that ships this one along with the rest of its 22 skills, 4 agents, 1 hook, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fattain-naime/engineering-docs/api-design-document"><img src="https://agentmods.dev/badge/skills/fattain-naime/engineering-docs/api-design-document.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,464 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00062 $0.03464
Opus 5.5 $0.00025 $0.01386
Sonnet 5.5 $0.00012 $0.00693
Haiku 4.5 $0.00006 $0.00346

Measured 1mo ago against content hash 8f38cb88e803, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-design-document 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 1mo 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-document/SKILL.md · 261 lines

How it starts

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

Purpose

Produce an API design document that defines the complete interface contract for a new or revised API. This document is the authoritative specification that drives implementation, consumer integration, testing, and documentation simultaneously.

The cost of a bad API design is permanent. Once consumers depend on it, changes are breaking changes. Getting the design right before the first line of implementation code is written is the highest-ROI investment in an API's lifetime.

Input

Works best with: The name of the API or service being designed. Also valuable: The domain entities and operations, consumer use cases, authentication context, existing API conventions in the codebase, performance requirements.

Example invocation: Design the API for a payment links system. Merchants create payment links with a custom amount, expiry, and description. Customers use the link to pay. Merchants can list, deactivate, and delete their links. Needs HMAC webhook notification on payment. Auth via Bearer token.

Key Concepts

Richardson Maturity Model

Target Level 2 or Level 3 (HATEOAS for discovery-driven APIs):

  • Level 0: Single endpoint, single verb - not REST
  • Level 1: Resources with unique URIs
  • Level 2: HTTP verbs and status codes used correctly - this is the minimum standard
  • Level 3: Hypermedia controls (HATEOAS) - optional, for discovery-driven APIs

Resource Modeling

  • Resources are nouns, not verbs: /payments not /createPayment
  • Resources map to domain entities: /merchants/{id}/payment-links
  • Use plural nouns for collections: /users, not /user
  • Nested resources imply ownership: GET /merchants/{id}/transactions

HTTP Semantics

Method Idempotent? Safe? Use For
GET Yes Yes Read resource(s)
POST No No Create resource, non-idempotent action
PUT Yes No Replace resource entirely
PATCH No No Partial update
DELETE Yes No Remove resource

Read the full file on GitHub · 261 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. 1mo ago First seen · 261 lines · 62 tokens per session scan A 8f38cb88e803

Subscribe to this mod's changes

api-design-document is a skill published in the GitHub repository fattain-naime/engineering-docs (6 stars, last pushed 23d ago), licensed MIT. It adds 62 tokens to every session and 3,464 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

build-falco-web-app

Build or modify a Falco web application in idiomatic F#, using functional routing, request and response helpers, explicit ASP.NET Core integration, security boundaries, and focused tests.

gaelic-ghost/socket · 42 tokens

build-giraffe-web-app

Build or modify a Giraffe web application in idiomatic F#, using composable HttpHandler functions, explicit ASP.NET Core integration, configuration, authentication, and focused endpoint tests.

gaelic-ghost/socket · 43 tokens

build-oxpecker-web-app

Build or modify an Oxpecker web application in idiomatic F#, using endpoint routing, functional EndpointHandler and EndpointMiddleware composition, ASP.NET Core metadata, and focused endpoint tests.

gaelic-ghost/socket · 44 tokens

swift-openapi-client-workflow

Build, integrate, test, and diagnose Swift OpenAPI Generator clients in Apple-platform apps and Swift packages using OpenAPIURLSession, OpenAPIRuntime, URLSessionTransport, SwiftPM plugins, Apple docs, Dash docsets, and clear handoffs to server-side Swift OpenAPI workflows when the API contract or server transport…

gaelic-ghost/socket · 73 tokens

aspnet-core-service-workflow

Plan, build, and validate ASP.NET Core service surfaces for F#, C#, or mixed .NET solutions using explicit project ownership, configuration, endpoints, tests, and dotnet CLI validation.

gaelic-ghost/socket · 45 tokens

build-acp-agent

Design, implement, test, and package an ACP agent/server. Use for protocol negotiation, sessions, streaming updates, tool rendering, permissions, authentication, SDK choice, and registry submission.

gaelic-ghost/socket · 42 tokens