agentleFS

Cursor rules examples

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

Best matchesWorked for most · soon
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/common-testing.md

Testing requirements: 80% coverage, TDD workflow, test types

Steady32 mentions in 2 weeks

19 projects use a version of this

246k2mo agoReviewMountCreate a free account to mount
appsmithorgReads credentialsCursor rule

appsmith / rules

appsmithorg/appsmith/.cursor/rules/playwright.mdc

Playwright E2E test conventions — POM design, assertions, selectors, test structure

No other project uses it yet

41k6d agoReviewMountCreate a free account to mount
Chia-NetworkCursor rule

chia-blockchain / rules

Chia-Network/chia-blockchain/.cursor/rules/testing-guide.mdc

Chia test harness routing — pick the right guide and harness before writing tests

Steady5 mentions in 2 weeks

No other project uses it yet

11k47d agoReviewMountCreate a free account to mount
novuhqReads credentialsCursor rule

novu / rules

novuhq/novu/.cursor/rules/safe-api-tests.mdc

NEVER run apps/api mocha tests without NODE_ENV=test — drops dev MongoDB

40k52d agoReviewMountCreate a free account to mount
datahub-projectCursor rule

datahub / rules

datahub-project/datahub/.cursor/rules/test-review.mdc

DataHub test review — use when asked to review, check, validate, or audit smoke tests

No other project uses it yet

13k2mo agoReviewMountCreate a free account to mount
jdxReads credentialsCursor rule

mise / rules

jdx/mise/.cursor/rules/testing.mdc

how to test the mise codebase

No other project uses it yet

35k24d agoReviewMountCreate a free account to mount
osqueryCursor rule

osquery / rules

osquery/osquery/.cursor/rules/build-format.mdc

Build, test, and format

No other project uses it yet

24k11mo agoReviewMountCreate a free account to mount
triggerdotdevCursor rule

trigger.dev / rules

triggerdotdev/trigger.dev/.cursor/rules/writing-tests.mdc

How to write tests in the monorepo

Steady10 mentions in 2 weeks

No other project uses it yet

17k3mo agoReviewMountCreate a free account to mount
novuhqCursor rule

novu / rules

novuhq/novu/.cursor/rules/testing.mdc

Rules for writing and running tests

40k52d agoReviewMountCreate a free account to mount
surrealdbCursor rule

surrealdb / rules

surrealdb/surrealdb/.cursor/rules/surrealql-language-tests.mdc

SurrealQL language testing guidelines

No other project uses it yet

33k6mo agoReviewMountCreate a free account to mount
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/golang-testing.md

Go testing extending common rules

Steady32 mentions in 2 weeks

19 projects use a version of this

246k2mo agoReviewMountCreate a free account to mount
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/kotlin-testing.md

Kotlin testing extending common rules

Steady32 mentions in 2 weeks

16 projects use a version of this

246k2mo agoReviewMountCreate a free account to mount
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/php-testing.md

PHP testing extending common rules

Steady32 mentions in 2 weeks

18 projects use a version of this

246k2mo agoReviewMountCreate a free account to mount
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/python-testing.md

Python testing extending common rules

Steady32 mentions in 2 weeks

19 projects use a version of this

246k2mo agoReviewMountCreate a free account to mount
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/swift-testing.md

Swift testing extending common rules

Steady32 mentions in 2 weeks

19 projects use a version of this

246k2mo agoReviewMountCreate a free account to mount
affaan-mCursor rule

ECC / rules

affaan-m/ECC/.cursor/rules/typescript-testing.md

TypeScript testing extending common rules

Steady32 mentions in 2 weeks

19 projects use a version of this

246k2mo agoReviewMountCreate a free account to mount
tw93Cursor rule

Mole / rules

tw93/Mole/.cursor/rules/mole-test-safety.mdc

Mole test safety and verification defaults

Steady31 mentions in 2 weeks

No other project uses it yet

74k11d agoReviewMountCreate a free account to mount
trpcCursor rule

trpc / rules

trpc/trpc/.cursor/rules/test-patterns.mdc

tRPC testing patterns using testServerAndClientResource

41k14mo agoReviewMountCreate a free account to mount
backstageCursor rule

backstage / tests

backstage/backstage/.cursor/rules/tests/backend-test-utils.mdc

Enforce usage of @backstage/backend-test-utils in backend tests

No other project uses it yet

35k25d agoReviewMountCreate a free account to mount
backstageCursor rule

backstage / tests

backstage/backstage/.cursor/rules/tests/test-utils.mdc

Enforce usage of @backstage/test-utils in frontend tests

No other project uses it yet

35k25d 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.