Api Design Patterns
Helps with API, design, patterns as part of developing backend services and APIs workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add asyrafhussin-api-design-patterns npx -- -y @trustedskills/asyrafhussin-api-design-patterns
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"asyrafhussin-api-design-patterns": {
"command": "npx",
"args": [
"-y",
"@trustedskills/asyrafhussin-api-design-patterns"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides a comprehensive guide to RESTful API design principles, offering 38 rules across 7 categories. It helps AI agents ensure APIs are consistent, developer-friendly, and adhere to best practices for resource design, error handling, security, pagination, versioning, response format, and documentation. The tool aims to improve the quality and maintainability of backend services and API workflows.
When to use it
This skill is useful in the following scenarios:
- Designing new API endpoints.
- Reviewing existing API structures for improvement.
- Implementing robust error handling and validation processes.
- Setting up pagination, filtering, and sorting functionality.
- Planning a clear API versioning strategy.
- Configuring appropriate API security measures (authentication, authorization, rate limiting).
- Creating comprehensive API documentation (OpenAPI/Swagger).
Key capabilities
- Provides 38 rules across 7 categories of RESTful API design.
- Covers critical areas like resource design, error handling, and security.
- Offers guidance on pagination & filtering techniques.
- Includes recommendations for API versioning strategies.
- Suggests best practices for response formatting and documentation.
- Categorizes rules by priority (Critical, High, Medium).
Example prompts
- "What are the key considerations for resource design in a RESTful API?"
- "How should I handle errors consistently in my API responses?"
- "Give me some best practices for implementing API security."
- "What is cursor-based pagination and when should I use it?"
Tips & gotchas
- The skill prioritizes rules, with "Critical" categories (Resource Design, Error Handling, Security) being the most important to follow.
- Refer to the rule prefixes (e.g.,
rest-,error-,sec-) for quick identification of specific guidelines within each category. - This skill focuses specifically on RESTful API design patterns and does not cover broader backend development topics.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.