agentleFS
Sign inSign up

Cursor rules examples

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

Best matchesWorked for most · soon
sipyourdrink-ltdCursor rule

bernstein / rules

sipyourdrink-ltd/bernstein/.cursor/rules/documentation-duty.mdc

Documentation duty

1.3k9d agoDiscuss
langwatchCursor rule

better-agents / rules

langwatch/better-agents/.cursor/rules/docs-directory.mdc

When writing documentation for the repository

1.6k11mo agoDiscuss
VercelCursor rule

streamdown / rules

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

Documentation Writing Style Guide

5.7k14mo agoDiscuss
openlitCursor rule

openlit / rules

openlit/openlit/.cursor/rules/documentation.mdc

Standards for OpenLIT documentation, MDX structure, navigation, examples, and terminology.

2.8k3mo agoDiscuss
NVIDIACursor rule

NeMo-Agent-Toolkit / documentation

NVIDIA/NeMo-Agent-Toolkit/.cursor/rules/documentation/categories.mdc

Guidelines for placing documentation in the correct category within the docs/source directory

2.6k14mo agoDiscuss
NVIDIACursor rule

NeMo-Agent-Toolkit / documentation

NVIDIA/NeMo-Agent-Toolkit/.cursor/rules/documentation/latinisms.mdc

Guidelines for avoiding Latin phrases in documentation to simplify content for a global audience

2.6k14mo agoDiscuss
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003h-parameters-must-be-documented-on-single-line.mdc

All parameters must be documented with their type and default values on a single line following NumPy docstring style format.

3.3k10mo agoDiscuss
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003b-docstring-must-use-raw-string-prefix.mdc

Model and method docstrings must be prefixed with r""" (raw string with triple double quotes) for proper LaTeX rendering in Sphinx documentation.

3.3k10mo agoDiscuss
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003i-docstrings-should-include-cross-references.mdc

Docstrings should use Sphinx cross-references (:class:, :func:, :meth:) to link to other code elements and external resources for better documentation connectivity.

3.3k10mo agoDiscuss
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003e-tensor-shapes-must-use-latex-math-notation.mdc

All tensor shapes in docstrings must use LaTeX math notation like :math:`(B, C, H, W)` for proper rendering in Sphinx documentation.

3.3k10mo agoDiscuss
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/common-agents.md

Agent orchestration: available agents, parallel execution, multi-perspective analysis

246k30d agoDiscuss
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/common-performance.md

Performance: model selection, context management, build troubleshooting

246k30d agoDiscuss
PostHogCursor rule

posthog / rules

PostHog/posthog/.cursor/rules/django-python.mdc

Rules for writing Python services at PostHog (Python servers powered by the Django framework)

40k5d agoDiscuss
PostHogCursor rule

posthog / rules

PostHog/posthog/.cursor/rules/rust.mdc

Rules for writing Rust services at PostHog. Focuses on writing async Rust with Tokio and encoding general Rust best practices from the Rust book and docs.

40k5d agoDiscuss
VercelCursor rule

chatbot / rules

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

Ultracite Rules - AI-Ready Formatter and Linter

21k12mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/dev-guides-first.mdc

Require reading dev-guides before development and keeping docs in sync

17k5mo agoDiscuss
triggerdotdevCursor rule

trigger.dev / rules

triggerdotdev/trigger.dev/.cursor/rules/repo.mdc

understanding the structure of the monorepo

16k50d agoDiscuss
0xJackyCursor rule

nginx-ui / rules

0xJacky/nginx-ui/.cursor/rules/backend.mdc

Follow consistent coding standards and formatting rules across the project to enhance clarity. ## 5. Documentation and Comments - **English Language:** All code comments and documentation should be written in English

12k11d agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/00-language-priority.mdc

variable names, function names, class names, and other identifiers MUST use English words** - **ALL documentation (READMEs, API docs, inline documentation) MUST be in English** - **ALL Git commit messages MUST

7.5k8mo agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/04-code-formatting.mdc

description: globs: alwaysApply: true --- # Code Formatting Guidelines This document defines the code formatting standards to ensure consistency and readability. ## Formatting Tools The project uses Biome for code formatting and linting

7.5k8mo 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.