cursor-rules
Skill2 starsChanged 7 months agoMITView on GitHub
Project, user, and team rules that the Cursor SDK and Agent load — `.cursor/rules/*.mdc`, `AGENTS.md`, and the legacy `.cursorrules`. Use when authoring rules that the SDK will pick up via `local.settingSources`, or when writing rule frontmatter with the right type (always / auto-attached / agent-requested / manual).
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cursor-cliSkill
- cursor-cloudSkill
- cursor-errorsSkill
- cursor-hooksSkill
- cursor-mcpSkill
- cursor-modelsSkill
- cursor-runsSkill
- cursor-sdkSkill
- cursor-skills-systemSkill
- cursor-subagentsSkill
The file
Files
cursor-rules
Rules are how you bake context into a project so every Agent run starts with the right instructions. The SDK reads them through local.settingSources — see [[../cursor-sdk/references/local-options]].
When to use
- Adding repo-level coding conventions an SDK agent should follow
- Writing per-folder
AGENTS.mdfor nested context - Migrating from
.cursorrulesto.cursor/rules/*.mdc - Choosing between always-on, auto-attached, agent-requested, and manual rules
File locations
- [[references/file-locations]] —
.cursor/rules/,AGENTS.md, legacy.cursorrules - [[references/scope-and-precedence]] — team / project / user, hierarchy
Authoring .mdc rules
- [[references/mdc-frontmatter]] —
description,globs,alwaysApply - [[references/rule-types]] — Always / Auto-attached / Agent-requested / Manual
- [[references/glob-patterns]] —
**/*.tsx, comma-separated lists
AGENTS.md
- [[references/agents-md]] — markdown-only, nested per directory
- [[references/agents-md-vs-rules]] — when to pick which
SDK integration
- [[references/sdk-integration]] —
settingSourcesand what loads where - [[references/limitations]] — Tab and Inline Edit don't read rules
Cross-links
- SDK setting sources → [[../cursor-sdk/references/local-options]]
- Hooks (sibling .cursor/ feature) → [[../cursor-hooks/SKILL]]
- Skills (sibling .cursor/ feature) → [[../cursor-skills-system/SKILL]]
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

