agentleFS
Sign inSign up

Cursor rules examples

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

Best matchesWorked for most · soon
callstackincubatorCursor rule

agent-skills / rules

callstackincubator/agent-skills/.cursor/rules/react-native-best-practices.mdc

React Native performance — route to react-native-best-practices SKILL.md and profiling first

1.7k57d agoDiscuss
KroMioseCursor rule

nekro-agent / rules

KroMiose/nekro-agent/.cursor/rules/frontend-rules.mdc

前端 React 服务开发指南

1.1k6mo agoDiscuss
lukinovCursor rule

ai-form-builder / rules

lukinov/ai-form-builder/.cursor/rules/formengine.mdc

Generate FormEngine-shaped React forms from a screenshot, PDF, HTML, or text description. Use whenever the user asks to build, generate, scaffold, or convert a React form — especially mentioning FormEngine, JSON schema form, signup/login/contact/onboarding/checkout/survey forms, or alternatives to Formik / React Hook Form / RJSF.

25mo agoDiscuss
louisbrulenaudetCursor rule

monorepo-template / frontend

louisbrulenaudet/monorepo-template/.cursor/rules/frontend/react-doctor.mdc

React Doctor front-* scan contract - run changed-scope scan after React changes, embedded oxlint rules, offline posture

196d agoDiscuss
carmentacollectiveCursor rule

carmenta / frontend

carmentacollective/carmenta/.cursor/rules/frontend/react-components.mdc

When writing React components

29mo agoDiscuss
przeprogramowaniCursor rule

ai-rules-builder / rules

przeprogramowani/ai-rules-builder/.cursor/rules/react-development.mdc

Developing React components in Astro application

26411mo agoDiscuss
PostHogCursor rule

posthog / rules

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

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

40k8d agoDiscuss
SentryCursor rule

spotlight / rules

getsentry/spotlight/packages/spotlight/src/ui/.cursor/rules/ui.mdc

UI development guidelines for the Spotlight React application

6204mo agoDiscuss
mondaycomCursor rule

vibe / rules

mondaycom/vibe/.cursor/rules/react-context.mdc

This rule outlines the standard practices for creating, structuring, and utilizing React Context, primarily within the `packages/core/` components. It covers the recommended file structure (placing context files in a `context/` subdirectory), established naming conventions for context objects, provider components, and custom consumer hooks, as well as implementation best practices and common patterns to ensure consistency and maintainability. Use this rule when creating new React Contexts or when looking to understand how existing contexts are structured and used.

6787mo agoDiscuss
jimmypocockCursor rule

cursor-rules / rules

jimmypocock/cursor-rules/.cursor/rules/react-native.mdc

React Native Development Standards

817mo agoDiscuss
vibestackdevCursor rule

vibe-stack / rules

vibestackdev/vibe-stack/.cursor/rules/hydration-safety.mdc

React hydration mismatch prevention

86mo agoDiscuss
przeprogramowaniCursor rule

ai-rules-builder / rules

przeprogramowani/ai-rules-builder/.cursor/rules/vitest-unit-testing.mdc

Unit testing with Vitest and React Testing Library

26411mo agoDiscuss
galyarderlabsCursor rule

galyarder-framework / rules

galyarderlabs/galyarder-framework/.cursor/rules/vercel-react-best-practices.mdc

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

223mo agoDiscuss
ivangrynenkoCursor rule

cursorrules / rules

ivangrynenko/cursorrules/.cursor/rules/react-patterns.mdc

React component patterns and hooks usage guidelines

8811mo agoDiscuss
waynesuttonCursor rule

opensync / rules

waynesutton/opensync/.cursor/rules/convex-write-conflicts.mdc

Guidelines for preventing write conflicts when using React, useEffect, and Convex

4108mo agoDiscuss
DataCoveyCursor rule

nornweave / rules

DataCovey/nornweave/.cursor/rules/performance-optimization-rule.mdc

Rules to optimize performance of React and TypeScript components.

298mo agoDiscuss
CLAUDE.md vs AGENTS.md

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.