skill-body-word-count
SKILL.md body exceeds recommended word count
Rule Details
This rule counts the words in the body of SKILL.md files (everything after the YAML frontmatter) and warns when the count exceeds a configurable threshold. Anthropic recommends keeping skills concise so AI models can process them efficiently. Lengthy content should be moved to reference files for progressive disclosure, allowing the model to load detailed information only when needed.
Incorrect
SKILL.md with a body exceeding 5,000 words
---
name: my-skill
---
# My Skill
... (5,000+ words of inline content) ...Correct
SKILL.md with concise body and references to external files
---
name: my-skill
---
# My Skill
Brief overview and core instructions.
For details, see [reference docs](references/details.md).How To Fix
Extract verbose sections, long examples, and reference material into separate files under a references/ directory. Keep the SKILL.md body focused on essential instructions and link to the extracted files.
Options
Default options:
{
"maxWords": 5000
}Allow up to 8,000 words in the body:
{
"maxWords": 8000
}Enforce a stricter 3,000-word limit:
{
"maxWords": 3000
}When Not To Use It
Disable this rule if your skill requires extensive inline documentation and splitting into reference files would reduce clarity or usability.
Related Rules
Resources
Version
Available since: v0.3.0