asyrafhussin avatar

Api Design Patterns

A solid reference for REST API design covering 38 rules across resource naming, error handling, security, pagination, versioning, and response formatting. It pushes you toward the standard patterns like using nouns not verbs in URLs, returning consistent error structures with request IDs, and implementing proper rate limiting headers. The examples are concrete and show both wrong and right approaches. Use it when you're designing new endpoints or reviewing existing APIs and want to follow industry conventions from Zalando, Microsoft, and Google. It's prescriptive rather than exploratory, so if you're building something intentionally unconventional, you'll be fighting it.

skills.sh installs
984
GitHub stars
102
last updated
Aug 21, 2026

Install

$ npx -y skills add asyrafhussin/agent-skills --skill api-design-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

API Design Patterns

RESTful API design principles for building consistent, developer-friendly APIs. Contains 38 rules across 7 categories covering resource design, error handling, security, pagination, versioning, response format, and documentation.

Metadata

  • Version: 2.0.0
  • Rule Count: 38 rules across 7 categories
  • License: MIT

When to Apply

Reference these guidelines when:

  • Designing new API endpoints
  • Reviewing existing API structure
  • Implementing error handling and validation
  • Setting up pagination, filtering, and sorting
  • Planning API versioning strategy
  • Configuring API security (auth, CORS, rate limiting)
  • Writing API documentation (OpenAPI/Swagger)

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Resource DesignCRITICALrest-
2Error HandlingCRITICALerror-
3SecurityCRITICALsec-
4Pagination & FilteringHIGHpage-, filter-, sort-
5VersioningHIGHver-
6Response FormatMEDIUMresp-
7DocumentationMEDIUMdoc-

Quick Reference

1. Resource Design (CRITICAL)

Sponsors

Details

Repository
github.com/asyrafhussin/agent-skills
Categories
Backend & APIs, Git & Pull Requests, Code Review & Quality, AI & Agent Building, Debugging, Design & UI/UX
First seen
Jun 3, 2026

More from asyrafhussin/agent-skills

All 14
1tencentcloudbase avatarauth-nodejs-cloudbasetencentcloudbase/skillsCloudBase Node SDK auth guide for server-side identity, user lookup, and custom login tickets. This skill should be used when Node.js code must read caller iden964skills.sh installs
2kostja94 avatarapi-page-generatorkostja94/marketing-skillsWhen the user wants to create, optimize, or audit the API introduction/overview page. Also use when the user mentions "API page," "API landing page," "/api page851skills.sh installs
3secondsky avatarsap-api-stylesecondsky/sap-skillsThis skill provides comprehensive guidance for documenting SAP APIs following the SAP API Style Guide standards. It should be used when creating or reviewing AP848skills.sh installs
4softaworks avatarfrontend-to-backend-requirementssoftaworks/agent-toolkitDocument frontend data needs for backend developers. Use when frontend needs to communicate API requirements to backend, or user says 'backend requirements', 'w820skills.sh installs
5alirezarezvani avatarapi-design-revieweralirezarezvani/claude-skillsComprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing version800skills.sh installs
6mindrally avatarprisma-developmentmindrally/skillsComprehensive Prisma ORM development guidelines with TypeScript, schema design, migrations, and best practices.724skills.sh installs