Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

content-file-validator

БесплатноЗапускает вложенные скриптыНе проверен

The content-file-validator skill helps users ensure the integrity and readiness of their content files by validating Markdown structure, YAML frontmatter, and…

lightspeedwpот lightspeedwp★ 20 звёзд на GitHub

Об этом скилле

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:

  • validate Markdown structure and content quality before final delivery
  • validate YAML frontmatter placement, parsing, schema compliance, and required metadata
  • require a version field in semantic version format
  • check whether changed files incremented version
  • validate mustache placeholders in templates against the relevant schema files
  • validate that intake captures the required values for the next workflow step
  • validate that a handoff template, manifest, and schema set stay aligned
  • generate one consolidated report instead of separate Markdown, frontmatter, and handoff checks

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:

  • .md
  • .mdx
  • .html
  • .php
  • .twig
  • .njk
  • .liquid
  • .yml
  • .yaml

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

Default excludes:

  • node_modules/**
  • vendor/**
  • .git/**
  • dist/**
  • build/**
  • .next/**
  • coverage/**

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:

  • read the manifest and enumerate all registered handoff templates
  • confirm that every manifest entry has both a template file and a schema file
  • validate template required sections
  • validate template mustache placeholders against the schema's required and optional placeholders
  • flag unknown placeholders not declared in the schema
  • flag required placeholders missing from the template
  • flag required intake values that are not represented in the handoff structure
  • flag required downstream values that are missing for the next workflow step
  • flag mismatches between manifest target, schema target, and template intent

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:

  • summary metrics
  • failed files
  • passed files
  • Markdown issues
  • frontmatter issues
  • version issues
  • handoff issues
  • warnings
  • recommended next actions

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:

  • missing required frontmatter fields
  • invalid enum values with one obvious replacement
  • missing version
  • malformed document headings with an obvious correction path
  • missing required placeholders
  • unknown placeholders in a handoff template
  • a manifest entry that names a missing schema file

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

Supporting Files

  • scripts/validate_content_files.py — deterministic combined validator for Markdown, frontmatter, version, and handoff checks.
  • references/frontmatter.schema.yaml — default schema for required metadata and per-file-type o
Полный SKILL.md на GitHub

Установить content-file-validator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdagents/openai.yamlassets/icon.svgcontent-validation-report.mdreferences/example-validation-report.mdreferences/frontmatter.schema.yamlreferences/handoff-validation-rules.mdreferences/markdown-validation-rules.mdreferences/schema-customisation.mdreferences/semver-versioning-rules.mdscripts/validate_content_files.py

FAQ

Что делает скилл content-file-validator?

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, generating a single detailed report that highlights issues and suggested fixes.

Как установить скилл content-file-validator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл content-file-validator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить content-file-validator с