Command Palette

Search for a command to run...

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

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от 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
  • -o picks the format by suffix: .yaml/.yml is 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-citations keeps its citation list in a file of its own. claims extract finds <report>.citations.md or <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

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

Установить 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), без исполняемых скриптов.

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

Сравнить extract-claims с