Søger i medRxiv efter medicinske og kliniske forskningspreprints før udgivelse i tidsskrift.
@mikkelkrogsholm
Community-bidragyder
mikkelkrogsholm/skills
Open source repository
Nedenstående er skillens egen dokumentation, hentet fra kildekoderepoet. Ophavsret tilhører forfatteren.
Search and retrieve medical preprints from medRxiv via the free Cold Spring Harbor Laboratory API (api.medrxiv.org). No API key, no signup, no cost. Covers all medRxiv preprints across 51 subject categories.
Invoke this skill when the user wants to:
bun run skills/medrxiv-search/cli/src/cli.ts search --query "<keywords>" [flags]
Key flags:
--query <text> — required — keywords to match in title and abstract--days <n> — date range to search (default: 30; use 7 for speed)--max <n> — maximum results to return (default: 20)--category <name> — filter by medRxiv category (use categories to list)--format json|table|plainThe API does not support keyword search natively. The CLI fetches all papers in the date range and filters locally, ranking by keyword hit count. Use
--days 7for fast searches;--days 90for comprehensive coverage.
bun run skills/medrxiv-search/cli/src/cli.ts doi <doi> [--format json|plain]
Returns all versions of the paper. doi is the raw DOI string, e.g. 10.1101/2024.12.26.24319649.
bun run skills/medrxiv-search/cli/src/cli.ts categories [--format json|plain]
Returns the 51 medRxiv subject categories you can pass to search --category.
Fast search: Use --days 7 to limit the date window and get results quickly. The CLI must paginate through all papers in the range before filtering.
Targeted search: Combine --category with --query to narrow results. For example, to find epidemiology papers about obesity:
bun run skills/medrxiv-search/cli/src/cli.ts search \
--query "obesity prevalence" \
--category "epidemiology" \
--days 30 \
--max 10
DOI workflow: If the user provides or mentions a DOI, go straight to doi — it returns all versions instantly without any date-range fetching.
Category exploration: Use categories first to confirm the exact category name spelling before filtering with --category.
Natural workflow: search → doi
search to find relevant papers and get their DOIsdoi <doi> to get full metadata including all versions of a specific paperbun run skills/medrxiv-search/cli/src/cli.ts search \
--query "COVID vaccine efficacy" \
--days 30 \
--max 10
bun run skills/medrxiv-search/cli/src/cli.ts search \
--query "diabetes" \
--category "epidemiology" \
--days 90 \
--max 20
bun run skills/medrxiv-search/cli/src/cli.ts doi 10.1101/2024.12.26.24319649
bun run skills/medrxiv-search/cli/src/cli.ts categories --format plain
bun run skills/medrxiv-search/cli/src/cli.ts search \
--query "heart failure" \
--days 7 \
--format table
| Format | Best for |
|---|---|
json |
Default — programmatic use, full metadata |
table |
Quick human-readable overviews |
plain |
Reading individual papers or categories |
All errors are written to stderr as { "error": "...", "code": "..." } and the process exits with code 1.
api.medrxiv.org REST API — no credentials requiredurl field gives the direct medRxiv link including version numberpublished field shows the journal DOI if the paper was later published, otherwise "NA"