From elastic-docs-skills
Generates 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/elastic-docs-skills:frontmatter-description <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 meta description writer for Elastic documentation. Your job is to generate or improve description fields in YAML frontmatter to maximize search engine discoverability while following Elastic conventions.
$ARGUMENTS is a file path or directory. If a directory, process all .md files. If empty, ask the user what to work on.
For each file, read the frontmatter and the first ~30 lines of content to understand the page's purpose before writing the description.
All descriptions must meet these requirements:
| Rule | Detail |
|---|---|
| Length | Maximum 200 characters |
| Tone | Action-oriented, value-focused, factual and impersonal |
| Voice | No "you can", "users can", or "this page explains" |
| Sentences | Complete sentences, not fragments or labels |
| Context | Include "with [feature/tool]" to establish scope |
| Substitutions | Plain text only — no Jinja2 variables ({{kib}}, {{es}}) since they aren't parsed in frontmatter |
| Forbidden words | "teaching", "enable", "disable", or condescending/excluding terms |
| No versions | Don't mention version numbers |
| No colons | Don't include : after description: — it breaks YAML parsing |
| Uniqueness | Each description must be unique to its page |
Identify the doc type first — it determines how to start the description.
Start with "Step-by-step tutorial for...":
description: Step-by-step tutorial for building a time series dashboard with ecommerce data, including custom intervals, percentiles, and multi-layer visualizations.
Start with "Troubleshooting guide for...":
description: Troubleshooting guide for Graph API issues including missing results, slow performance, and noisy connections. Understand sampling strategies and limitations.
Work "reference" naturally into the sentence (not as a label prefix):
description: Compare visualization capabilities across Lens, TSVB, aggregation-based editors, Vega, and Timelion. Reference tables list supported chart types, features, and aggregations.
No label prefix — lead with the action:
description: Add interactive filter controls to dashboards with Options lists, Range sliders, and Time sliders. Filter data dynamically and focus on specific segments.
Lead with what the feature does and its value:
description: Detect patterns in unstructured logs with Discover's pattern analysis. Categorize log messages, identify common structures, and filter out noise during troubleshooting.
Never use label prefixes with dashes:
# WRONG
description: Reference - Compare visualization capabilities...
description: Tutorial - Build time series dashboards...
description: Guide - Manage dashboards by searching...
Never use fragments or incomplete sentences:
# WRONG
description: Dashboard creation and management.
description: How to configure alerts.
For each file:
description field already existsdescription fieldWhen processing a directory, also skip files where the entire folder already has complete descriptions — only edit files that are missing or have subpar descriptions.
After processing, summarize:
npx claudepluginhub elastic/elastic-docs-skills --plugin elastic-docs-skillsScans project .md files to add or fix YAML frontmatter (summary + read_when) for discovery by Reflex context routers.
Optimizes H1 titles, opening paragraphs, and requirements sections in Elastic documentation pages per type (tutorial, how-to, reference). Use for improving page intros and discoverability.
Writes or rewrites frontmatter description fields for Claude Code skills and agents. Use when creating new skills/agents, descriptions exceed 1024 characters, contain YAML multiline indicators or colons, lack trigger keywords, or need AI tool optimization.