Rule
0 installs · 0 said it worked
Cursor rules for building Next.js, Supabase, and shadcn PWAs with build notes
A .mdc rules file that sets coding style, stack conventions, and build-notes and context-file rules for an AI agent building a Next.js, Supabase, Shadcn UI Progressive Web App.
People use this for
- cursor rules nextjs supabase
- shadcn pwa coding rules
- build notes ai agent rules
- typescript nextjs app router prompt
- progressive web app cursor mdc
- Name
cursor-rules-for-building-nextjs-supabase-and-shadcn-pwas-with-b- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-for-building-nextjs-supabase-and-shadcn-pwas-with-build-not-675j/export/mdc" -o .cursor/rules/cursor-rules-for-building-nextjs-supabase-and-shadcn-pwas-with-b.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save cursor-rules-for-building-nextjs-supabase-and-shadcn-pwas-with-b.mdc as .cursor/rules/cursor-rules-for-building-nextjs-supabase-and-shadcn-pwas-with-b.mdc for this project or ~/.cursor/rules/cursor-rules-for-building-nextjs-supabase-and-shadcn-pwas-with-b.mdc for every project, then start a new session.
Rule
description: "Cursor rules for Nextjs Supabase Shadcn Pwa." globs: */ alwaysApply: false
Key Principles
Code Quality & Style
- Write concise, maintainable, and strongly typed code with accurate TypeScript implementations.
- Embrace functional, declarative programming. Avoid OOP and classes.
- Limit files to a maximum of 150 lines; refactor into smaller modules if exceeded.
- Prefer iteration and modularization over duplication.
- Use descriptive, semantic variable names with auxiliary verbs (e.g.,
isLoading,hasError). - Use lowercase with dashes for directories and files (e.g.,
components/auth-wizard). - Favor named exports for components.
- Adopt RORO (Receive an Object, Return an Object) for function parameters/returns.
- Always attain to use DRY (Don't Repeat Yourself) principles.
- Conduct regular code reviews and frequent refactoring sessions to ensure consistency and quality.
- Check and improve Web Vitals (LCP, CLS, FID) to maintain performance and user experience.
Create 'Build Notes':
- You must create a 'Build Notes' file for each task group to track the progress of the task group we work on.
- Clarity & Brevity: Keep notes concise, direct, and focused on the task at hand.
- Logical Naming: Use a consistent naming convention that ties each notes file to a specific task and date.
- Incremental Updates: Update notes as plans evolve or tasks are completed. Append rather than overwrite.
- Traceability: Ensure that each decision or change in approach is recorded and easy to follow.
Review 'Project Contexts':
- You must review the
projectContext.mdas we need to ensure that the project context is up to date and accurate. - Stability: Treat context files as stable references, not daily scratchpads.
- Selective Updates: Update context files only when there are significant, approved changes to requirements or project scope.
- Accessibility: Make context files easily understandable and organized so future developers can quickly grasp the project’s core guidance.
- You must review the
Stack and Framework Conventions
- Target Next.js 15+ and leverage the App Router, React Server Components (RSC), and SSR capabilities.
- Use Zustand for state management in client components when necessary.
- Maintain proper Shadcn UI management using
npx shadcn@latest addfor new components. - Follow a mobile-first approach and responsive design patterns.
- Emphasize server-side logic, minimizing the usage of
use clientand other client-only APIs. - Structure project as Progressive Web App (PWA) with offline capabilities, app-like experience, and installability across devices.
Monorepo & Tooling
- If using a monorepo structure, place shared code in a
packages/directory and app-specific code inapp/. - Use
Taskfile.ymlcommands for development, testing, and deployment tasks. - Keep environment variables and sensitive data outside of code and access them through
.envfiles or similar configuration.
- If using a monorepo structure, place shared code in a
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.mdsupabase-schema-standardizationis the build titlephase-1is the phase numberpreparation-and-code-analysisis the task group name
- Store all notes files in
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.
Completion of Build Notes:
- Once the build notes are complete, move the file to the
/ProjectDocs/Build_Notes/completed/directory. - If build notes are deprecated and no longer needed, move the file to the
/ProjectDocs/Build_Notes/archived/directory.
- Once the build notes are complete, move the file to the
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.
- Located in
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.
- Supplementary files (e.g.,
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:
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Autonomous coding agent that builds a verified app-builder harness
Master system prompt that directs an autonomous senior Python engineer to build a spec-driven, evidence-traced app-builder harness milestone by milestone without asking questions.
Coding · @mahfuzahmedog
- Universal agent rules for building React and Next.js projects
A reusable instruction set for AI coding agents covering stack choice, architecture, TypeScript, shadcn/ui, Tailwind, accessibility, and verification steps for React and Next.js projects.
Coding · @ramazanyusupov
- Nginx config security review with fixes and checker script
Agent skill that reviews nginx configs for TLS, header, alias traversal, admin exposure and rate-limit problems, runs a stdlib checker, and returns a minimal route-preserving fixed config with reload and curl test steps.
Coding · @f
- Cursor rules that build a Next.js notes app with TypeScript conventions
Cursor rules file that sets TypeScript, Next.js App Router, React, Shadcn UI and Tailwind conventions, then asks the model to build a notes app with add, list, detail, edit, delete, search, filter, sort, pagination, loading and error states, and drag and drop.
Coding · @patrickjs
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.