From scaffolding
Provides RESTful API design standards covering resource naming, HTTP methods, status codes, pagination, versioning, and error response formats.
How this skill is triggered — by the user, by Claude, or both
Slash command
/scaffolding:api-designThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Standards and best practices for designing RESTful APIs.
Standards and best practices for designing RESTful APIs.
/users not /getUsers/users not /user/user-profiles not /userProfiles/users/{id}/posts| Pattern | Example | Use Case |
|---|---|---|
| Collection | /users | List resources |
| Item | /users/{id} | Single resource |
| Nested | /users/{id}/posts | Related resources |
| Action | /users/{id}/activate | Non-CRUD operations |
| Method | Purpose | Idempotent | Safe | Has Body |
|---|---|---|---|---|
| GET | Read | Yes | Yes | No |
| POST | Create | No | No | Yes |
| PUT | Replace entire resource | Yes | No | Yes |
| PATCH | Partial update | No | No | Yes |
| DELETE | Remove | Yes | No | No |
| Code | Use Case |
|---|---|
| 200 OK | GET, PUT, PATCH success |
| 201 Created | POST success (+ Location header) |
| 204 No Content | DELETE success |
| Code | Use Case |
|---|---|
| 400 Bad Request | Malformed request, validation error |
| 401 Unauthorized | Authentication required |
| 403 Forbidden | Authenticated but no permission |
| 404 Not Found | Resource doesn't exist |
| 409 Conflict | Resource state conflict |
| 422 Unprocessable Entity | Semantic validation error |
| 429 Too Many Requests | Rate limit exceeded |
| Code | Use Case |
|---|---|
| 500 Internal Server Error | Unexpected error |
| 502 Bad Gateway | External service failure |
| 503 Service Unavailable | Temporarily down |
{ "data": { ... } }{ "data": [...], "pagination": {...} }Required fields:
code - Machine-readable error codemessage - Human-readable descriptionOptional fields:
details - Field-specific errors (validation)correlationId - For debugging/supportpage, pageSize, totalItems, totalPages?status=active?status=active&role=admin?createdAt[gte]=2024-01-01?search=keyword?sort=createdAt?sort=-createdAt?sort=lastName,firstName?fields=id,email,username/api/v1/resourceSunset header on deprecated versionsnpx claudepluginhub komluk/scaffolding --plugin scaffoldingDesigns consistent RESTful APIs covering conventions, HTTP methods, naming, versioning strategies, response formats, status codes, error handling, and pagination patterns.
Establishes REST API design patterns for resource naming, HTTP methods and status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs.
Designs RESTful APIs with resource naming, HTTP methods, status codes, JSON response formats, pagination, and query parameters. Use when building new APIs or establishing conventions.