Skip to content

Cursor Formatter

PropertyValue
TierCustom
Main output.cursor/rules/project.mdc
Dot directory.cursor/
SkillsYes (.agents/skills/<name>/SKILL.md)
AgentsYes (.cursor/agents/<name>.md)
CommandsYes (.cursor/commands/<name>.md)
Local filesNo

Output Files

FilePathPurpose
Main instructions.cursor/rules/project.mdcPrimary rule file
Lifecycle hooks.cursor/hooks.jsonProject hooks in full mode
Skills.agents/skills/<name>/SKILL.mdReusable skill definitions in full mode
Commands.cursor/commands/<name>.mdSlash commands
Agents.cursor/agents/<name>.mdAgent configurations
MCP servers.cursor/mcp.jsonMCP server config in full mode
Plugins.cursor/plugins.jsonPlugin config in full mode

Supported Features

FeatureSupported
Markdown OutputYes
MDC FormatYes
Code BlocksYes
Mermaid DiagramsYes
Single File OutputYes
Multiple Rule FilesYes
Workflow FilesNo
Nested Directory StructureYes
YAML FrontmatterYes
Description in FrontmatterYes
Globs in FrontmatterYes
Activation TypeYes
Glob Pattern TargetingYes
Always Apply RulesYes
Manual ActivationPartial
Auto/Model ActivationPartial
Structured ExamplesYes
Character Limit ValidationNo
Content Section SplittingYes
Guard DependenciesNo
Context File InclusionYes
@-MentionsPlanned
Tool IntegrationPartial
Path-Specific RulesYes
Prompt FilesNo
Slash CommandsYes
SkillsYes
Agent InstructionsYes
Local MemoryNo
Nested MemoryPlanned

Limitations & Quirks

  • Uses MDC (Markdown Components) format with YAML frontmatter including description, globs, and alwaysApply
  • Supports modern, multifile, legacy, agents-md, and full output modes
  • Commands go to .cursor/commands/*.md for slash command support
  • @shortcuts with multi-line content become command files
  • The .cursorrules file (legacy mode) is deprecated; .cursor/rules/*.mdc is preferred
  • full mode adds commands, .agents/skills/<name>/SKILL.md, and .cursor/agents/<name>.md
  • Agent model values become model ids without a snapshot date, such as claude-sonnet-4-5; inherit is written as is (see Model Catalog)
  • @hooks emits .cursor/hooks.json only in full mode; other modes report PS4002 and omit hooks
  • Supports @file and @folder context references in rules
  • Nested directory rules are supported

Example Output

project-root/
├── .cursor/
│ ├── rules/
│ │ ├── project.mdc # Main rules (MDC format)
│ │ └── frontend.mdc # Path-specific rules
│ └── commands/
│ └── review.md # Slash command

Official Documentation