markdown-content-validator
БесплатноЗапускает вложенные скриптыНе проверенThe Markdown Content Validator helps ensure your markdown files and their YAML frontmatter meet necessary standards before publication or handoff, providing a…
от lightspeedwp★ 20 звёзд на GitHubОб этом скилле
Markdown Content Validator
Use this skill when the user needs a reusable validator for markdown-based documentation, templates, prompts, handoff packs, or other content files before they are committed, shipped, published, or handed to another agent.
When to Use This Skill
Use this skill when the request involves any of the following:
- creating or updating a reusable markdown validation workflow
- validating documentation folders such as
files/,docs/,references/,templates/, orprompts/ - enforcing YAML frontmatter rules at the top of markdown files
- checking SemVer
versionfields and, when possible, whether changed files were version-bumped - generating one consolidated markdown validation report without modifying source files by default
Do not modify content files unless the user explicitly requests auto-fix behaviour.
What This Skill Scans
Target markdown-oriented content files recursively from a supplied root path.
By default, treat these as in scope when they match include globs:
.md.mdx.markdown
Allow the user to narrow or widen the file set with include and exclude globs.
Workflow
- Identify the target directory, schema path, report path, and whether version-increment enforcement is requested.
- Read
references/frontmatter.schema.yamlas the default source of truth for frontmatter requirements unless the project already has a stronger compatible schema. - Use
references/markdown-validation-rules.mdto decide which markdown checks should be blocking errors, warnings, or style suggestions. - Run
scripts/validate_markdown_content.pywith explicit CLI arguments rather than relying on hard-coded defaults. - Review the consolidated markdown report before presenting results.
- Suggest low-risk fixes, but do not modify source files unless the user explicitly asks for auto-fix behaviour.
- If the user asks for auto-fix, limit automatic changes to low-risk formatting and missing metadata that can be added safely. Do not infer a SemVer bump type without user confirmation when it materially affects meaning.
How Markdown Validation Is Defined
The validator should use practical, project-appropriate checks instead of over-prescribing style rules.
Treat the default rules in references/markdown-validation-rules.md as the baseline. They separate checks into:
- blocking errors
- warnings
- style suggestions
Prefer blocking checks for structural problems that make content unreliable or invalid, such as missing frontmatter, invalid YAML, invalid schema values, invalid SemVer strings, unclosed code fences, or missing linked internal files.
Prefer warnings or suggestions for editorial consistency checks such as long headings, duplicate headings, mixed bullet markers, repeated blank lines, or inconsistent table structure.
How Frontmatter Validation Works
Every validated file must start with YAML frontmatter bounded by triple dashes.
The validator must confirm that frontmatter:
- exists
- begins at the very first characters of the file
- parses as valid YAML
- contains the required schema fields
- respects enum, type, property-count, and pattern constraints from the schema file
- includes a
versionfield that follows SemVerMAJOR.MINOR.PATCH
If frontmatter is missing, misplaced, malformed, or incompatible with the schema, report it clearly and include a suggested fix when one is practical.
How SemVer Version Checks Work
Require a version frontmatter field in every validated file.
Validate the value using SemVer MAJOR.MINOR.PATCH.
When --enforce-version-increment is enabled and a base reference is available, compare the current file against the prior version from Git. If the file changed but the version field did not change, report that as a blocking issue.
If a previous file state is unavailable, warn instead of guessing. Use this wording:
Version increment could not be verified because no previous version was available.
Use references/semver-versioning-rules.md when explaining how to choose a major, minor, or patch bump.
How To Customise The Schema
The default schema lives at references/frontmatter.schema.yaml.
If the project already has a stronger compatible schema, preserve it or merge in only the missing compatible defaults.
Use references/schema-customisation.md when the user asks to:
- add fields
- tighten enum values
- relax optional metadata
- adjust property-count limits
- change file-type assumptions
Do not hard-code project-specific schema rules into the script. Keep them in the schema file.
How To Interpret Reports
The validator produces one consolidated markdown report with:
- a summary table
- failed files and their issues
- suggested fixes where practical
- passed files
- recommended next actions
Use references/example-validation-report.md as the reference shape for the final report.
Suggesting Fixes
Suggest fixes when the validator finds:
- missing frontmatter
- missing req
Установить markdown-content-validator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл markdown-content-validator?
The Markdown Content Validator helps ensure your markdown files and their YAML frontmatter meet necessary standards before publication or handoff, providing a detailed report on any issues found. Use this skill when you need to validate documentation, templates, or prompts for errors, missing fields, and adherence to versioning rules without altering the original content.
Как установить скилл markdown-content-validator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл markdown-content-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