
API contract review
Reviews routes, plugin contracts and exports for breaking changes and weak validation
API contract review is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 7
- Last commit
- License
- MIT
- Listing updated
Similar skills
About API contract review
This skill guides a read-only review agent through checking an HTTP route, plugin setup/start contract, saved object schema or package public export before it ships. It walks each change and classifies it as safe or breaking, then searches the codebase for consumers of any breaking change and reports the call sites it finds, noting when the full set cannot be established.
The checklist covers input validation with explicit bounds on strings, arrays and objects, the stability and error consistency of response shapes, evolvability of exported surfaces, persistence and migration safety under rolling deploys, and authorisation and rate limits. Findings are reported in a fixed markdown format with file and line citations and a verdict of safe, ship with a migration, or breaking.
When no target is passed, it audits the files changed on the current branch against the default base. It is written for a Claude Code agent setup and expects the repository to be available for reading and searching.
When your agent uses it
Review an HTTP route, plugin contract, or exported package API for compatibility, validation, and evolvability before it ships. Invoke when adding or changing a route, a plugin setup/start contract, a saved object schema, or a package public export, and when the user asks whether a change is breaking.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (5 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the ai-essentials plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add tonyghiani/ai-essentials
/plugin install ai-essentials@ai-essentialsOr copy only this skill to ~/.claude/skills/api-contract-review:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-contract-review &&
cp -R "$tmp/skills/api-contract-review" ~/.claude/skills/api-contract-review &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/api-contract-review inside it instead.
Copy the skill folder to ~/.agents/skills/api-contract-review to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-contract-review &&
cp -R "$tmp/skills/api-contract-review" ~/.agents/skills/api-contract-review &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/api-contract-review inside it instead.
Copy the skill folder to ~/.cursor/skills/api-contract-review to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-contract-review &&
cp -R "$tmp/skills/api-contract-review" ~/.cursor/skills/api-contract-review &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/api-contract-review inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/tonyghiani/ai-essentials.git --path skills/api-contract-reviewOr copy the folder to ~/.gemini/skills/api-contract-review yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/api-contract-review:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-contract-review &&
cp -R "$tmp/skills/api-contract-review" ~/.copilot/skills/api-contract-review &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/api-contract-review inside it instead.
Get the folder:
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.gitThen copy ai-essentials/skills/api-contract-review into your agent's skills folder as api-contract-review. Agents that support SKILL.md read one folder per skill.
What it does
- Breaking change analysis
- Classifies each change as safe or breaking and locates the consumers affected.
- Input validation checks
- Flags unbounded strings, arrays, objects and missing schemas at request boundaries.
- Response shape review
- Checks that success and error responses are stable, typed and free of leaked internals.
- Evolvability guidance
- Looks at whether fields can be added later and whether exports are kept minimal.
- Persistence and migration safety
- Examines stored data readability, partial migration failure and rolling deploy compatibility.
- Auth and limits review
- Checks authorisation consistency, rate limiting and resource-existence disclosure in errors.
Good for
- Check whether a route change will break existing API clients
- Review a plugin setup or start contract before merging
- Audit a saved object schema change for migration risks
- Find unbounded inputs in a new endpoint
- Verify which consumers depend on an exported package symbol
API contract review FAQ
What triggers API contract review?
It is invoked when adding or changing a route, a plugin setup/start contract, a saved object schema or a package public export, and when the user asks whether a change is breaking.
Does API contract review edit code?
No. It runs as a read-only agent and reports findings without editing files.
What does API contract review audit if no target is given?
It audits the files listed by git diff against the merge base with origin/HEAD, or against a base the caller names.
What is its output format?
A markdown report with sections for breaking changes, validation gaps and evolvability, each citing file and line, ending with a verdict.
How do I install API contract review in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/api-contract-review to use it in all your projects, or to .claude/skills/api-contract-review in one project. Or install the ai-essentials plugin, which includes it: /plugin marketplace add tonyghiani/ai-essentials, then /plugin install ai-essentials@ai-essentials.
Does API contract review run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use API contract review?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to API contract review?
The closest alternatives to API contract review are Adversarial code review pass schema, API breaking change detector, Code review expert, Code review and quality and Backend review.
Where this comes from
- Description: from the skill's own SKILL.md.
More from tonyghiani/ai-essentials

Lets an agent read your GitHub queue at day's end and draft a morning triage report
- Open source
- 7 GitHub stars
- Developer tools

Finds untranslated UI strings and i18n patterns that break translation in code
- Open source
- 7 GitHub stars
- Developer tools

Writes pull request descriptions from a fixed summary, screenshots and testing template
- Open source
- 7 GitHub stars
- Developer tools

Guides an agent through resolving merge conflicts by intent, then verifying and pushing
- Open source
- 7 GitHub stars
- Developer tools

Triages PR review comments, then implements, replies to and resolves them
- Open source
- 7 GitHub stars
- Developer tools

Guides the agent through a test-first loop: failing test, then minimal implementation
- Open source
- 7 GitHub stars
- Developer tools





