api-design-patterns
Comprehensive REST and GraphQL API design patterns with versioning, pagination, error handling, and HATEOAS principles.
Skill by NickCrew
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/nickcrew-api-design-patterns
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-design-patterns
What's inside
- Skill name
api-design-patterns- Description
- Comprehensive REST and GraphQL API design patterns with versioning, pagination, error handling, and HATEOAS principles. Use when designing APIs, defining endpoints, or architecting service contracts requiring production-grade patterns.
- License
- MIT
- Instructions
- 531 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 531 lines (spec recommends under 500)
Files (3)
- SKILL.md
- design-process.md · references/
- rubric.yaml · validation/
SKILL.md (first lines)
# API Design Patterns Expert guidance for designing scalable, maintainable REST and GraphQL APIs with industry-standard patterns for versioning, pagination, error handling, authentication, and service contracts. ## When to Use This Skill - Designing new REST or GraphQL APIs from scratch - Refactoring existing APIs for better scalability and consistency - Defining service contracts for microservices architectures - Implementing versioning strategies for API evolution - Standardizing error handling and response formats across services - Designing pagination for large datasets - Implementing HATEOAS or hypermedia-driven APIs - Creating API specifications (OpenAPI, GraphQL Schema) ## Quick Reference | Topic | Load reference | | --- | --- | | **Design Process** | `skills/api-design-patterns/references/design-process.md` | ## Core Principles ### 1. Resource-Oriented Design (REST) **URLs represent resources, not actions:** ``` ✓ GET /users/123 ✓ POST /users ✓ PUT /users/123 ✓ DELETE /users/123 ✗ GET /getUser?id=123 ✗ POST /createUser ✗ POST /deleteUser ``` **Use HTTP methods semantically:** - GET: Retrieve resource(s), idempotent, cacheable - POST: Create resource, non-idempotent - PUT: Replace entire resource, idempotent - PATCH: Partial update, idempotent - DELETE: Remove resource, idempotent ### 2. Consistent Naming Conventions ``` Resources: /users, /orders, /products (plural nouns) Nested: /users/123/orders Collections: /users?status=active&page=2 Sub-resources: /users/123/settings Actions (rare): /users/123/activate (POST) ``` ### 3. HTTP Status Codes **Success:** - 200 OK: Standard response for GET, PUT, PATCH - 201 Created: Resource created (POST), return Location header - 202 Accepted: Async processing started - 204 No Content: Success with no response body (DELETE) **Client Errors:** - 400 Bad Request: Invalid syntax or validation failure - 401 Unauthorized: Authentication required or failed - 403 Forbidden: Authenticated but insufficient permissions - 404 Not Found: Resource doesn't exist - 409 Conflict: State conflict (duplicate, version mismatch) - 422 Unprocessable Entity: Semantic validation failure - 429 Too Many Requests: Rate limit exceeded **Server Errors:** - 500 Internal Server Error: Unexpected server failure - 502 Bad Gateway: Upstream service failure - 503 Service Unavailable: Temporary overload or maintenance - 504 Gateway Timeout: Upstream timeout ## Versioning Strategies ### URI Versioning (Most Common) ``` GET /v1/users/123 GET /v2/users/123 Pros: Clear, easy to route, browser-testable Cons: URL proliferation, cache fragmentation When: Public APIs, major breaking changes ``` ### Header Versioning ``` GET /users/123 Accept: application/vnd.myapi.v2+json Pros: Clean URLs, content negotiation Cons: Harder to test, caching complexity When: Internal APIs, minor version differences ``` ### Query Parameter Versioning ``` GET /users/123?version=2 Pros: Simple, backward compatible Cons: Pollutes query space, inconsistent When: Rare, legacy compatibility ``` ### Deprecation Headers ```http Sunset: Sat, 31 Dec 2024 23:59:59 GMT Deprecation: true Link: <https://api.example.com/v2/users/123>; rel="successor-version" ``` ## Pagination Patterns ### Offset-Based Pagination ```
From NickCrew/Claude-Cortex, MIT.
More from NickCrew/Claude-Cortex
- 0.581score
dev-workflows
NickCrew
Use when running builds, executing tests, or improving developer experience workflows - provides structured guidance for build/test execution and DX…
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
codex-code-review
NickCrew
Automate code review remediation loops with the codex CLI.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
compliance-audit
NickCrew
Regulatory compliance auditing across GDPR, HIPAA, PCI DSS, SOC 2, and ISO frameworks with automated evidence collection and gap analysis.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
design-journey-review
NickCrew
Combined visual design and user journey review: color systems, typography, spacing, information density, visual hierarchy, workflow stages, emotional curve…
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
development-estimation
NickCrew
Use when estimating time, effort, or complexity for features or projects - provides structured estimation workflows with breakdowns, risks, and confidence…
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
build-optimization
NickCrew
Build system optimization covering compilation, caching, incremental builds, and developer tooling.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
backlog-md
NickCrew
Task tracking system for agents via Backlog.md CLI.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
api-gateway-patterns
NickCrew
API Gateway patterns for routing, authentication, rate limiting, and service composition in microservices architectures.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
cqrs-event-sourcing
NickCrew
CQRS and Event Sourcing patterns for scalable, auditable systems with separated read/write models.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
database-design-patterns
NickCrew
Database schema design patterns and optimization strategies for relational and NoSQL databases.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
code-explanation
NickCrew
Use when explaining code, concepts, or system behavior to a specific audience level - provides a structured explanation workflow with depth control and…
SkillCFreshness: C★ 61Claude Code +9 - 0.577score
architectural-analysis
NickCrew
User-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI…
SkillCFreshness: C★ 61Claude Code +9
Signals
- Stars
- 61
- Forks
- 15
- Open issues
- 3
- Last commit (this folder)
- Apr 23, 2026 (6 months ago)
- Last release
- Jun 2, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/NickCrew/Claude-Cortex
- Website
- cortex.atlascrew.dev/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from NickCrew
- 0.581score
code-explanation
NickCrew
Use when explaining code, concepts, or system behavior to a specific audience level - provides a structured explanation workflow with depth control and…
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
cqrs-event-sourcing
NickCrew
CQRS and Event Sourcing patterns for scalable, auditable systems with separated read/write models.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
api-gateway-patterns
NickCrew
API Gateway patterns for routing, authentication, rate limiting, and service composition in microservices architectures.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
backlog-md
NickCrew
Task tracking system for agents via Backlog.md CLI.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
compliance-audit
NickCrew
Regulatory compliance auditing across GDPR, HIPAA, PCI DSS, SOC 2, and ISO frameworks with automated evidence collection and gap analysis.
SkillCFreshness: C★ 61Claude Code +9 - 0.581score
database-design-patterns
NickCrew
Database schema design patterns and optimization strategies for relational and NoSQL databases.
SkillCFreshness: C★ 61Claude Code +9
Cite this page
api-design-patterns skill. Agent Mart. https://agentmart.dev/skills/nickcrew-api-design-patterns (last updated 2026-10-24)