claim-check

ai.skryvo由 skryvo.ai 發布v0.1.0更新於 Nov 23, 2026

Checks the factual claims in a text against sources and quotes the passage behind each verdict

發布方自己的服務:check.tattoo: tattoo size and placement guide

概覽

AI 產生的概覽

對文字進行事實查核:找出其中的事實性主張,逐條對照引用或搜尋到的來源核實,並引用支撐每項結論的原文段落。

可以做什麼
在 Markdown 或純文字中找出並核查事實性主張,可限制每次核查的主張數量(check_text)。抓取公開網頁,並對照其連結的頁面核查其中的主張(check_url)。針對你提供的來源位址核查單一獨立主張(check_claim)。每條主張會得到 supported、contradicted、no source found 或 not checkable 的結論,適用時附上來源位址和精確引用的原文段落。
適用情境
適用於撰寫或審閱文章、文件、報告時,希望把每個統計數字、日期、引語和具名事實追溯到來源。適合在發布內容前使用,或為提取請求加上標註,尤其是需要引用原文作為證據而非模型主觀判斷的場合。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js 20 或更新版本。需要聊天補全端點(CLAIM_CHECK_BASE_URL)和模型 ID(CLAIM_CHECK_MODEL),沒有預設模型。若端點需要金鑰,填入 CLAIM_CHECK_API_KEY。選用的網路搜尋需將 CLAIM_CHECK_SEARCH 設為 brave、serper 或 tavily,並提供對應金鑰(BRAVE_SEARCH_API_KEY、SERPER_API_KEY 或 TAVILY_API_KEY)。
安裝前請注意
被核查的文字會傳送到你設定的模型端點,若設定了搜尋提供者,每條主張也會傳送給它,適用其條款。付費端點的模型呼叫會產生費用。結論取決於模型:它可能漏掉主張或誤讀真實段落,請閱讀所引用的段落。付費牆、需登入或依賴 JavaScript 的頁面以及 PDF 會得到 no source found。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 claim-check,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

claim-check

Finds the factual claims in a piece of text, looks for a source for each, and tells you which are supported, contradicted or unsourced, quoting the passage it relied on.

It runs on your own model and keys: a command line, an MCP server for agents, and a GitHub Action that annotates pull requests. Apache-2.0.

30 seconds

You need Node.js 20 or later and a model behind any chat completions endpoint. There is no default model.

bash
export CLAIM_CHECK_BASE_URL=https://openrouter.ai/api/v1export CLAIM_CHECK_MODEL=deepseek/deepseek-v4.1-flash-1017export CLAIM_CHECK_API_KEY=...                       # your key for that endpointexport CLAIM_CHECK_MODEL_OPTIONS='{"reasoning":{"enabled":false}}'
curl -O https://raw.githubusercontent.com/Skryvo/claim-check/main/examples/sample.mdnpx @skryvo/claim-check sample.md

examples/sample.md has five claims, one with a wrong year, citing public-domain United States government pages. This is the real output (23 November 2026):

text
sample.md  5 claims: 2 supported, 1 contradicted, 1 no source found, 1 not checkable  supported       line 3  The ocean covers about 71 percent of the Earth (NOAA)                  https://oceanservice.noaa.gov/facts/howmanyoceans.html                  "covers 71 percent of the Earth"                  The NOAA page states the global ocean covers 71 percent of the Earth.
  contradicted    line 5  The Statue of Liberty was dedicated in 1896 (National Park Service)                  https://www.nps.gov/stli/index.htm                  "It was dedicated by President Grover Cleveland on October 28, 1886."                  The National Park Service page states the statue was dedicated in 1886, not 1896.
  supported       line 7  The Pacific is the largest ocean on Earth                  https://oceanservice.noaa.gov/facts/pacific.html                  "the Pacific is by far the largest of the world's ocean basins"                  The source states the Pacific is by far the largest of the world's ocean basins, which matches the claim that it is the largest ocean on Earth.
  no source found line 9  About 70% of travellers say a famous landmark is the main reason they choose a city                  The text cites no address for it, and no web search is set.
  not checkable   line 11  New York is the most beautiful city to visit in spring                  opinion
Model deepseek/deepseek-v4.1-flash-1017 (4 model calls, 2,849 tokens, $0.0006 as reported by the endpoint). Sources: addresses the text cites.

It exited with code 1, because a claim was contradicted.

Three ways to run it

Command line

