Content file validator

From lightspeedwp/.github · View interactive version

Content file validator is an AI agent skill from the GitHub repository lightspeedwp/.github. The content-file-validator skill helps users ensure the integrity and readiness of their content files by validating Markdown structure, YAML frontmatter, and semantic versioning in one comprehensive pass. Use this skill when you need to check various file types for quality and compliance, generatin

How to use this skill

Skill file

Use this skill when the user wants one combined validation pass across Markdown, template-style, schema, and handoff files.

When to use this skill

Use $content-file-validator when the user wants to:

Do not use this skill to overwrite files unless the user explicitly asks for auto-fix behavior.

File types this skill scans

Default target root: files/

Default file types:

Allow include and exclude glob overrides when the project needs them.

Default excludes:

Combined validation workflow

  1. Choose the target directory. Default to files/ unless the user provides another content root.
  2. Run scripts/validate_content_files.py.
  3. Validate Markdown quality and structure.
  4. Validate YAML frontmatter placement, parsing, schema compliance, and required metadata.
  5. Validate version as semantic versioning in MAJOR.MINOR.PATCH format.
  6. If baseline comparison is available, check whether changed files incremented version.
  7. If a handoff manifest is available, validate every registered template and matching schema.
  8. Validate mustache placeholders against the matching handoff schema.
  9. Validate that required intake values and downstream-required values are captured by the handoff artifact.
  10. Return one consolidated report with summary counts, failed files, warnings, suggested fixes, and recommended next actions.

Handoff validation behavior

When a handoff manifest is provided, the validator must:

If no handoff templates exist for a workflow that clearly needs them, call that out as a validation gap instead of pretending the output set is complete.

Use references/handoff-validation-rules.md when interpreting handoff-specific failures.

Recommended command flow

Basic validation:

python scripts/validate_content_files.py \
  --target files \
  --schema references/frontmatter.schema.yaml \
  --report content-validation-report.md

Validation with handoff manifest checks:

python scripts/validate_content_files.py \
  --target /workspace/agent_files \
  --schema references/frontmatter.schema.yaml \
  --handoff-manifest /workspace/agent_files/docs/handoff-templates/manifest.yaml \
  --include 'docs/**/*.md' \
  --include 'docs/**/*.yaml' \
  --report content-validation-report.md

Validation with version increment enforcement from Git history:

python scripts/validate_content_files.py \
  --target files \
  --schema references/frontmatter.schema.yaml \
  --report content-validation-report.md \
  --enforce-version-increment \
  --base-ref main

How to interpret reports

The report separates:

When a fix is straightforward, include a compact suggested repair block.

When to suggest fixes

Suggest fixes when the failure is deterministic enough to repair safely, such as:

Do not modify files automatically unless the user explicitly requests auto-fix behavior.

Supporting Files


Maintained by the 🤖 LightSpeedWP Automation Team

_This page brought to you by the 🦄 Magic Automation Unicorns of LightSpeedWP._

Automation Docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.