api-design

api-design is a skill for Claude Code, Codex from aps08/fullstack-clean-architecture. It costs 26 tokens per session (3,004 once invoked), scanned A, original, Apache-2.0.

A guide for designing REST APIs, which are web interfaces that let programs exchange data using standard HTTP requests. It covers resource-based URLs and consistent JSON replies.

In plain words
What is it for?
Use it when designing, reviewing, generating, or assessing API resources, URL paths, relationships, fields, HTTP methods, and JSON responses.
Why use it?
It helps teams avoid inconsistent endpoint names, action-shaped URLs, and differing response formats across an API.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when designing, reviewing, generating, or assessing API resources, URL paths, relationships, fields, HTTP methods, and JSON responses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aps08/fullstack-clean-architecture/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 aps08/fullstack-clean-architecture --skill api_design
Clone the repo
git clone --depth 1 https://github.com/aps08/fullstack-clean-architecture

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/aps08/fullstack-clean-architecture/api_design/github.svg)](https://agentmods.dev/skills/aps08/fullstack-clean-architecture/api_design)
Your own site
<a href="https://agentmods.dev/skills/aps08/fullstack-clean-architecture/api_design"><img src="https://agentmods.dev/badge/skills/aps08/fullstack-clean-architecture/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/aps08/fullstack-clean-architecture/api_design"><img src="https://agentmods.dev/badge/skills/aps08/fullstack-clean-architecture/api_design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,004 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.00026 $0.03004
Opus 5.5 $0.00010 $0.01202
Sonnet 5.5 $0.00005 $0.00601
Haiku 4.5 $0.00003 $0.00300

Measured 18d ago against content hash 785e95e27a09, 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 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 18d 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.

.agents/skills/api_design/SKILL.md · 315 lines

How it starts

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

REST API Design Guide

Overview

Design stable, well-documented REST APIs that are predictable and hard to misuse. Good APIs make the right operations easy and incorrect usage hard. This guide defines conventions for resource modeling, endpoint hierarchies, standard HTTP methods, payload schemas, error formats, and idempotency.

When to Use

  • Designing new REST API endpoints or resources
  • Defining request and response contracts between clients and the backend
  • Establishing data schemas and models that inform the API shape
  • Versioning, extending, or refactoring existing REST endpoints

1. Core Principles

Hyrum's Law

With a sufficient number of users of an API, all observable behaviors of your system will be depended on by somebody, regardless of what you promise in the contract.

Every public behavior — including undocumented quirks, error message phrasing, response headers, timing, and ordering — becomes a de facto contract once clients depend on it.

  • Be intentional about what you expose: Every observable field or header is a commitment.
  • Don't leak implementation details: Never expose internal database column names, raw SQL errors, or stack traces.
  • Plan for deprecation at design time: Phased deprecation is required before removing fields or endpoints.
  • Tests alone are not enough: Changes that pass unit tests can still break consumers relying on subtle undocumented behaviors.

The One-Version Rule

Avoid forcing consumers to navigate multiple diverging versions of the same API. Design endpoints to be backward-compatible and additive rather than repeatedly forking major versions.

Contract First

Define the endpoint specifications (HTTP method, URL path, request body, query parameters, status codes, and response schemas) before implementing internal logic.

POST   /v2/todos              → Create a todo (201 Created)
GET    /v2/todos              → List todos with pagination (200 OK)
GET    /v2/todos/:id          → Retrieve a todo (200 OK)
PATCH  /v2/todos/:id          → Partial update (200 OK)
DELETE /v2/todos/:id          → Delete a todo (204 No Content)

Read the full file on GitHub · 315 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. 18d ago Changed · +30 lines · +5 tokens per session 785e95e27a09
  2. 1mo ago First seen · 285 lines · 21 tokens per session scan A bbeee393557d

Subscribe to this mod's changes

api-design is a skill published in the GitHub repository aps08/fullstack-clean-architecture (2 stars, last pushed 18d ago), licensed Apache-2.0. It adds 26 tokens to every session and 3,004 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-31.