IDE-Tools · Foto: Homedust, CC BY 2.0
React Next.js UI Development Cursorrules Prompt Fil
Zuletzt aktualisiert:
Typ
Regel
Lizenz
CC0 1.0
Anwendungsfeld
Cursor Rules
Voraussetzungen
Keine besonderen — direkt loslegen.
Cursor-Regel für konsistente UI-Struktur und Styling in React/Next.js-Projekten.
Original-Beschreibung der Autoren: Cursor rules for React development with Next.js UI integration.
Die Regel
---
description: "Cursor rules for React development with Next.js UI integration."
globs: **/*
alwaysApply: false
---
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!
So nutzt du sie
Die Regel kopieren (Button oben) oder als Datei herunterladen und im Projekt unter .cursor/rules/ ablegen — Cursor lädt sie beim nächsten Start automatisch. Ältere Cursor-Versionen lesen alternativ eine einzelne .cursorrules-Datei im Projektstamm; dort einfach den Regel-Text ohne den Kopfblock zwischen den ----Zeilen einfügen.
Der Regel-Text ist englisch — Cursor versteht ihn unabhängig von der Sprache, in der Sie mit dem Editor chatten.
Im Detail
Diese Regel bündelt Vorgaben für UI-Entwicklung mit React und Next.js: wie Komponenten strukturiert, benannt und aufgeteilt werden und welche Styling-Konventionen gelten. Sie richtet sich an Teams, die in Cursor konsistente, wartbare Frontend-Komponenten generieren lassen wollen, ohne bei jedem Prompt Strukturvorgaben neu erklären zu müssen. Der Nutzen liegt vor allem in der Einheitlichkeit über viele Komponenten hinweg — wichtig bei größeren Next.js-Projekten mit mehreren Mitwirkenden. Für sehr kleine Projekte oder Prototypen ist der Regelaufwand womöglich unnötig, dort reicht oft freihändiges Prompten.
Praxis-Tipp
Regel aktivieren und dann gezielt UI-Bausteine anfordern, etwa ‘Erstelle eine ProductCard-Komponente nach den Next.js-UI-Konventionen’, damit Struktur und Styling automatisch passen.
Lizenz & Quelle
- Lizenz: CC0 1.0
- Quelle: PatrickJS/awesome-cursorrules (GitHub)
Inhalt ansehen (react-nextjs-ui-development-cursorrules-prompt-fil.mdc)
Lade …
Erfahrungen & Kommentare.
Funktioniert der Regel bei Ihnen? Tipps, Stolperfallen, Varianten — teilen Sie es mit der Community.
Lade Kommentare …
Passt dazu.
AI Agent Specialist
Cursor-Regel für diszipliniertes, klar abgegrenztes Agenten-Verhalten statt unstrukturierter KI-Antworten.
Alpha Skills Quant Factor Research
Cursor-Regel für methodisch saubere quantitative Faktor-Recherche im Trading-Umfeld.
Android Jetpack Compose
Cursor-Regel für idiomatischen, deklarativen Android-UI-Code mit Jetpack Compose.