bash
npx @skryvo/claim-check article.md                 # one filenpx @skryvo/claim-check "docs/**/*.md"             # a glob (quote it)npx @skryvo/claim-check https://example.com/post   # a public page; its links are its citationscat draft.md | npx @skryvo/claim-check             # stdin (or "-")npx @skryvo/claim-check article.md --json          # every field, for scriptsnpx @skryvo/claim-check "docs/**/*.md" --sarif > claims.sarif   # for code scanningnpx @skryvo/claim-check article.md --search brave  # also search the web for claims the text does not source
Exit codeMeaning
0Checked; no claim met --fail-on
1At least one claim met --fail-on: contradicted (default), unsourced (contradicted or no source found), or never
2Usage or configuration error, such as no model set
3The check could not finish: the model, the search or an input failed

claim-check --help lists every option; --max-claims (default 20 per input) caps the work.

MCP server

claim-check mcp serves three tools over stdio:

ToolTakesDoes
check_texttext, optional max_claimsFinds and checks the claims in Markdown or plain text
check_urlurl, optional max_claimsFetches a public page and checks its claims against the pages it links to
check_claimclaim, optional sourcesChecks one claim against the addresses given

Each answers with the readable report and the same report as structured content. Add it to a client:

json
{  "mcpServers": {    "claim-check": {      "command": "npx",      "args": ["-y", "@skryvo/claim-check", "mcp"],      "env": {        "CLAIM_CHECK_BASE_URL": "https://openrouter.ai/api/v1",        "CLAIM_CHECK_MODEL": "deepseek/deepseek-v4.1-flash-1017",        "CLAIM_CHECK_API_KEY": "...",        "CLAIM_CHECK_MODEL_OPTIONS": "{\"reasoning\":{\"enabled\":false}}"      }    }  }}

GitHub Action

yaml
name: claimson: pull_requestpermissions:  contents: read  pull-requests: readjobs:  check:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v4      - uses: Skryvo/claim-check@v0        with:          base-url: https://openrouter.ai/api/v1          model: deepseek/deepseek-v4.1-flash-1017          api-key: ${{ secrets.MODEL_API_KEY }}          model-options: '{"reasoning":{"enabled":false}}'          files: "docs/**/*.md"          fail-on: contradicted

On a pull request it reads the changed files from the GitHub API and checks only the claims on added or edited lines (lines: all checks whole files). A contradicted claim becomes an error annotation on its line and an unsourced one a warning; the job summary lists every claim with its verdict. On other events it checks every file the files globs match. Outputs: checked, contradicted, unsourced and report (the JSON file). Pull requests from forks get no secrets, so the step stops with "No model is set" there.

Configuration

Flags win over environment variables. The GitHub Action takes the same settings as inputs.

FlagVariable
--base-urlCLAIM_CHECK_BASE_URLA chat completions endpoint. Required.
--modelCLAIM_CHECK_MODELThe model id there. Required.
--api-keyCLAIM_CHECK_API_KEYIts key, if it needs one. Prefer the variable: flags show in process lists.
--model-optionsCLAIM_CHECK_MODEL_OPTIONSExtra request fields as JSON, merged into every call.
--searchCLAIM_CHECK_SEARCHcited (default), brave, serper or tavily.
--search-keyBRAVE_SEARCH_API_KEY, SERPER_API_KEY, TAVILY_API_KEYThe key for the search you chose.

A model on your own machine works the same way, for example an Ollama server:

bash
export CLAIM_CHECK_BASE_URL=http://localhost:11434/v1export CLAIM_CHECK_MODEL=<a model you pulled>

Every call uses temperature 0. The tool asks for JSON in plain words rather than through a JSON mode, so endpoints without one work; a small local model that cannot follow the instructions will fail loudly, not quietly.

How a verdict is reached

  1. Find the claims. The model reads the text (Markdown is turned into prose first, with code, front matter and link addresses taken out) and lists each statistic, date, named fact, quote and superlative, word for word, with a version that stands alone. It marks opinion, advice, predictions, private figures and vague wording as not checkable. Each claim is then found in the text by code, which gives its line; one the text does not contain is dropped.
  2. Find the sources. The addresses cited in the claim's sentence come first, then the rest of its paragraph. With a search set, the standalone claim is searched and the first new results are added. Up to three cited and three searched pages are fetched.
  3. Pick the passages. Each page is cut into paragraphs, and the ones sharing the most words and figures with the claim are kept, along with the page's first paragraph: up to ten passages in all.
  4. Judge. The model is told to judge from the passages alone and to quote the words it relied on.
  5. Check the quote. Code looks for that quote in the passage, word for word (case, quote marks and spacing aside). If it is not there, the claim is reported as no source found, whatever the model said. So a supported or contradicted verdict always comes with a page address and words that are on that page, never with the model's own belief.
