Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

docs-grounding-verifier

БесплатноЗапускает вложенные скриптыНе проверен

Use this skill to verify CLAIM-LEVEL grounding of a documentation page (or set of pages) against the source code. Activate when you have specific pages to…

microsoftот microsoft★ 4 492 звезды на GitHub

Об этом скилле

docs-grounding-verifier

CLAIM-LEVEL grounding verification. Adapts the RAGAS faithfulness-eval pattern (proven in RAG literature) to docs/code instead of generated- answers/retrieved-context. Source code is the ground truth; docs paragraphs are the candidate text under audit.

python-architect persona doc-writer persona

Sibling contract

This skill is a SIBLING of docs-corpus-audit and docs-sync. The boundary is load-bearing:

Skill Trigger Scope Granularity
docs-sync PR opened/synchronized PR diff only Page-level
docs-corpus-audit Maintainer asks for whole-corpus pass Entire corpus Page-level
docs-grounding-verifier Verify specific pages factually 1..N pages CLAIM-level

docs-corpus-audit invokes this skill in its VERIFY phase on the highest-risk pages of each wave. docs-sync can invoke it on the specific pages in a PR diff. The skill is also runnable standalone.

When to activate

  • Maintainer says "verify against the code".
  • An audit wave wants per-claim grounding scores for its highest-risk pages.
  • A PR review wants to confirm that prose changes are not just plausible but actually consistent with the implementation.
  • A "fact-check" or "grounding" or "drift hunt" request.

When NOT to activate

  • Whole-corpus sweep with no specific page list -> use docs-corpus-audit.
  • PR review with mixed code+docs diff -> use docs-sync.
  • Editorial / tone review -> use editorial-owner persona directly.

Architecture (PIPELINE-of-PANELS)

PARENT
  -> [Stage 1: EXTRACT claims, fan-out PANEL]
       per page -> LLM extracts atomic factual claims as JSON
       script: scripts/extract-claims.py
  -> [Stage 2: RETRIEVE evidence, deterministic S7]
       per claim -> grep over src/ via keywords + hints
       script: scripts/retrieve-evidence.sh   (NO LLM)
  -> [Stage 3: JUDGE grounding, adversarial A7]
       per (claim, evidence) -> LLM rules GROUNDED|PARTIAL|CONTRADICTED|UNSUPPORTED
       asset: assets/judge-prompt.md
  -> [Stage 4: SYNTHESIZE]
       aggregate ungrounded -> doc-writer for fix
       re-verify after fix (A8 ALIGNMENT LOOP)

Stage 2 is the load-bearing design choice: evidence retrieval is DETERMINISTIC (grep + AST hints), not LLM. The judge in Stage 3 can only rule on evidence it actually receives -- it cannot hallucinate support that the retriever did not find. This is the structural guard against the failure mode "the LLM convinces itself the docs match the code."

Phase 1: SCOPE

Input: list of page paths to verify (1..N). If a risk_class is attached (e.g. "high-stakes"), prefer it; otherwise treat all as equal.

Out-of-scope:

  • Pages outside docs/src/content/docs/ or packages/apm-guide/.apm/skills/apm-usage/.
  • Pages with no factual claims (pure editorial / landing). Skip rather than force-extract.

Phase 2: EXTRACT (parallel)

For each page, dispatch ONE claim-extractor agent:

  • Prompt template: scripts/extract-claims.py <page> produces the prompt and embeds the page content.
  • Returns: JSON {"page", "claims":[{"id","text","section","keywords", "expected_source_areas"}]} capped at 15 claims per page.

Parallel safe; no shared state between extractors.

Phase 3: RETRIEVE (deterministic, batched)

For each claim, pipe to scripts/retrieve-evidence.sh:

  • Uses keywords + expected_source_areas to grep src/.
  • Returns one-line JSON: {"claim_id","claim_text","evidence":[...], "evidence_count"}.

Sequential is fine (grep is fast). No LLM. Diagnostics on stderr, data on stdout.

Phase 4: JUDGE (parallel)

For each (claim, evidence) tuple, dispatch ONE grounding-judge agent:

  • Load assets/judge-prompt.md.
  • Send the prompt + the tuple.
  • Returns: JSON verdict per the schema in judge-prompt.md.

