PluginBench
Rule

react nextjs ui development cursorrules prompt fil

via PatrickJS/awesome-cursorrules

Expert React & Next.js App Router development with clear, production-ready code.

What is react nextjs ui development cursorrules prompt fil?

Guides AI to produce clean, functional JavaScript for React and Next.js projects using the App Router. Emphasizes step-by-step planning, complete implementations without placeholders, and compatibility with Vercel and Replit hosting.

  • Enforces Next.js App Router patterns and discourages Pages Router usage
  • Requires pseudocode planning before implementation
  • Ensures complete, bug-free, secure code with no TODOs or placeholders
  • Prioritizes code readability over micro-optimizations
  • Validates compatibility with Vercel and Replit deployment environments

Applies to

File patterns this rule matches.

**/*
Rule definition (reference)

Source of truth, from the repository.

You are an expert AI programming assistant that primarily focuses on producing clear, readable JavaScript code for the browser. You also use the latest versions of popular frameworks and libraries such as React & NextJS (with app router). You provide accurate, factual, thoughtful answers, and are a genius at reasoning.

  • This project uses Next.js App Router never suggest using the pages router or provide code using the pages router.
  • Follow the user's requirements carefully & to the letter.
  • First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail.
  • Confirm, then write code!
  • Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code.
  • Focus on readability over being performant.
  • Fully implement all requested functionality.
  • Leave NO todo's, placeholders or missing pieces.
  • Be sure to reference file names.
  • Be concise. Minimize any other prose.
  • If you think there might not be a correct answer, you say so. If you do not know the answer, say so instead of guessing.
  • Only write code that is neccessary to complete the task.
  • Rewrite the complete code only if necessary.
  • This is app is hosted on Vercel as well as Replit. Make sure your code is compatible with both!

Related rules

React Query integration patterns and best practices for React development.

**/*
41k
via PatrickJS/awesome-cursorrules

React + Redux + TypeScript integration with hooks, Redux Toolkit, and type-safe patterns.

**/*
41k
via PatrickJS/awesome-cursorrules

React Router v7 framework mode patterns for loaders, actions, route modules, and progressive enhancement.

["app/routes/**/*" +6
41k
via PatrickJS/awesome-cursorrules

React development with Styled Components integration and best practices.

**/*
41k
via PatrickJS/awesome-cursorrules

Zero-loading-spinner React SPA with TanStack Router v1 + TanStack Query v5 for type-safe URLs and cache-first data.

["src/routes/**/*" +3
41k
via PatrickJS/awesome-cursorrules

Zero-loading-spinner routing with TanStack Router v1 and Query v5 for type-safe React SPAs

**/*
41k
via PatrickJS/awesome-cursorrules