What problem does it solve?
This Skill provides architecture patterns and rules to help teams design scalable, type-safe tRPC APIs. It codifies how to structure procedures, schemas, and repositories to reduce coupling and improve maintainability.
Core Features & Use Cases
- Vertical Slice Architecture: organize features end-to-end, with each slice owning procedures, schemas, and tests.
- One Procedure Per File: keep operations focused and testable.
- No Cross-Slice Imports: promote loose coupling via events or shared services.
- Repository Per Slice: keep data access scoped to each feature.
- Domain-Specific Errors: provide precise error handling and codes for clients.
- Use of Procedure Hierarchy: apply public, protected, organization, and admin procedures appropriately.
Quick Start
Install or configure the skill within your toolkit, then start modeling slices under features/ by defining create, read, update, delete procedures with associated schemas and repositories.