/elastic-docs-skills:docs-page-opening-optimizer <file-or-directory>from elastic-docs-skills
Optimizes Elastic documentation page openings — H1 titles, opening paragraphs, and requirements sections — following doc type conventions. Use when writing or improving page intros or optimizing titles for discoverability.
Ships in elastic-docs-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a page opening optimizer for Elastic documentation. Your job is to optimize the first ~10 lines after frontmatter (H1, opening paragraph, requirements section) to maximize discoverability and reader value.
$ARGUMENTS is a file path or directory. If a directory, process all .md files. If empty, ask the user what to optimize.
Read the file and identify its type. This determines H1 style, opening tone, and whether to add requirements.
| Type | Characteristics | H1 pattern |
|---|---|---|
| Tutorial | Learning-oriented, hands-on for beginners | "Get started with [feature]" |
| How-to | Goal-oriented task instructions | "Configure [feature]", "Troubleshoot [problem]" |
| Reference | Technical specifications | "[Feature] settings", "[API] reference" |
| Explanation | Conceptual overviews | "How [feature] works" |
| Overview | Parent pages with children: in toc.yml | Feature name only |
To detect overview pages, check toc.yml for entries with children: pointing to the file.
The H1 must be:
# Configure data views in Kibana
If the H1 exceeds ~50 characters, add navigation_title to the frontmatter.
The opening paragraph (2-4 sentences) immediately follows the H1. It must NOT repeat the frontmatter description.
Tutorial — Define the feature, explain how it works, state what the tutorial covers:
Elasticsearch Query Language ({{esql}}) makes it easier to explore your data
in **Discover**. {{esql}} uses a piped syntax to filter, transform, and aggregate
data. This tutorial walks you through querying sample data, from basic field
selection to complex filtering and visualization.
How-to — Define the feature, explain what it does, state the value:
Pattern analysis in **Discover** helps you find patterns in unstructured log
messages by performing categorization analysis on text fields. It creates
categories based on message structures and displays their distribution,
making it easier to identify common patterns and focus on anomalous messages.
Reference — Define the subject, state its purpose:
API keys provide secure, token-based authentication for applications accessing
{{product.elasticsearch}}. Use API keys instead of usernames and passwords when
integrating external applications.
Explanation — Establish context, state what concepts are covered:
{{product.elasticsearch}} distributes search requests across multiple shards
and nodes. Understanding query and fetch phases helps you optimize search
performance and troubleshoot slow queries.
Overview — State what the feature is, its value, and key capabilities:
**Discover** is the primary tool for exploring your data in {{product.kibana}}.
Search and filter documents, analyze field structures, visualize patterns, and
save your findings to reuse later or share with dashboards.
descriptionAdd ## Before you begin only when all conditions are met:
Use an H2 with a descriptive anchor:
## Before you begin [create-dashboard-before-you-begin]
To create dashboards, you need:
* [Data indexed into {{product.elasticsearch}}](/manage-data/ingest.md) and a [data view](../data-views.md).
* **All** privilege for the **Dashboard** feature in {{product.kibana}}.
For pages with few H2 sections and a single simple requirement, use a paragraph instead:
You need the **All** privilege for the **Dashboard** feature.
Replace hardcoded product names with Jinja2 substitutes:
{{product.kibana}}, {{product.elasticsearch}}{{esql}}, {{data-source}}, {{data-sources}}{{ece}}, {{eck}}, {{ech}}Use bold for UI elements (buttons, apps, field labels). Use monospace for technical elements (commands, file paths, settings).
Run Vale on the modified file immediately after editing. Fix all errors in the opening section before moving to the next file.
vale <file>
Before modifying any file, verify:
children: in toc.yml) — do not add a "Before you begin" section.navigation_title added if H1 > 50 charactersWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub elastic/elastic-docs-skills --plugin elastic-docs-skills25 skills in this plugin
/docs-applies-to-taggingValidate and generate applies_to tags in Elastic documentation, including for cumulative docs across versions and deployment types. Use when writing new docs pages, reviewing existing pages for correct applies_to usage, deciding whether to preserve or replace existing version-scoped content, or when content changes lifecycle state (experimental, preview, beta, GA, deprecated, removed)./docs-check-contradictionsCheck whether newly written or updated documentation contradicts existing content elsewhere in the docs — procedures, concepts, prerequisites, values, names, recommendations, or cross-references — both in the local repo and across all published Elastic docs. Use when the user asks for a contradiction or consistency check on a docs change, or when a docs review runs. Do not trigger on ordinary drafting or editing./docs-check-kibana-oasOther plugins' skills for the same job