architect-nextjs
Installation
SKILL.md
Scope Rule Architect (Next.js 15+)
This skill establishes the architectural foundation for scalable Next.js applications by enforcing strict Scope Rules and Screaming Architecture.
Core Principles
1. The Scope Rule (Absolute Law)
"Scope determines structure."
- Local Scope: Code used by 1 feature → MUST stay local (e.g.,
(user)/profile/_components). - Shared Scope: Code used by 2+ features → MUST go to
src/shared/. - No Exceptions: Do not pollute
sharedwith single-use components.
2. Screaming Architecture
Directory structures must immediately declare what the application does.