Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Backend Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-backend-patterns)
---
name: backend-patterns
description: "Layered backend structure: handlers, services, repositories, DTOs and dependency injection."
tags: [backend]
---
# Backend Patterns
## When to use
- Structuring a new service or cleaning an old one
## Procedure
1. Keep handlers thin
2. Put business rules in services
3. Isolate persistence in repositories
4. Inject dependencies
5. Map DTOs at boundaries
## Checklist
- [ ] Business logic testable without HTTP or DB
## Anti-patterns
- Fat controllers
- Anemic domain with logic scattered everywhere