Skip to content

Rule Reference

SEC380lintai-ai-securityguidancequalitypreviewmarkdownwarn

Cursor rule: missing `description`

Cursor rule frontmatter should include `description`

Public lane
guidance
Category
quality
Provider
lintai-ai-security
Scope
per-file
Surface
markdown
Tier
preview
Severity
warn
Confidence
high
Detection
structural
Remediation
message only
How to read this lane

Advice-oriented guidance and maintainability review.

How to read this category

Contract, schema, or config correctness signal.

Activation Model

Preset Activation

These presets explain where this rule appears in the product experience.

Lifecycle

Preview Lifecycle Contract

State

preview

Promotion blocker

Missing `description` on Cursor rules is deterministic, but the first release stays guidance-only while ecosystem usefulness is measured.

Promotion requirements

Needs corpus-backed precision review, external usefulness evidence, and completed stable checklist metadata.

Canonical note

Structural preview rule; deterministic today, but the preview contract may still evolve.

Nearby Signals

Related Rules

SEC380 / CURSOR-DESCRIPTION

SEC380 flags Cursor rule markdown when frontmatter is present but does not include a non-empty description.

Why It Matters

Shared .mdc rule packs are much easier to review, route, and maintain when each rule explains its purpose. Without description, reviewers have to infer intent from the body alone, which makes broad or global rules harder to audit.

This rule lives in the explicit guidance lane because the issue is reviewability and shared-config quality, not a headline exploit-style security claim.

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
  • description is missing or empty

Clean Cases

These stay clean:

  • rules with a non-empty description
  • non-Cursor markdown
  • fixture-like examples under test or fixture paths

Example Trigger

md
---
alwaysApply: true
---

Safer Example

md
---
description: Project-wide coding conventions
alwaysApply: true
---

How To Fix

Add a short description that explains when the rule applies or what behavior it enforces. Keep it concise so shared rule packs remain easy to review.