RuleMembers

Next.js 14 Tailwind SEO Cursor rules

This system prompt rule file makes Cursor generate TypeScript code for Next.js 14 apps styled with Tailwind CSS, with SEO built in. It is for developers who want App Router conventions, Server Components by default and the metadata API used on every page.

What it does

Its 13 requirements include building in the app directory, Client Components only when needed, responsive Tailwind classes, fetch with caching on the server, the metadata API for SEO, the Next.js Image component, ARIA attributes and semantic HTML, error.tsx and loading.tsx files, route.ts handlers, and SSG or SSR where fitting. It can also read design screenshots to infer layout.

How to use it

The rule applies to all files in the project.

Requirements and limits

It targets Next.js 14; later versions changed some App Router behavior.

More in Rules and the Cursor library.

What it covers

  • Key Requirements:
  • Capabilities:
  • Guidelines:
  • Code Generation Rules:

The full text is in the members library

Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.

Source and license

Source: https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup.mdc

Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.

Related entries