
Docs Content Type Checker
- 60 installs
- 71 repo stars
- Updated July 31, 2026
- elastic/elastic-docs-skills
docs-content-type-checker is an Elastic documentation skill for content type validation for elastic docs.
About
The docs-content-type-checker skill supports Elastic technical writers and contributors. content type validation for Elastic docs. Checks pages match expected Elastic content types and structural requirements. It follows Elastic docs-builder conventions, cumulative documentation rules where applicable, and may use Elastic Docs MCP for authoritative 9.x references. Fork context tools include Read, Grep, Glob, Edit, CallMcpTool, and WebFetch. Use when writing, reviewing, or fixing Elastic documentation pages that need content type validation for elastic docs.
- Content type validation rules.
- Structural requirement checks.
- Elastic docs-builder alignment.
Docs Content Type Checker by the numbers
- 60 all-time installs (skills.sh)
- Ranked #752 of 1,879 Documentation skills by installs in the Skillselion catalog
- Data as of Aug 1, 2026 (Skillselion catalog sync)
docs-content-type-checker capabilities & compatibility
- Capabilities
- content type validation rules. · structural requirement checks. · elastic docs builder alignment.
- Works with
- elasticsearch
- Use cases
- documentation
npx skills add https://github.com/elastic/elastic-docs-skills --skill docs-content-type-checkerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 60 |
|---|---|
| repo stars | ★ 71 |
| Last updated | July 31, 2026 |
| Repository | elastic/elastic-docs-skills ↗ |
How do I content type validation for elastic docs in Elastic docs?
content type validation for Elastic docs
Who is it for?
Elastic documentation authors and reviewers.
Skip if: Skip for non-Elastic documentation repositories.
When should I use this skill?
User needs Elastic docs help with content type validation for elastic docs.
What you get
Documentation updated per docs-content-type-checker skill rules.
Files
<!-- 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 content type compliance checker for Elastic documentation. You operate in two modes:
- Validate mode — evaluate an existing page (file or pasted content) against the content type guidelines and report compliance issues.
- Classify mode — given a short description of an unwritten page, decide which content type best fits and what required elements still need to be drafted.
Inputs
$ARGUMENTS is one of:
- A file path or directory → validate mode
- A block of pasted page content (frontmatter and/or markdown body) → validate mode
- A short description of intended content (no file, no full body) → classify mode
If empty, ask the user what to check or classify.
Detect the mode
Decide which mode applies before proceeding:
- Validate mode when the input is an existing file path, a directory, or pasted content that includes frontmatter or substantive markdown body.
- Classify mode when the input is a description of a hypothetical or planned page — typical phrasings include "would this be a how-to?", "classify this idea: ...", "I want to write a page about X — what content type?", "should this be an overview or a how-to?", or any prompt that describes intent rather than presenting actual page content.
When unsure, ask one focused question rather than guessing. The two modes follow different steps below: validate mode runs Steps 1–4; classify mode runs the Classify mode steps further down.
Step 1: Detect the content type
Read the target file and check the frontmatter for a type field:
---
type: overview
---Valid content types: overview, how-to, tutorial, troubleshooting, changelog.
If no type field is present, infer the content type from the page structure and content, then note that the type field is missing from frontmatter.
Step 2: Fetch the guidelines
Preferred: elastic-docs MCP
Use the elastic-docs MCP server's get_document_by_url tool to fetch the guidelines page, with includeBody set to true. Pass the guidelines URL from the table below. Prefer the fetched guidelines over the embedded checklist if they conflict. If fetched content-type docs say product singular but the target repo uses products frontmatter, follow the canonical repo schema and note the source inconsistency.
Fallback: WebFetch
If the MCP is unavailable, fetch the guidelines and templates directly. Use the .md suffix on guidelines URLs to get the LLM-friendly version.
| Content type | Guidelines URL | Template URL |
|---|---|---|
| overview | https://www.elastic.co/docs/contribute-docs/content-types/overviews.md | https://raw.githubusercontent.com/elastic/docs-content/main/contribute-docs/content-types/_snippets/templates/overview-template.md |
| how-to | https://www.elastic.co/docs/contribute-docs/content-types/how-tos.md | https://raw.githubusercontent.com/elastic/docs-content/main/contribute-docs/content-types/_snippets/templates/how-to-template.md |
| tutorial | https://www.elastic.co/docs/contribute-docs/content-types/tutorials.md | https://raw.githubusercontent.com/elastic/docs-content/main/contribute-docs/content-types/_snippets/templates/tutorial-template.md |
| troubleshooting | https://www.elastic.co/docs/contribute-docs/content-types/troubleshooting.md | https://raw.githubusercontent.com/elastic/docs-content/main/contribute-docs/content-types/_snippets/templates/troubleshooting-template.md |
| changelog | https://www.elastic.co/docs/contribute-docs/content-types/changelogs.md | (schema is inline in the guidelines page) |
Use the fetched content to evaluate the page against the required elements, recommended sections, best practices, and anti-patterns.
Step 3: Evaluate against guidelines
Check the page against the fetched content type guidelines. For each required element, check whether it's present and correct. For best practices, note any violations.
Use these current checklists as the minimum review criteria:
Shared frontmatter and metadata
- Filename: Matches the content type pattern when one exists.
- Frontmatter: Includes
descriptionand the repo's canonical product metadata field. In docs-content, useproducts, notproduct. - Title: Matches the content type intent, uses sentence case, and is specific enough for search and navigation.
- Introduction: Helps readers confirm that the page matches their goal.
Overview
- Purpose: Explains a single concept, feature, product, or capability.
- Required content: Answers what it is, how it works, and why it matters.
- Recommended content: Includes use cases or examples, how-it-works content, next steps, and related pages when useful.
- Anti-patterns: Does not include long procedures, reference tables that belong elsewhere, or duplicated how-to content.
How-to guide
- Purpose: Helps users complete one self-contained task.
- Required content: Includes an action-verb title, a short outcome-focused introduction, a Before you begin or requirements section, numbered steps, and success checkpoints.
- Recommended content: Includes next steps and related pages when useful.
- Anti-patterns: Does not teach broad concepts, chain many tasks together, exceed roughly 10 overall steps without reason, or omit verification for important actions.
Tutorial
- Purpose: Provides a hands-on learning experience that chains related tasks toward a meaningful outcome.
- Required content: Includes learning objectives, audience or skill expectations when useful, prerequisites and setup, instructional steps, checkpoints or results, code annotations when code is central, next steps, and related pages.
- Recommended content: Uses progressive disclosure, realistic examples, and verification steps throughout.
- Anti-patterns: Does not behave like a single narrow recipe, a reference page, or a long conceptual overview without practice.
Troubleshooting
- Purpose: Helps users resolve one specific, repeatable problem.
- Required content: Includes a problem-focused title, a Symptoms section, and a Resolution section.
- Symptoms: Describes user-visible behavior only, includes exact error messages when available, and avoids causes.
- Resolution: Provides ordered, prescriptive steps from most common to least common fix, with minimal configuration examples when useful.
- Optional content: Includes Diagnosis only when the same symptom can have multiple causes, Best practices only for prevention directly tied to the problem, and Resources only for supplementary reading.
- Anti-patterns: Does not use a generic "Troubleshooting X" title for a dedicated issue page, mix unrelated problems, or put long explanations before the fix.
Changelog
- Purpose: Describes one user-facing product change for release notes generation.
- Required content: Includes
title,type, andproducts. - Title: Uses present tense, starts with an action verb, focuses on user impact, and stays under 80 characters.
- Description: Adds context only when needed, focuses on user value, and stays under 600 characters.
- Impact and action: Required for breaking changes and recommended for deprecations and known issues.
- Anti-patterns: Does not focus on implementation details, internal references, vague summaries, or duplicated title text.
When the inferred type differs from the declared type, report the mismatch first, then evaluate against the type that best matches the page's actual purpose.
Step 4: Generate report
## Content type check: <file>
### Detected type: <type>
### Required elements
- ❌ Frontmatter `description`: Missing
- ✅ Title: Present, uses correct pattern
- ...
### Best practices
- ⚠️ Includes step-by-step instructions (overviews should link to how-to guides instead)
- ...
### Summary
X of Y required elements present. Z best practice issues found.Classify mode steps
Use these steps when the user describes a planned or hypothetical page rather than presenting actual content. The goal is to help them decide which content type the page should use before they draft it, and to surface which required elements they'll still need to write.
Step 1 (classify): Read the proposal
The user describes what they want to write. Examples:
- "A new step-by-step page about migrating from ECE to ECH"
- "An overview of cross-cluster search"
- "A page documenting the symptoms and resolution for
index_not_found_exceptionerrors" - "A short page documenting the new
--reindex-on-startupCLI flag, what it does, and a one-line example"
If the description is too vague to classify (fewer than ~10 informative words, no verbs of intent, no clear domain reference), ask one focused clarifying question rather than guessing.
Step 2 (classify): Match against the content-type definitions
Score the proposal against each content type using these definitions (the same ones Validate mode uses to grade pages — see Step 3 above for the full checklists):
- Overview — describes what something is, how it works, and why it matters. Concept-led; long procedures and reference tables are anti-patterns.
- How-to — accomplishes one self-contained task. Action-verb title, "Before you begin" or requirements, numbered steps, success checkpoint. Anti-pattern: chains many tasks or teaches broad concepts.
- Tutorial — chains related tasks toward a meaningful learning outcome. Has objectives, prerequisites, instructional flow, checkpoints. Anti-pattern: narrow recipe or pure overview.
- Troubleshooting — resolves one specific repeatable problem. Problem-focused title, Symptoms section, Resolution section. Anti-pattern: generic "Troubleshooting X" wayfinding pages or mixing unrelated problems.
- Changelog — describes one user-facing product change for release notes. Action-verb title, user-impact focus, present tense. Anti-pattern: implementation-focused or vague summaries.
Pick the type whose definition the proposal description most clearly invokes. If the proposal mentions sequential steps, prefer how-to over overview. If it mentions an error or symptom, prefer troubleshooting over how-to. If it mentions a concept being introduced or explained, prefer overview.
Step 3 (classify): Check confidence and assembly
Assign a confidence level:
- High — the proposal clearly invokes one type's required content (e.g., explicit steps + prerequisites = how-to; explicit Symptoms + Resolution = troubleshooting).
- Medium — the proposal fits one type best but is missing some required elements, or fits two types partially. Suggest the user draft an outline and re-classify.
- Low — no type fits cleanly. The proposal may belong as a section of an existing page rather than a new page. Recommend an assembly check (look for sibling pages on the same topic) before treating this as a new page.
Step 4 (classify): Generate classification report
## Content type classification
### Best fit: <type>
Confidence: <high | medium | low>
### Why
- <reason 1, e.g., "Proposal describes sequential steps and prerequisites">
- <reason 2, e.g., "Title pattern is action-verb">
### Required elements still to draft
- <element from the type's required-content list, e.g., "Before you begin section">
- <element>
- ...
### Alternatives considered
- <type 2>: <one-line reason it's a worse fit>
- <type 3>: <one-line reason>
### Recommendation
- <next step based on confidence — see Step 3 (classify)>If no type fits cleanly (low confidence on all), say so explicitly and recommend the user check whether the content could be added as a new section of an existing page, rather than starting a new page. Do not invent a fit.
{
"skill_name": "content-type-checker",
"evals": [
{
"id": 1,
"prompt": "Check this page against the content type guidelines. It's a how-to guide but it starts with a long explanation of what Elasticsearch indices are, has no numbered steps, and the title is 'Elasticsearch Index Management Overview'.",
"expected_output": "Report identifying content type mismatch (title says overview but claimed how-to), missing step-by-step instructions, and excessive conceptual content for a how-to",
"expectations": [
"Identifies the title pattern as inconsistent with how-to type",
"Flags the lack of numbered/step-by-step instructions",
"Notes that conceptual explanations belong in an overview, not a how-to",
"Produces a structured report with required elements and best practices sections"
]
},
{
"id": 2,
"prompt": "I wrote a troubleshooting page for common Kibana dashboard errors. Can you check if it follows the right structure? The file is at docs/troubleshooting/kibana-dashboards.md",
"expected_output": "Evaluation against troubleshooting content type guidelines, checking for a problem-focused title, Symptoms section, Resolution section, and whether diagnosis or prerequisites are only included when needed",
"expectations": [
"Attempts to read the file or asks for its content",
"References the troubleshooting content type guidelines",
"Checks for required Symptoms and Resolution sections",
"Flags generic wayfinding titles if the page is meant to resolve one dedicated problem",
"Generates a report with required elements checklist"
]
},
{
"id": 3,
"prompt": "Check this how-to page against the content type guidelines:\n\n# Create an API key\n\nTo create an API key for your deployment:\n\n## Before you begin\n\nYou need the `manage_api_key` cluster privilege.\n\n## Steps\n\n1. Open **Stack Management > API keys**.\n2. Click **Create API key**.\n3. Enter a name for the key.\n4. (Optional) Set an expiration date.\n5. Click **Create**.\n\n## Next steps\n\nUse the API key to authenticate REST API requests.",
"expected_output": "Reports that the page follows how-to guidelines well — has prerequisites, numbered steps, and next steps",
"expectations": [
"Does NOT flag the page as mismatched with the how-to content type",
"Recognizes the prerequisite section as correct structure",
"Recognizes the numbered steps as proper how-to format",
"Does NOT recommend converting it to a different content type"
]
},
{
"id": 4,
"prompt": "Check this overview page against the content type guidelines:\n\n---\ntype: overview\nproducts:\n - id: elasticsearch\ndescription: Learn how index lifecycle management automates index transitions to optimize storage and performance.\n---\n\n# Index lifecycle management\n\nIndex lifecycle management automates transitions through lifecycle phases.\n\n## Create a policy\n\n1. Open **Stack Management**.\n2. Click **Create policy**.",
"expected_output": "Report that the declared overview contains how-to content and should move step-by-step instructions to a how-to guide or link to one",
"expectations": [
"Recognizes the declared type as overview",
"Flags numbered procedural steps as an overview anti-pattern",
"Checks shared metadata using products, not product singular",
"Suggests keeping the overview conceptual and linking to a how-to guide"
]
},
{
"id": 5,
"prompt": "Check this changelog YAML against the content type guidelines:\n\ntitle: Bug fixes\ntype: breaking-change\nproducts:\n - product: elasticsearch\n target: 9.2.0\ndescription: Refactored internals. See PR #123.\n",
"expected_output": "Report that the changelog title is too vague, the description focuses on implementation/internal references, and breaking changes need impact and action fields",
"expectations": [
"Checks required changelog fields: title, type, and products",
"Flags the vague title and recommends a user-impact-focused present-tense action verb",
"Flags implementation-focused description and internal PR-only context",
"Flags missing impact and action fields for a breaking change"
]
},
{
"id": 6,
"prompt": "Classify this idea: a new page documenting how to configure cross-cluster search step by step, including the prerequisites needed and how to verify the connection works.",
"expected_output": "Classification report selecting how-to as the best fit with high confidence, citing the sequential steps and prerequisites as the basis, and listing the required elements (Before you begin, numbered steps, success checkpoints) the user still needs to draft",
"expectations": [
"Identifies the proposal as a how-to with high confidence",
"Cites sequential steps and the prerequisite mention as the basis for the classification",
"Lists required elements the user still needs to draft (such as a Before you begin section, numbered steps, and a success checkpoint)",
"Does NOT classify the proposal as overview, tutorial, or troubleshooting",
"Produces output structured under the Classify-mode report sections (Best fit, Why, Required elements, Alternatives, Recommendation)"
]
},
{
"id": 7,
"prompt": "Would a page titled 'an introduction to index lifecycle management — what it is, why it matters, and how phases work' best fit as an overview, how-to, or tutorial?",
"expected_output": "Classification report selecting overview as the best fit with high confidence, citing the concept-led framing (what/why/how it works) and warning that procedural steps would be an anti-pattern in an overview",
"expectations": [
"Identifies overview as the best fit",
"Cites the concept-led framing (what it is, why it matters, how it works) as the basis",
"Notes that long procedural steps would be an overview anti-pattern and should live in a how-to instead",
"Does NOT recommend how-to or tutorial as the best fit",
"Lists required overview elements still to draft (such as use cases or examples, next steps)"
]
},
{
"id": 8,
"prompt": "I want to write a page about fixing the 'index_not_found_exception' error. Should it be a how-to or troubleshooting page?",
"expected_output": "Classification report selecting troubleshooting as the best fit, distinguishing it from how-to because the proposal is problem-first, and listing the required Symptoms + Resolution sections",
"expectations": [
"Selects troubleshooting (NOT how-to) as the best fit",
"Explains that troubleshooting is problem-first and how-to is task-first",
"Lists Symptoms and Resolution as required sections still to draft",
"Cautions against using a generic wayfinding title like 'Troubleshooting errors'",
"Suggests the title should be problem-focused and reference the actual error name"
]
},
{
"id": 9,
"prompt": "Classify this page idea: a short page documenting the new --reindex-on-startup CLI flag, what it does, when to use it, and a one-line example.",
"expected_output": "Classification report indicating the proposal does not fit any single content type cleanly with high confidence, recommending the content be added as a section of an existing CLI reference page (assembly check) rather than treated as a new standalone page",
"expectations": [
"Does NOT confidently classify the proposal as how-to, tutorial, or troubleshooting",
"Notes that the content is reference-flavored and may belong inside an existing CLI page",
"Recommends doing an assembly check (looking for an existing page where this could be a new section) before creating a new page",
"Does not invent a fit for a content type that doesn't match"
]
}
]
}
Related skills
FAQ
What does docs-content-type-checker do?
docs-content-type-checker is an Elastic documentation skill for content type validation for elastic docs.
When should I use docs-content-type-checker?
User needs Elastic docs help with content type validation for elastic docs.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.