api-designer

api-designer is a skill for Claude Code, Codex from Kshitijpalsinghtomar/depth-skills. It costs 38 tokens per session (3,185 once invoked), scanned A, original, MIT.

A method for designing application programming interfaces, or APIs—the rules one program exposes for other programs to use.

In plain words
What is it for?
Use it to define resource names, actions, inputs, outputs, configuration, and error messages for developer-facing APIs.
Why use it?
It makes the intended usage clear and helps prevent callers from using the interface incorrectly.

Skill for Claude CodeCodex

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

Good fit Use it to define resource names, actions, inputs, outputs, configuration, and error messages for developer-facing APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kshitijpalsinghtomar/depth-skills/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.

Any agent
npx skills add Kshitijpalsinghtomar/depth-skills --skill api-designer
Clone the repo
git clone --depth 1 https://github.com/Kshitijpalsinghtomar/depth-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kshitijpalsinghtomar/depth-skills/api-designer/github.svg)](https://agentmods.dev/skills/kshitijpalsinghtomar/depth-skills/api-designer)
Your own site
<a href="https://agentmods.dev/skills/kshitijpalsinghtomar/depth-skills/api-designer"><img src="https://agentmods.dev/badge/skills/kshitijpalsinghtomar/depth-skills/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/skills/kshitijpalsinghtomar/depth-skills/api-designer"><img src="https://agentmods.dev/badge/skills/kshitijpalsinghtomar/depth-skills/api-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,185 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.00038 $0.03185
Opus 5.5 $0.00015 $0.01274
Sonnet 5.5 $0.00008 $0.00637
Haiku 4.5 $0.00004 $0.00318

Measured 22d ago against content hash f40d09bd4c23, 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 22d 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-designer/SKILL.md · 398 lines

How it starts

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

API-DESIGNER v2.0 — Developer-Experience-First Interface Design (Premium)

Mathematical Compliance: This skill implements the DEPTH-MATHEMATICS specification. It computes and outputs ADS phase activation, CEI components, SI components, cognitive traces (DX calculus, contract integrity ), and verifies Gates V1, V3, V4, V5. It formalizes API design as a measurable calculus.

You are an API designer. You design contracts between systems. The quality of an API is measured by one thing: can a developer use it correctly the first time without reading the source code?

The Core Shift

The consumer is the user. Design for their experience, not your implementation.

A good API makes correct usage obvious and incorrect usage impossible. A bad API makes everything possible and nothing obvious.

New in v2.0: Mathematical depth metrics, DX calculus, contract integrity , recursive self-audit, verification gates.


The Protocol

0 — PARAMETERIZE: Read Thinking Parameters

Read thinking_parameters:

  • require_dx_calculus (default true) — compute DX calculus
  • require_integrity_ (default true) — issue contract integrity
  • recursion_depth (default 1) — recursive self-audit rounds

1 — DX CALCULUS (if require_dx_calculus = true)

NEW IN v2.0 — Formal calculus for developer experience.

DX CALCULUS
────────────────────────────────────────
Consumer Model: [Who calls this API? What are they trying to accomplish?]

For each endpoint:
  Endpoint: [METHOD /path]
  Consumer Goal: [what are they trying to accomplish?]
  Happy Path Steps: [N — target ≤ 3]
  Required Config: [N — target 0 for common case]
  Error Clarity: [0.0-1.0 — does error tell what/why/fix?]
  Naming Clarity: [0.0-1.0 — unambiguous without context?]
  Consistency: [0.0-1.0 — same pattern everywhere?]

DX Score = (Happy_Path_Simplicity × 0.3) + (Config_Minimal × 0.2) + (Error_Clarity × 0.25) + (Naming_Clarity × 0.1) + (Consistency × 0.15) = [0.0-1.0]

Thresholds:
  ≥ 0.8: EXCELLENT — 5-minute test passes
  0.6-0.8: GOOD — minor friction
  0.4-0.6: FAIR — significant friction
  < 0.4: POOR — redesign required

Five-Minute Test: [Can a competent developer go from zero to successful call in 5 min? YES/NO]
────────────────────────────────────────

Read the full file on GitHub · 398 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. 22d ago Changed · +341 lines · +16 tokens per session f40d09bd4c23
  2. 1mo ago First seen · 57 lines · 22 tokens per session scan A edf29a61bddf

Subscribe to this mod's changes

api-designer is a skill published in the GitHub repository Kshitijpalsinghtomar/depth-skills (5 stars, last pushed 10d ago), licensed MIT. It adds 38 tokens to every session and 3,185 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

api-designer

Designs production-grade APIs — REST, GraphQL, gRPC, and AsyncAPI patterns including pagination, versioning, error handling, rate limiting, and API governance. Use when the user asks to design APIs, create endpoints, build an API layer, write OpenAPI specs, or needs help with REST/GraphQL/gRPC service design.

buiphucminhtam/forgewright · 73 tokens

api-contract-testing

Design and review API contract tests across providers and consumers. Use for schema changes, compatibility regressions and client integration failures.

sickn33/agentic-awesome-skills · 28 tokens

API Versioning Testing

Testing API versioning strategies including URL path, header, and query parameter versioning with backward compatibility validation.

PramodDutta/qaskills · 26 tokens

flowise-builder

Use when flowise visual LLM workflow builder — drag-drop chatflows, API endpoints, document loaders, tools. Use when working with flowise builder.

oyi77/1ai-skills · 35 tokens

postbridge-social-manager

Use when multi-platform social media posting, scheduling, analytics, and media management via PostBridge API for TikTok, Instagram, X, LinkedIn, and Facebook. Use when working with postbridge social manager.

oyi77/1ai-skills · 47 tokens

telegram-userbot

Use when full MTProto control of Telegram account via Telethon. DM, Voice Note, Call, Video Call, Group/Channel management, member scraping, bot cloning, outreach automation, broadcast, CRM tracking, content reposting, scheduled messaging, webhook triggers. Use for all Telegram automation as a real user (not bot API).

oyi77/1ai-skills · 70 tokens