/elastic-docs-skills:docs-check-contradictions <file-or-directory>from elastic-docs-skills
Checks new or updated documentation for factual contradictions against existing Elastic docs, both locally and across all published Elastic documentation.
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 documentation consistency checker for Elastic. Your job is to find places in the existing docs that contradict or conflict with new or updated content — never to rewrite anything. You report findings so the writer can decide what else needs updating alongside their changes.
This works for any kind of docs edit — a new feature page, a revised procedure, an updated concept explanation, a changed prerequisite, a renamed setting, a corrected value, or a new recommendation. Do not assume the change is feature-related.
This skill is complementary to docs-check-style (which checks language and formatting) and docs-applies-to-tagging (which checks deployment scope tags). Focus only on factual contradictions between what the new content says and what the rest of the docs say.
Elastic docs live across many repositories (including some code repos), so contradictions often sit in a repo you don't have checked out. You therefore search in two places:
Grep/Glob) — catches conflicts in the repo you're editing, including in-flight content that isn't published yet.https://www.elastic.co/docs/_mcp/, no auth) — catches conflicts across every repo whose docs are published, without needing them checked out locally.If the Elastic Docs MCP server tools (search_docs, get_document_by_url, etc.) are not available in your session, fall back to WebFetch on specific published doc URLs. Note both approaches in your report. The MCP only sees published docs. A contradiction in another repo's unmerged or unpublished changes won't appear there — note this limitation in your report so the writer knows the cross-repo check covers published content only.
$ARGUMENTS is the file or directory containing the new or updated documentation. If empty, ask the user which file or directory to check.
Glob for all .md files in $ARGUMENTS. Read each file fully.
As you read, build a claims list: factual assertions the new content makes. Capture the exact wording and its file path and approximate line number. Any content type can produce claims — a procedure, a concept page, a reference table, a prerequisite note, or a recommendation. Look for these claim types:
| Claim type | Examples |
|---|---|
| Values | Default values, thresholds, timeouts, limits, maximums, ports, paths, counts |
| Naming | Exact names of settings, API fields, CLI flags, UI elements, files, roles, or product features |
| Steps and procedures | The order of steps, which action comes first, where a setting lives in the UI, how to reach a page |
| Prerequisites and requirements | Required versions, licenses, permissions, dependencies, or setup that must be done first |
| Concepts and definitions | What a term means, how a concept is described, what something is or is not |
| Availability and scope | Deployment types and version ranges something applies to (serverless, ECE, ECH, self-managed, version ranges) |
| Relationships | "X requires Y", "X replaces Y", "X is deprecated in favor of Z", "X is removed", "use X instead of Y" |
| Capabilities | "X supports Y", "X does not support Y", "X is not available in Z" |
| Recommendations | Recommended defaults, best-practice guidance, "we recommend X" where another page recommends something incompatible |
Skip purely subjective or explanatory prose that can't conflict factually — only collect assertions another page could contradict.
From the claims list, extract the most specific terms to search for:
Substitution variables: Elastic docs use variables like {{motlp}}, {{edot}}, {{agent}}, {{ech}}. When a claim involves a product or feature that has a substitution variable, search for both the human-readable form (e.g., "Managed OTLP Endpoint") and the substitution variable (e.g., motlp). The same claim may appear as rendered text in published docs and as a variable in local source files.
Prefer specific multi-word terms over single common words. You'll reuse these terms for both the local and cross-repo searches.
For each search term, use Grep to find .md files outside $ARGUMENTS that mention the same topic:
Grep -r "<term>" --include="*.md" .
Collect the matching file paths. Exclude the files you already read in Step 1. Also exclude:
_snippets/ directories — snippet content is authored in context of the pages that include it; contradictions in snippets show up via the including pagesrelease-notes/ — historical accuracy by design; don't flag version-specific claims as contradictionsredirects.yml — not prose contentnav.yml, toc.yml)If a search term returns many matching files, narrow to the most specific sub-term before proceeding, or prioritize files in the same product area or directory as $ARGUMENTS.
The local checkout is only one of many repos. To catch contradictions in docs published from other repos, use the Elastic Docs MCP server tools.
For each key claim or term:
search_docs with the term (use product/section filters when you know them) to find published pages on the same topic. Optionally call find_related_docs to widen coverage. These are the workhorses — they surface the candidate pages you'll actually compare.get_document_by_url with includeBody: true to read the actual content. This is where contradictions are found — by reading and comparing, not from search metadata.find_docs_inconsistencies (and check_docs_coherence) on the main topic to widen the candidate set. Treat their output as discovery only: these tools flag pages that overlap on a topic (same subject, possible redundancy), not pages that actually disagree. Every candidate they return still has to be read in Step 4 and compared against your claims list — do not report their hits as contradictions on their own.If MCP tools are unavailable: use WebFetch on specific published doc URLs (e.g., https://www.elastic.co/docs/reference/opentelemetry/compatibility/limitations). Note in your report that the cross-repo check used WebFetch rather than the MCP, and that coverage may be narrower.
Skip pages that are the same as the file you're editing (the published version of your own page). De-duplicate against anything already found locally in Step 3a.
For each candidate page — local (Step 3a) and published (Step 3b) — read the relevant sections. Compare what it says against your claims list:
applies_to tags conflict with the availability claim made in the new content — for example, does it mark a feature as GA where the new content says it's preview?Flag only genuine factual conflicts. Do not flag differences in wording, level of detail, or documentation style.
Before writing findings, assess each conflict:
Direction of likely fix — the skill compares two doc artifacts; neither is confirmed ground truth. Rather than asserting which page is correct, indicate where the evidence points so the writer and an SME can make the final call:
Severity:
Present findings as a structured report, split into local and cross-repo sections so the writer knows which they can fix directly and which live in another repo. For each contradiction:
[path/to/other-file.md:42](path/to/other-file.md#L42); for published pages, the doc URLReview draft / Review existing / Verify both. Do not append filenames, qualifiers, or parenthetical notes to this field — put any elaboration in the Recommendation field instead.## Contradiction check: <input file or directory>
### Summary
N contradictions found (X local, Y cross-repo) across M pages. Blockers: B.
Cross-repo check: ran via MCP / ran via WebFetch / skipped — <reason>.
### Local repo
#### [path/to/existing-file.md](path/to/existing-file.md)
- **[Line 42](path/to/existing-file.md#L42)** | High | Review existing | Values | Existing: "Requests time out after 30 seconds by default." New content sets the default at 60 seconds. → Confirm with an SME which value is current; update whichever page is wrong.
- **[Line 88](path/to/existing-file.md#L88)** | Medium | Review draft | Naming | Existing uses the current setting name `refresh_interval`. New content uses the old name `index.refresh_interval`. Multiple pages agree on `refresh_interval`. → Likely update the draft, but confirm the rename is complete.
### Cross-repo (published docs)
#### https://www.elastic.co/docs/<path>
- **Medium | Verify both | Prerequisites** | Published page requires a Platinum license; new content says the feature works on Basic. → Verify the correct tier with an SME and update whichever page is wrong.
If no contradictions are found, say so clearly. Note any files skipped because they were too large to read in full, and always state whether the cross-repo check ran, and via which method (MCP or WebFetch).
End with a one-line summary: "N contradictions found (X local, Y cross-repo), B high-severity — resolve before merging." (Or "No contradictions found." if clean.) Remind the writer that the cross-repo check only covers published docs, so unpublished changes in other repos aren't included. For any finding where the correct state is unclear, note that SME confirmation is required before either page is changed.
What 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-kibana-oasReview a Kibana PR for OpenAPI Spec (OAS) and API docs compliance against the Elastic API docs checklist, core guidelines, and Kibana quickstart. Checks availability, summaries, descriptions, parameters, examples, tags, links, defaults, enums, deprecation, and generated YAML correctness. Use when reviewing a Kibana PR that touches API routes or OAS output files, or when asked to check OAS, availability, x-state, or API docs compliance on a PR.
/docs-check-styleCheck documentation for Elastic style guide compliance using Vale linter output and style rules. Use when the user asks to check, lint, or review docs for voice, tone, grammar, formatting, accessibility, or word choice issues, or when a docs review runs. Do not trigger on ordinary drafting or editing./docs-content-type-checkerCheck a docs-content page against Elastic content type guidelines (overview, how-to, tutorial, troubleshooting, changelog), or classify a proposed page idea against the content types before drafting. Use when the user asks to check content type compliance, validate page structure, review a doc against content type standards, or decide which content type a planned page should use./docs-draft-feature-docsDraft Elastic documentation for any feature or feature area, from a doc issue, a product pull request, or raw notes. Enforces the docs-content baseline on every draft — verify against product source at HEAD, find the canonical home, place content once, scope it cumulatively — and reads per-area reference files for local conventions when they exist. Use when picking up a doc issue, documenting a shipped or upcoming feature, or turning engineering notes into a page./docs-draft-workflow-docsDraft or update Elastic Workflows documentation pages in explore-analyze/workflows/ — step references, use cases, how-tos, concepts, and overviews. Use when writing Workflows docs, documenting a step type, turning workflow YAML into documentation, drafting from a doc issue in docs-content or docs-content-internal, or creating a new page under the Workflows docset.Other plugins' skills for the same job