Reference finder

From aipoch/medical-research-skills · View interactive version

Reference finder is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Automatically finds and ranks PubMed references for each sentence in scientific text; use when you need titles, DOIs, and brief recommendation reasons from the PubMed E-utilities API.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

When to Use

Key Features

Dependencies

Example Usage

Python (direct call)

from reference_finder import find_references

text = "CRISPR-Cas9 gene editing has revolutionized biomedical research."

results = find_references(text)

for ref in results[:3]:
    print(f"- {ref['title']} ({ref['year']})")
    print(f"  DOI: {ref['doi']}")
    print(f"  PMID: {ref['pmid']}")
    print(f"  Reason: {ref['reason']}")

CLI (single input)

python scripts/find_refs.py "CRISPR-Cas9 gene editing has revolutionized biomedical research."

CLI (interactive mode)

python scripts/find_refs.py

Example output (JSON)

[
  {
    "pmid": "PMID:",
    "title": "A Programmable Dual-RNA-Guided DNA Endonuclease in Vitro",
    "doi": "10.1126/science.1225829",
    "year": 2012,
    "reason": "Highest keyword match for 'CRISPR-Cas9', foundational paper"
  }
]

Implementation Details

Data flow

  1. Sentence splitting: The input text is split into sentences (implementation-defined; typically punctuation-based).
  2. PubMed search (ESearch): For each sentence, a query is sent to:
  1. Record retrieval (EFetch): The top candidate PMIDs are fetched via:
  1. Field extraction: Title, year, PMID, and DOI (when present) are extracted from the returned metadata.
  2. Ranking and selection: Candidates are scored and the top N are returned with a short recommendation reason.

Ranking signals

Operational constraints and safety

Defaults

Related project files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.