Appearance
SEC379 / CURSOR-UNKNOWN-FRONTMATTER
SEC379 flags Cursor rule markdown when frontmatter contains keys outside the supported Cursor rule set.
Why It Matters
Unknown keys make shared .mdc rules harder to review and can create a false impression that the editor will honor extra routing or policy fields. Community-facing rule packs benefit from a tight, predictable frontmatter contract.
Trigger Shape
The rule triggers only when all of these are true:
- the file is a detected Cursor rule surface
- frontmatter parses as a mapping
- at least one top-level key is not one of:
descriptionglobsalwaysApply
Clean Cases
These stay clean:
- rules that use only supported keys
- rules with no unknown frontmatter keys
- fixture-like examples under test or fixture paths
Example Trigger
md
---
description: Review guidance
inclusion: always
---Safer Example
md
---
description: Review guidance
alwaysApply: true
---How To Fix
Remove unsupported frontmatter keys, or migrate the intent into supported Cursor rule fields and normal markdown content. Keep routing and policy data out of .mdc frontmatter unless Cursor documents it as a supported field.