agentleFS
Sign inSign up

Cursor rules examples

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

Best matches · from page 10Worked for most · soon
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.3k10mo agoDiscuss
AndreRatzenbergerCursor rule

cursor-rules / rules

AndreRatzenberger/cursor-rules/.cursor/rules/development-workflow-rule.mdc

Comprehensive development workflow system for task tracking, testing, and version control

4219mo agoDiscuss
labringCursor rule

sealos-skills / rules

labring/sealos-skills/.cursor/rules/validation-assets.mdc

Keep all local test artifacts and scratch clones in gitignored validation-assets/

813d agoDiscuss
edhoferdianCursor rule

EEF / rules

edhoferdian/EEF/.cursor/rules/code-simplification-edho-ferdian.mdc

Behavior-preserving refactoring workflow that actively rewrites code for clarity — extracting overlong functions, flattening deep nesting, consolidating duplicated logic, AND removing over-engineered \"just in case\" abstractions — always gated on a passing test suite (or a characterization test written first) so behavior never changes. Use whenever the user wants code actually SIMPLIFIED or REFACTORED, not just reviewed: \"sederhanakan kode ini\", \"refactor biar lebih rapi\", \"reduce complexity\", \"ini over-engineered\". A read-only finding about the same issues (CQ-01/CQ-04/CQ-04b in `review-checklist.md`) is `code-review-edho-ferdian`'s job, not this skill's — see the scope table below for the exact boundary with that skill, `dead-code-cleanup-edho- ferdian`, and `build-fix-edho-ferdian`.

197d agoDiscuss
rlaopeCursor rule

nen / rules

rlaope/nen/.cursor/rules/nen-conjurer.mdc

Failure-mode-driven reliability engineering — enumerate how it breaks, give every mode a verdict, prove every handler with a reproducing test. Use when the user says \"flaky\", \"harden this before launch\", \"what if this fails\", \"error handling\", \"timeout\", \"retry\", \"idempotency\", or \"race condition\"; when an incident or postmortem lands; when a job crashes halfway and leaves partial state; when a webhook or queue consumer double-fires, sees double delivery, or charges a customer twice; when crash recovery is undefined; or when code is about to ship with only happy-path tests.

358d agoDiscuss
mchittineniCursor rule

cloud-platform-skills / skills

mchittineni/cloud-platform-skills/.cursor/rules/skills/policy-as-code-opa-kyverno.mdc

Policy as code for Kubernetes and infrastructure: authoring Kyverno ClusterPolicy rules, OPA Rego in a Gatekeeper ConstraintTemplate, and Conftest checks, plus Pod Security Standards enforcement, policy unit testing, and an owned exception register with expiry dates. Use when privileged containers or pods without resource limits must be rejected at admission rather than reported, when admission policies need tests so a rule cannot silently stop matching, or when choosing between Kyverno and OPA Gatekeeper.

143d agoDiscuss
galyarderlabsCursor rule

galyarder-framework / rules

galyarderlabs/galyarder-framework/.cursor/rules/systematic-debugging.mdc

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

223mo agoDiscuss
zen-mcpCursor rule

browser / rules

zen-mcp/browser/.cursor/rules/10-python.mdc

Python conventions for browser-mcp runtime and tests

25mo agoDiscuss
rlaopeCursor rule

nen / rules

rlaope/nen/.cursor/rules/nen-transmuter.mdc

Behavior-preserving refactoring under characterization tests, plus severity-rated code review. Use when the user says \"refactor\", \"clean up\", \"tech debt\", \"code review\", \"extract\", \"rename\", \"restructure\", \"this file is a mess\", or \"impossible to modify\"; when every small change breaks something unrelated; when cleanup has to land before the next feature has anywhere to go; when code is called hard to change, scary to touch, or too tangled to test; when requirements shifted and the current shape fights the new feature; when a PR needs review for structure and maintainability; or when every small change keeps ballooning because everything touches everything.

358d agoDiscuss
CadastoCursor rule

openehr-assistant-mcp / rules

Cadasto/openehr-assistant-mcp/.cursor/rules/docker-workflow.mdc

Run PHP, Composer, tests, and static analysis only via Docker in this project

184mo agoDiscuss
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.3k10mo agoDiscuss
bybren-llcCursor rule

safe-agentic-workflow / rules

bybren-llc/safe-agentic-workflow/.cursor/rules/22-agent-qas.mdc

QAS (Quality Assurance Specialist) agent role: independent gate owner, acceptance criteria verification, test execution.

4052mo agoDiscuss
afaraha8403Cursor rule

MCP-Scooter / rules

afaraha8403/MCP-Scooter/.cursor/rules/mcp-testing.mdc

Systematic workflow for testing individual MCP servers from the registry.

18mo agoDiscuss
EvilFreelancerCursor rule

zaezd / rules

EvilFreelancer/zaezd/.cursor/rules/testing.mdc

Vitest conventions and the mandatory unit-test set

143d agoDiscuss
ARTPARK-SAHAI-ORGCursor rule

calibrate-backend / rules

ARTPARK-SAHAI-ORG/calibrate-backend/.cursor/rules/architecture.md

Calibrate Backend Architecture - AI Agent Testing & Evaluation Platform

48mo agoReads credentialsDiscuss
streamshubCursor rule

streamshub-mcp / rules

streamshub/streamshub-mcp/.cursor/rules/add-system-test.mdc

Step-by-step guide for writing e2e system tests

48d agoDiscuss
cbtw-apacCursor rule

qdrant-loader / rules

cbtw-apac/qdrant-loader/.cursor/rules/qa.mdc

Guide the AI to act as a Senior QA Engineer, focusing on test strategies and quality assurance.

518mo agoDiscuss
saharmorCursor rule

simulatedev / rules

saharmor/simulatedev/.cursor/rules/running_backend.mdc

Every time Cursor is trying to run the backend or test it, i.e. needing port 8000

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