agentleFS

Cursor rules examples

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

Worked for most · soon
ElasticCursor rule

ml-cpp / rules

elastic/ml-cpp/.cursor/rules/ml-cpp-coding-conventions.mdc

ml-cpp coding conventions and cross-platform considerations

1579mo agoReviewMountCreate a free account to mount
ElasticCursor rule

ml-cpp / rules

elastic/ml-cpp/.cursor/rules/README.md

This directory contains domain-specific knowledge files that help AI coding assistants (Cursor, Claude, Copilot, etc.) understand the ml-cpp codebase, build system, and CI infrastructure. The .mdc files use Cursor Rules…

1579mo agoReviewMountCreate a free account to mount
JetBrainsCursor rule

databao-agent / rules

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

Python code style and formatting standards

No other project uses it yet

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

No other project uses it yet

1386mo 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…

No other project uses it yet

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

No other project uses it yet

1386mo agoReviewMountCreate a free account to mount
Hugging FaceReads credentialsCursor rule

cadgenbench / rules

huggingface/cadgenbench/.cursor/rules/style.mdc

No summary in the file. Open it to read it.

1386mo agoReviewMountCreate a free account to mount
Hugging FaceCursor rule

cadgenbench / rules

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

Workspace repo layout reminder

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

10517mo 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…

10517mo 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…

10517mo 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…

10517mo agoReviewMountCreate a free account to mount
DatabricksCursor rule

databricks-sdk-go / rules

databricks/databricks-sdk-go/.cursor/rules/00-claude-context.mdc

Always load AGENTS.md context first

839mo agoReviewMountCreate a free account to mount
DatabricksCursor rule

databricks-sdk-go / rules

databricks/databricks-sdk-go/.cursor/rules/api-design.mdc

../../.agent/rules/api-design.md

839mo agoReviewMountCreate a free account to mount
DatabricksCursor rule

databricks-sdk-go / rules

databricks/databricks-sdk-go/.cursor/rules/error-handling.mdc

../../.agent/rules/error-handling.md

839mo agoReviewMountCreate a free account to mount
DatabricksCursor rule

databricks-sdk-go / rules

databricks/databricks-sdk-go/.cursor/rules/style-guide.mdc

../../.agent/rules/style-guide.md

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