Batching across claims-of-one-page into a single judge call is fine (prompt with all tuples at once). Across pages, fan out.

Phase 5: SYNTHESIZE

Aggregate verdicts. Materialize the report:

{
  "summary": {
    "pages_verified": N,
    "claims_total": N,
    "grounded": N, "partial": N, "contradicted": N, "unsupported": N,
    "grounding_rate": N/total
  },
  "actionable": [
    {"page", "claim", "verdict", "evidence_cited", "fix_suggestion"}
  ]
}

CONTRADICTED and PARTIAL are doc-writer work items. UNSUPPORTED is split: if retrieval_fix_suggestion is plausible, retry retrieval with the suggested keywords; if still empty, treat as CONTRADICTED.

Phase 6: ALIGNMENT LOOP (A8)

Hand actionable items to doc-writer (one subagent per page). After edits, RE-RUN the pipeline on the same pages. The grounding_rate must MONOTONICALLY INCREASE between iterations or

Полный SKILL.md на GitHub

Установить docs-grounding-verifier в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/judge-prompt.mdevals/content-evals.jsonevals/run-evals.shevals/runs/20260527-194228/seeded-corpus/drift-install-flag/page.mdevals/runs/20260527-194228/seeded-corpus/drift-install-flag/scenario.jsonevals/runs/20260527-194228/seeded-corpus/drift-policy-reject/page.mdevals/runs/20260527-194228/seeded-corpus/drift-policy-reject/scenario.jsonevals/runs/20260527-194228/seeded-corpus/drift-registry-resolver/page.mdevals/runs/20260527-194228/seeded-corpus/drift-registry-resolver/scenario.jsonevals/runs/20260527-194228/trigger-prompts.txtevals/runs/proof/claims/copilot.jsonevals/runs/proof/claims/install.jsonevals/runs/proof/claims/pkgtypes.jsonevals/runs/proof/claims/policy.jsonevals/runs/proof/claims/registries.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c1.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c10.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c11.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c12.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c13.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c14.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c15.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c2.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c3.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c4.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c5.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c6.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c7.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c8.jsonevals/runs/proof/copilot/evidence/docs_src_content_docs_integrations_copilot-app_md_c9.jsonevals/runs/proof/copilot/judge-batch-docs_src_content_docs_integrations_copilot-app_md.txtevals/runs/proof/install/evidence/docs_src_content_docs_reference_cli_install_md_c1.jsonevals/runs/proof/install/evidence/docs_src_content_docs_reference_cli_install_md_c10.jsonevals/runs/proof/install/evidence/docs_src_content_docs_reference_cli_install_md_c11.jsonevals/runs/proof/install/evidence/docs_src_content_docs_reference_cli_install_md_c12.jsonevals/runs/proof/install/evidence/docs_src_content_docs_reference_cli_install_md_c13.jsonevals/runs/proof/install/evidence/docs_src_content_docs_reference_cli_install_md_c14.jsonevals/runs/proof/install/evidence/docs_src_content_docs_reference_cli_install_md_c15.jsonevals/runs/proof/install/evidence/docs_src_content_docs_reference_cli_install_md_c2.jsonevals/runs/proof/install/evidence/docs_src_content_docs_reference_cli_install_md_c3.json

FAQ

Что делает скилл docs-grounding-verifier?

Use this skill to verify CLAIM-LEVEL grounding of a documentation page (or set of pages) against the source code. Activate when you have specific pages to check for factual accuracy -- not when sweeping a whole corpus (use docs-corpus-audit for that) and not when triaging a PR diff (use docs-sync for that). Trigger nouns: "is this doc accurate", "verify the page against the code", "fact-check this section", "any claims that drifted from source", "fact-checking", "grounding audit", "drift hunt", "claim verification". Returns per-claim verdicts (GROUNDED | PARTIAL | CONTRADICTED | UNSUPPORTED) with file:line evidence citations. Catches paragraph-level inaccuracies that page-level audit averages over -- e.g. a paragraph with 5 claims where 4 are grounded and 1 is fabricated. Does NOT modify files (returns advisory only); does NOT re-architect the docs; does NOT triage PRs.

Как установить скилл docs-grounding-verifier?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл docs-grounding-verifier запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить docs-grounding-verifier с