api-endpoint-design
CommunityDesign robust API endpoints with layered patterns.
AuthorJackSmack1971
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Inconsistent endpoints and tangled logic lead to hard-to-test APIs. This Skill enforces a clean, layered approach (Routes → Middleware → Controllers → Services → Repositories → DTOs) to maintain clear responsibilities and type safety.
Core Features & Use Cases
- Layer Separation: Routes define endpoints, Middleware handles auth/validation, DTOs enforce payload shape
- DTOs & Type Safety: Use schemas to validate input/output
- Use Case: Implement a new user endpoint with strict separation and test coverage
Quick Start
Define a new route file under src/routes/v1, create a Create<User>Dto, implement a UserService, and wire up a UserController.
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-endpoint-design Download link: https://github.com/JackSmack1971/claude-code-learning-flywheel/archive/main.zip#api-endpoint-design Please download this .zip file, extract it, and install it in the .claude/skills/ directory.