Skip to main content
Content checks validate the quality and completeness of the SKILL.md body content, including token budgets, examples, script references, and path validation.

Check List

This dimension includes 11 checks (all quality suggestions, none spec-required).

content.body-not-empty

Severity: WARNING Validates that SKILL.md body has meaningful content (quality suggestion; spec allows empty body).

What It Checks

  1. Body is not empty after trimming whitespace
  2. Body has at least 50 characters of content

Implementation


content.line-budget

Severity: WARNING Validates that body content stays under 500 lines for readability.

Constants

Implementation


content.token-budget

Severity: WARNING Validates that body instructions stay under the spec-recommended 5,000 token budget.

Constants

Implementation

Uses estimate_tokens() from skill_lab.core.tokens for token estimation.
Token estimation uses a simple heuristic (characters / 4). Actual token counts may vary by model.

content.metadata-token-budget

Severity: INFO Validates that metadata (name + description) fits the ~100-token discovery budget for efficient skill matching.

Constants

Implementation

Keeping metadata concise improves skill discovery performance when agents scan multiple skills.

content.has-examples

Severity: INFO Validates that content contains code examples to help agents understand usage.

Detection Patterns

Implementation

Example


content.description-actionable

Severity: INFO Validates that description includes activation phrasing to help agents match tasks to skills.

Activation Phrases

Implementation

Example


content.reference-depth

Severity: WARNING Validates that references are not too deeply nested (max 1 level).

Constants

Implementation

Example


content.scripts-referenced

Severity: WARNING Validates that scripts in scripts/ are mentioned in the SKILL.md body.

Implementation

If you include scripts but don’t mention them in the body, agents won’t know they exist.

content.script-paths-exist

Severity: WARNING Validates that script paths referenced in body (e.g., scripts/setup.py) exist on disk.

Detection Pattern

Matches patterns like:
  • scripts/setup.py
  • scripts/build.sh
  • scripts/helper.js

Implementation


content.asset-paths-exist

Severity: WARNING Validates that asset paths referenced in body (e.g., assets/logo.png) exist on disk.

Detection Pattern

Matches patterns like:
  • assets/logo.png
  • assets/diagram.svg
  • assets/template.json

Implementation


content.compatibility-prereqs

Severity: INFO Validates that command runners referenced in body are documented in the compatibility field.

Command Runner Mapping

Implementation

Example

File Location

Content checks are implemented in: src/skill_lab/checks/static/content.py