api-versioning
HTTP API design and evolution — resource shapes, status codes, pagination, and how to change an API without breaking its clients.
Skill by UnicoLab
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/unicolab-api-versioning
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/api-versioning
What's inside
- Skill name
api-versioning- Description
- HTTP API design and evolution — resource shapes, status codes, pagination, and how to change an API without breaking its clients.
- License
- MIT
- Instructions
- 59 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# API design and versioning
## Shape
- **Resources are plural nouns; the verb is the method.**
`GET /orders/{id}`, `POST /orders`, `PATCH /orders/{id}` — never
`POST /createOrder`.
- **`PUT` replaces, `PATCH` merges.** Pick one and honour it; a `PUT` that
ignores absent fields silently corrupts data.
- **Every list endpoint is paginated from day one.** Cursor-based
(`?limit=50&cursor=…`, returning `next_cursor`) survives inserts; offset
pagination skips and repeats rows under concurrent writes.
- **Wrap collections in an object**, `{"items": [...], "next_cursor": "..."}`,
never a bare top-level array — an array leaves nowhere to add metadata later.
- **Consistent field naming and time format.** Pick `snake_case` or `camelCase`
once. Timestamps are RFC 3339 UTC strings; money is an integer of minor units
plus a currency code, never a float.
## Status codes that carry information
`200` ok · `201` created (with a `Location` header) · `202` accepted (async) ·
`204` no content · `400` malformed · `401` unauthenticated · `403`
authenticated-but-forbidden · `404` not found · `409` conflict · `422`
semantically invalid · `429` rate limited (with `Retry-After`) · `5xx` our fault.
Errors have a stable machine-readable shape:
`{"error": {"code": "order_not_found", "message": "…", "details": {...}}}`.
Clients branch on `code`; `message` is for humans and may change.
## Changing an API
**Additive changes are safe. Everything else needs a version.**
Safe: adding an endpoint, adding an optional request field, adding a response
field (clients must ignore unknown fields — say so in the docs).
Breaking: removing or renaming a field, changing a type, making an optional
field required, changing a status code or an error `code`, tightening
validation, changing pagination defaults.
To ship a breaking change:
1. Add the new form alongside the old (`/v2/orders`, or a new field).
2. Mark the old one deprecated — in the docs, in a `Deprecation`/`Sunset`
header, and in the release notes — with a date.
3. Measure who still calls it. Remove only after that reaches zero or the
announced date passes.
Version in the path (`/v1/…`) unless the project already versions by header.
Do not version per-endpoint; clients cannot track that.
## Always
- Validate input at the boundary and reject unknown fields on writes.
- Make writes idempotent (an `Idempotency-Key` header, or a natural key) —
clients retry.
- Never return an internal exception message or a stack trace to a client.
- The OpenAPI spec and the handler must be changed in the same commit.From UnicoLab/smlcode, MIT.
More from UnicoLab/smlcode
- 0.584score
conventional-commits
UnicoLab
Commit and PR messages that survive a `git log` six months later — Conventional Commits, imperative subjects, and what belongs in the body.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
dockerfile-hygiene
UnicoLab
Dockerfiles that build fast, stay small and do not run as root — layer ordering, multi-stage builds and the cache rules behind them.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
go-table-tests
UnicoLab
Write Go tests the standard way — table-driven subtests, t.Helper, t.Cleanup, and what to assert instead of reflect.DeepEqual.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
hve-rpi
UnicoLab
Hypervelocity Engineering RPI loop (Research, Challenge, Plan, Implement, Review) with FAR rubric and uncertainty tracking.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
hve-security-rai
UnicoLab
STRIDE threat modeling, OWASP/MCSB security planning, OpenSSF/SLSA supply chain hygiene, and NIST AI RMF Responsible AI.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
openshift-manifests
UnicoLab
OpenShift deployment specs that pass the restricted SCC on the first apply — kustomize base/overlays, probes, limits, secrets done safely, and how to explain…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
pytest-fixtures
UnicoLab
pytest fixtures, parametrize, tmp_path and monkeypatch — the idioms that replace setUp boilerplate and shared mutable state.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
python-typing
UnicoLab
Type hints that actually help — Optional, generics, Protocol, and the mutable-default and import-cycle traps around them.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
hve-ux-design
UnicoLab
Design Thinking (DFV) and UX architecture for user flows, component hierarchy, and interactive state matrices.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
go-concurrency
UnicoLab
Goroutine lifetime, context cancellation, channel direction and the mistakes that make Go concurrency leak or race.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
honest-verification
UnicoLab
Prove the objective was met, not merely that nothing is red — a suite that was already green is not evidence.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
hve-requirements
UnicoLab
BRD 3-phase discovery, PRD 7-phase specification, Epic/Story/Task decomposition, and Socratic ADR coaching.
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 23, 2026 (2 months ago)
- Last release
- Oct 20, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/UnicoLab/smlcode
- Website
- unicolab.github.io/smlcode/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from UnicoLab
- 0.584score
hve-rpi
UnicoLab
Hypervelocity Engineering RPI loop (Research, Challenge, Plan, Implement, Review) with FAR rubric and uncertainty tracking.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
hve-security-rai
UnicoLab
STRIDE threat modeling, OWASP/MCSB security planning, OpenSSF/SLSA supply chain hygiene, and NIST AI RMF Responsible AI.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
go-table-tests
UnicoLab
Write Go tests the standard way — table-driven subtests, t.Helper, t.Cleanup, and what to assert instead of reflect.DeepEqual.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
dockerfile-hygiene
UnicoLab
Dockerfiles that build fast, stay small and do not run as root — layer ordering, multi-stage builds and the cache rules behind them.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
conventional-commits
UnicoLab
Commit and PR messages that survive a `git log` six months later — Conventional Commits, imperative subjects, and what belongs in the body.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
openshift-manifests
UnicoLab
OpenShift deployment specs that pass the restricted SCC on the first apply — kustomize base/overlays, probes, limits, secrets done safely, and how to explain…
SkillAFreshness: A★ 1Claude Code +9
Cite this page
api-versioning skill. Agent Mart. https://agentmart.dev/skills/unicolab-api-versioning (last updated 2026-10-24)