Plan and execute PubMed literature discovery from an initial research idea through final reading outputs. Use when the user is still shaping a topic, needs help turning a vague biological or medical question into searchable PubMed queries, wants interactive query refinement and filter confirmation, or wants to run a local PubMed retrieval, ranking, and HTML reading-list workflow from either a final query string or an existing PubMed Excel export.
Drive the workflow from research intent to readable outputs. Do not assume the user already has a downloaded PubMed table.
Before starting, ensure you have set up your NCBI API key for faster and more reliable PubMed queries:
set NCBI_API_KEY=your_key_hereexport NCBI_API_KEY=your_key_herePUBMED_API_KEY as an alternative nameIf no API key is provided, the tool will work but may be subject to rate limits.
Confirm these items in one compact block before running anything:
If the user has no preference, use these defaults:
abstract/Journal Articlehybrid0.4, IF 0.3, keyword 0.3150Choose one path explicitly.
Use the pipeline script when the user wants the full workflow without first producing a local xlsx.
.\.venv\Scripts\python.exe .github/skills/pubmed-research-assistant/scripts/pubmed_topic_pipeline.py `
--topic "mitophagy crosstalk in septic cardiomyopathy" `
--query "(mitophagy[Title/Abstract] OR mitochondrial autophagy[Title/Abstract]) AND (septic cardiomyopathy[Title/Abstract] OR sepsis-induced cardiac dysfunction[Title/Abstract])" `
--keywords "mitophagy,septic cardiomyopathy,cardiac dysfunction" `
--output-dir "abstract/mitophagy_sepsis" `
--years-back 10 `
--paper-type "Journal Article" `
--max-csa-quartile 1 `
--min-if 10 `
--jcr-path "path/to/JCR_CSA_2025.xlsx" `
--sort-by hybrid
If JCR path is not provided, IF/quartile annotation will be skipped.
Use the post-process script when the retrieval step already exists and only filtering, ranking, or HTML export is needed.
.\.venv\Scripts\python.exe .github/skills/pubmed-research-assistant/scripts/pubmed_postprocess.py `
--input "abstract\example.xlsx" `
--keywords "mitophagy,sepsis,cardiomyocyte" `
--output-dir "abstract/mitophagy_sepsis_processed" `
--years-back 10 `
--max-csa-quartile 1 `
--min-if 10 `
--sort-by hybrid
If the input file does not exist, the script will fail with a clear error message.
Always report exact output paths for:
Prefer saving into abstract/ unless the user specifies otherwise.
Offer or accept prompts like these:
Use $pubmed-research-assistant to turn my idea into two PubMed search strategies.Use $pubmed-research-assistant to narrow this topic and then run the full pipeline.Use $pubmed-research-assistant to re-rank my existing PubMed xlsx by keyword and date.