agentleFS
Sign inSign up

Cursor rules examples

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

Most stars firstWorked for most · soon
Hugging FaceCursor rule

nanotron / rules

huggingface/nanotron/.cursor/rules/performance-optimization.mdc

Better pattern:

2.8k19mo agoDiscuss
Hugging FaceCursor rule

nanotron / rules

huggingface/nanotron/.cursor/rules/philosophy.mdc

Core development principles and workflow for the Nanotron project. Apply when discussing project architecture, planning new features, or reviewing code structure.

2.8k19mo agoDiscuss
Hugging FaceCursor rule

nanotron / rules

huggingface/nanotron/.cursor/rules/pipeline-parallelism.mdc

A PipelineBlock wraps modules for efficient pipeline-parallel execution. Each block operates on a specific device and communicates with other pipeline stages through P2P. When passing data between pipeline stages: Design modules with clean interfaces for pipeline parallelism: Use TensorPointer to reference tensors across pipeline stages without copying: In pipeline parallelism, different tensors are only available on specific pipeline ranks (see src/nanotron/data/dataloader.py):

2.8k19mo agoDiscuss
Hugging FaceCursor rule

nanotron / rules

huggingface/nanotron/.cursor/rules/project-overview.mdc

Overview of Nanotron project structure and key components, useful for onboarding and orientation. Apply when discussing project architecture or organization.

2.8k19mo agoDiscuss
Hugging FaceCursor rule

nanotron / rules

huggingface/nanotron/.cursor/rules/tensor-parallelism.mdc

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

2.8k19mo agoDiscuss
Hugging FaceCursor rule

nanotron / rules

huggingface/nanotron/.cursor/rules/troubleshooting.mdc

Common issues and solutions for Nanotron development. Apply when debugging performance, memory, or training problems.

2.8k19mo agoDiscuss
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.

1264mo agoDiscuss
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…

1264mo agoDiscuss
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.

1264mo agoDiscuss
Hugging FaceCursor rule

cadgenbench / rules

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

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

1264mo agoReads credentialsDiscuss
Hugging FaceCursor rule

cadgenbench / rules

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

Workspace repo layout reminder

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