Skip to content
affaan-m avatar

Api Design

REST API design conventions covering resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting.

CCM score
71 of 100
skills.sh installs
15.3K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers URL structure, HTTP method semantics, and status code selection for consistent production endpoints
  • Compares offset and cursor pagination with guidance on when each suits admin dashboards, feeds, and public APIs
  • Enforces plural kebab-case resource names and rejects verbs in URLs, with semicolon-free examples of good and bad patterns
  • Designed for teams building public or partner-facing REST APIs that need predictable error and response formats

Install

$ npx -y skills add affaan-m/ecc --skill api-design -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

API Design Patterns

Conventions and best practices for designing consistent, developer-friendly REST APIs.

When to Activate

  • Designing new API endpoints
  • Reviewing existing API contracts
  • Adding pagination, filtering, or sorting
  • Implementing error handling for APIs
  • Planning API versioning strategy
  • Building public or partner-facing APIs

Resource Design

URL Structure

# Resources are nouns, plural, lowercase, kebab-case
GET    /api/v1/users
GET    /api/v1/users/:id
POST   /api/v1/users
PUT    /api/v1/users/:id
PATCH  /api/v1/users/:id
DELETE /api/v1/users/:id

# Sub-resources for relationships
GET    /api/v1/users/:id/orders
POST   /api/v1/users/:id/orders

# Actions that don't map to CRUD (use verbs sparingly)
POST   /api/v1/orders/:id/cancel
POST   /api/v1/auth/login
POST   /api/v1/auth/refresh

Naming Rules

# GOOD
/api/v1/team-members          # kebab-case for multi-word resources
/api/v1/orders?status=active  # query params for filtering
/api/v1/users/123/orders      # nested resources for ownership

Details

Repository
github.com/affaan-m/ecc
Categories
Backend & APIs, Technical Documentation
First seen
Jul 14, 2026

Questions

What does the api-design skill do for a developer?

The api-design skill gives an agent REST API design patterns for production APIs, covering resource naming, status codes, pagination, filtering, error responses, versioning and rate limiting. It is meant for designing or reviewing REST endpoints, resource names and versioning strategy. Its conventions aim to keep APIs consistent and developer-friendly.

How do I install the api-design skill?

Run npx -y skills add affaan-m/ecc --skill api-design -y in your project to install it. Once installed, the agent can apply the api-design conventions when you design or review endpoints.

Which backend and API skills does api-design sit alongside?

The api-design skill is listed in the Backend & APIs category on Claude Marketplaces and ranks in the top 100 there. Its listed category peers include entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. Its focus is REST design conventions rather than a specific database or cloud platform.

When should I use api-design instead of writing API rules myself?

Use api-design when you are designing new API endpoints, reviewing existing contracts, adding pagination or sorting, or planning a versioning strategy. It also helps when building public or partner-facing APIs that need consistent status codes and error formats.

More from affaan-m/ecc

All 257

Similar to Api Design

More Backend & APIs