Skip to content

feat: add check-contradictions skill to docs PR review AW - #278

Merged
theletterf merged 2 commits into
mainfrom
feat/review-check-contradictions
Aug 11, 2026
Merged

theletterf merged 2 commits into
mainfrom
feat/review-check-contradictions

Conversation

@theletterf

@theletterf theletterf commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Imports elastic/elastic-docs-skills/skills/review/check-contradictions into the docs PR review AW
  • Adds Step 4 to the review prompt that explicitly runs the skill on each eligible changed file
  • Updates the review body format to include a Contradictions line in the Focus areas section

What the skill does

docs-check-contradictions detects factual conflicts between newly changed docs and existing content, searching in two places:

  1. Local repo via Grep/Glob — catches conflicts in the same checkout, including unpublished in-flight content
  2. Published Elastic docs via the Elastic Docs MCP server — catches conflicts across every published repo without needing them checked out

It categorises findings by severity (High / Medium / Low) and direction of likely fix (Review draft / Review existing / Verify both).

How findings are surfaced

  • High severity: inline review comments on the relevant changed line
  • Medium / Low severity: summarised in the Contradictions line of the review body

Test plan

  • Trigger the PR review AW on a PR that changes a docs page known to have related content elsewhere — confirm the Contradictions section appears in the review body
  • Trigger on a clean, isolated page — confirm "No contradictions found" is reported

🤖 Generated with Claude Code

Related to #402

Imports elastic/elastic-docs-skills/skills/review/check-contradictions
and adds Step 4 to the review workflow. After the standard per-file
review the agent runs docs-check-contradictions on each eligible changed
file to find factual conflicts — both in the local repo and across all
published Elastic docs via the MCP server.

High-severity contradictions become inline review comments; medium/low
are summarised in a new "Contradictions" line in the review body.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@theletterf
theletterf requested a review from a team as a code owner August 11, 2026 06:57
@theletterf
theletterf requested a review from reakaleek August 11, 2026 06:57
Comment thread .github/workflows/gh-aw-docs-review.md Resolved
@theletterf theletterf self-assigned this Aug 11, 2026
@theletterf theletterf added the enhancement New feature or request label Aug 11, 2026
…k step

Adds MCP-specific guidance to Step 4: use elastic-docs.search_docs,
find_related_docs, get_document_by_url (with includeBody: true), and
find_docs_inconsistencies for the cross-repo search when the MCP server
is available. Falls back to WebFetch when it is not.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@theletterf
theletterf merged commit 9935805 into main Aug 11, 2026
4 checks passed
@theletterf
theletterf deleted the feat/review-check-contradictions branch August 11, 2026 07:07
@theletterf theletterf mentioned this pull request Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants