Skill Body Present
skill-body-present
info
experience: documentationexperience: reliability
spec: body
A skill must have body content.
A skill must have body content, not just frontmatter — the body is the instruction set the agent actually follows.
Rule definition
The full Spotlight rule — drop it into a ruleset (.spotlight.yaml / .spectral.yaml) and run it with any Spotlight tool.
skill-body-present:
title: Skill Body Present
reference: https://spotlight-rules.com/spec/rules/agent-skill/skill-body-present/
description: A skill must have body content, not just frontmatter — the body is
the instruction set the agent actually follows.
message: A skill must have body content.
severity: info
given: $.words
then:
function: schema
functionOptions:
schema:
type: integer
minimum: 1
tags:
- format:agent-skill
- spec:body
- experience:documentation
- experience:reliability
prompt: "You are editing an Agent Skill document to satisfy the Spotlight API
governance rule 'skill-body-present' (Skill Body Present). Requirement: A
skill must have body content, not just frontmatter — the body is the
instruction set the agent actually follows. To fix: Adjust the targeted
value so it conforms to the schema this rule requires. This rule is
evaluated at the JSONPath `$.words` — 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-body-present' (Skill Body Present). Requirement: A skill must have body content, not just frontmatter — the body is the instruction set the agent actually follows. To fix: Adjust the targeted value so it conforms to the schema this rule requires. This rule is evaluated at the JSONPath `$.words` — 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.
| Artifact | Agent Skill |
|---|---|
| Applies at (given) | $.words |
| Severity | info — educational by default; raise to warn/error to enforce |
| Reference | https://spotlight-rules.com/spec/rules/agent-skill/skill-body-present/ |