Api Design Expert
Helps with API, design 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 api-design-expert npx -- -y @trustedskills/api-design-expert
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"api-design-expert": {
"command": "npx",
"args": [
"-y",
"@trustedskills/api-design-expert"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides expert guidance on designing RESTful APIs, particularly within NestJS applications. It assists with creating API endpoints, generating OpenAPI/Swagger documentation, implementing versioning strategies, and ensuring proper error handling. The skill emphasizes adherence to best practices for backend service development and API workflows, including DTO creation and validation.
When to use it
- Designing new API endpoints for a NestJS application.
- Creating RESTful APIs from scratch or refactoring existing ones.
- Generating OpenAPI/Swagger documentation for your API.
- Implementing versioning strategies to manage API evolution.
- Defining and designing effective error responses.
Key capabilities
- RESTful API design principles (using nouns, pluralization, hierarchical structures).
- OpenAPI/Swagger documentation generation.
- API versioning strategy implementation.
- Error response design with standardized formats including code, message, details, timestamp, and path.
- DTO creation and input validation.
- Implementation of pagination, filtering, and sorting for lists.
- Guidance on HTTP status codes (200, 201, 204, 400, 401, 403, 404, 409, 500).
Example prompts
- "I need to design a new API endpoint for retrieving user posts. What should the URL structure be?"
- "Can you help me create an OpenAPI/Swagger definition for my
/usersendpoint?" - "What's the best way to implement versioning for this API?"
Tips & gotchas
- Before seeking guidance, review your project’s
ARCHITECTURE.mdfile (located in.agents/SYSTEM/) for established API patterns. - The skill is specifically tailored for NestJS applications; results may vary with other frameworks.
- For more comprehensive examples and detailed guides on topics like pagination, filtering, sorting, OpenAPI setup, and anti-patterns, consult the
references/full-guide.mdfile.
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.