Add rule for Cursor-incompatible description block scalars (>, |) and markdown-heading frontmatter
Summary
Three frontmatter patterns parse fine with PyYAML (so skillcheck currently passes them) but cause Cursor's skills UI to display empty description, which silently kills the skill's discoverability:
description: >(folded keep — preserves trailing newline)description: |(literal block scalar)## name: my-skillinside the frontmatter block (markdown heading instead of a YAML key — actually skillcheck does catch this viafrontmatter.name.required, but the error message points at the wrong root cause)
skillcheck advertises cross-agent compatibility warnings including Cursor, so this seems in scope.
Reproduction
Minimal SKILL.md:
---
name: bad
description: >
Generates a description that PyYAML accepts but Cursor's UI parser
silently drops, leaving the skill panel empty. Use whenever testing
the folded-keep pitfall.
---
# Body
skillcheck SKILL.md→ ✔ PASS (description.quality-score: 80/100)- Drop the folder into
~/.cursor/skills/(or~/.claude/skills/, which Cursor also scans) → Cursor settings → Skills tab → description column is empty - Change
>to>-(folded strip) → description shows up immediately
Indirect evidence this is the canonical Cursor-safe form
Every Cursor built-in skill under ~/.cursor/skills-cursor/ (canvas, babysit, create-skill, create-rule, ...) uses description: >-. None use > or |. Cursor's own skill-creator skill teaches >- only.
So >- is the de-facto Cursor-compatible form; > and | are the trap.
Proposed rules
| Rule ID | Severity | What |
|---|---|---|
compat.cursor.description.folded-keep |
warning | description: > shows empty in Cursor; suggest >- |
compat.cursor.description.literal |
warning | description: | shows empty in Cursor; suggest >- |
(improve existing) frontmatter.name.required |
error | When the missing-name root cause is a ## name: markdown heading inside frontmatter, mention it explicitly so authors know what to fix |
Severity could be info if scoped to --target-agent cursor, with promotion to warning/error under a hypothetical --strict-cursor flag, mirroring the existing --strict-vscode pattern.
Environment
- skillcheck 0.2.0
- Cursor (recent stable, observed 2026-04)
- macOS / APFS
Why this matters
The failure mode is silent — the skill loads, agent has no description to trigger on, and the author has no way to know without opening the Cursor UI manually. A single skillcheck rule covers it forever.
Happy to send a PR if the proposal lands.
Confirmed, all three reproduce on 0.2.0. Fixing in 0.3.0:
- new
compat.cursor-description-block-scalarrule covering>,>+,|,|+(all leave the trailing whitespace that breaks Cursor's UI;>-is the safe form) --strict-cursorflag andcursoradded to--target-agent, mirroring the VS Code patternfrontmatter.name.requiredandfrontmatter.description.requiredget a hint when the cause is a## name:style heading inside frontmatter
If you want to open the PR, go ahead. Otherwise I'll have it up in a day or two.