VerdictMeans
supportedA fetched page states it; the quote shows where
contradictedA fetched page states something that cannot be true with it; the quote shows what
no_source_foundNo page read settles it, no page could be read, or the text cites none and no search is set
not_checkableOpinion, advice, prediction, private or too vague for any source to settle

Limits

  • Pages it cannot read. Paywalls, sign-ins, pages that need JavaScript to show their text, PDFs and other non-text files give "no source found", with the reason in why. A page is read up to 5 MB and 15 seconds.
  • Claims with no public source. A true claim that no public page states stays "no source found".
  • The model can be wrong. It can miss a claim, mark one not checkable that is, or judge a passage wrongly. The quote check stops it from inventing a source; it does not stop a misreading of a real one. Read the quote.
  • Passages, not whole pages. The model sees the passages most like the claim, so a fact stated far from the claim's words can be missed.
  • One source is enough. When pages disagree, the verdict follows the passage the model chose; consulted lists every page that was read.
  • No accuracy figure is claimed. samples/labelled.json holds 30 claims with the verdict a careful reader reaches from the pages given. npm run eval runs them on your model and prints the table; your results depend on your model.

Privacy

The text you check is sent to the model endpoint you configure, and each claim to the search provider if you set one; their terms apply. Cited and found pages are fetched from your machine with the User-Agent claim-check/<version> (+https://github.com/Skryvo/claim-check). The tool keeps nothing and sends nothing anywhere else.

Fetches go to public internet addresses only: loopback, private, link-local, shared and reserved ranges are refused, checked when the connection is made and again on every redirect, so a page cannot point the tool at your network. The model endpoint is the one exception, since you choose it and it may run on your machine.

As a library

js
import { createChecker, modelFrom, searchFrom } from "@skryvo/claim-check";
const checker = createChecker({ model: modelFrom({}), search: searchFrom({}) }); // reads the variables aboveconst report = await checker.checkText(markdown, { input: "post.md" });const one = await checker.checkClaim("The Statue of Liberty was dedicated in 1886.", ["https://www.nps.gov/stli/index.htm"]);

Contributing

bash
npm cinpm test              # builds, then runs every test offlinenpm run typechecknpm run build:action  # rebuilds action/index.js; commit it with the source changenpm run eval          # the labelled set, on the model in your environment

The tests make no network calls: model replies, pages and search answers are recorded fixtures or local servers. Report bugs and ideas at https://github.com/Skryvo/claim-check/issues. Questions: [email protected].

Made by Skryvo

Skryvo is a hosted AI writing platform whose articles are fact-checked inside the writing pipeline, where every cited sentence is checked against its source. claim-check is the open, standalone checker, built on the same rule that a verdict needs a quoted source. Between 5 September and 4 November 2026 Skryvo's check ran on 452 articles from 7 accounts, most of them Skryvo's own and test accounts; they hold 6,683 checked claims, and 99.5% of them link to the page that backs them. How it works: https://skryvo.ai/fact-checking/

Apache-2.0 © Flutter Studio LLC. See LICENSE and NOTICE.

來源:README.md,提交 304e6ad

工具

3

check_text

Check the claims in a text

Finds the factual claims in a piece of text (statistics, dates, named facts, quotes, superlatives), looks for a source for each among the addresses the text cites (and a web search, when the server has one set), and reports per claim. Each claim gets a verdict: supported or contradicted (always with the source address and the exact passage quoted from a page that was fetched), no_source_found, or not_checkable (opinion, advice, prediction, private or vague), with one sentence on why. A model's own knowledge is never used as a source. The text is sent to the model provider configured for this server.

輸入參數text必填max_claims

check_url

Check the claims on a web page

Fetches a public web page and checks its factual claims against the pages it links to (and a web search, when the server has one set). Each claim gets a verdict: supported or contradicted (always with the source address and the exact passage quoted from a page that was fetched), no_source_found, or not_checkable (opinion, advice, prediction, private or vague), with one sentence on why. A model's own knowledge is never used as a source. Private, local and loopback addresses are refused.

輸入參數url必填max_claims

check_claim

Check one claim

Checks a single claim against the addresses given (and a web search, when the server has one set). Write the claim so it stands alone, with its names, figures and dates. Each claim gets a verdict: supported or contradicted (always with the source address and the exact passage quoted from a page that was fetched), no_source_found, or not_checkable (opinion, advice, prediction, private or vague), with one sentence on why. A model's own knowledge is never used as a source.

輸入參數claim必填sources

版本歷史

1
  1. v0.1.0最新Nov 23, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Check 整合