agentleFS
Sign inSign up

Cursor rules examples

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

Most stars first · from page 4Worked for most · soon
MicrosoftCursor rule

data-formulator / rules

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

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

17k5mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

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

Unified error handling protocol for backend and frontend

17k5mo agoDiscuss
triggerdotdevCursor rule

trigger.dev / rules

triggerdotdev/trigger.dev/.cursor/rules/executing-commands.mdc

how to run commands in the monorepo

16k50d agoDiscuss
triggerdotdevCursor rule

trigger.dev / rules

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

how to create and apply database migrations

16k50d agoDiscuss
triggerdotdevCursor rule

trigger.dev / rules

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

Guidelines for creating OpenTelemetry metrics to avoid cardinality issues

16k50d agoDiscuss
triggerdotdevCursor rule

trigger.dev / rules

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

understanding the structure of the monorepo

16k50d agoDiscuss
triggerdotdevCursor rule

trigger.dev / rules

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

How to write tests in the monorepo

16k50d agoDiscuss
AgriciDanielCursor rule

claude-obsidian / rules

AgriciDaniel/claude-obsidian/.cursor/rules/claude-obsidian.mdc

Portable rules for the claude-obsidian product and user vault workflows.

15k20d agoDiscuss
0xJackyCursor rule

nginx-ui / rules

0xJacky/nginx-ui/.cursor/rules/backend.mdc

- Concise and Maintainable Code: Write technically accurate and easily understandable Go code with relevant examples. - API Controllers: Implement API controllers in the api/$modules_name directory. - Database Models: Define…

12k11d agoDiscuss
0xJackyCursor rule

nginx-ui / rules

0xJacky/nginx-ui/.cursor/rules/frontend.mdc

You are an expert in TypeScript, Node.js, Vite, Vue.js, Vue Router, Pinia, VueUse, Ant Design Vue, and UnoCSS, with a deep understanding of best practices and performance optimization techniques in…

12k11d agoDiscuss
VoltAgentCursor rule

voltagent / rules

VoltAgent/voltagent/.cursor/rules/agents.mdc

ALWAYS read the AGENTS.md in the root of the repository and apply the instructions to the current task.

11k13mo agoDiscuss
osaurus-aiCursor rule

osaurus / rules

osaurus-ai/osaurus/.cursor/rules/settings-catalog.mdc

Every new or renamed setting must update SettingsSearchIndex, its landing anchor, and the self-find probe.

8k17d agoDiscuss
osaurus-aiCursor rule

osaurus / rules

osaurus-ai/osaurus/.cursor/rules/testing-workflow.mdc

When to run tests — full suite only before PR submission, targeted tests during development

8k17d agoDiscuss
logancyangCursor rule

obsidian-copilot / rules

logancyang/obsidian-copilot/.cursor/rules/coding-rule.mdc

Always use functions from logger.ts for logging

7.8k8d agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/00-language-priority.mdc

This is an absolute requirement and takes precedence over all other language guidelines. While user-facing communication may be in Chinese, all code-related content must be in English to maintain consistency…

7.5k8mo agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/01-code-style.mdc

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

7.5k8mo agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/02-project-structure.mdc

Refly is an open-source AI-native creation engine with a monorepo structure. Here's an overview of the main directories:

7.5k8mo agoDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/03-typescript-guidelines.mdc

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

7.5k8mo 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.