api-first-design

api-first-design is a skill for Claude Code, Codex from hubertlim/SkillForge. It costs 12 tokens per session (213 once invoked), scanned A, original, MIT.

A workflow for designing a new API endpoint, which is a programmed interface that other software can call. It covers requirements, data schemas, an OpenAPI specification, implementation, tests, and documentation.

In plain words
What is it for?
Use it when creating an API or endpoint to define operations, access rules, JSON request and response formats, status codes, pagination, server code, and integration tests.
Why use it?
It gives the API a defined contract before implementation, reducing mismatches between request data, responses, validation, errors, and documentation.

Skill for Claude CodeCodex

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

Good fit Use it when creating an API or endpoint to define operations, access rules, JSON request and response formats, status codes, pagination, server code, and integration tests.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hubertlim/skillforge/api-first-design"><img src="https://agentmods.dev/badge/skills/hubertlim/skillforge/api-first-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 213 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.00012 $0.00213
Opus 5.5 $0.00005 $0.00085
Sonnet 5.5 $0.00002 $0.00043
Haiku 4.5 $0.00001 $0.00021

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

Security

Grade A, and why

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

community-skills/api-first-design/SKILL.md · 46 lines

What it actually says

Step 1: Requirements

Gather and document API requirements

  • Identify consumers of the API
  • List required operations (CRUD, search, etc.)
  • Define authentication and authorization needs

Step 2: Schema Design

Define request and response schemas

  • Design resource models and relationships
  • Define JSON schemas for each endpoint
  • Standardize error response format
  • Plan pagination and filtering

Step 3: OpenAPI Spec

Write the API specification

  • Create OpenAPI/Swagger document
  • Add request/response examples
  • Document all status codes

Step 4: Implement

Build the API from the spec

  • Generate server stubs from the spec
  • Implement business logic
  • Add input validation matching the schema

Step 5: Test and Document

Validate and publish

  • Write integration tests for each endpoint
  • Test error cases and edge conditions
  • Generate documentation from the spec
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 · 46 lines · 12 tokens per session scan A 37ef3263d416

Subscribe to this mod's changes

api-first-design is a skill published in the GitHub repository hubertlim/SkillForge (5 stars, last pushed 6mo ago), licensed MIT. It adds 12 tokens to every session and 213 once invoked, about $0.0000 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

langbot-dev

Develop, build, and debug the LangBot core backend and web frontend. Use when working inside the LangBot repository — backend (Python/Quart, src/langbot/pkg), the Vite/React web UI, HTTP API controllers/services, Alembic migrations, or the MCP server. Covers the dev environment (uv, pnpm), repo layout, the API auth…

langbot-app/LangBot · 136 tokens

blind-sqli

Blind SQL injection under hostile WAF — manual bypass playbook for when sqlmap fails because common tokens (SUBSTRING, IF, AND, WHERE, single quotes) are filtered. Covers token-fingerprinting probe loops, arithmetic-multiplication boolean evaluation, hex-encoded literals, and exponential-probe binary search. Loaded on…

PurpleAILAB/Decepticon · 88 tokens

race-condition

Race condition / TOCTOU exploitation — concurrent and parallel-request attacks against web applications that check then act, write session state before validating it, or perform slow operations that widen the race window. Covers single-endpoint races (double-spend, coupon abuse, balance overflow) and multi-endpoint…

PurpleAILAB/Decepticon · 80 tokens

graphql

GraphQL exploitation — introspection, injection, authorization bypass, and data exfiltration through GraphQL APIs.

PurpleAILAB/Decepticon · 24 tokens

api-server-sent-events

Server-Sent Events (SSE / EventSource) exploitation — origin abuse for cross-site streaming exfil, prompt-injection via SSE messages into LLM clients, retry-after token leak, fragmenting events to bypass content-type sniffers.

PurpleAILAB/Decepticon · 54 tokens

file-upload

Arbitrary file upload exploitation — webshell upload, extension bypass, content-type manipulation, and upload-to-RCE techniques.

PurpleAILAB/Decepticon · 27 tokens