openapi-contract-adherence-skill

openapi-contract-adherence-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 52 tokens per session (768 once invoked), scanned A, original, Apache-2.0.

A workflow for reviewing changes to an OpenAPI specification, the document that defines how a web API works. It compares revisions and identifies how client applications may be affected.

In plain words
What is it for?
Use it to validate and compare API specifications, classify changes by severity, assess versioning impact, and prepare a migration plan for affected consumers.
Why use it?
It makes breaking API changes visible before they reach users and shows which clients, generated code, or direct API calls may need updates.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it to validate and compare API specifications, classify changes by severity, assess versioning impact, and prepare a migration plan for affected consumers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/openapi-contract-adherence-skill
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 darellchua2/opencode-config-template --skill openapi-contract-adherence-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

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 openapi-contract-adherence-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/openapi-contract-adherence-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/openapi-contract-adherence-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/openapi-contract-adherence-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/openapi-contract-adherence-skill/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 openapi-contract-adherence-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/openapi-contract-adherence-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/openapi-contract-adherence-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 768 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 13 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 230
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 269
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 334
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 396
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium MCP Rug Pull · line 61
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
  • medium MCP Rug Pull · line 70
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
  • medium MCP Rug Pull · line 198
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
  • medium Prompt Injection · line 450
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • medium MCP Rug Pull · line 452
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 477
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 453
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Prompt Injection · line 454
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
  • low Tool Misuse · line 198
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00052 $0.00768
Opus 5.5 $0.00021 $0.00307
Sonnet 5.5 $0.00010 $0.00154
Haiku 4.5 $0.00005 $0.00077

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

Security

Grade A, and why

openapi-contract-adherence-skill 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 2mo 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/openapi-contract-adherence-skill/SKILL.md · 49 lines

How it starts

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

What I do

Diff OpenAPI specs (oasdiff), classify every change Breaking/Additive/Cosmetic with semver impact and consumer action, emit CONTRACT_DIFF.{md,json} + a migration plan.

When to use me

Spec changed in a PR; consumer-impact review; before publishing a new API version; regenerating SDK clients.

Tools: oasdiff (primary; Docker fallback tufin/oasdiff:stable); linters redocly lint / spectral lint; generators per client language.

Workflow

  1. Discover specs: git-based baseline (git show <base>:path/to/spec.yaml > base.yaml; default = target branch merge-base) or manual baseline; monorepos — diff each spec independently and report per-spec.
  2. Validate both specs (redocly lint; fix errors before diffing — an invalid spec yields garbage diffs).
  3. Diff — three oasdiff invocations (intermediates, gitignored via .oasdiff-*): oasdiff changelog base.yaml revision.yaml --format markdown > .oasdiff-changelog.md (human) · --format json > .oasdiff-changelog.json (feeds summary counts) · oasdiff breaking base.yaml revision.yaml --format json > .oasdiff-breaking.json (feeds breakingChanges[]).
  4. Classify with the matrix below; semverBump rollup: any Breaking → major; else any Additive → minor; else Cosmetic → patch; else none.
  5. Map consumers: grep call sites for each changed operation/path (rg '"/users' --type ts -l etc.); each hit gets the consumer action.
  6. Emit CONTRACT_DIFF.md (changelog + impact) and CONTRACT_DIFF.json ({summary: {breaking, nonBreaking, cosmetic, semverBump}, breakingChanges: [...], consumerImpact: [...]}) + a migration plan section per breaking change. Intermediates never committed.

Classification matrix (authoritative)

Change Severity Semver Consumer action
Operation removed / path or param renamed Breaking Major remove/replace call site, update route construction
Required request field added Breaking Major send the new field
Field type changed / format changed (int32→int64) Breaking Major update types + parsing
Response field removed / status code changed or removed Breaking Major stop relying on field; update branching
Enum value removed Breaking Major remove branches on that value
Required response field added Breaking Major update null-checks
Security scheme changed / required header removed Breaking Major update auth flow / request builder
Constraint tightened Breaking Major re-validate inputs client-side
Optional field added (request or response) Non-breaking Minor optional adoption
New operation / additive response field Additive Minor optional adoption
Description/title/summary updated Cosmetic Patch none

Read the full file on GitHub · 49 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. 2mo ago Changed · -456 lines b1d5b93347ee
  2. 3mo ago First seen · 505 lines · 52 tokens per session scan A 337cd8106242

Subscribe to this mod's changes

openapi-contract-adherence-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 768 once invoked, about $0.0002 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-09-03.

Related

openapi-contract-adherence-skill compared with skills from other repositories

openapi-contract-adherence-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openapi-contract-adherence-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0A52Claude Code, Codex
sanity-best-practicesvercel/eveSkill6.2ktodayApache-2.0A153Claude Code, Codex
reviewvercel/eveSkill6.2ktodayApache-2.0A31Claude Code, Codex
horse-app-structureHashLoad/horseSkill1.4k2d agoMITA26Claude Code, Codex
om-system-extensionopen-mercato/open-mercatoSkill2.0ktodayMITA73Claude Code, Codex
flow-next-impl-reviewgmickel/flow-nextSkill7374d agoMITA34Claude Code, Codex
api-contract-reviewTencentCloudBase/CloudBase-AI-ToolkitSkill1.2kyesterdayMITA54Claude Code