fetch-preprint-recent
БесплатноБез исполняемых скриптовНе проверенFetches preprints posted to bioRxiv or medRxiv within a given date window, then keyword-filters the results client-side. Wraps the public…
от lyndonkl★ 208 звёзд на GitHubОб этом скилле
fetch-preprint-recent
Fetch preprints from bioRxiv or medRxiv for a date window, normalize the records, and keyword-filter them.
Return contract and cache ownership
Follow the shared literature handoff contract. Return one source envelope with server, records, existing counts, status (complete, partial, or failed), warnings, and fetch_errors. Diagnostics are objects with code, message, and optional record_id/cursor; keep them inside the JSON. A complete retrieval with zero matches is distinct from a failed or capped retrieval. Source records retain server; the search worker maps it to source in the combined result.
Keep absent/blank abstracts as null, match against the title when necessary, and add missing_abstract; do not fabricate text or discard a title match. A failed abstract request additionally makes coverage partial. This skill does not independently cache anything. Only a file-capable caller with actual raw responses and an assigned cache location may persist them; a search-only worker returns records and diagnostics without writes.
Workflow
- [ ] Step 1: Validate inputs (server, from, to, keywords)
- [ ] Step 2: Page through the details endpoint until messages.cursor exhausted
- [ ] Step 3: Normalize each record to the canonical shape
- [ ] Step 4: Dedupe within the window (keep latest version per DOI)
- [ ] Step 5: Keyword-filter on lowercased title + abstract
- [ ] Step 6: Return matched records + a summary (total fetched, total matched, pages fetched)
Step 1 — Validate inputs
Required:
server: one ofbiorxivormedrxiv(the API uses these literal strings)from:YYYY-MM-DD, inclusiveto:YYYY-MM-DD, inclusive, must be ≥fromkeywords: list of strings; may include multi-word phrases; case-insensitive matching
Reject if window > 31 days (the API supports it but you almost never want to dump a month of preprints in one call without a stronger filter — flag and confirm).
Step 2 — Page through the endpoint
The endpoint is:
https://api.biorxiv.org/details/{server}/{from}/{to}/{cursor}
- Start with
cursor=0. - The response shape is:
{ "messages": [{"status": "ok", "interval": "2026-05-04/2026-05-10", "cursor": "0", "count": 100, "total": 327}], "collection": [ { record }, { record }, ... ] } - After consuming
collection, incrementcursorby 100 (the page size is fixed) and refetch untilcursor + count >= total. - Cap pages at 20 (2,000 records) as a safety; if you hit the cap, surface a "window may be over-broad" warning and return what you have.
Use WebFetch with the URL. If WebFetch returns malformed JSON or a 5xx, retry once with a 2-second backoff; on second failure, return partial results with a fetch_errors field listing the failed cursors.
Step 3 — Normalize each record
The API returns fields like doi, title, authors, author_corresponding, author_corresponding_institution, date, version, type, license, category, jatsxml, abstract, published, server. Reduce to:
{
"id": "10.1101/2026.05.07.123456", // doi
"title": "...",
"authors": ["Smith J", "Doe A", ...], // split the API's `authors` string on `;`
"abstract": "...",
"date": "2026-05-07",
"server": "biorxiv", // or "medrxiv"
"version": 1,
"category": "neuroscience", // bioRxiv subject area
"url": "https://www.biorxiv.org/content/10.1101/2026.05.07.123456v1",
"published_doi": null // populated if the preprint has been published; from `published` field
}
URL pattern: https://www.{server}.org/content/{doi}v{version} (no https://doi.org/ redirect — direct to the preprint server keeps the abstract page accessible).
Step 4 — Dedupe within the window
The same DOI can appear with multiple version values if the authors revised mid-window. Keep the highest version per DOI. Drop the rest.
Step 5 — Keyword-filter
For each kept record, check whether any keyword (or phrase) appears in lowercase(title + " " + (abstract or "")). Match logic:
- Multi-word keyword like
"protein language model"→ must appear as a contiguous substring. - Single-word keyword like
"crispr"→ must appear with word boundaries (don't match"crisper"). - OR across all keywords (paper kept if any keyword matches).
Track which keyword(s) matched per paper — downstream paper-relevance-filter will use that signal.
Step 6 — Return
Return a payload like:
{
"server": "biorxiv",
"window": "2026-05-04/2026-05-10",
"fetched_total": 327,
"matched_total": 14,
"pages_fetched": 4,
"status": "complete",
"warnings": [],
"fetch_errors": [],
"records": [ {normalized record + "matched_keywords": [...]} , ... ]
}
A parent may save this normalized envelope for re-use; it is not a raw-response cache. Follow the cache ownership contract above.
Установить fetch-preprint-recent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл fetch-preprint-recent?
Fetches preprints posted to bioRxiv or medRxiv within a given date window, then keyword-filters the results client-side. Wraps the public `api.biorxiv.org/details/{server}/{from}/{to}/{cursor}` endpoint, handles cursor pagination, normalizes records to a stable shape (doi, title, authors, abstract, date, server, version, url), and applies a keyword-OR match against title + abstract. Domain-neutral — usable for any biology / clinical preprint scan, not just one project. Use when user mentions bioRxiv, medRxiv, weekly preprint scan, fetch preprints, last-N-days preprints, or when a literature-scan agent needs structured preprint records.
Как установить скилл fetch-preprint-recent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fetch-preprint-recent запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic