agentleFS

Cursor rules examples

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

Worked for most · soon
wshobsonCursor rule

agents / rules

wshobson/agents/.cursor/rules/020-agent-skill-authoring.mdc

Authoring agent, skill, and command markdown for cross-harness portability

Steady22 mentions in 2 weeks

No other project uses it yet

40k56d agoReviewMountCreate a free account to mount
PostHogCursor rule

posthog / rules

PostHog/posthog/.cursor/rules/rust.mdc

Rules for writing Rust services at PostHog. Focuses on writing async Rust with Tokio and encoding general Rust best practices from the Rust book and docs.

1 project uses a version of this

40k56d agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/dev-guides-first.mdc

Require reading dev-guides before development and keeping docs in sync

No other project uses it yet

18k7mo agoReviewMountCreate a free account to mount
triggerdotdevCursor rule

trigger.dev / rules

triggerdotdev/trigger.dev/.cursor/rules/otel-metrics.mdc

Guidelines for creating OpenTelemetry metrics to avoid cardinality issues

No other project uses it yet

16k4mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/error-response-safety.mdc

Prevent information exposure through exception messages in HTTP responses

18k7mo agoReviewMountCreate a free account to mount
triggerdotdevCursor rule

trigger.dev / rules

triggerdotdev/trigger.dev/.cursor/rules/repo.mdc

understanding the structure of the monorepo

No other project uses it yet

16k4mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/frontend-test-conventions.mdc

Frontend TypeScript test conventions (Vitest)

18k7mo agoReviewMountCreate a free account to mount
triggerdotdevReads credentialsCursor rule

trigger.dev / rules

triggerdotdev/trigger.dev/.cursor/rules/webapp.mdc

Making updates to the main trigger.dev remix webapp

No other project uses it yet

16k4mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/i18n-no-hardcoded-strings.mdc

No hardcoded UI strings — use i18n translation keys

18k7mo agoReviewMountCreate a free account to mount
triggerdotdevReads credentialsCursor rule

trigger.dev / rules

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

Guidelines for writing Trigger.dev tasks

No other project uses it yet

16k4mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/implementation-review-checklist.mdc

Require structural code review after implementation before final response

18k7mo 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

No other project uses it yet

16k4mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/incremental-development-cadence.mdc

Enforce step-by-step implementation with design-doc checks, tests, and i18n after each step

18k7mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/language-injection-conventions.mdc

Language injection conventions for LLM Agent prompts

18k7mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/log-sanitization.mdc

Prevent sensitive data leakage in server-side log messages

18k7mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/package-manager-conventions.mdc

Use Yarn only, never npm/pnpm

18k7mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/path-safety.mdc

路径安全编码规范 — 编辑路由/Agent/Loader/Workspace/知识库代码时自动提醒

18k7mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/test-driven-workflow.mdc

测试优先开发与测试保护规则。确保新功能/Bug 修复必须有测试覆盖,测试失败时先诊断后修改。

18k7mo agoReviewMountCreate a free account to mount
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/unified-error-protocol.mdc

Unified error handling protocol for backend and frontend

18k7mo 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.