Logo Docs Check Contradictions

Docs Check Contradictions

Tổ chức
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.

Tổng quan

Nhà phát hànhelastic
Kho mãelastic-docs-skills
Tên kỹ năngdocs-check-contradictions
Sao
71
Bản fork
10
Tệp đi kèm
1
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được elastic công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Docs Check Contradictions trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/elastic/elastic-docs-skills/tree/main/skills/review/check-contradictions
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Docs Check Contradictions trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Docs Check Contradictions ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Docs Check Contradictions với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Docs Check Contradictions làm được gì?

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.

Vì sao nên dùng Docs Check Contradictions trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Docs Check Contradictions là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Docs Check Contradictions trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/elastic/elastic-docs-skills/tree/main/skills/review/check-contradictions. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Docs Check Contradictions?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Docs Check Contradictions với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Docs Check Contradictions với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Docs Check Contradictions có miễn phí không?

Có. Kỹ năng này được elastic phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