AP

Guidelines and best practices for structured RESTful API endpoint design.

Install

mkdir -p .claude/skills/api-patterns-besync-labs && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9725" && unzip -o skill.zip -d .claude/skills/api-patterns-besync-labs && rm skill.zip

Installs to .claude/skills/api-patterns-besync-labs

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

RESTful API design patterns and best practices
46 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Resource-oriented naming
  • Standardized response structures
  • Versioning strategies
  • Pagination implementation

How it works

It provides patterns for naming, versioning, and structuring responses to ensure consistent and scalable REST APIs.

Inputs & outputs

You give it
API design requirement
You get back
RESTful API pattern

When to use api-patterns

  • Designing clean API endpoints
  • Implementing consistent error responses
  • Structuring pagination logic
  • Defining resource naming standards

About this skill

API Patterns Skill

Purpose: Apply professional RESTful API design principles


Overview

This skill provides guidance for designing clean, consistent, and scalable APIs following industry best practices.


Core Principles

1. Resource-Oriented Design

  • Use nouns for resources: /users, /orders, /products
  • Use HTTP verbs for actions: GET, POST, PUT, PATCH, DELETE
  • Avoid verbs in URLs: ❌ /getUsers → ✅ /users

2. Consistent Naming

GET    /api/v1/users          # List users
POST   /api/v1/users          # Create user
GET    /api/v1/users/:id      # Get user
PATCH  /api/v1/users/:id      # Update user
DELETE /api/v1/users/:id      # Delete user

3. Versioning

  • Use URL versioning: /api/v1/, /api/v2/
  • Or header versioning: Accept: application/vnd.api+json;version=1

Response Structure

Success Response

{
  "data": { ... },
  "meta": {
    "timestamp": "2026-02-06T00:00:00Z",
    "requestId": "uuid"
  }
}

Error Response

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Email is required",
    "details": [{ "field": "email", "issue": "required" }]
  }
}

Status Codes

CodeUsage
200Success
201Created
204No Content (delete)
400Bad Request
401Unauthorized
403Forbidden
404Not Found
409Conflict
422Unprocessable Entity
500Internal Server Error

Pagination

{
  "data": [...],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 100,
    "totalPages": 5
  }
}

Quick Reference

PatternExample
ListGET /users
CreatePOST /users
GetGET /users/123
UpdatePATCH /users/123
DeleteDELETE /users/123
NestedGET /users/123/orders
FilterGET /users?status=active
SearchGET /users?q=john
SortGET /users?sort=-createdAt

When not to use it

  • Non-RESTful API architectures

Limitations

  • Requires team-wide adoption of patterns

How it compares

It enforces professional design standards rather than ad-hoc endpoint creation.

Compared to similar skills

api-patterns side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
api-patterns (this skill)06moNo flagsIntermediate
fastapi-templates5202moNo flagsIntermediate
android-kotlin-development2685moReviewAdvanced
fastapi-pro794moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

5201,086

android-kotlin-development

aj-geddes

Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture.

268679

fastapi-pro

sickn33

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

79181

telegram-bot-builder

davila7

Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.

106130

telegram-mini-app

davila7

Expert in building Telegram Mini Apps (TWA) - web apps that run inside Telegram with native-like experience. Covers the TON ecosystem, Telegram Web App API, payments, user authentication, and building viral mini apps that monetize. Use when: telegram mini app, TWA, telegram web app, TON app, mini app.

62163

stripe-integration

wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

48165

Search skills

Search the agent skills registry