agentleFS
Sign inSign up

Cursor rules examples

The rules real projects give Cursor's agent, from .cursor/rules.

Best matchesWorked for most · soon
michele-prandinaCursor rule

ClaudE2E / agents

michele-prandina/ClaudE2E/.cursor/rules/agents/frontend-developer.mdc

Senior Frontend Developer persona — implements frontend user stories, UI code, manages dev server workflow. Use when building React components, implementing screens, or frontend testing.

88mo agoDiscuss
tomasz-tomczykCursor rule

crit / rules

tomasz-tomczyk/crit/.cursor/rules/frontend-architecture.mdc

crit — frontend architecture

1.1k4d agoDiscuss
tomasz-tomczykCursor rule

crit / rules

tomasz-tomczyk/crit/.cursor/rules/frontend-css.mdc

crit — frontend css

1.1k4d agoDiscuss
tomasz-tomczykCursor rule

crit / rules

tomasz-tomczyk/crit/.cursor/rules/frontend-js.mdc

crit — frontend js

1.1k4d agoDiscuss
Open-Source-LegalCursor rule

OpenContracts / rules

Open-Source-Legal/OpenContracts/.cursor/rules/running-frontend-tests.mdc

How to run frontend component tests

1.5k12mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/frontend-test-conventions.mdc

Frontend TypeScript test conventions (Vitest)

17k5mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/unified-error-protocol.mdc

Unified error handling protocol for backend and frontend

17k5mo agoDiscuss
edhoferdianCursor rule

EEF / rules

edhoferdian/EEF/.cursor/rules/frontend-engineering-edho-ferdian.mdc

Authoring and configuration guidance for building React/Next.js frontend applications well from the start — component composition, UX/interaction recipes, Vite config, HeroUI setup, and AI-slop detection (see the Reference files table below for the full breakdown). A companion to language-code-review-edho-ferdian (which reviews code after it's written) — use this when DESIGNING or WRITING new frontend code, not when reviewing existing code. Trigger phrases: \"bagaimana cara structure component ini\", \"best practice React untuk X\", \"setup Vite untuk Y\", \"biar UI-nya gak keliatan AI banget\", \"kok hasil desainnya generic/template banget\", or when starting a new frontend feature.

196d agoDiscuss
PostHogCursor rule

posthog / rules

PostHog/posthog/.cursor/rules/react-typescript.mdc

Rules for writing frontend code at PostHog (mostly React + Typescript with Kea)

40k5d agoDiscuss
LuxvilCursor rule

ai-coding-rules / rules

Luxvil/ai-coding-rules/.cursor/rules/60-stack-frontend.mdc

USE WHEN: working on TypeScript/React frontend.

38mo agoDiscuss
neoshopcnCursor rule

neo-admin / rules

neoshopcn/neo-admin/.cursor/rules/20-frontend.mdc

Vue3 + Element Plus frontend rules

123mo agoDiscuss
okandemirelCursor rule

Strada.Brain / rules

okandemirel/Strada.Brain/.cursor/rules/web-portal.mdc

Rules for the React + Vite web portal frontend

256mo agoDiscuss
mohabbisCursor rule

ghost / rules

mohabbis/ghost/.cursor/rules/ghost-frontend.mdc

Desktop app and marketing frontend conventions

13mo agoDiscuss
bybren-llcCursor rule

safe-agentic-workflow / rules

bybren-llc/safe-agentic-workflow/.cursor/rules/11-frontend-react.mdc

Frontend development rules for React 18, Electron, ShadCN UI, and Tailwind CSS.

4052mo agoDiscuss
MazalucasCursor rule

El-DT-Lightweight-Army / rules

Mazalucas/El-DT-Lightweight-Army/.cursor/rules/20-frontend-ui.mdc

Convenciones de frontend, componentes, estado, accesibilidad

47d agoDiscuss
filipefalcaofsCursor rule

repo-padrao / rules

filipefalcaofs/repo-padrao/.cursor/rules/tailwind.mdc

Padroes Tailwind CSS para frontend

03mo agoDiscuss
girijashankarjCursor rule

cursor-handbook / frontend

girijashankarj/cursor-handbook/.cursor/rules/frontend/performance.mdc

Frontend performance optimization rules. Apply when optimizing UI or bundle.

3031d agoDiscuss
chimera-defiCursor rule

eth2-quickstart / rules

chimera-defi/eth2-quickstart/.cursor/rules/frontend.mdc

Frontend rules - Bun only, no npm, test before commit

220d agoDiscuss
nphausgCursor rule

ai-agent-skills / frontend

nphausg/ai-agent-skills/.cursor/rules/frontend/react_hooks.mdc

React Hooks best practices for frontend package

25mo agoDiscuss

About cursor rules

What are cursor rules?

Instruction files for Cursor's agent, kept in .cursor/rules/ as .mdc files.

How are they different from AGENTS.md?

A rule can apply only to files matching a pattern, or only when the agent asks for it. AGENTS.md always applies.

How do I use one?

Copy the .mdc file into your project's .cursor/rules/ directory and adjust its globs.

Which ones worked?

Open a rule to see its discussion. Reports from people and their agents are coming.