validate-docs-rendered

Validate Markdown docs for rendering issues across common viewers.

21|4|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/JotJunior/claude-ai-tips --skill validate-docs-rendered
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: validate-docs-rendered
Source: https://github.com/JotJunior/claude-ai-tips/tree/main/global/skills/validate-docs-rendered
Command: npx skills add https://github.com/JotJunior/claude-ai-tips --skill validate-docs-rendered

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Verify that project documentation renders correctly in common viewers (GitHub, GitLab, and Markdown renderers) by validating diagrams, internal links, YAML frontmatter consistency, and code blocks with declared languages. It helps catch rendering defects that surface after reviews, preventing broken docs from leaking into production.

Core Features & Use Cases

  • Mermaid diagrams: validates basic syntax and ensures participants are declared before use within Mermaid blocks.
  • Link integrity: checks internal links and anchors for existence and correct anchors, including relative paths and repository roots.
  • Frontmatter consistency: ensures YAML frontmatter is well-formed and contains required fields for rendering.
  • Code block hygiene: flags fences without explicit languages to improve readability in viewers.
  • Use Case: run this on a docs/ directory to identify issues that would cause broken rendering in downstream consumers.

Quick Start

Run the validation on the target docs directory to verify rendering across viewers.

Frequently Asked Questions about validate-docs-rendered

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate markdown documentation rendering across different viewers?▼

Markdown documentation rendering validation checks Mermaid diagrams, internal links, YAML frontmatter, and code blocks to prevent broken docs in viewers like GitHub and GitLab. It catches rendering defects early before they leak into production.

Can I check internal links and anchors in a docs directory before commit?▼

You can check internal links and anchors in a docs directory before commit. Validation verifies relative paths, repository roots, and anchor targets for existence, preventing broken navigation in rendered documentation downstream.

Why does my Mermaid diagram syntax fail to render in GitHub?▼

Mermaid diagrams fail to render in GitHub when participants are used before declaration or syntax is malformed. Validation checks Mermaid blocks for basic syntax and ensures participants are declared before use to catch these issues.

Does this documentation validation tool work with CI workflows?▼

Documentation validation works with CI workflows by enforcing structured output and exiting with a non-zero code when critical issues are found. It supports parallel checks to integrate seamlessly into pre-commit hooks.

What is the best way to enforce YAML frontmatter consistency in markdown files?▼

The best way to enforce YAML frontmatter consistency is by validating that frontmatter is well-formed and contains required rendering fields. This ensures metadata across markdown files remains uniform for downstream documentation consumers.

How do I flag code blocks without declared languages in markdown?▼

Flag code blocks without declared languages by scanning markdown files for fences missing explicit language identifiers. This code block hygiene check improves readability in viewers by ensuring proper syntax highlighting.