api-patterns
CommunityBuild robust APIs with battle-tested patterns.
Software Engineering#documentation#security#error handling#validation#GraphQL#backend#REST#API design#tRPC
Authorvanman2024
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Designing and implementing backend APIs with proper validation, error handling, and documentation can be complex and inconsistent across different frameworks. This skill provides a library of proven API patterns to ensure consistency and quality.
Core Features & Use Cases
- Multi-Protocol Support: Offers patterns for REST, GraphQL, and tRPC APIs, catering to diverse architectural needs and allowing flexibility in design.
- Framework-Specific Guidance: Adapts patterns to popular backend frameworks like Node.js (Express, FastAPI), Python (Django, Flask), Go (Gin), and Rust (Actix), ensuring relevance and ease of integration.
- Integrated Best Practices: Includes guidance on input sanitization, rate limiting, CORS, API versioning, and OpenAPI/Swagger documentation, promoting secure and well-documented APIs.
- Standardized Error Handling: Provides patterns for consistent error responses and appropriate HTTP status codes, improving API usability and debugging.
- Use Case: A backend team is developing a new microservice and needs to ensure its API adheres to best practices for security, validation, and error handling. This skill provides templates and guidance to quickly implement CRUD operations for a REST API, including request validation with Pydantic (for Python) and standardized error responses.
Quick Start
Generate a new REST API endpoint for user creation using the Python FastAPI framework, including Pydantic models for request validation and standardized error handling.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: api-patterns Download link: https://github.com/vanman2024/dev-lifecycle-marketplace/archive/main.zip#api-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.