agentleFS

Cursor rules examples

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

Best matches · from page 6Worked for most · soon
techniqCursor rule

layerchart / rules

techniq/layerchart/.cursor/rules/testing.mdc

Comprehensive Testing Best Practices for Svelte 5 + vitest-browser-svelte

Steady12 mentions in 2 weeks

No other project uses it yet

1.4k9mo agoReviewMountCreate a free account to mount
mg-chaoCursor rule

snow-apps / rules

mg-chao/snow-apps/.cursor/rules/related-tests.mdc

After code changes, run only related tests — never the full suite unless the user explicitly asks.

1 project uses a version of this

6.8k2mo agoReviewMountCreate a free account to mount
openlitCursor rule

openlit / rules

openlit/openlit/.cursor/rules/security-testing.mdc

Authorization, input validation, CE boundary, secrets, and test guidance for OpenLIT server code.

No other project uses it yet

3.1k5mo agoReviewMountCreate a free account to mount
apacheCursor rule

ranger / rules

apache/ranger/.cursor/rules/ranger-python.mdc

Apache Ranger Python client and test conventions (apache-ranger on PyPI)

1.1k3mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-003j-docstrings-should-include-examples-section.mdc

Docstrings should include an Examples section with executable code demonstrating usage, as these are automatically tested by CI for correctness.

3.4k11mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

NeMo-Agent-Toolkit / nat-tests

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

Follow these rules when the user's request involves writing, creating, or modifying tests for NeMo Agent Toolkit

2.7k15mo agoReviewMountCreate a free account to mount
prestCursor rule

prest / rules

prest/prest/.cursor/rules/unit-tests-tdd.mdc

TDD required for behavior changes; ≥80% package coverage on touched packages; unit-test conventions

No other project uses it yet

4.6k38d agoReviewMountCreate a free account to mount
apacheCursor rule

nifi / rules

apache/nifi/.cursor/rules/extension-testing.mdc

Testing guidance for NiFi extensions (Processors, Controller Services, Connectors). Covers nifi-mock and TestRunner usage.

6.3k5mo agoReviewMountCreate a free account to mount
NVIDIAReads credentialsCursor rule

NeMo-Agent-Toolkit / nat-tests

NVIDIA/NeMo-Agent-Toolkit/.cursor/rules/nat-tests/integration-tests.mdc

Follow these rules when the user's request involves writing, creating, or modifying integration tests for NeMo Agent Toolkit workflows

Steady2 mentions in 2 weeks

1 project uses a version of this

2.7k15mo agoReviewMountCreate a free account to mount
prestCursor rule

prest / rules

prest/prest/.cursor/rules/integration-tests.mdc

Human-readable integration test requests; helpers vs httptest; suites/ vs per-DB placement

No other project uses it yet

4.6k38d agoReviewMountCreate a free account to mount
millioncoCursor rule

expect / rules

millionco/expect/.cursor/rules/browser-testing.mdc

Use when performing browser-based testing, visual verification, accessibility checks, or performance profiling using the browser MCP.

Steady17 mentions in 2 weeks

No other project uses it yet

3.6k7mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-008a-model-missing-constructor-attributes-tests.mdc

Every model must have CI tests verifying constructor instantiation and all public attributes (excluding buffers/parameters) using pytest parameterization.

3.4k11mo agoReviewMountCreate a free account to mount
founded-labsCursor rule

react-native-reusables / rules

founded-labs/react-native-reusables/.cursor/rules/argent.md

Argent iOS Simulator and Android Emulator Agent — always-on guidance for methodology and tools for working with, interacting, testing and profiling mobile app work

No other project uses it yet

8.7k5mo agoReviewMountCreate a free account to mount
roboflowCursor rule

inference / rules

roboflow/inference/.cursor/rules/pr-description.mdc

Draft GitHub PR descriptions in Roboflow format (Linear link, testing, checklist). Invoke with @pr-description — not applied automatically.

No other project uses it yet

2.5k23d agoReviewMountCreate a free account to mount
selfxyzCursor rule

self / rules

selfxyz/self/.cursor/rules/test-memory-optimization.mdc

Critical rules for avoiding out-of-memory issues in tests, specifically preventing nested require() calls that cause pipeline failures

1.3k5mo agoReviewMountCreate a free account to mount
millioncoCursor rule

expect / rules

millionco/expect/.cursor/rules/expect-testing.mdc

Use when testing, verifying, validating, or QA-ing code changes against a live browser. Also when expect-cli fails or needs debugging.

Steady17 mentions in 2 weeks

No other project uses it yet

3.6k7mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-008c-model-missing-checkpoint-loading-test.mdc

Every model must have tests that load from checkpoint files (.mdlus), verify attributes, and compare outputs against reference data to ensure serialization works correctly.

3.4k11mo agoReviewMountCreate a free account to mount
databuddy-analyticsReads credentialsCursor rule

Databuddy / rules

databuddy-analytics/Databuddy/.cursor/rules/benchmark.mdc

Benchmarking playbook — HTTP load testing with oha and Server-Timing profiling. Update this rule when new benchmarking lessons are learned.

Steady3 mentions in 2 weeks

No other project uses it yet

1.2k39d agoReviewMountCreate a free account to mount
NVIDIACursor rule

physicsnemo / rules

NVIDIA/physicsnemo/.cursor/rules/mod-008b-model-missing-non-regression-test-with-reference-data.mdc

Every model must have non-regression tests comparing outputs against reference data saved in .pth files, using realistic tensor shapes and pytest parameterization.

3.4k11mo agoReviewMountCreate a free account to mount
ModelEngine-GroupCursor rule

nexent / rules

ModelEngine-Group/nexent/.cursor/rules/test_asset_rules.mdc

Formal Nexent test-e2e feature catalog, D1-D5 case-local scripts and execution bindings, generated views, runtime, migration, and Mock profiles

6.2k10d 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.