agentleFS

Cursor rules examples

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

Worked for most · soon
MicrosoftCursor rule

rushstack / rules

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

You are a Rush monorepo development and management expert. Your role is to assist with Rush-related tasks while following these key principles and best practices: The standard directory structure for…

No other project uses it yet

6.5k18mo agoReviewMountCreate a free account to mount
Microsoft AzureCursor rule

Azure-Sentinel / rules

Azure/Azure-Sentinel/.cursor/rules/sentinel-xdr-migration.mdc

Canonical Sentinel-to-Defender-XDR migration and authoring workflow

No other project uses it yet

6.2k17d agoReviewMountCreate a free account to mount
VercelCursor rule

streamdown / rules

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

Documentation Writing Style Guide

Steady10 mentions in 2 weeks

No other project uses it yet

5.7k15mo agoReviewMountCreate a free account to mount
VercelCursor rule

streamdown / rules

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

Ultracite Rules - AI-Ready Formatter and Linter

Steady10 mentions in 2 weeks

10 projects use a version of this

5.7k15mo agoReviewMountCreate a free account to mount
VercelCursor rule

streamdown / rules

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

Ultracite Rules - AI-Ready Formatter and Linter

Steady10 mentions in 2 weeks

2 projects use a version of this

5.7k15mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-000a-reusable-layers-belong-in-nn.mdc

Reusable layers and building blocks should be placed in physicsnemo/nn, not physicsnemo/models. Examples include FullyConnected, attention layers, and UNetBlock.

No other project uses it yet

3.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-000b-complete-models-belong-in-models.mdc

Complete models composed of multiple layers should be placed in physicsnemo/models, not physicsnemo/nn. These are domain-specific or modality-specific models.

No other project uses it yet

3.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-001-use-physicsnemo-module-as-base-class.mdc

All model and layer classes must inherit from physicsnemo.Module (not torch.nn.Module directly) to ensure proper serialization, versioning, and registry functionality.

No other project uses it yet

3.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-002a-experimental-models-belong-in-experimental.mdc

New model classes should start in physicsnemo/experimental/nn or physicsnemo/experimental/models during development, where backward compatibility is not guaranteed.

3.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-002b-add-deprecation-warnings-to-model.mdc

Model classes being deprecated must include deprecation warnings in both docstring and runtime, explaining why and what users should use instead, for at least 1 release cycle.

3.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-002c-remove-deprecated-model-from-codebase.mdc

After at least 1 release cycle in pre-deprecation stage with warnings, deprecated model classes can be deleted from the codebase.

3.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003a-missing-or-incomplete-docstring.mdc

Every model/layer requires comprehensive docstrings following NumPy style with Sphinx RST formatting, including all sub-rules MOD-003b through MOD-003k.

3.4k11mo agoReviewMountCreate a free account to mount
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.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003c-missing-required-class-docstring-sections.mdc

Class docstrings must contain three mandatory sections - Parameters, Forward, and Outputs. Optional sections include Notes, Examples, ..important::, and ..code-block::.

3.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003d-missing-required-method-docstring-sections.mdc

All methods must have docstrings with at least Parameters and Returns sections. Optional sections include Notes, Examples, ..important::, and ..code-block::.

3.4k11mo agoReviewMountCreate a free account to mount
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.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003f-callback-functions-must-have-code-block-specification.mdc

Callback function parameters must include a ..code-block:: specification showing the required signature and return type, placed outside Parameters/Forward/Outputs sections.

3.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003g-inline-code-must-use-double-backticks.mdc

Inline code in docstrings must be formatted with double backticks ``code``, not single backticks, as single backticks don't render properly in Sphinx.

3.4k11mo agoReviewMountCreate a free account to mount
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.4k11mo agoReviewMountCreate a free account to mount
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.4k11mo agoReviewMountCreate a free account to mount
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.