Docs Check Contradictions 标志

Docs Check Contradictions

组织
elastic
docs-check-contradictions

Check whether newly written or updated documentation contradicts existing content elsewhere in the docs. Use when adding or editing any docs content — procedures, concepts, prerequisites, values, names, recommendations, or cross-references — to find stale or conflicting information, both in the local repo and across all published Elastic docs, that needs updating alongside your changes.

概览

发布者elastic
代码仓库elastic-docs-skills
技能名称docs-check-contradictions
星标数
71
复刻数
10
附带文件
1
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 elastic 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Docs Check Contradictions AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/elastic/elastic-docs-skills/tree/main/skills/review/check-contradictions
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/elastic/elastic-docs-skills.git /tmp/elastic-docs-skills
mkdir -p .claude/skills
cp -r /tmp/elastic-docs-skills/skills/review/check-contradictions .claude/skills/docs-check-contradictions
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Docs Check Contradictions,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Docs Check Contradictions。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Docs Check Contradictions 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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:

  1. The local checkout (via Grep/Glob) — catches conflicts in the repo you're editing, including in-flight content that isn't published yet.
  2. All published Elastic docs (via the Elastic Docs MCP server at 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.

Inputs

$ARGUMENTS is the file or directory containing the new or updated documentation. If empty, ask the user which file or directory to check.

Step 1: Read the new content

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 typeExamples
ValuesDefault values, thresholds, timeouts, limits, maximums, ports, paths, counts
NamingExact names of settings, API fields, CLI flags, UI elements, files, roles, or product features
Steps and proceduresThe order of steps, which action comes first, where a setting lives in the UI, how to reach a page
Prerequisites and requirementsRequired versions, licenses, permissions, dependencies, or setup that must be done first
Concepts and definitionsWhat a term means, how a concept is described, what something is or is not
Availability and scopeDeployment 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"
RecommendationsRecommended 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.

Step 2: Build search terms

From the claims list, extract the most specific terms to search for:

  • Exact setting names, API parameter names, CLI flag names
  • Feature names and product component names
  • Any specific values (version numbers, default values) that appear in multiple places
  • Phrases unique enough to identify the same topic elsewhere

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.

Step 3a: Search the local checkout

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 pages
  • release-notes/ — historical accuracy by design; don't flag version-specific claims as contradictions
  • redirects.yml — not prose content
  • Auto-generated files (e.g., nav.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.

Step 3b: Search all published Elastic docs (cross-repo)

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:

  1. Call 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.
  2. For the most on-topic hits, call 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.
  3. Optionally call 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.

Step 4: Read and compare

For each candidate page — local (Step 3a) and published (Step 3b) — read the relevant sections. Compare what it says against your claims list:

  • Does it state a different value, limit, path, or name for the same thing?
  • Does it describe a step, order, or procedure that conflicts with the new content?
  • Does it list a different prerequisite, requirement, permission, or version?
  • Does it define a term or concept in a way that no longer matches?
  • Does it use a setting, parameter, or feature name that has since changed?
  • Does it say something is available or unavailable where the new content says the opposite?
  • Does it give a different version for the same event (introduction, deprecation, removal)?
  • Does it recommend something incompatible with a new recommendation?
  • Does it describe behavior or guidance that the new content supersedes?
  • Do its 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.

Step 5: Generate the report

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:

  • Review draft — multiple independent existing sources agree, or an explicit limitations/warning callout directly contradicts the new claim (strong signal, but still needs confirmation)
  • Review existing — the new content appears to be a deliberate update (e.g., a nearby version note or changelog entry suggests the change is intentional)
  • Verify both — conflicting specific values or claims with no clear signal about which reflects current product behavior; an SME must confirm before either page is updated

Severity:

  • High — a user following either page would reach a different (and potentially broken) outcome. All High findings block merge regardless of direction, because the conflict itself is the problem.
  • Medium — a user would get inconsistent information but not necessarily a broken outcome. File a follow-up.
  • Low — a nuance difference (e.g., a missing qualifier, a missing version floor, an incomplete list). File a follow-up.

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:

  1. Location — for local files, a clickable markdown link: [path/to/other-file.md:42](path/to/other-file.md#L42); for published pages, the doc URL
  2. Severity — High / Medium / Low
  3. Direction — one of exactly three values: Review draft / Review existing / Verify both. Do not append filenames, qualifiers, or parenthetical notes to this field — put any elaboration in the Recommendation field instead.
  4. Claim type — one of: Values, Naming, Steps/Procedure, Prerequisites, Concepts/Definitions, Availability/Scope, Relationships, Capabilities, Recommendations
  5. Contradiction — what the existing content says vs. what the new content says, with exact quotes where short enough
  6. Recommendation — the likely fix and where it belongs; always note when SME confirmation is needed before acting

Report format

markdown
## 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.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Docs Check Contradictions AI 技能有什么作用?

Check whether newly written or updated documentation contradicts existing content elsewhere in the docs. Use when adding or editing any docs content — procedures, concepts, prerequisites, values, names, recommendations, or cross-references — to find stale or conflicting information, both in the local repo and across all published Elastic docs, that needs updating alongside your changes.

为什么在 TypingMind 中使用 Docs Check Contradictions?

因为您只需安装一次,就能搭配任何模型使用。Docs Check Contradictions 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Docs Check Contradictions?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/elastic/elastic-docs-skills/tree/main/skills/review/check-contradictions。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Docs Check Contradictions?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Docs Check Contradictions 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Docs Check Contradictions 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Docs Check Contradictions AI 技能免费吗?

是的。elastic 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