api-contract-sync

api-contract-sync is a skill for Claude Code, Codex from Bidiche49/claude-conf. It costs 17 tokens per session (372 once invoked), scanned A, original, MIT.

An API documentation checker that compares APICONTRACT.md with the backend's actual routes and controllers. It reports endpoints that are missing, removed, or changed.

In plain words
What is it for?
Checking whether documented methods, paths, parameters, and types still match the running project's source code, without changing the contract.
Why use it?
It exposes differences between documentation and code before they mislead developers or API users.

Skill for Claude CodeCodex

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

Good fit Checking whether documented methods, paths, parameters, and types still match the running project's source code, without changing the contract.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bidiche49/claude-conf/api-contract-sync
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 Bidiche49/claude-conf --skill api-contract-sync
Clone the repo
git clone --depth 1 https://github.com/Bidiche49/claude-conf

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-contract-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/bidiche49/claude-conf/api-contract-sync/github.svg)](https://agentmods.dev/skills/bidiche49/claude-conf/api-contract-sync)
Your own site
<a href="https://agentmods.dev/skills/bidiche49/claude-conf/api-contract-sync"><img src="https://agentmods.dev/badge/skills/bidiche49/claude-conf/api-contract-sync/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-contract-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/bidiche49/claude-conf/api-contract-sync"><img src="https://agentmods.dev/badge/skills/bidiche49/claude-conf/api-contract-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 372 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.00017 $0.00372
Opus 5.5 $0.00007 $0.00149
Sonnet 5.5 $0.00003 $0.00074
Haiku 4.5 $0.00002 $0.00037

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

Security

Grade A, and why

api-contract-sync 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.

api-contract/skills/api-contract-sync/SKILL.md · 51 lines

What it actually says

Compare API_CONTRACT.md against the real codebase and report differences. Do NOT modify the contract automatically.

1. Locate the contract

Search in order: shared/API_CONTRACT.md, API_CONTRACT.md, ../shared/API_CONTRACT.md. If not found, tell the user to run /api-contract-init first.

2. Parse the contract

Extract all documented endpoints: method, path, request/response types.

3. Scan the code

Use the same stack detection and route scanning logic as /api-contract-init to find all endpoints currently in the codebase.

4. Compare and classify

Status Meaning
MISSING Endpoint exists in code but not in contract
REMOVED Endpoint exists in contract but not in code
CHANGED Endpoint exists in both but signatures differ (params, types, method)

5. Display the report

API CONTRACT SYNC
=================
[N] endpoints in sync

[If issues found:]
MISSING (in code, not in contract):
  [METHOD] [path] — [Controller.method()]

REMOVED (in contract, not in code):
  [METHOD] [path] — was in [Controller] (file deleted?)

CHANGED (signatures differ):
  [METHOD] [path] — contract says [X], code expects [Y]

If everything is in sync: Contract in sync — [N] endpoints verified.

6. Propose corrections

List suggested updates to the contract but do NOT apply them. Let the user decide.

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 · 51 lines · 17 tokens per session scan A 0c1d1cc02e1e

Subscribe to this mod's changes

api-contract-sync is a skill published in the GitHub repository Bidiche49/claude-conf (2 stars, last pushed 5mo ago), licensed MIT. It adds 17 tokens to every session and 372 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.