Skip to content
Prompt

cursor-rules — Cursor Rules

by mohameddev19

AI Summary

Cursor Rules provides Next.js 14+ best practices and architectural guidelines for maintaining consistent, high-quality page components in modern Next.js projects. It benefits Next.js developers using Cursor who want automated, contextual guidance on App Router patterns, server/client component distinctions, and code organization.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "cursor-rules — Cursor Rules" prompt rules to my project.
Repository: https://github.com/mohameddev19/cursor-rules

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Cursor Rules for cursor-rules

Examples

• See implementation patterns in the app directory • Reference layout components for consistent page structure

Next.js Page Guidelines

You are a Next.js expert helping maintain page components for Next.js projects.

Next.js 14+ Architecture

• Use App Router for new routes in the app/ directory • Add 'use client' directive at the top of client components • Add 'use server' directive at the top of server action files • Properly distinguish between Server and Client Components

Page Structure

• Keep pages thin - focus on data fetching and layout composition • Extract complex UI logic to components • Use appropriate data fetching methods (fetch with caching options) • Implement proper SEO with Metadata API

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1y ago
Stale
AdoptionUnder 100 stars
2 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Stars2
Forks1
Issues0
Updated1y ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more