api-versioning
Skill6 starsChanged 8 months agoMITView on GitHub
Breaking change detection, versioning strategies (URL path vs header), deprecation policies, backward compatibility rules, and OpenAPI spec maintenance.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- lgzarturo/codeconductortheir own version, first seen Sep 30, 2026
- NoorQureshi/SploitAgenttheir own version, first seen Sep 9, 2026
- rrezartprebreza/spring-boot-skillstheir own version, first seen Aug 7, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Jul 22, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
- wpank/aitheir own version, first seen Feb 10, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- codewithmukesh/dotnet-claude-kit★ 750same name
- rrezartprebreza/spring-boot-skills★ 293same name
- NoorQureshi/SploitAgent★ 20same name
- wpank/ai★ 11same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- lgzarturo/codeconductor★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository64 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api-backward-compatibilitySkill
- api-design-standardsSkill
- database-designSkill
- distributed-systemsSkill
- observability-by-defaultSkill
- performance-budgetsSkill
- resilience-patternsSkill
- twelve-factor-appSkill
- codex-cross-reviewSkill
- dispatching-parallel-agentsSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- subagent-driven-developmentSkill
- architecture-awarenessSkill
- intent-to-specSkill
- project-diagnosisSkill
- using-shipworthySkill
- systematic-debuggingSkill
- documentation-as-codeSkill
- accessibilitySkill
- frontend-standardsSkill
- retrospectiveSkill
- writing-skillsSkill
- ci-cd-awarenessSkill
- context-managerSkill
- environment-setupSkill
- feature-flag-disciplineSkill
- finishing-a-development-branchSkill
- guardrail-audit-logSkill
- incident-responseSkill
- mcp-integrationSkill
- migration-strategiesSkill
- production-readinessSkill
- scope-creep-detectionSkill
- session-memorySkill
- slo-sli-definitionSkill
- tech-debt-trackingSkill
- using-git-worktreesSkill
- zero-downtime-migrationsSkill
- brainstormingSkill
- decision-frameworksSkill
- design-documentsSkill
- executing-plansSkill
- writing-plansSkill
- code-complexitySkill
- confidence-based-strictnessSkill
- error-handling-patternsSkill
- feedback-driven-adaptationSkill
- quality-gatesSkill
- response-schema-validationSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- adaptive-securitySkill
- bias-detectionSkill
- compliance-awarenessSkill
- container-securitySkill
- dependency-managementSkill
- pii-detectionSkill
- secrets-managementSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Start with URL path versioning.
- Distinctive: line 63
Never change the type of an existing field.
- Distinctive: line 64
Never remove a field without a deprecation period.
- Distinctive: line 87
Every API PR must include spec updates if the contract changes.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
API Versioning
Breaking Change Detection
A change is breaking if any existing consumer's code would fail after the change:
| Change | Breaking? | Action Required |
| Remove/rename a response field | Yes | Major version bump |
| Change a field's type | Yes | Major version bump |
| Make optional field required | Yes | Major version bump |
| Change error codes/shapes | Yes | Major version bump |
| Add optional field (request or response) | No | Safe |
| Add new endpoint | No | Safe |
Automated Detection
# CI check: compare OpenAPI spec against last release
oasdiff breaking base-spec.yaml current-spec.yaml --fail-on ERRVersioning Strategies
URL Path (recommended for public APIs):
GET /v1/users/123
GET /v2/users/123Explicit, easy to route, easy to understand. Commit to never breaking within a version.
Header Versioning (Stripe-style):
GET /users/123
API-Version: 2025-06-01Clean URLs, version pinned per API key. Requires version transformation layer.
Start with URL path versioning. Move to header versioning only if you need per-consumer version pinning.
Backward Compatibility Rules
Additions are safe. Removals need a major version.
// Safe: add new field (existing consumers ignore it)
{ "id": "usr_123", "name": "Alice", "avatar_url": "https://..." }
// BREAKING: rename a field -- must be v2
{ "id": "usr_123", "display_name": "Alice" }
// Safe migration: add new field, keep old, deprecate old
{ "id": "usr_123", "name": "Alice", "display_name": "Alice" }- New fields must have defaults that preserve existing behavior.
- Never change the type of an existing field.
- Never remove a field without a deprecation period.
Deprecation Policy
| API Type | Minimum Notice |
| Public | 12 months |
| Partner | 6 months |
| Internal | 3 months |
Process: Announce (add Sunset header) -> Document in spec -> Track consumer usage -> Notify remaining consumers 30 days before sunset -> Return 410 Gone after sunset date.
/v1/users/{id}/legacy-profile:
get:
deprecated: true
x-sunset-date: "2026-09-01"
description: "DEPRECATED: Use /v2/users/{id}/profile. Removal: 2026-09-01."OpenAPI Spec Maintenance
- The OpenAPI spec is the source of truth. If spec and code disagree, fix the code.
- Every API PR must include spec updates if the contract changes.
- Generate client SDKs from the spec, not by hand.
- Validate responses against the spec in integration tests.
API Change Review Checklist
- Is the change additive-only? If not, is there a version bump?
- Are new fields optional with documented defaults?
- Is the OpenAPI spec updated?
- Is a breaking change going through the deprecation process?
- Are deprecated endpoints returning Sunset headers?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

