common-api-design
REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards applicable to any framework.
Skill by wildbitca
Chalk Labs
Need help deploying common-api-design?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/wildbitca-common-api-design
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: documents, 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/common-api-design
What's inside
- Skill name
common-api-design- Description
- REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards applicable to any framework. (triggers: **/*.controller.ts, **/*.router.ts, **/*.routes.ts, **/routes/**, **/controllers/**, **/handlers/**, rest api, endpoint, http method, status code, versioning, pagination, openapi, api design, api contract)
- License
- Apache-2.0
- Instructions
- 61 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- example.md · references/
SKILL.md (first lines)
# Common API Design Standards
## **Priority: P1 (OPERATIONAL)**
Consistent, predictable API contracts reduce integration friction and prevent breaking changes from reaching consumers.
## 🔧 HTTP Verb Semantics
- `GET` read-only, idempotent — never mutates state.
- `POST` create or trigger; `PUT` full replace; `PATCH` partial update; `DELETE` remove.
- Non-CRUD actions as sub-resources: `POST /orders/:id/cancel`.
## 📡 Status Code Correctness
- `200` success; `201` created (add `Location` header); `204` no body.
- `400` validation (with `details[]`); `401` unauthenticated; `403` unauthorized; `404` not found.
- `409` conflict; `422` business rule violation; `429` rate limit (add `Retry-After`); `500` unhandled.
## 📦 URL Design Rules
- **Lowercase, kebab-case**: `/user-profiles`, not `/UserProfiles` or `/user_profiles`.
- **Plural nouns**: `/orders`, `/products`. Not `/order`, `/getProducts`.
- **No verbs in paths** (except action sub-resources): `/orders/:id/cancel` ✅, `/cancelOrder` ❌.
- **Hierarchy**: Use nesting only up to 2 levels: `/users/:id/orders` ✅, `/users/:id/orders/:orderId/items/:itemId` ❌.
## 🔢 API Versioning
- **Strategy**: URL path versioning is the default: `/v1/users`, `/v2/users`.
- **Header versioning** (`Api-Version: 2`) is acceptable for internal APIs.
- Never mix versions in the same controller — each version gets its own route module.
- Support previous major version for minimum 6 months after a new one is released.
- Deprecation: Add `Deprecation: true` + `Sunset: <date>` headers when a version will be retired.
## 📄 Pagination
- Prefer cursor-based (`cursor` + `limit`) for large/live datasets; offset only for small static ones.
- Default `limit: 20`, max `100`. Reject requests exceeding max.
- Response envelope: `{ data: [], pagination: { nextCursor, hasNextPage } }`.
## 📝 OpenAPI Contract
- Every API MUST have an OpenAPI 3.1 spec.
- Generate spec from code annotations (not hand-written YAML) to prevent drift.
- Include: request/response schemas, error shapes, auth requirements, examples.
- Review OpenAPI spec as part of PR process — breaking changes require version bump.
## 🔒 API Security Baseline
- Require auth on all routes by default; use `@Public()` or equivalent opt-out.
- Validate and sanitize all query params, path params, and request bodies.
- Set `Content-Type: application/json` explicitly. Reject unexpected content types.
- Include `X-Content-Type-Options: nosniff` and `X-Frame-Options: DENY` headers.
## Anti-Patterns
- **No `GET` mutations**: Search engines and CDNs cache GET — mutating state is catastrophic.
- **No 200 for errors**: `{ "success": false, "data": null }` with HTTP 200 breaks monitoring.
- **No deeply nested URLs**: Hard to document, version, and cache.
- **No breaking changes without versioning**: Removing/renaming fields in-place breaks consumers silently.From wildbitca/ai-resources, Apache-2.0.
More from wildbitca/ai-resources
- 0.592score
changelog-best-practices
wildbitca
Write, maintain, and migrate CHANGELOG.md files using Keep a Changelog format and best practices.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
code-cleanup
wildbitca
Applies generic code cleanup (comments, unused code, empty dirs, linters, config, duplicates) for any language (Dart, Bash, Python, Java, Kotlin, Swift…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-code-review
wildbitca
Standards for high-quality, persona-driven code reviews.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-debugging
wildbitca
Systematic troubleshooting using the Scientific Method.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-documentation
wildbitca
Essential rules for code comments, READMEs, and technical docs.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-feedback-reporter
wildbitca
Pre-write skill violation audit.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-git-collaboration
wildbitca
Universal standards for version control, branching, and team collaboration.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-llm-security
wildbitca
OWASP LLM Top 10 (2025) audit checklist for AI applications, agent tools, RAG pipelines, and prompt construction.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
common-architecture-diagramming
wildbitca
Standards for creating clear, effective, and formalized software architecture diagrams (C4, UML).
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
common-mobile-ux-core
wildbitca
Universal mobile UX principles for touch-first interfaces.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
common-mobile-animation
wildbitca
Motion design principles for mobile apps.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
common-error-handling
wildbitca
Cross-cutting standards for error design, response shapes, error codes, and boundary placement.
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- Mar 23, 2026 (7 months ago)
- Last release
- Oct 24, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/wildbitca/ai-resources
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from wildbitca
- 0.592score
common-debugging
wildbitca
Systematic troubleshooting using the Scientific Method.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-documentation
wildbitca
Essential rules for code comments, READMEs, and technical docs.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
changelog-best-practices
wildbitca
Write, maintain, and migrate CHANGELOG.md files using Keep a Changelog format and best practices.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-code-review
wildbitca
Standards for high-quality, persona-driven code reviews.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
code-cleanup
wildbitca
Applies generic code cleanup (comments, unused code, empty dirs, linters, config, duplicates) for any language (Dart, Bash, Python, Java, Kotlin, Swift…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
common-feedback-reporter
wildbitca
Pre-write skill violation audit.
SkillAFreshness: A★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get common-api-design running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
common-api-design skill. Agent Mart. https://agentmart.dev/skills/wildbitca-common-api-design (last updated 2026-10-24)