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).
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorDeclared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Repository health
Stars1
LicenseLICENSE
Default branchmain
Open issues0
Status
Archived
Skill metadata
Parsed from SKILL.md frontmatter.
Declared agentscursor
More metadata
internal
source
https://cursor.com/docs/context/rules
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md1,900 B
docsSUMMARY.md340 B
History
First seen on skills.sh
First recorded snapshot · 4 installs
SKILL.md
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.md for nested context
Migrating from .cursorrules to .cursor/rules/*.mdc
Choosing between always-on, auto-attached, agent-requested, and manual rules