writing-ai-docs

Validate Markdown documentation frontmatter and heading structure for AI readiness.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/Mission42-ai/m42-claude-plugins --skill writing-ai-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-ai-docs
Source: https://github.com/Mission42-ai/m42-claude-plugins/tree/main/plugins/m42-meta-toolkit/skills/writing-ai-docs
Command: npx skills add https://github.com/Mission42-ai/m42-claude-plugins --skill writing-ai-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes references (resource) components.

What problem does it solve?

This Skill ensures AI-ready documentation by enforcing frontmatter and structured content so AI tools can parse, retrieve, and use documentation reliably.

Core Features & Use Cases

  • Frontmatter validation: ensures required fields (title, description, type, created, lastUpdated) and optional discovery fields are present.
  • Structural governance: enforces one H1, strict heading hierarchy, self-contained sections, and explicit language for AI chunking.
  • Use cases include generating AI-ready docs from templates, validating existing markdown files, and guiding authors during content creation.

Quick Start

Create AI-ready docs by invoking the included scripts to scaffold, validate, and lint your Markdown files. Examples: create new docs from templates, run quality checks, and fix linting issues.

Frequently Asked Questions about writing-ai-docs

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

FAQPage Schema
How do I make markdown documentation AI-ready for reliable chunking and retrieval?

AI-ready markdown documentation requires standardized frontmatter fields like title, description, type, created, and lastUpdated, along with strict heading hierarchy and explicit prerequisites. This Skill validates those structural rules so AI tools can parse and retrieve content reliably.

What frontmatter fields are required for AI-friendly documentation?

Required frontmatter fields for AI-friendly documentation include title, description, type, created, and lastUpdated. This Skill enforces these mandatory fields alongside optional discovery fields to ensure consistent metadata for AI parsing and retrieval.

How do I validate markdown files for AI documentation standards?

You validate markdown files by running linting scripts that check required frontmatter, enforce one H1 per file, verify strict heading hierarchy, and report missing dependencies and references. This Skill scaffolds, validates, and lints files to fix structural issues.

Can I use this to validate existing markdown guides and tutorials?

Yes, this Skill validates existing markdown files across API, guide, tutorial, reference, concept, and troubleshooting contexts. It checks frontmatter compliance and structural governance to ensure your current documentation meets AI-ready standards.

Do I need pyyaml to enforce frontmatter validation in markdown?

Yes, pyyaml is required because frontmatter validation depends on parsing YAML metadata blocks in markdown files. This Skill uses pyyaml to read and validate required frontmatter fields like title, description, type, created, and lastUpdated.

What are the structural rules for AI-ready markdown documentation?

Structural rules for AI-ready markdown include enforcing exactly one H1, maintaining strict heading hierarchy without skipping levels, writing self-contained sections, and using explicit language for AI chunking. This Skill validates all these constraints.