api-versioning-strategy
Select API versioning strategy (URL / header / media-type / query / evolutionary) + breaking-vs-non-breaking taxonomy + deprecation policy (Sunset + Deprecation headers, parallel windows, migration docs). Applies to REST / GraphQL / gRPC / events.
What this skill does
# API Versioning Strategy
You pick a versioning strategy that fits the API style and consumer base, and define a deprecation policy with clear lifecycle milestones.
## Core rules
- **Prefer evolution over versioning** — additive non-breaking changes first
- **Version for breaking changes, not every change** — minor v1.1 bumps bloat docs
- **Announce deprecation early** — give consumers migration runway
- **Parallel-support old + new during migration** — don't force hard cutovers
- **Communicate in-band + out-of-band** — headers in responses + email / changelog
- **No fabricated consumer base** — work from supplied facts
## Input handling
| Dimension | Required | Default |
|---|---|---|
| **API style** (REST / GraphQL / gRPC / events) | Yes | — |
| **Consumer base** (internal / partner / public / mobile) | Yes | — |
| **Change profile** (expected breaking-change cadence) | No | Asked |
| **Existing versioning scheme** | No | Asked |
| **Client update control** (we control / they control) | No | Asked |
## Phase 1 — Setup
```
**API style**: [REST / GraphQL / gRPC / events]
**Consumers**: [internal services / partners / public / mobile app / web app]
**Consumer update control**: [we deploy clients / partners control / public]
**Change profile**: [breaking rare / periodic / frequent]
**Existing scheme**: [none / URL v1 / header / ...]
**Deprecation tolerance**: [months of parallel support feasible]
```
Ask render mode per `diagram-rendering` mixin and output path (default: `/documentation/[case]/api-versioning-strategy/`).
## Phase 2 — Strategy catalog (REST)
### URL path versioning (`/v1/orders`)
**When to use**: public API / partners / easy to see in logs + curl / simple
**When not**: internal API with tight control / GraphQL (URL doesn't version typically)
**Trade-offs**: explicit + discoverable vs clutters URLs, encourages version proliferation
**Examples**: GitHub, Stripe (with their own evolutionary layer on top)
### Custom header versioning (`X-API-Version: 2`)
**When to use**: keep URLs clean / partner API
**When not**: cache-sensitive (Vary: header)
**Trade-offs**: URL stability vs invisible in logs, less curl-friendly
### Media-type versioning (`Accept: application/vnd.example.v2+json`)
**When to use**: RESTful purists / content negotiation already in use
**When not**: docs friction / SDK friction
**Trade-offs**: pure REST + content-negotiation-aligned vs less discoverable
### Query-param versioning (`?v=2`)
**When not to use (mostly)**: fiddly, cache-unfriendly, looks temporary
### Evolutionary (no version)
**When to use**: tight client control / internal / or Stripe-style rolling
**When not**: public broad-consumer API
**Trade-offs**: no versioning cost vs strict discipline: every change must be additive; requires `Stripe-Version` style client pinning or careful evolution
**Examples**: Stripe's "API version" is a date that clients pin; the URL stays `/v1/`
## Phase 2B — GraphQL versioning
- **Preferred**: no versioning; additive schema with `@deprecated` directive
- Remove fields only after deprecation period
- For large breaking changes: parallel schemas or federation subgraph swap
- `graphql-inspector` for breaking-change detection in CI
## Phase 2C — gRPC versioning
- **Package in proto** (`orders.v1`, `orders.v2`)
- Wire compatibility rules: never renumber fields, add as optional, `reserved` on removal
- New service at new package path for truly breaking changes
- `buf breaking` in CI
## Phase 2D — Event schema versioning
Hand off to `event-schema-design`. Summary:
- Additive within v1
- Parallel topic or upcasting for breaking
- Schema registry compatibility mode enforces rules
## Phase 3 — Breaking vs non-breaking taxonomy
### Non-breaking (safe)
- Add optional request field (unused by existing clients)
- Add optional response field (ignored by old clients that don't know)
- Add new endpoint / operation
- Add new enum value **only if** clients handle unknowns gracefully (GraphQL: clients must)
- Relax validation on request
### Breaking (requires version bump)
- Remove or rename field
- Change type / semantics
- Make optional field required
- Change error codes / envelope
- Change URL structure
- Change auth semantics
- Remove endpoint / operation
### Grey area (case-by-case)
- Adding a required field server-side defaults
- Changing default values
- Tightening validation
- Changing rate limits significantly
Document examples for the team.
## Phase 4 — Deprecation policy
### Lifecycle stages
1. **Announced** — publicly communicated, new API released in parallel
2. **Deprecated** — still works; response headers + docs flag it; new consumers discouraged
3. **Sunset** — still works; short window to final removal
4. **Removed** — returns `410 Gone` (or protocol equivalent)
### Headers (REST)
```
Deprecation: true
Deprecation: @1713350400 (timestamp when deprecated; RFC 8594 extension)
Sunset: Wed, 17 Oct 2027 00:00:00 GMT (RFC 8594)
Link: <https://docs.example.com/migrate-v1-v2>; rel="deprecation"
```
### Timelines (typical)
| Consumer type | Deprecation → Sunset |
|---|---|
| Public API | 12–24 months |
| Partner API | 6–12 months |
| Internal | 1–3 months |
### Parallel-support window
- Both versions run side-by-side
- Metrics: % traffic on old vs new
- Migration guide + automated client stubs where possible
### Communication channels
- Changelog + docs banner
- Email to key integrators
- `Deprecation` + `Sunset` headers
- Developer newsletter
- Personalized reachout for last-10% of old-version traffic
## Phase 5 — Versioning for events
Hand off details to `event-schema-design`. Mention here:
- Topic name includes version (`orders.placed.v1`)
- Parallel topics during migration
- Consumer upcasting vs topic switching
## Phase 6 — Client pinning (Stripe style)
Optional pattern:
- Client sends `X-API-Version: 2026-01-15` (date)
- Server interprets payload shape based on pinned version
- New changes apply only to clients that upgrade pin
- Pros: no URL version bumps; smooth evolution
- Cons: engineering discipline required server-side; complex internally
Recommend for public APIs with broad consumers when willing to invest.
## Phase 7 — Recommendation
One paragraph:
- **Chosen strategy** per API style
- **Why**: top 2 factors
- **Deprecation policy**: announce → deprecate → sunset → remove with timelines
- **Parallel-support window**
- **Communication plan**
- **Tooling**: breaking-change detectors (`openapi-diff`, `graphql-inspector`, `buf breaking`), dashboards for version usage
## Phase 8 — Diagrams
### Version lifecycle
```mermaid
timeline
title v1 lifecycle
2026-01 : Announced (v2 released in parallel)
2026-06 : Deprecated (headers live)
2027-10 : Sunset date
2027-10 : Removed → 410 Gone
```
### Traffic migration
```mermaid
xychart-beta
title "Traffic share v1 vs v2 over time"
x-axis ["Jan", "Apr", "Jul", "Oct", "Jan", "Apr"]
y-axis "% traffic" 0 --> 100
line [100, 80, 55, 30, 10, 0]
line [0, 20, 45, 70, 90, 100]
```
## Phase 9 — Diagram rendering
Per `diagram-rendering` mixin.
## Phase 10 — Report assembly and approval
```markdown
# API Versioning Strategy: [API]
**Date**: [date]
**API style**: [REST / GraphQL / gRPC / events]
**Strategy**: [URL / header / media-type / evolutionary / package]
## Scope
[API, consumers, update control, change profile, tolerance]
## Strategy Catalog
[Options reviewed per style]
## Recommendation
[Chosen + rationale]
## Breaking vs Non-Breaking Taxonomy
[Examples]
## Deprecation Policy
[Lifecycle + headers + timelines + parallel window + comms]
## Client Pinning (if adopted)
[Mechanism]
## Tooling
[Breaking-change detection + version-usage metrics]
## Diagrams
[Lifecycle + migration]
## Hand-offs
[api-contract-specification, event-schema-design, webhook-design, rate-limiting]
## Assumptions & Limitations
```
Present for user approval. Save only after confirmation.
## AssessmRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.