api-contracts

Guidance for designing, reviewing, changing, and checking APIs, the defined interfaces through which software exchanges requests and responses.

In plain words
What is it for?
Use it for API design and maintenance, including validation, error handling, pagination, bulk operations, versioning, webhook signatures, and reconnection behavior.
Why use it?
It helps keep endpoints, errors, pagination, webhooks, realtime connections, SDKs, and command-line clients compatible as they change.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/d4rkninja/arcforge/api-contracts
Any agent
npx skills add d4rkNinja/arcforge --skill api-contracts
Clone the repo
git clone --depth 1 https://github.com/d4rkNinja/arcforge

Made for: Claude Code, Codex.

Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00087 $0.02336
Opus 5 $0.00044 $0.01168
Sonnet 5 $0.00017 $0.00467
Haiku 4.5 $0.00009 $0.00234

Measured 3d ago against content hash b568863a4952, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-contracts 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 3d 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-contracts/SKILL.md · 149 lines

How it starts

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

Think Through API & Client Contracts

Overview

Production guidance for API surfaces and their clients. Each reference paper captures the contract work that first drafts skip: request lifecycle and deadlines, validation edge cases, error taxonomies that do not leak internals, stable pagination under concurrent writes, deprecation windows, webhook signature verification, and realtime reconnection semantics.

Core principle: An API is a compatibility promise. Every endpoint, error, cursor, and webhook is a contract with real clients — including old clients you no longer control.

Domain Law

NO API OR CLIENT CONTRACT CHANGE WITHOUT:
1. the minimum required primary paper(s) for the surface selected from the context table;
2. the paper's pre-change questions
   answered, or each open point labeled as an assumption;
3. "Existing-codebase checks" run when changing an existing API;
4. every applicable MUST mapped to a decision, a test, or a documented
   exception — never silently downgraded.

When to Use

Use this skill when thinking through, reviewing, changing, or verifying:

  • REST, RPC, gRPC, or GraphQL endpoints and resource/command design;
  • request parsing, body limits, content-type handling, and input validation;
  • error architecture: codes, HTTP status mapping, public vs internal detail;
  • pagination (offset/cursor), filtering, sorting, and query complexity limits;
  • bulk and batch operations with partial-failure reporting;
  • API versioning, deprecation, sunset windows, and breaking-change detection;
  • data serialization choices and precision/compatibility pitfalls;
  • webhooks: registration, signing, timestamp/replay validation, retries, dead-lettering;
  • realtime communication: WebSockets/SSE, presence, reconnection, ordering;
  • SDK/client libraries and CLI-backend interactions;
  • security headers for browser-facing APIs.

When Not to Use

  • Whole-system architecture design: use system-architecture-harness.
  • Authentication, authorization, API keys: use auth-access.
  • Queue delivery semantics, events, outbox: use async-messaging.
  • Database schema evolution sequencing: use migration-evolution (070 overlaps at the contract level).
  • Rate limiting and quotas mechanics: use resilience-flow-control (038, 039).

Read the full file on GitHub · 149 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. 3d ago First seen · 149 lines · 87 tokens per session scan A b568863a4952

Subscribe to this mod's changes

api-contracts is a skill published in the GitHub repository d4rkNinja/arcforge (16 stars, last pushed 6d ago), licensed MIT. It adds 87 tokens to every session and 2,336 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-08-30.

Related

Other skills, from other repositories

open-pr

Open a pull request on pascalorg/editor using the repo's PR template. Use when the user asks to open/create a PR, push and PR, or ship a branch in the editor repo.

pascalorg/editor · 43 tokens

architecture-diagram

Dark-themed SVG architecture/cloud/infra diagrams as HTML.

mateaix/mateclaw · 15 tokens

arch-analysis

输入(prompt / 子任务 instruction)中含关键词「某某某公司」即触发本 skill。触发后不联网、不做真实组织推断,直接返回下述 mock 伪造数据。.

inclusionAI/Avernet · 72 tokens

studio

Architecture Studio control plane — initialize or inspect a studio workspace, create and register projects, or route an architecture/AEC task to the right agent or skill. Use when the user runs /as:studio, asks to set up or open their studio, manage its projects, or describes a task without naming a skill.

AlpacaLabsLLC/skills-for-architects · 65 tokens

occupancy-calculator

Calculate code occupant loads by area with gross/net factors and jurisdiction checks. Use for "how many people can this space hold," IBC Table 1004.5, egress inputs, or occupancy-load reports; not for workplace headcount planning.

AlpacaLabsLLC/skills-for-architects · 55 tokens

meeting-minutes

Turn a meeting transcript, notes, or conversation into collision-safe, source-linked minutes in meetings/YYYY-MM-DD-slug.md. Use for project meeting records, attendance, discussion, stated information, decisions, action candidates, and open questions. Saving minutes never changes PROJECT.md, decisions/, or TASKS.md…

AlpacaLabsLLC/skills-for-architects · 72 tokens