api-versioning

Manage API versioning strategies and deprecation workflows with sunset headers.

6|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill api-versioning-repairyourtech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-versioning
Source: https://github.com/RepairYourTech/cfsa-antigravity/tree/main/.agent/skills/api-versioning
Command: npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill api-versioning-repairyourtech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the critical challenge of managing API evolution and deprecation, ensuring that changes to your API contracts do not disrupt existing consumers and maintain trust.

Core Features & Use Cases

  • Versioning Strategies: Implement URL path, header, or query parameter versioning.
  • Deprecation Workflows: Manage the lifecycle of API versions using Sunset headers and clear deprecation timelines.
  • Breaking Change Identification: Differentiate between breaking and non-breaking changes to inform versioning decisions.
  • Consumer-Driven Contracts: Ensure compatibility through automated contract testing.
  • Use Case: You need to introduce a new, incompatible version of your user API. This Skill guides you through announcing the deprecation of the old version, implementing a sunset policy, and ensuring consumers migrate smoothly.

Quick Start

Use the api-versioning skill to manage the deprecation of API version 1, setting a sunset date for March 1st, 2026.

Frequently Asked Questions about api-versioning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deprecate an old REST API version without breaking existing clients?

To deprecate a REST API version safely, implement a deprecation workflow using Sunset headers and clear timelines. This approach announces the deprecation and sets a specific sunset date, ensuring consumers can migrate smoothly without sudden disruptions.

What is the best way to version a REST API when introducing breaking changes?

The best way to version a REST API with breaking changes is selecting a versioning strategy—URL path, header, or query parameter—and applying it consistently. Classifying changes as breaking or non-breaking first informs whether a new version is required.

How does consumer-driven contract testing work for API evolution?

Consumer-driven contract testing ensures API compatibility during evolution by validating that changes do not violate existing consumer expectations. This automated testing prevents breaking changes from reaching production and maintains integration trust.

When do I need to use Sunset headers in API versioning?

You need to use Sunset headers in API versioning when managing the lifecycle of deprecated versions. They communicate a specific sunset date to clients, providing a clear timeline for when the old API version will be permanently removed.

What is the difference between breaking and non-breaking API changes?

Breaking API changes disrupt existing consumers by altering the contract, requiring a new version or migration. Non-breaking changes are backward-compatible additions that safely evolve the API without impacting current client integrations.

Can I use header versioning instead of URL path versioning for my API?

Yes, you can use header versioning, URL path versioning, or query parameter versioning. The choice depends on your API evolution strategy, as each approach manages version selection differently within the HTTP request structure.