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

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/bidiche49/claude-conf/api-contract-sync
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.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.svg" alt="Measured on agentmods" 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. 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.00017 $0.00372
Opus 5 $0.00009 $0.00186
Sonnet 5 $0.00003 $0.00074
Haiku 4.5 $0.00002 $0.00037

Measured 3d ago against content hash 0c1d1cc02e1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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. 3d 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 4mo ago), licensed MIT. It adds 17 tokens to every session and 372 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

hooks-eval

Evaluate hook security, performance, and SDK compliance. Use for audits.

athola/claude-night-market · 18 tokens

webmcp-setup

Bootstraps webmcp-react into an existing React or Next.js app. Installs dependencies, adds WebMCPProvider, creates a first tool, and configures the MCP client bridge. Use when the user wants to set up WebMCP, add MCP tools to their app, integrate webmcp-react, or make their React app accessible to AI agents.

agentcathq/webmcp-react · 80 tokens

goal

Run a large or unfamiliar goal through the full ballast pipeline — mobilize what you already hold, terrain scan, full skeleton, atomic foundation learning with verification, then build from bedrock to a verified done. Use when the user hands over a big goal, enters a new field, or asks to learn X in order to achieve Y.

svy04/ballast · 69 tokens

report

Read the delivery log and say which rules actually fire, which never have, and what to prune or fix. Use when the user asks whether ballast is doing anything, wants to clean up their rule catalog, or on a periodic review.

svy04/ballast · 49 tokens

engram

Claude Engram persistent memory — quick reference for all MCP tools and automatic hook behaviors. Use when you need to remember how to store, search, or manage memories, or query session history.

20alexl/claude-engram · 41 tokens

eval-harness

Assessment-driven development — Quantify code generation quality with pass@k / pass^k metrics, automatically scored by Grader.

majiayu000/vibeguard · 29 tokens