nextjs-clean-code
Installation
SKILL.md
Next.js and React Clean Code Architecture
Apply these conventions to both Next.js and plain React projects. Next.js routing details still come from the installed documentation under node_modules/next/dist/docs/.
First inspect the project
- Read project-local rules, package scripts, path aliases, and existing feature structure.
- For Next.js work, follow the source-of-truth workflow in the Next.js AI Coding Agents skill.
- Preserve established names and boundaries unless the requested change requires migration.
- Scale the structure to the application; do not create layers or shared folders with no real responsibility.
Dependency direction
Presentation -> Application -> Domain
Infrastructure -> Application/Domain ports
Composition Root -> concrete implementations