38 lines
1.3 KiB
Markdown
38 lines
1.3 KiB
Markdown
<!-- BEGIN:nextjs-agent-rules -->
|
|
# CRITICAL RULES - MUST FOLLOW
|
|
|
|
## RESPONSES
|
|
|
|
- Keep responses concise and to the point - unless the user asks otherwise
|
|
|
|
## PLANNING MODE
|
|
|
|
- Always ask clarifying questions
|
|
- Never assume design, tech stack or features
|
|
- Use deep-dive sub-agents to assist with research
|
|
- Use deep-dive sub-agents to review the different aspects of your plan before presenting to the user
|
|
|
|
## CHANGE / EDIT MODE
|
|
|
|
- Never implement features yourself when possible - use sub-agents!
|
|
- Identify changes from the plan that can be implemented in parallel, and use sub-agents to implement the features efficiently
|
|
- When using sub-agents to implement features, act as a coordinator only
|
|
- After completing features (large or small), always run commands like lint, type check and next build to check code quality
|
|
|
|
## DATABASE SCHEMA CHANGES
|
|
|
|
- Whenever you make changes to the database schema, ALWAYS run the prisma generate and migrate commands
|
|
- NEVER run prisma push!
|
|
|
|
## UI DESIGN
|
|
|
|
- Always follow the UI design system when creating or reviewing components or pages.
|
|
- Design System: @DESIGN.md
|
|
|
|
Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
|
|
|
|
- Do not use deprecated APIs or conventions.
|
|
- Do not use reduce motion.
|
|
- Follow the guide's instructions exactly.
|
|
<!-- END:nextjs-agent-rules -->
|