api-designer

api-designer is a skill for Claude Code, Codex from lfyxhappy/lfcode. It costs 80 tokens per session (319 once invoked), scanned A, original, MIT.

An API contract design guide for planning how software interfaces work before implementation. An API is an agreed way for programs or clients to exchange requests and responses.

In plain words
What is it for?
It helps design HTTP, RPC, event, command-line, SDK, and data interfaces, including schemas, validation, authorization, errors, versioning, and contract tests.
Why use it?
It prevents unclear fields, error behavior, permissions, retries, and version changes from breaking callers later. It makes compatibility and migration rules explicit before code is committed.

Skill for Claude CodeCodex

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

Good fit It helps design HTTP, RPC, event, command-line, SDK, and data interfaces, including schemas, validation, authorization, errors, versioning, and contract tests.

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

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/lfyxhappy/lfcode/api-designer.svg)](https://agentmods.dev/skills/lfyxhappy/lfcode/api-designer)
Your own site
<a href="https://agentmods.dev/skills/lfyxhappy/lfcode/api-designer"><img src="https://agentmods.dev/badge/skills/lfyxhappy/lfcode/api-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 319 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.00080 $0.00319
Opus 5 $0.00040 $0.00160
Sonnet 5 $0.00016 $0.00064
Haiku 4.5 $0.00008 $0.00032

Measured 2d ago against content hash 068d470df7a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 2d 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.

packages/lfcode/src/skill/lfcode/.bundle/api-designer/SKILL.md · 27 lines

What it actually says

API Designer

Make an interface understandable and durable for callers before code commits to a wire format.

Workflow

  1. Identify callers, operators, stored data, generated clients, and existing conventions that constrain the interface.
  2. Define operations, input and output schemas, defaults, validation, authorization, errors, pagination or limits, and idempotency behavior.
  3. Specify compatibility and evolution rules, including versioning, deprecation, retries, ordering, and migration of persisted payloads.
  4. Model sensitive fields, audit requirements, rate or resource limits, and observable failure behavior.
  5. Write representative contract examples and focused success, invalid-input, authorization, conflict, and compatibility tests.

Boundaries

  • Do not confuse API design with API review: use this skill to establish a contract, then use API review to audit an implemented contract.
  • Do not expose credentials, personal data, internal-only endpoints, or real production payloads in examples.
  • Do not make wire-breaking changes or publish a contract without explicit user authorization.

Completion Check

Report the proposed contract, affected consumers, compatibility policy, tests, migration requirements, and decisions still needing approval.

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. 2d ago First seen · 27 lines · 80 tokens per session scan A 068d470df7a6

Subscribe to this mod's changes

api-designer is a skill published in the GitHub repository lfyxhappy/lfcode (2 stars, last pushed 4d ago), licensed MIT. It adds 80 tokens to every session and 319 once invoked, about $0.0004 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-09-05.

Related

Other skills, from other repositories

telegram

Owner-only Telegram text bridge and Mini App gateway for the existing Ouroboros interface.

razzant/ouroboros · 19 tokens

provide

Turn the owner's API, model, or dataset into a paid service on the platform's services catalog: build the wrapper endpoint, self-test it against the admission probe, and hand the owner the values the listing form needs. Use when the owner wants to sell or list something they already run as a metered service.

intentic/intentic · 65 tokens

mandu-mcp-create-flow

A specification-first workflow for creating features, resources, routes, or API endpoints. It creates a contract describing the expected structure before generating the code, then verifies the result.

konamgil/mandu · 76 tokens

mandu-slot

Mandu Slot API for writing business logic. Use when creating API handlers, implementing authentication guards, adding lifecycle hooks, or working with request/response context. Triggers on tasks involving Mandu.filling(), ctx.ok(), ctx.error(), .guard(), .get(), .post(), or slot files.

konamgil/mandu · 65 tokens

mandu-fs-routes

File-system based routing for Mandu. Use when creating pages, API routes, layouts, or dynamic routes. Triggers on tasks involving app/ folder, page.tsx, route.ts, layout.tsx, [id], [...slug], or URL patterns.

konamgil/mandu · 58 tokens

mandu-security

Security best practices for Mandu applications. Use when implementing authentication, authorization, input validation, or protecting against common vulnerabilities. Triggers on guard, auth, CSRF, XSS, or security tasks.

konamgil/mandu · 46 tokens