Command Palette

Search for a command to run...

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

markdown-content-validator

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

validate markdown and documentation files for formatting quality, heading structure, yaml frontmatter schema compliance, required semver version fields…

lightspeedwpот 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/, or prompts/
  • enforcing YAML frontmatter rules at the top of markdown files
  • checking SemVer version fields 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

  1. Identify the target directory, schema path, report path, and whether version-increment enforcement is requested.
  2. Read references/frontmatter.schema.yaml as the default source of truth for frontmatter requirements unless the project already has a stronger compatible schema.
  3. Use references/markdown-validation-rules.md to decide which markdown checks should be blocking errors, warnings, or style suggestions.
  4. Run scripts/validate_markdown_content.py with explicit CLI arguments rather than relying on hard-coded defaults.
  5. Review the consolidated markdown report before presenting results.
  6. Suggest low-risk fixes, but do not modify source files unless the user explicitly asks for auto-fix behaviour.
  7. 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 version field that follows SemVer MAJOR.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
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

README.mdagents/openai.yamlreferences/example-validation-report.mdreferences/frontmatter.schema.yamlreferences/markdown-validation-rules.mdreferences/schema-customisation.mdreferences/semver-versioning-rules.mdscripts/validate_markdown_content.py

FAQ

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

validate markdown and documentation files for formatting quality, heading structure, yaml frontmatter schema compliance, required semver version fields, version increments, malformed links, missing metadata, invalid values, and consolidated content quality reporting.

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

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

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

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

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

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