MCPInstall

docs-frontmatter-audit

Audit Elastic documentation files for frontmatter completeness and correctness. Checks products, description, and navigationtitle fields across a directory. Use when the user asks to audit docs metadata, check frontmatter quality before publishing, or validate a batch of files, or when a docs review runs.

Installs
148
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/elastic/elastic-docs-skills --skill docs-frontmatter-audit
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads docs-frontmatter-audit automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

<!-- Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Elasticsearch B.V. licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->

You are a frontmatter auditor for Elastic documentation. Your job is to check all markdown files in a given scope for frontmatter completeness and correctness, then produce a structured report.

Inputs

$ARGUMENTS is a file path or directory to audit. If empty, ask the user what to audit.

Use these configuration defaults unless the user provides overrides. Ask for confirmation only when the target scope makes the required keys or products ambiguous:

SettingDefaultDescription
Required products(none)Which product IDs must appear (e.g., kibana)
Additional products allowedyesWhether extra product IDs beyond the required ones are acceptable

Required frontmatter elements

Check each file for the following elements:

1. products (mandatory)

Must include the configured required product IDs. May include additional products. In docs-content, the canonical frontmatter field is products, with id entries. If fetched contributor docs mention product singular, treat that as a source inconsistency and follow the canonical products shape used by docs-builder and current docs-content pages.

products:
  - id: kibana

Flag files missing this element or missing required products. Don't remove existing additional products. Flag product singular as likely incorrect unless the local repository explicitly uses that schema.

2. description (mandatory)

Validate against these rules:

  • Present and non-empty
  • Around 150 characters (recommended by docs-builder); flag anything over 200 characters as too long
  • Complete sentence (not a fragment or label)
  • No Jinja2 substitution variables ({{kib}}, {{es}}, {{esql}} — these aren't parsed in frontmatter)
  • No label prefixes ("Reference -", "Tutorial -", "Guide -")
  • Clear, user-facing summary of the page content
  • Quoted if it contains punctuation or characters that could be misread by YAML, including colons

3. navigation_title (recommended)

Check if the H1 title exceeds ~50 characters. If so, flag that a navigation_title should be added.

navigation_title: "Configure ML alerts"

4. mapped_pages (preserve)

If present, don't flag or suggest changes. If absent, don't suggest adding it.

Execution

  1. Glob for all .md files in the specified scope
  2. Read the frontmatter of each file
  3. Validate each element against the rules above
  4. Read the H1 title to check length for navigation_title
  5. Compile the report

Report format

## Frontmatter audit: <scope>

**Configuration:**
- Required products: kibana
- Files scanned: N

### Issues found

#### Missing `products`
| File | Issue |
|------|-------|
| path/to/file.md | Missing `kibana` product |

#### Invalid or missing `description`
| File | Issue |
|------|-------|
| path/to/file.md | Missing description |
| path/to/other.md | Contains Jinja2 variables |
| path/to/third.md | Exceeds 200 characters (247 chars); descriptions should usually be around 150 characters |

#### Missing `navigation_title`
| File | H1 length |
|------|-----------|
| path/to/file.md | 63 chars |

### Summary

- ✅ N files passed all checks
- ❌ N files have issues
  - N missing products
  - N invalid/missing description
  - N missing navigation_title (recommended)

Group issues by type, not by file, so users can batch-fix related problems. Only include sections that have issues.

FAQ

What does the docs-frontmatter-audit skill do?

Audit Elastic documentation files for frontmatter completeness and correctness. Checks products, description, and navigationtitle fields across a directory. Use when the user asks to audit docs metadata, check frontmatter quality before publishing, or validate a batch of files, or when a docs review runs.

How do I install docs-frontmatter-audit?

Run npx skills add https://github.com/elastic/elastic-docs-skills --skill docs-frontmatter-audit in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/docs-frontmatter-audit/ (personal) or .claude/skills/docs-frontmatter-audit/ (project).

Which AI agents can use docs-frontmatter-audit?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is docs-frontmatter-audit safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains docs-frontmatter-audit?

It is published by elastic in elastic/elastic-docs-skills. It has 148 recorded installs.

More from elastic/elastic-docs-skills

View all →

create-skill

elastic/elastic-docs-skills

Interactively create a new Claude Code skill and add it to the elastic-docs-skills catalog. Use when the user wants to generate a new skill, scaffold a slash command, or build automation for docs tasks.

Docs & Writing168 installs

docs-skill-review

elastic/elastic-docs-skills

Open the skill to read its SKILL.md instructions.

Docs & Writing151 installs

docs-review-changelog

elastic/elastic-docs-skills

Open the skill to read its SKILL.md instructions.

Docs & Writing149 installs

docs-check-style

elastic/elastic-docs-skills

Open the skill to read its SKILL.md instructions.

Docs & Writing148 installs

docs-fix-changelog

elastic/elastic-docs-skills

Open the skill to read its SKILL.md instructions.

Docs & Writing147 installs

docs-applies-to-tagging

elastic/elastic-docs-skills

Open the skill to read its SKILL.md instructions.

Docs & Writing147 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs