content-file-validator
БесплатноЗапускает вложенные скриптыНе проверенvalidate markdown, template and documentation files for markdown quality, yaml frontmatter schema compliance, required semver version fields, version…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
Content File Validator
Use this skill when the user wants one deterministic validation pass across Markdown, documentation, or template files and needs a single report covering both Markdown quality and YAML frontmatter/versioning rules.
Use $content-file-validator for requests like:
- "Validate these Markdown docs before final delivery."
- "Check frontmatter, heading structure, and version bumps in
files/." - "Run one combined validator and tell me what failed, what warned, and what to fix next."
Do not use this skill when the main task is substantive rewriting, planning, or content creation rather than validation.
Files This Skill Scans
By default, validate text files under the requested target directory matching patterns such as:
*.md*.markdown*.mdx*.template*.tmpl
Default the target to files/ unless the user supplies another path.
Workflow
- Confirm the target path, schema path, report path, and whether version-increment checks should be enforced.
- Use
references/frontmatter.schema.yamlas the default schema unless the user supplies a different schema file. - Run
scripts/validate_content_files.pywith the narrowest flags needed for the request. - Read the generated report and summarise the highest-priority failures, warnings, and next actions.
- Only modify files when the user explicitly asks for fixes. Validation alone should not overwrite content.
Markdown Validation
The validator checks Markdown quality and structure, including:
- heading order and heading-level jumps
- duplicate headings
- empty headings
- multiple H1 headings
- malformed or obviously broken links where they can be checked safely
- missing local link targets where possible
- unmatched fenced code blocks
- other obvious structural cleanliness issues surfaced by the script
Treat Markdown validation as structural QA, not a license to rewrite the underlying meaning.
Frontmatter Validation
The validator requires YAML frontmatter at the top of each matching file and checks it against the active schema.
By default it enforces:
- required frontmatter presence
- required fields from the active schema
- allowed field types and enums from the schema
- a required
versionfield versionstored as a stringversionmatching SemVerMAJOR.MINOR.PATCH
SemVer Version Checks
Every validated document must include:
version: "1.0.0"
Interpret version changes this way unless the user or project standard says otherwise:
majorfor incompatible or breaking structural changesminorfor backward-compatible additionspatchfor backward-compatible fixes, typo fixes, clarifications, or small corrections
If version-increment enforcement is enabled and a previous revision is available, fail changed files whose version did not increase.
If the correct increment cannot be inferred safely, do not guess. Warn and ask the user to confirm whether the change should be major, minor, or patch.
Schema Customisation
- Use
references/frontmatter.schema.yamlas the default schema. - If the user provides another schema path, pass it to the validator instead of editing the default.
- Use
references/schema-customisation.mdwhen the user wants to tighten, relax, or extend frontmatter rules.
Reports
The validator produces one consolidated Markdown report with:
- summary metrics
- failed files
- warnings
- passed files when useful
- recommended next actions
Use the report as the source of truth for what failed. Keep any chat summary short and focused on blockers, warning themes, and next actions.
Fix Guidance
Suggest fixes when:
- the error is deterministic and the safe correction is clear
- a missing required field can be shown in an example block
- a heading or local-link problem can be described precisely
Do not modify files unless the user explicitly asks for fixes or auto-fix behavior. Even then:
- only apply safe changes
- do not guess ambiguous SemVer bump types
- do not silently rewrite substantive content
Supporting Files
scripts/validate_content_files.py— main deterministic validator for Markdown structure, frontmatter schema compliance, SemVer checks, local-link checks, and consolidated report generationreferences/frontmatter.schema.yaml— default frontmatter schema with requiredversionsupportreferences/markdown-validation-rules.md— Markdown rules and failure categories used by the validatorreferences/semver-versioning-rules.md— SemVer interpretation rules for documentation and template changesreferences/schema-customisation.md— guidance for adapting the frontmatter schema safelyreferences/example-validation-report.md— example report shape and phrasing
Command Example
python scripts/validate_content_files.py \
--target files \
--schema references/frontmatter.schema.yaml \
--report content-validation-report.md \
--enforce-version-increment \
--base-ref main
Установить content-file-validator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл content-file-validator?
validate markdown, template and documentation files for markdown quality, yaml frontmatter schema compliance, required semver version fields, version increments, broken structure, missing metadata, invalid values, and consolidated content quality reporting.
Как установить скилл content-file-validator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл content-file-validator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic