Skip to content
Agentmart
Submit a tool

content-verification-layer

Phase 4 Turn 2 of disease-market-sizing-orchestration (A6' upgrade).

Skill by EthanYoQ

IndexedMIT★ 11
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ethanyoq-content-verification-layer

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Phase 4 Turn 2 of disease-market-sizing-orchestration (A6' upgrade). Audits compose output via Cite-or-Block strict — every anchor must reverse-resolve to an actual file in sources/, every fact claim must have an anchor. Returns verdict (ok/blocked) + violations list. Use AFTER cite-bound-content-generator (Turn 1), BEFORE report-bundle-builder (phase 5).

Use cases: documents, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/content-verification-layer

What's inside

Skill name
content-verification-layer
Description
Phase 4 Turn 2 of disease-market-sizing-orchestration (A6' upgrade). Audits compose output via Cite-or-Block strict — every anchor must reverse-resolve to an actual file in sources/, every fact claim must have an anchor. Returns verdict (ok/blocked) + violations list. Use AFTER cite-bound-content-generator (Turn 1), BEFORE report-bundle-builder (phase 5).
License
MIT
Instructions
76 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • _token_classifier.py · scripts/
  • verifier.py · scripts/

SKILL.md (first lines)

# Content Verification Layer (Phase 4 Turn 2)

## Strict Audits

1. `enforce_citations_in_text(html)` — flag fact-bearing claims without anchors
2. anchor existence reverse-lookup — every anchor source_id must have a backing file in sources/
3. numeric support gate — every market/statistical number in a claim must appear in the cited source/model evidence after normalization; derived numbers must be saved in and cited from a model/evidence file
4. report substance gate — block source inventory/process filler, deferred worker/model language, and toy Mermaid diagrams even when anchors resolve
5. drug-bearing sections route to A5' citation verifier; unsupported drug mentions are critical
6. strict locator gate — production anchors must include locator context; a numeric claim anchored only as `[guideline:ID]` or `[evidence:path]` is not strict evidence.
7. claim-level audit output — `verify_full_report()` must return enough detail for downstream gates to audit total claims, total anchors, strict locator coverage, verified count, anchors without locator, and violation reasons. A tiny `{"verdict":"ok"}` file is not an acceptable production audit.
   When semantic Tier 2 is enabled, `verification_report.json` must also record `semantic_audit.audit_log_path`, `audit_log_entries`, `calls_remaining`, and `call_budget`; the referenced JSONL log must exist and line counts must match.
8. Mermaid numeric-source audit — when rendered Mermaid sources are present, numeric labels must be checked against their nearest/declared anchors with the same numeric support rule used for visible body claims.
9. source-channel utilization audit — when production recall fetched required channels such as ClinicalTrials.gov or PubTator/entity evidence, `verify_full_report(..., required_source_channels=...)` must block if the channel has saved source files but no matching body anchors.
10. formula/model dominance audit — saved formula/model evidence can support derived numbers, but it cannot dominate body citations. If formula anchors are the main citation class, the output is a model dump, not a V25-level report.

## Report Substance Gate

Verification must reject HTML that is only report-shaped. These are critical blockers:

- visible body dominated by "已保存于 sources" rows, source-index tables, or repeated `附录证据说明`
- final report language that says work remains for a worker or later quant model
- shallow Mermaid blocks such as `A-->B` diagrams without real pathway logic
- Mermaid blocks must be audited even when the `<div class="mermaid">` tag carries extra attributes such as `data-chart`; raw HTML attributes cannot bypass shallow-diagram checks
- repeated `证据消化矩阵` blocks in the report body instead of narrative synthesis
- formula/model evidence anchors accounting for a dominant share of body citations
- numbered template padding such as `场景1/场景2/...` or `Block 1/Block 2/...` with the same sentence body; normalize the numbering before repetition checks

Passing Cite-or-Block syntax is necessary but not sufficient for a production smoke pass.

## Source Channel Utilization Gate

Production runs may pass `required_source_channels=("clinical_trials", "pubtator")` or equivalent. If files exist under the corresponding current-run source folders, the final report must use matching anchors in body analysis:

- ClinicalTrials.gov / AACT → `[nct:...]` or `[aact:...]`
- PubTator/entity recall → `[pubtator:...]`

Appending a source list is not enough. If a channel was fetched but excluded from analysis, the exclusion must happen before verification with a recorded reason, not by silently ignoring the saved sources.

## Numeric Evidence Gate

Do not accept "数字 + existing anchor" as proof. For every numeric fact such as percentage, patient count, currency, incidence, time window, or market size, verify:

- the cited source text contains the same number after comma/whitespace normalization, or
- the claim cites a saved model/evidence file that contains the formula, input anchors, units, and derived result.
- the anchor includes locator context that points at the relevant abstract, section, line, or evidence-file line.

If the number is absent from the cited source/model evidence, return a critical violation with `numeric token miss`.

For long captured sources, the semantic fallback excerpt must be built around the matched locator, numeric tokens, or nearby claim terms. Do not pass only the first page/header of a guideline or HTML capture to semantic verification; website navigation text is not the evidence window.

## Audit Output Contract

`verification_report.json` must keep the audit trail needed by the production smoke gate:

- `verified_count`
- `anchor_audit.total_claims`
- `anchor_audit.total_anchors`
- `anchor_audit.verified_count`
- `anchor_audit.anchors_without_locator`
- `anchor_audit.violations_by_reason`
- `semantic_audit.audit_log_path` / `audit_log_entries` / `calls_remaining` / `call_budget` when semantic verification writes a JSONL log

Schema lint must fail if these fields are written but not declared in `schemas/verification_report.schema.json`.

## Functions

- `verify_section(section_html, sources_dir) -> Verdict`
- `verify_full_report(html, sources_dir) -> Verdict`
- `enforce_citations_in_text(html) -> list[Violation]`

## P0 守门

Tests grep skill source for hardcoded drug names / disease names — CI blocks on hit.

From EthanYoQ/Skill-hub, MIT.

More from EthanYoQ/Skill-hub

Signals

Stars
11
Forks
4
Open issues
0
Last commit (this folder)
Sep 19, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from EthanYoQ

Cite this page

content-verification-layer skill. Agent Mart. https://agentmart.dev/skills/ethanyoq-content-verification-layer (last updated 2026-10-24)