diff-specs

diff-specs is a skill for Claude Code from erraggy/oastools. It costs 19 tokens per session (952 once invoked), scanned A, original, MIT.

A tool for comparing two versions of an OpenAPI specification, the document that describes an HTTP API’s endpoints and data formats. It can identify breaking changes and suggest migration steps.

In plain words
What is it for?
Comparing an older and newer API specification, reviewing breaking changes, categorising differences, and planning client updates.
Why use it?
It helps find API changes that could break existing clients before a new specification is released. Results can be limited to breaking changes or read in pages for large comparisons.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the oastools plugin — 5 skills, 1 hook shipped together

Good fit Comparing an older and newer API specification, reviewing breaking changes, categorising differences, and planning client updates.

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

Made for: Claude Code.

Or install oastools, the plugin that ships this one along with the rest of its 5 skills, 1 hook.

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 diff-specs

README.md
[![agentmods](https://agentmods.dev/badge/skills/erraggy/oastools/diff-specs/github.svg)](https://agentmods.dev/skills/erraggy/oastools/diff-specs)
Your own site
<a href="https://agentmods.dev/skills/erraggy/oastools/diff-specs"><img src="https://agentmods.dev/badge/skills/erraggy/oastools/diff-specs/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 diff-specs

Your own site · 80×15
<a href="https://agentmods.dev/skills/erraggy/oastools/diff-specs"><img src="https://agentmods.dev/badge/skills/erraggy/oastools/diff-specs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 952 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.00019 $0.00952
Opus 5.5 $0.00008 $0.00381
Sonnet 5.5 $0.00004 $0.00190
Haiku 4.5 $0.00002 $0.00095

Measured yesterday against content hash 463cb47fb0b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diff-specs 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 yesterday.

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.

plugin/skills/diff-specs/SKILL.md · 88 lines

How it starts

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

Diff Two OpenAPI Specifications

Step 1: Compare the specs

⚠️ Note: The diff tool is designed for comparing versions of the same API (e.g., v1.2 vs v1.3). Diffing unrelated APIs (e.g., Stripe vs GitHub) will produce thousands of changes that aren't meaningful. If the user wants to compare different APIs, suggest exploring each one separately with the explore-api workflow.

Call the diff tool with both spec versions:

{
  "base": {"file": "<old-version-path>"},
  "revision": {"file": "<new-version-path>"}
}

To focus only on breaking changes:

{
  "base": {"file": "<old-version-path>"},
  "revision": {"file": "<new-version-path>"},
  "breaking_only": true
}

Step 2: Categorize changes

Paginating large diffs

Results are paginated (default limit: 100). There are more changes while offset + returned < total_changes (offset is 0 on the first call). Page the full call and the breaking_only: true call separately, and keep breaking_only: true on every page of the filtered one:

{
  "base": {"file": "<old-version-path>"},
  "revision": {"file": "<new-version-path>"},
  "offset": 100, "limit": 100
}

⚠️ Strategy for large diffs: Start with breaking_only: true to see all breaking changes first — these are usually the most important and fewest. Then page through the full diff only if the user needs the complete picture. The total_changes, breaking_count, warning_count, and info_count fields always reflect the full result, even when paginated.

Severity from the MCP tool is meaningful only with breaking_only: true. That call returns the Critical and Error changes and nothing else. Without it, every change is labeled error and counted in breaking_count, so use that result as the list of what changed and ignore its severities and severity counts. total_changes and returned are still right for paging through it.

  1. Breaking (critical/error) -- the changes breaking_only: true returns, such as:
    • Removed endpoints or operations
    • Removed required parameters, required request bodies or success responses
    • Added required parameters, or new entries in a schema's required list
    • Enum removals, schema type changes, a lowered maximum
    • Removed security schemes or changed scheme types

Read the full file on GitHub · 88 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. yesterday Changed · -7 lines 463cb47fb0b9
  2. 3mo ago First seen · 95 lines · 19 tokens per session scan A 9235ab21d21b

Subscribe to this mod's changes

diff-specs is a skill published in the GitHub repository erraggy/oastools (7 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 952 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.

Related

diff-specs compared with skills from other repositories

diff-specs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diff-specserraggy/oastoolsSkill7todayMITA19Claude Code
orvalorval-labs/orvalSkill6.7kyesterdayMITA83Claude Code, Codex
go-swagger3-docsparvez3019/go-swagger3Skill1545d agoMITA63Claude Code, Codex
API Contract ValidatorPramodDutta/qaskillsSkill2531mo agoMITA26Claude Code, Codex
API Test Suite GeneratorPramodDutta/qaskillsSkill2531mo agoMITA29Claude Code, Codex
lathelathe-cli/latheSkill876d agoApache-2.0A39Claude Code, Codex
backend-openapi-documentationj4flmao/agent-skillsSkill4819d agoMITA68Claude Code, Codex