Project Management Framework
A structured approach to organizing and documenting software development projects, emphasizing clarity, consistency, and collaboration.
Core Components
- ProjectDocs Structure:
Organized documentation with build notes and context files (e.g., projectContext.md, appFlow.md). - Key Features:
- Build Notes Management: Systematic tracking of development progress.
- Context Awareness: Maintains project context to reduce misunderstandings.
- Task Organization: Breaks down tasks into manageable units.
- Progress Tracking: Clear system for monitoring task completion.
Technical Standards
- Code Quality & Style:
- Maximum file size of 150 lines; refactor into smaller modules if exceeded.
- Functional, declarative programming approach (avoid OOP and classes).
- Semantic variable naming with auxiliary verbs (e.g.,
isLoading
,hasError
).
- Stack & Framework Conventions:
- Next.js 15+ with App Router and React Server Components (RSC).
- Zustand for state management in client components.
- Shadcn UI management using
npx shadcn@latest add
. - Mobile-first approach and responsive design.
- Emphasis on server-side logic.
- Progressive Web App (PWA) structure.
Project Structure
- App Directory:
- Auth-related routes/pages (
auth
). - Dashboard routes/pages (
dashboard
). - API routes (
api
). - Root layout (
layout.tsx
).
- Auth-related routes/pages (
- Components Directory:
- Shared UI components (
shared
). - Feature-specific components (
features
). - Shadcn UI components (
ui
).
- Shared UI components (
- Lib Directory:
- Supabase client and utilities (
supabase
). - Global constants (
constants
). - Custom React hooks (
hooks
). - Custom middleware (
middleware
). - Shared utility functions (
utils
).
- Supabase client and utilities (
Usage and Best Practices
- Initial Setup: Create a ProjectDocs folder with contexts and build notes.
- Context Files: Start with
projectContext.md
and add more as needed. - Build Notes: Use a structured format for task objectives, current state, future state, and implementation plans.
- Customization: Modify the
.cursorrules
file to fit specific project needs.
Key Technologies:
- Next.js
- TypeScript
- Shadcn UI
- Supabase
- Zustand
Overview of .cursorrules prompt
This framework provides a structured approach to managing software projects by organizing documentation, maintaining consistent coding standards, and enhancing collaboration. It emphasizes clear project context, systematic task management, and adherence to best practices for Next.js development.