api-versioning
Skill2 starsChanged 5 months agoMITView on GitHub
Manage public API version transitions — v2-alongside-v1, Deprecation/Sunset headers, client migration tracker. Use when a breaking API change is needed but cannot ship as a wire-break.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- codewithmukesh/dotnet-claude-kittheir own version, first seen Nov 8, 2026
- jars-demo/jars-skillstheir own version, first seen Oct 25, 2026
- lgzarturo/codeconductortheir own version, first seen Oct 18, 2026
- NoorQureshi/ronintheir own version, first seen Oct 11, 2026
- NoorQureshi/SploitAgenttheir own version, first seen Oct 11, 2026
- NoorQureshi/security-skillstheir own version, first seen Oct 11, 2026
Used with
Projects with it also use dependency-injection, openapi and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
HamzaSheikh768Skilldependency-injection
Leverages FastAPI's powerful Depends system for reusable authentication, database sessions, rate limiting, and business logic injection.
Also in 3 projects that use this
ffsshhttiikkSkillopenapi
OpenAPI/Swagger specification and documentation
Also in 3 projects that use this
diego-tobalinaSkilllogging
Logging best practices for Java (SLF4J/Logback) and Node.js (Winston/Pino). Use for structured logging, log levels, and avoiding sensitive data exposure.
Also in 3 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 3 projects that use this
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- codewithmukesh/dotnet-claude-kit★ 808same name
- ThibautBaissac/rails_ai_agents★ 665same name
- rrezartprebreza/spring-boot-skills★ 344same name
- Resgrid/Core★ 238same name
- NoorQureshi/security-skills★ 27same name
- NoorQureshi/ronin★ 26same name
- NoorQureshi/SploitAgent★ 26same name
- wpank/ai★ 11same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- Abdox-menara/guard-skills★ 0same name
2 more not listed
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 repository60 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- analyzeSkill
- animation-disciplineSkill
- autopilotSkill
- browser-e2eSkill
- characterizeSkill
- clarifySkill
- codemodSkill
- constitution-compactSkill
- constitutionSkill
- context-budgetSkill
- creative-webSkill
- db-migrationSkill
- debugSkill
- detect-stackSkill
- dispatch-criteriaSkill
- dreamSkill
- experimentSkill
- fastapiSkill
- flag-cleanupSkill
- flag-rolloutSkill
- flask-realtimeSkill
- framework-detectorSkill
- front-end-designSkill
- grill-meSkill
- handoffSkill
- image-generationSkill
- implementSkill
- initiativeSkill
- instinctSkill
- loopSkill
- nextjsSkill
- observabilitySkill
- okr-alignSkill
- parallel-swarmSkill
- pivotSkill
- planSkill
- pr-bodySkill
- prime-disciplineSkill
- prod-observabilitySkill
- react-nodeSkill
- react-viteSkill
- release-trainSkill
- researchSkill
- reviewSkill
- security-guardSkill
- self-healSkill
- shipSkill
- skill-creatorSkill
- specifySkill
- tailwind-disciplineSkill
- tasksSkill
- tdd-loopSkill
- token-budgetSkill
- typographySkill
- verify-loopSkill
- verifySkill
- wip-checkpointSkill
- <kebab-case-skill-name>Skill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 80
Both versions must be tested: Don't let v1 rot during the transition.
- Distinctive: line 81
Sunset day is announced once and held: Don't extend repeatedly — credibility erodes.
- Very specific: line 82
410 Gonefor ≥ 90 days post-sunset: before deleting endpoints.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Public APIs can't break clients. This skill encodes the v2-alongside-v1 dance with explicit sunset.
When to version
| Change | Requires version bump |
| Add a new field (response) | No — additive, no bump |
| Add a new optional request param | No |
| Remove a field | YES — breaking |
| Change a field type | YES |
| Change a field's semantic meaning | YES |
| Tighten validation | Usually YES (may reject previously-valid input) |
| Change error code | YES |
| Change auth scheme | YES |
| Rename endpoint | YES |
Process
- Decide cut-line — what changes go into v2 (don't drip; one v2 per logical theme).
- Build v2 alongside v1. Both endpoints live. v1 stays as-is.
- Announce deprecation — v1 endpoints emit
Deprecation: <ISO-date>andSunset: <ISO-date>HTTP headers (RFC 8594). - Track client migration — query analytics for v1 usage; identify top callers; reach out.
- Reduce v1 traffic — month-by-month migration; report % migrated weekly.
- Final warning — 30 days before sunset, emit louder warnings (log + status page).
- Sunset — v1 returns
410 Gonewith migration guide URL. Keep410for ≥ 90 days. - Remove — delete v1 code, schema, tests. Update SDK / docs / OpenAPI spec.
Per-endpoint deprecation header
HTTP/1.1 200 OK
Content-Type: application/json
Deprecation: Sat, 28 May 2027 00:00:00 GMT
Sunset: Wed, 28 Nov 2027 00:00:00 GMT
Link: <https://api.example.com/v2/users>; rel="successor-version"
Link: <https://docs.example.com/migrate/v1-to-v2>; rel="deprecation"Tracking artifact
# .claude/memory/deprecations/api-v1.yaml
api: v1
announced: 2026-05-28
sunset: 2027-11-28
successor: v2
endpoints:
- path: GET /v1/users
successor: GET /v2/users
callers:
total: 247
migrated: 198
remaining:
- { client: "mobile-ios v3.4", contact: "@mobile" }
- { client: "internal-cron", contact: "@platform" }
- { client: "partner XYZ", contact: "partners@example.com" }
- path: GET /v1/orders
successor: GET /v2/orders
callers:
total: 89
migrated: 89
remaining: [] # safe to sunset earlyHard rules
- 6-month minimum sunset window for external APIs. 90-day minimum for internal.
- Both versions must be tested. Don't let v1 rot during the transition.
- Sunset day is announced once and held. Don't extend repeatedly — credibility erodes.
410 Gonefor ≥ 90 days post-sunset before deleting endpoints. Some clients are slow.- Migration guide is required. Link from the deprecation header.
CI gates
- New endpoint adds
Deprecation/Sunsetheaders if/deprecate-apiwas run on it - E2E tests cover both v1 and v2 until v1 is removed
- Spec lists v2's
supersedes:referring to v1's spec
References
- RFC 8594 — Sunset HTTP header
- IETF draft — Deprecation header field
- See also:
.claude/memory/deprecations/REGISTRY.md /deprecate-apicommand
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.

