What problem does it solve?
This Skill helps you avoid architectural drift in a multi-app Next.js monorepo by keeping routing, domain logic, and data access in the right places.
Core Features & Use Cases
- Feature-driven layout enforcement: Keeps
app/ for routing only while placing business logic, UI, state, and helpers in src/features/<feature>/ and src/lib/.
- Consistent tRPC layering: Ensures Next route handlers and domain code follow the repository → service → router pattern, so Drizzle calls stay centralized.
- Channel and API conventions: Guides how to add new outbound channels (e.g., WhatsApp/SMS/push) with matching package, DB schema, API feature folder, and dev/admin views.
- Review and onboarding guardrails: Provides a checklist for PR reviews to ensure performance, i18n, loading/error handling, and test expectations are met.
Quick Start
When you add or modify a page in apps/web or apps/admin, ask the AI to review your proposed file placement and data-fetching approach against the architecture guard rules in this Skill.