api-rest-design
Apply when designing RESTful APIs, defining endpoints, HTTP methods, status codes, and response formats.
Best use case
api-rest-design is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Apply when designing RESTful APIs, defining endpoints, HTTP methods, status codes, and response formats.
Teams using api-rest-design should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/api-rest-design/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How api-rest-design Compares
| Feature / Agent | api-rest-design | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Apply when designing RESTful APIs, defining endpoints, HTTP methods, status codes, and response formats.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## When to Use
Apply when designing RESTful APIs, defining endpoints, HTTP methods, status codes, and response formats.
## Patterns
### Pattern 1: Resource Naming
```
# Source: https://restfulapi.net/resource-naming/
GOOD:
GET /users # List users
GET /users/123 # Get user 123
POST /users # Create user
PUT /users/123 # Update user 123
DELETE /users/123 # Delete user 123
GET /users/123/orders # User's orders (nested resource)
BAD:
GET /getUsers # Verb in URL
POST /createUser # Verb in URL
GET /user/123 # Singular (use plural)
```
### Pattern 2: HTTP Status Codes
```
# Source: https://www.rfc-editor.org/rfc/rfc9110
Success:
200 OK - GET/PUT success with body
201 Created - POST success, include Location header
204 No Content - DELETE success, no body
Client Errors:
400 Bad Request - Invalid input/payload
401 Unauthorized - Missing/invalid auth
403 Forbidden - Auth valid, no permission
404 Not Found - Resource doesn't exist
409 Conflict - Resource state conflict
422 Unprocessable - Validation failed
Server Errors:
500 Internal - Unexpected server error
503 Unavailable - Service temporarily down
```
### Pattern 3: Response Format
```typescript
// Source: https://restfulapi.net/
// Success response
{
"data": { "id": 123, "name": "John" },
"meta": { "timestamp": "2025-12-10T12:00:00Z" }
}
// Error response
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid email format",
"details": [{ "field": "email", "message": "Must be valid email" }]
}
}
// List with pagination
{
"data": [...],
"meta": { "total": 100, "page": 1, "limit": 20 }
}
```
### Pattern 4: Filtering & Pagination
```
# Source: https://restfulapi.net/
GET /users?status=active&role=admin # Filter
GET /users?sort=created_at:desc # Sort
GET /users?page=2&limit=20 # Pagination
GET /users?fields=id,name,email # Field selection
```
### Pattern 5: Versioning
```
# Source: https://restfulapi.net/versioning/
URL path (recommended):
GET /api/v1/users
Header (alternative):
Accept: application/vnd.api+json;version=1
```
## Anti-Patterns
- **Verbs in URLs** - Use nouns: `/users` not `/getUsers`
- **Wrong status codes** - Don't return 200 for errors
- **Inconsistent responses** - Same format for all endpoints
- **Missing pagination** - Always paginate lists
- **No versioning** - Plan for API evolution
## Verification Checklist
- [ ] Resource URLs use plural nouns
- [ ] Correct HTTP methods (GET read, POST create, etc.)
- [ ] Appropriate status codes returned
- [ ] Consistent error response format
- [ ] Pagination on list endpoints
- [ ] API versioning strategy definedRelated Skills
domain-driven-design
Plan and route Domain-Driven Design work from strategic modeling to tactical implementation and evented architecture patterns.
data-designer
Generate high-quality synthetic datasets using statistical samplers and Claude's native LLM capabilities. Use when users ask to create synthetic data, generate datasets, create fake/mock data, generate test data, training data, or any data generation task. Supports CSV, JSON, JSONL, Parquet output. Adapted from NVIDIA NeMo DataDesigner (Apache 2.0).
analytics-design
Design data analysis from purpose clarification to visualization. Use when analyzing data, exploring BigQuery schemas, building queries, or creating Looker Studio reports.
---name: aav-vector-design-agent
description: AI-powered adeno-associated virus (AAV) vector design for gene therapy including capsid engineering, promoter selection, and tropism optimization.
spring-boot-rest-api-standards
Provides REST API design standards and best practices for Spring Boot projects. Use when creating or reviewing REST endpoints, DTOs, error handling, pagination, security headers, HATEOAS and architecture patterns.
Schema Design
Migration-ready database schema design with normalization and indexing strategies
restcontroller-conventions
Specifies standards for RestController classes, including API route mappings, HTTP method annotations, dependency injection, and error handling with ApiResponse and GlobalExceptionHandler.
go-servemux-rest-api-cursorrules-prompt-file
Apply for go-servemux-rest-api-cursorrules-prompt-file. --- description: This rule emphasizes security, scalability, and maintainability best practices in Go API development. globs: /*/**/*_api.go
Fastify Rest Api
Fastify is a high-performance Node.js web framework focused on speed and low overhead, featuring built-in schema validation and serialization, enabling developers to create production-ready APIs quick
database-design
Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases.
context-management-context-restore
Use when working with context management context restore
azure-speech-to-text-rest-py
Azure Speech to Text REST API for short audio (Python). Use for simple speech recognition of audio files up to 60 seconds without the Speech SDK.