Skip to content
Back to skills

Api Versioning

ASecurity

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).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgoapi

Works with

  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill api-versioning --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Versioning?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Versioning
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-api-versioning/badge)](https://www.skillsdirectory.com/skills/vectora-os-api-versioning)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
```

Attribution

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

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.