Reference search

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

Reference search is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Multi-database literature search and search-strategy design that outputs structured, reproducible result lists; use when you need reference retrieval, systematic searching, review topic selection, or to construct a traceable search strategy.

How to use this skill

Skill file

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

Reference Search

When to Use

Key Features

Dependencies

Example Usage

cd "20260316/scientific-skills/Evidence Insight/reference-search"
python -m py_compile scripts/pubmed_search.py
python scripts/pubmed_search.py --help

Example run plan:

  1. Confirm the user input, output path, and any required config values.
  2. Edit the in-file CONFIG block or documented parameters if the script uses fixed settings.
  3. Run python scripts/pubmed_search.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

1. When to Use

Use this skill in the following scenarios:

  1. Systematic or scoping reviews where you must document a reproducible search strategy and export structured results.
  2. Rapid evidence retrieval for a research question, with quick export to CSV/JSON for screening.
  3. Search strategy construction (keywords, synonyms, Boolean logic, field restrictions) before running searches at scale.
  4. Review topic selection by exploring the volume and distribution of literature for candidate topics.
  5. Traceable search logging when you need to record search date, query string, and result counts for auditability.

2. Key Features

3. Dependencies

| Dependency | Version | Notes |

|---|---:|---|

| Python | 3.10+ | Uses Python standard library only (no third-party packages). |

4. Example Usage

Run the PubMed search script

cd skills/reference-search
python scripts/pubmed_search.py

Configure the script

Edit the CONFIG section in scripts/pubmed_search.py:

from pathlib import Path

CONFIG = {
    "EMAIL": "your_email@example.com",          # Required (must be provided by the user)
    "API_KEY": "",                               # Optional (can increase rate limits)
    "RETMAX": 20,                                # Max number of records to return
    "OUTPUT_DIR": Path("outputs/pubmed_search"), # Allowed output directory
}

Example output (JSON)

{
  "query": "\"Cancer cachexia\"[Title] AND cachexia[Title/Abstract] AND pancreatic[Title/Abstract]",
  "keywords": ["cachexia", "pancreatic", "cancer", "weight", "muscle", "atrophy", "mortality", "treatment"],
  "count": 20,
  "records": [
    {
      "pmid": "36280389",
      "title": "Role of noncoding RNAs in pancreatic ductal adenocarcinoma associated cachexia.",
      "journal": "Journal of Cachexia, Sarcopenia and Muscle",
      "pubdate": "2022",
      "authors": "Wang X, Li Y, Zhang S"
    }
  ]
}

5. Implementation Details

Supported databases and endpoints

Search workflow (recommended)

  1. Define requirements and scope
  1. Design the search strategy
  1. Execute and export
  1. Record for reproducibility

Configuration parameters

Security, compliance, and access constraints

Included assets and references (in-repo)

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.