Skill Description Single Line

skill-description-single-line

info experience: consistencyexperience: usability spec: frontmatter

Skill description should be a single line.

A skill description should be a single line (no embedded line breaks) so it renders cleanly in pickers.

Rule definition

The full Spotlight rule — drop it into a ruleset (.spotlight.yaml / .spectral.yaml) and run it with any Spotlight tool.

skill-description-single-line:
  title: Skill Description Single Line
  reference: https://spotlight-rules.com/spec/rules/agent-skill/skill-description-single-line/
  description: A skill description should be a single line (no embedded line
    breaks) so it renders cleanly in pickers.
  message: Skill description should be a single line.
  given: $.frontmatter.description
  severity: info
  then:
    function: pattern
    functionOptions:
      notMatch: \n
  tags:
    - format:agent-skill
    - spec:frontmatter
    - experience:consistency
    - experience:usability
  prompt: "You are editing an Agent Skill document to satisfy the Spotlight API
    governance rule 'skill-description-single-line' (Skill Description Single
    Line). Requirement: A skill description should be a single line (no embedded
    line breaks) so it renders cleanly in pickers. To fix: Ensure the targeted
    value does NOT match the regular expression `\\n`; rename or rewrite any
    value that does. This rule is evaluated at the JSONPath
    `$.frontmatter.description` — inspect every location it matches and correct
    only what violates the rule. Make the smallest change that satisfies the
    rule, leave all unrelated content, key order, comments, and formatting
    unchanged, and keep the document valid Agent Skill. Return only the complete
    corrected document, with no commentary."
AI fix prompt — send this to Claude, Gemini, or ChatGPT with your artifact to auto-fix this rule
You are editing an Agent Skill document to satisfy the Spotlight API governance rule 'skill-description-single-line' (Skill Description Single Line). Requirement: A skill description should be a single line (no embedded line breaks) so it renders cleanly in pickers. To fix: Ensure the targeted value does NOT match the regular expression `\n`; rename or rewrite any value that does. This rule is evaluated at the JSONPath `$.frontmatter.description` — inspect every location it matches and correct only what violates the rule. Make the smallest change that satisfies the rule, leave all unrelated content, key order, comments, and formatting unchanged, and keep the document valid Agent Skill. Return only the complete corrected document, with no commentary.
ArtifactAgent Skill
Applies at (given)$.frontmatter.description
Severityinfo — educational by default; raise to warn/error to enforce
Referencehttps://spotlight-rules.com/spec/rules/agent-skill/skill-description-single-line/