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
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
NVIDIACursor rule

NeMo-Agent-Toolkit / nat-agents

NVIDIA/NeMo-Agent-Toolkit/.cursor/rules/nat-agents/general.mdc

Follow these rules when the user's request involves integrating or selecting ReAct, Tool-Calling, Reasoning, or ReWOO agents within NeMo Agent Toolkit workflows

2.6k14mo agoDiscuss
colbymchenryCursor rule

codegraph / rules

colbymchenry/codegraph/.cursor/rules/codegraph.mdc

CodeGraph MCP usage guide — one tool, codegraph_explore

72k2mo agoDiscuss
VercelCursor rule

chatbot / rules

vercel/chatbot/.cursor/rules/ultracite.mdc

Ultracite Rules - AI-Ready Formatter and Linter

21k13mo 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/i18n-no-hardcoded-strings.mdc

No hardcoded UI strings — use i18n translation keys

17k5mo agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/01-code-style.mdc

strings - use named constants - Use async/await instead of raw promises for asynchronous code ## React Performance Optimization - Always wrap pure components with React.memo to prevent unnecessary re-renders - Always use useMemo

7.5k8mo agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/02-project-structure.mdc

apps/api) - Backend API built with NestJS - [apps/web](mdc:apps/web) - Frontend web application built with React - [apps/extension](mdc:apps/extension) - Browser extension for web clipping ## Packages Directory - [packages/ai-workspace-common](mdc:packages/ai-workspace-common) - Shared

7.5k8mo agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/05-code-organization.mdc

patterns into reusable components - Follow composition over inheritance principles ## State Management ### Local State - Use React state hooks for component internal state - Split complex state into multiple state variables - Use useReducer

7.5k8mo agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/10-testing-guidelines.mdc

unit and integration tests - Cypress for end-to-end tests - Test utilities from React Testing Library

7.5k8mo agoDiscuss
airweave-aiCursor rule

airweave / rules

airweave-ai/airweave/.cursor/rules/frontend-rules.mdc

globs: **/frontend/** alwaysApply: false --- # Airweave Frontend Architecture & Guidelines ## Tech Stack & Core Technologies - **React 18** with TypeScript for type-safe component development - **Vite** for fast development builds and HMR - **TailwindCSS** with

6.6k6mo agoDiscuss
airweave-aiCursor rule

airweave / rules

airweave-ai/airweave/.cursor/rules/sync-architecture.mdc

wiring needed - Accumulates progress in per-sync sessions, publishes aggregated updates **Features**: - **Event-Driven**: Reacts to `EntityBatchProcessedEvent`, `SyncLifecycleEvent`, etc. - **Redis Integration**: Publishes to `sync_job:{job_id}` channels - **Snapshot Storage

6.6k6mo agoDiscuss
MicrosoftCursor rule

rushstack / rules

microsoft/rushstack/.cursor/rules/rush.mdc

affecting all projects - Key configuration items: ```json { // Specify preferred versions for specific packages "preferredVersions": { "react": "17.0.2", // Restrict react version "typescript": "~4.5.0" // Restrict typescript version }, // Whether to automatically add all dependencies

6.5k16mo agoDiscuss
VercelCursor rule

streamdown / rules

vercel/streamdown/apps/website/.cursor/.cursor/rules/ultracite.mdc

Ultracite Rules - AI-Ready Formatter and Linter

5.7k14mo agoDiscuss
VercelCursor rule

streamdown / rules

vercel/streamdown/apps/website/.cursor/rules/ultracite.mdc

Ultracite Rules - AI-Ready Formatter and Linter

5.7k14mo agoDiscuss
Adam-CADCursor rule

CADAM / rules

Adam-CAD/CADAM/.cursor/rules/code-style.mdc

Formatting - Max line length: 100 characters - Indentation: 2 spaces - Semicolons: required - Quotes: single quotes ## React Rules - Component naming: `^[A-Z][a-zA-Z0-9]*$` - File naming

5.2k13mo agoDiscuss
Adam-CADCursor rule

CADAM / rules

Adam-CAD/CADAM/.cursor/rules/frontend-architecture.mdc

Architecture ### Views (Page Components) - Located in `src/views/` - Each view represents a full page/route - Use React Router for navigation - Implement proper loading and error states - Examples: `PromptView`, `EditorView`, `HistoryView` ### Reusable Components

5.2k13mo 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.