extract-claims
БесплатноБез исполняемых скриптовНе проверенExtract the atomic, source-anchored claims a deep research report, dismech or gene-review file, or YAML/JSON document makes, with `claims extract`. Use to…
от monarch-initiative★ 20 звёзд на GitHubОб этом скилле
extract-claims
Turn a source into a claim set: one atomic assertion per claim, each tied back to the passage that states it, with the citations the source attaches to it. Extraction records what the source says. It does not judge whether a claim is true.
The full reference is docs/how-to/extract-claims.md. This skill is the
working procedure.
When to Use
- "What does this report claim?" / "Pull the claims out of report.md"
- Decomposing a deep research report into claims for comparison with another source or with a curated file
- Turning a dismech disease file or an ai-gene-review file into the same claim format
- Any YAML/JSON document with prose fields whose statements should be listed
To read or audit a claim set that already exists, use review-claim-set.
Step 1: Decide whether a model is needed
| Source | --format (auto-detected) |
Model? |
|---|---|---|
Markdown report (.md) |
markdown |
Yes |
dismech file (disease_term or pathophysiology key) |
dismech |
No |
ai-gene-review file (existing_annotations or core_functions key) |
gene-review |
No |
| Other YAML/JSON | structured |
Yes |
Curated files map record by record, with no model and no key. Skip to Step 3.
Step 2: Choose the model backend
Check what is available rather than asking, then say which one you used:
# Claude Code: no API key; a free probe, no model call
uv run deep-research-client providers --check --provider claude_code
# OpenAI-compatible: needs a key
test -n "$OPENAI_API_KEY" && echo "OpenAI key set"
| Situation | Backend |
|---|---|
claude_code: OK |
--llm-backend claude-code (default model sonnet; --llm-model opus, haiku or a full id) |
| An OpenAI key is set | the default openai backend (default model gpt-4o-mini) |
| CBORG or a local server | --llm-base-url URL --llm-api-key-env VAR --llm-model NAME |
| Neither | Tell the user; only curated files can be extracted |
If both work and the user has not said, prefer the one they have been using in the session. Ask only if nothing points either way.
Step 3: Run it
# A report, through a logged-in Claude Code
uv run deep-research-client claims extract report.md -o report.claims.json \
--llm-backend claude-code
# A report, through OpenAI
uv run deep-research-client claims extract report.md -o report.claims.json
# A curated file: no model
uv run deep-research-client claims extract Marfan_Syndrome.yaml -o marfan.claims.yaml
-opicks the format by suffix:.yaml/.ymlis YAML, anything else JSON. Without-o, the JSON claim set is the only thing on stdout.- Warnings and errors go to stderr. Read them; they are part of the result.
- Name the output after the source (
<source>.claims.json) unless told otherwise. - A report written with
research --separate-citationskeeps its citation list in a file of its own.claims extractfinds<report>.citations.mdor<report>.md.citations.md(dismech's name) beside the report; for any other name pass--citations PATH. Without it, that report's[n]markers resolve to nothing.
Time. With Claude Code each section is one claude process: a 14 KB report
took about 1.5 minutes, a 64 KB report of 64 sections about 4 to 5 minutes, at
the default --concurrency 4. Run long reports in the background.
Long sections. A reply cut off at --llm-max-tokens (default 4096) is an
error, never a shorter list. Reports that list many papers, such as Asta's,
need more: start them at --llm-max-tokens 16000.
Step 4: Read the warnings
| stderr says | Meaning | Do |
|---|---|---|
N of M claims could not be found in the source ... UNANCHORED |
The model's quote is not in the source. The claim is kept with no span | Report the count. These are not the source's claims |
K have a nearest_passage |
The closest sentence to each failed quote was found | Use review-claim-set to see them; they explain the miss |
claims are marked as background knowledge but carry a citation (...) |
The model's basis and the citation it attached disagree |
Report the sections named; the code cannot tell which answer is wrong |
Step 5: If it fails
| Error | Fix |
|---|---|
was cut off at max_tokens=N |
Re-run with a larger --llm-max-tokens (16000, then 32000) |
holds no readable claims list |
The reply was not JSON. Re-run; if it repeats, try another model |
OPENAI_API_KEY is not set |
Use --llm-backend claude-code, or set the key |
needs the \claude` CLI on PATH` |
Claude Code is not installed here; use the openai backend |
claude_code: ... Try: \deep-research-client providers --check ...`` |
Logged out, usage limit, or overloaded. Run the check it names and report the result |
429 ... credit_balance_exhausted (from OpenAI) |
The key has no credits. Switch to --llm-backend claude-code |
Cannot read X as 'fmt' / Could not parse X |
Wrong --format, or malformed YAML/JSON |
Never retry
Установить extract-claims в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл extract-claims?
Extract the atomic, source-anchored claims a deep research report, dismech or gene-review file, or YAML/JSON document makes, with `claims extract`. Use to decompose a source into claims.
Как установить скилл extract-claims?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл extract-claims запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic