Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Openapi Contract Adherence Skill

ASecurity

Detect OpenAPI contract changes, classify breaking vs additive, map consumer impact, generate migration plans (oasdiff). Triggers: openapi diff, api contract, breaking change, contract review, spec changed, regenerate client.

6 stars
0 votes
0 copies
0 views
Added 9/20/2026
toolsgodockergitapisecurity

Works with

cliapi

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add darellchua2/opencode-config-template --skill openapi-contract-adherence-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openapi Contract Adherence Skill?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Openapi Contract Adherence Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/darellchua2-openapi-contract-adherence-skill/badge)](https://www.skillsdirectory.com/skills/darellchua2-openapi-contract-adherence-skill)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: openapi-contract-adherence-skill
description: >-
  Detect OpenAPI contract changes, classify breaking vs additive, map consumer
  impact, generate migration plans (oasdiff). Triggers: openapi diff, api
  contract, breaking change, contract review, spec changed, regenerate client.
license: Apache-2.0
compatibility: opencode
category: Framework
---

## 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 |

**Related:** `api-design-skill` §Authoring Quality Gate (write-time rules; this skill is the review-time counterpart).

Attribution

darellchua2darellchua2
View sourceMore from darellchua2 →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

ucoz-landing-skill

Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

805541 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Caveman Compress

Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"

1023330 votes
View all in tools →