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★ 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
versionfield 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
- Choose the target directory. Default to
files/unless the user provides another content root. - Run
scripts/validate_content_files.py. - Validate Markdown quality and structure.
- Validate YAML frontmatter placement, parsing, schema compliance, and required metadata.
- Validate
versionas semantic versioning inMAJOR.MINOR.PATCHformat. - If baseline comparison is available, check whether changed files incremented
version. - If a handoff manifest is available, validate every registered template and matching schema.
- Validate mustache placeholders against the matching handoff schema.
- Validate that required intake values and downstream-required values are captured by the handoff artifact.
- 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
Установить content-file-validator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic