From elastic-docs-skills
Audits Elastic documentation markdown files for frontmatter completeness and correctness, checking products, description, and navigation_title fields. Use when validating docs metadata before publishing or auditing a batch of files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/elastic-docs-skills:frontmatter-audit <file-or-directory><file-or-directory>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
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.
$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:
| Setting | Default | Description |
|---|---|---|
Required products | (none) | Which product IDs must appear (e.g., kibana) |
| Additional products allowed | yes | Whether extra product IDs beyond the required ones are acceptable |
Check each file for the following elements:
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.
description (mandatory)Validate against these rules:
{{kib}}, {{es}}, {{esql}} — these aren't parsed in frontmatter)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"
mapped_pages (preserve)If present, don't flag or suggest changes. If absent, don't suggest adding it.
.md files in the specified scopenavigation_title## 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.
npx claudepluginhub elastic/elastic-docs-skills --plugin elastic-docs-skillsGenerates or improves SEO-optimized meta descriptions for Elastic documentation frontmatter in Markdown files. Processes files or directories to add, audit, or enhance description fields for search discoverability.
Scans project .md files to add or fix YAML frontmatter (summary + read_when) for discovery by Reflex context routers.
Audits markdown knowledge bases for missing frontmatter, broken links, tag inconsistencies, orphaned files, draft staleness, content gaps, and coverage issues. For KB quality checks.