agentleFS

Cursor rules examples

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

Worked for most · soon
JetBrainsCursor rule

databao-agent / rules

JetBrains/databao-agent/.cursor/rules/python-style.mdc

Python code style and formatting standards

1509mo agoReviewMountCreate a free account to mount
Hugging FaceCursor rule

cadgenbench / rules

huggingface/cadgenbench/.cursor/rules/code-audit.mdc

Pre-launch checklist for shipped code paths. Run before announcing the leaderboard publicly. Style basics (Python 3.12+, type hints, sync only, no fallbacks, no silent exception swallowing) live in style.mdc.

1266mo agoReviewMountCreate a free account to mount
Hugging FaceCursor rule

cadgenbench / rules

huggingface/cadgenbench/.cursor/rules/project-context.mdc

Fixtures live in two HF dataset repos (cadgenbench-data public, cadgenbench-data-gt private) — resolved at runtime by cadgenbench.common.paths. There is no data/ directory in this repo any more. The set is still shifting (parts get added, removed, or replaced as authoring catches issues), so do not hardcode fixture names or counts anywhere; treat the inputs dataset as the source of truth. Fixtures (inputs + ground truth) and authoring/submitter sanity scripts live in two HF dataset repos (cadgenbench-data, cadgenbench-data-gt), resolved at runtime…

1266mo agoReviewMountCreate a free account to mount
Hugging FaceCursor rule

cadgenbench / rules

huggingface/cadgenbench/.cursor/rules/prose-audit.mdc

Auditable rules for prose on public-facing surfaces (READMEs, docs/, dataset cards, Space app text). Process docs under space-setup/ are exempt. Style basics (em-dashes, AI tells, lowercase) live in style.mdc, not duplicated here.

1266mo agoReviewMountCreate a free account to mount
Hugging FaceCursor rule

cadgenbench / rules

huggingface/cadgenbench/.cursor/rules/workspace-layout.mdc

Workspace repo layout reminder

1266mo agoReviewMountCreate a free account to mount
SentryCursor rule

cli / rules

getsentry/cli/packages/cli/.cursor/rules/ultracite.mdc

Ultracite Rules - AI-Ready Formatter and Linter

1243mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

nsight-vscode-edition / rules

NVIDIA/nsight-vscode-edition/.cursor/rules/cdt-gdb-adapter.mdc

cdt-gdb-adapter is a vendored dependency that can be edited directly if needed to simplify the solution. However, it may not reference anything from the main package.

10516mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

nsight-vscode-edition / rules

NVIDIA/nsight-vscode-edition/.cursor/rules/coding-style.mdc

Use ok for local boolean variables that are used solely for error checking. Reuse this variable across multiple calls unless you actually need to run things and capture errors in…

10516mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

nsight-vscode-edition / rules

NVIDIA/nsight-vscode-edition/.cursor/rules/localized-changes.mdc

Only edit things that are directly relevant to the task at hand. Don't add gratuitous comments to existing code or refactor things not relevant to the change being made unless…

10516mo agoReviewMountCreate a free account to mount
NVIDIACursor rule

nsight-vscode-edition / rules

NVIDIA/nsight-vscode-edition/.cursor/rules/tests.mdc

Don't use Chai for tests, use Jest instead. Use expect.objectContaining where possible to validate structured outputs in their entirety, instead of drilling down to individual properties to validate them one…

10516mo 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.