api-design-patterns
Design RESTful APIs with pagination, filtering, and OpenAPI docs.
Skill by ils15
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ils15-api-design-patterns-b0bd52
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
api-design-patterns- Description
- Design RESTful APIs with pagination, filtering, and OpenAPI docs. Use for FastAPI endpoint design.
- License
- MIT
- Instructions
- 236 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# API Design Patterns Skill
## When to Use
Use this skill when:
- Designing new API endpoints
- Reviewing API consistency
- Implementing pagination and filtering
- Creating error response formats
- Writing OpenAPI documentation
- Validating HTTP status codes
- Building request/response schemas
## RESTful Design Principles
### 1. HTTP Methods
```
GET /users - List users
GET /users/{id} - Get single user
POST /users - Create user
PUT /users/{id} - Full update
PATCH /users/{id} - Partial update
DELETE /users/{id} - Delete user
```
### 2. Status Codes
```
2xx Success:
- 200 OK - Successful GET, PUT, PATCH
- 201 Created - Successful POST
- 204 No Content - Successful DELETE
4xx Client Errors:
- 400 Bad Request - Invalid input
- 401 Unauthorized - Not authenticated
- 403 Forbidden - Not authorized
- 404 Not Found - Resource not found
- 409 Conflict - Duplicate resource
- 422 Unprocessable - Validation error
5xx Server Errors:
- 500 Internal Error - Unexpected error
- 503 Service Unavail - Maintenance
```
### 3. Pagination Pattern
```python
from pydantic import BaseModel
from typing import Generic, TypeVar, List
T = TypeVar('T')
class PaginatedResponse(BaseModel, Generic[T]):
items: List[T]
total: int
page: int
size: int
pages: int
class Config:
from_attributes = True
# Endpoint
@router.get("/users", response_model=PaginatedResponse[UserResponse])
async def list_users(
page: int = Query(1, ge=1),
size: int = Query(20, ge=1, le=100),
):
total = await user_service.count()
items = await user_service.get_page(page, size)
return PaginatedResponse(
items=items,
total=total,
page=page,
size=size,
pages=(total + size - 1) // size
)
```
### 4. Filtering Pattern
```python
from typing import Optional
from fastapi import Query
@router.get("/products")
async def list_products(
# Search
q: Optional[str] = Query(None, min_length=2, max_length=100),
# Filters
category: Optional[str] = None,
min_price: Optional[float] = Query(None, ge=0),
max_price: Optional[float] = Query(None, ge=0),
in_stock: Optional[bool] = None,
# Sorting
sort_by: str = Query("created_at", regex="^(name|price|created_at)$"),
order: str = Query("desc", regex="^(asc|desc)$"),
# Pagination
page: int = Query(1, ge=1),
size: int = Query(20, ge=1, le=100),
):
return await product_service.search(
q=q, category=category,
min_price=min_price, max_price=max_price,
in_stock=in_stock,
sort_by=sort_by, order=order,
page=page, size=size
)
```
### 5. Error Response Format
```pythonFrom ils15/pantheon-legacy, MIT.
More from ils15/pantheon-legacy
- 0.543score
handoff
ils15
Generate session handoff documents for work continuation.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
code-review-checklist
ils15
Systematic code review with quality gates, security audit, and parallel checks.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
orchestration-workflow
ils15
Practical step-by-step walkthrough for orchestrating features end-to-end using the multi-agent system, from planning through deployment
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
task-system
ils15
File-backed task management with dependencies and parallel execution.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
agent-coordination
ils15
Multi-agent orchestration with model routing, category delegation, and sprint management.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
prompt-improver
ils15
Improve prompts using best practices for clarity, specificity, and structure.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
tdd-with-agents
ils15
TDD enforcement with RED→GREEN→REFACTOR cycle and advanced testing patterns.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
frontend-analyzer
ils15
Analyze React components for design tokens and accessibility.
SkillCFreshness: C★ 12Claude Code +9 - 0.538score
artifact-management
ils15
Structured artifact trail for feature implementations — plans, implementations, reviews, and decisions.
SkillCFreshness: C★ 12Claude Code +9 - 0.538score
api-design-patterns
ils15
Design RESTful APIs with pagination, filtering, and OpenAPI docs.
SkillCFreshness: C★ 12Claude Code +9 - 0.538score
conversational-ai-design
ils15
Design conversational AI with Rasa NLU, dialogue management, and LangChain memory patterns.
SkillCFreshness: C★ 12Claude Code +9 - 0.538score
agent-evaluation
ils15
Evaluate AI agent outputs — hallucination detection, quality scoring, behavioral testing, and CI/CD pipelines.
SkillCFreshness: C★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 7
- Open issues
- 1
- Last commit (this folder)
- May 20, 2026 (5 months ago)
- Last release
- Jul 22, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ils15/pantheon-legacy
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from ils15
- 0.543score
handoff
ils15
Generate session handoff documents for work continuation.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
orchestration-workflow
ils15
Practical step-by-step walkthrough for orchestrating features end-to-end using the multi-agent system, from planning through deployment
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
frontend-analyzer
ils15
Analyze React components for design tokens and accessibility.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
code-review-checklist
ils15
Systematic code review with quality gates, security audit, and parallel checks.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
agent-coordination
ils15
Multi-agent orchestration with model routing, category delegation, and sprint management.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
prompt-improver
ils15
Improve prompts using best practices for clarity, specificity, and structure.
SkillCFreshness: C★ 12Claude Code +9
Cite this page
api-design-patterns skill. Agent Mart. https://agentmart.dev/skills/ils15-api-design-patterns-b0bd52 (last updated 2026-10-24)