Rest api design

From berkcangumusisik/claude-code-practices · View interactive version

Rest api design is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Reviews or designs a RESTful API following best practices

How to use this skill

Skill file

REST API Design

Resource / Scope: $ARGUMENTS

If reviewing existing API:

  1. Read route definitions:
grep -rn "router\.\|app\." src/ --include="*.ts" | grep -E "get|post|put|patch|delete" | head -30

Check for:

If designing new API:

Generate the complete route table:

GET    /resources          List (with pagination)
POST   /resources          Create
GET    /resources/:id      Get one
PUT    /resources/:id      Replace
PATCH  /resources/:id      Partial update
DELETE /resources/:id      Delete

GET    /resources/:id/related   Nested resource

Include request/response shapes and error codes for each endpoint.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.