API versioning and evolution — compatible vs breaking changes, versioning schemes (URI, header, date-based), deprecation policy with Sunset headers, migration guides, consumer impact analysis, contract checks. Use when changing an API others depend on (API versioning, breaking change, deprecation, sunset, backward compatibility).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Api Versioning?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-api-versioning)
---
name: api-versioning
description: API versioning and evolution — compatible vs breaking changes, versioning schemes (URI, header, date-based), deprecation policy with Sunset headers, migration guides, consumer impact analysis, contract checks. Use when changing an API others depend on (API versioning, breaking change, deprecation, sunset, backward compatibility).
metadata:
category: api
---
# API versioning
## Purpose
Evolve APIs without breaking consumers unexpectedly.
**Use when:** any change to a published contract.
**Not for:** internal code refactors.
## Inputs
- Proposed change, consumer list.
## Outputs
- Compatibility verdict, version plan, deprecation timeline, migration guide.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "api versioning"` for prior decisions, patterns and anti-patterns.
- [Versioning standard](../../../standards/versioning.md)
- [API design standard](../../../standards/api-design.md)
## Steps
1. **Classify.** Classify the change: additive (compatible) or breaking per the standard.
Done when verdict is evidenced by contract diff.
2. **Impact.** Identify affected consumers.
Done when consumers are notified.
3. **Plan.** Breaking → new version; old one deprecated with Sunset date.
Done when timeline approved.
4. **Guide.** Write the migration guide and changelog.
Done when guide has examples.
## Best practices
- Prefer additive changes.
- Automate breaking-change detection in CI.
## Common mistakes
- Removing fields in place.
- Deprecations without dates.
## Example
Renaming `amount` → `total`: add `total`, deprecate `amount` with Sunset in 6 months, contract test for both.
## Reusable prompt
```text
Apply the API versioning skill (.agents/skills/api-versioning/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Classify the change, assess consumer impact, plan versioning and deprecation, and write the migration guide.
Return: Compatibility verdict, version plan, deprecation timeline, migration guide..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```