What problem does it solve?
Provides language-agnostic backend architecture and error-handling patterns to eliminate inconsistent layering, tenant isolation gaps, and ad-hoc error codes across services.
Core Features & Use Cases
- Layered Architecture Enforcement: Guidance to maintain Presentation, Application, Domain, and Infrastructure separation.
- Standardized Error Handling: Error code categories, response format, monitoring priorities, and implementation examples for NestJS, Java, Go, and Rust.
- Operational Patterns: Multi-tenancy scoping, atomic use-case pipelines, event-driven side effects, and anti-patterns to avoid.
- Use Case: Audit or design a backend service to ensure all repository queries are tenant-scoped, business rules throw domain exceptions, and infrastructure errors map to INF_* codes with monitoring alerts.
Quick Start
Use the general-patterns skill to audit a backend codebase for layer violations, missing tenant scoping, and inconsistent error codes.