agentleFS
Sign inSign up

Cursor rules examples

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

Best matchesWorked for most · soon
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
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
triggerdotdevCursor rule

trigger.dev / rules

triggerdotdev/trigger.dev/.cursor/rules/writing-tasks.mdc

Guidelines for writing Trigger.dev tasks

16k52d agoReads credentialsDiscuss
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.