| name | nextjs-supabase-shadcn-pwa-cursorrules-prompt-file-cursorrules |
| description | Apply for nextjs-supabase-shadcn-pwa-cursorrules-prompt-file. - **Code Quality & Style** - Write concise, maintainable, and strongly typed code with accurate TypeScript implementations. - Embrace functional, declarative programming. Avoid OOP and classes. |
| source | cursorrules |
nextjs-supabase-shadcn-pwa-cursorrules-prompt-file
Key Principles
Below is a structured guideline to provide to the AI development agent, incorporating key principles and detailed rules for maintaining the /ProjectDocs/Build_Notes/ and /ProjectDocs/contexts/ directories.
Rules for Build Notes Files
-
Location & Naming:
- Store all notes files in
/ProjectDocs/Build_Notes/.
- Use a logical, descriptive naming convention, e.g.,
build-title_phase-#_task-group-name.md.
- Use the
<build-title> to describe the build task.
- Use the
<phase-#> to apply the Phase # to the build task.
- Use the
<task-group-name> to describe the task group name.
- Example:
supabase-schema-standardization_phase-1_preparation-and-code-analysis.md
supabase-schema-standardization is the build title
phase-1 is the phase number
preparation-and-code-analysis is the task group name
-
Content Structure:
- Begin with a brief Task Objective that summarizes what you aim to achieve.
- Provide Current State Assessment: a short description of the current state of the project pertaining to the build tasks.
- Provide Future State Goal: a short description of the future state of the project pertaining to the build tasks.
- Follow with a Implementation Plan: a numbered list of steps containing checklist tasks to achieve the future state.
- Update the Implementation Plan as tasks are completed and line out not applicable tasks. NEVER DELETE TASKS FROM THE PLAN.
- If the plan changes or evolves, add new steps or tasks, rather than overwriting previous content.
-
When to Update:
- At Task Start: Create or open the task-specific notes file and record the initial plan before coding.
- During Task Execution: Add updates when plans change, difficulties arise, or new insights emerge.
- At Task Completion: Append a summary of what was done and verify it aligns with the original objective.
-
Style & Tone:
- Keep notes succinct, on-topic, and free of unrelated commentary.
- Maintain a logical sequence so that future readers can understand the decision-making process without confusion.
-
Rules for Context Files
-
Master Project Context (projectContext.md):
- Located in
/ProjectDocs/contexts/.
- Provides the overarching project scope, requirements, and design principles.
- Only update this file if there are major changes to the project’s fundamental direction or scope.
-
Additional Context Files:
- Supplementary files (e.g.,
uiContext.md, featureAContext.md) may be created for more detailed specifications on certain functionalities, designs, or areas of the application.
- Keep these files stable. Update them only when new, approved changes need to be documented.
- Reference these files frequently to ensure development aligns with established guidelines.
-
Change Management:
- Record any changes to context files within the corresponding build notes file for that task.
- Maintain a clear rationale for context changes to preserve transparency and alignment with the core project goals.
Project Structure
Adopt a clear, modular directory structure: