Skill Has Examples Section

skill-has-examples-section

info experience: documentation spec: body

Skill body should have an "Examples" section.

A skill body should show concrete examples under an Examples section so agents and humans can see how it is meant to be invoked.

Rule definition

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

skill-has-examples-section:
  title: Skill Has Examples Section
  reference: https://spotlight-rules.com/spec/rules/agent-skill/skill-has-examples-section/
  description: A skill body should show concrete examples under an Examples
    section so agents and humans can see how it is meant to be invoked.
  message: Skill body should have an "Examples" section.
  severity: info
  given: $
  then:
    function: headingPresent
    functionOptions:
      name: Examples
  tags:
    - format:agent-skill
    - spec:body
    - experience:documentation
  prompt: "You are editing an Agent Skill document to satisfy the Spotlight API
    governance rule 'skill-has-examples-section' (Skill Has Examples Section).
    Requirement: A skill body should show concrete examples under an Examples
    section so agents and humans can see how it is meant to be invoked. 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-has-examples-section' (Skill Has Examples Section). Requirement: A skill body should show concrete examples under an Examples section so agents and humans can see how it is meant to be invoked. 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)$
Severityinfo — educational by default; raise to warn/error to enforce
Referencehttps://spotlight-rules.com/spec/rules/agent-skill/skill-has-examples-section/