Agent skill

Reference Retrieval Skill

by aipoch in aipoch/medical-research-skills

Based on user input, directly find relevant literature or automatically construct PubMed Boolean search queries to retrieve and filter references suitable for citation.

MITAuto-check passedResearch & Science

Install Reference Retrieval Skill

skills CLI
$ npx skills add aipoch/medical-research-skills --skill reference-retrieval-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills reference-retrieval-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'scientific-skills/Evidence Insight/reference-retrieval-skill' .claude/skills/reference-retrieval-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
reference-retrieval-skill
GitHub stars
2k
Token cost
~2.1k tokens
SKILL.md length
1,026 words
Files
6 (incl. scripts)
Skills in repo
567
Repo updated
First seen
Licence
MIT

At a glance

Based on user input, directly find relevant literature or automatically construct PubMed Boolean search queries to retrieve and filter references suitable for citation.

  • Works in 4 steps: Construct Boolean Query → Execute Search → Evaluation & Iteration → …
  • Tasks that involve Citation management
  • SKILL.md covers Core Function, Workflow, Important Notes and When to Use, plus 7 more sections
  • Runs Python scripts from its folder; calls python; reaches pubmed.ncbi.nlm.nih.gov

What it does

Reference Retrieval Skill is an agent skill from aipoch/medical-research-skills. Based on user input, directly find relevant literature or automatically construct PubMed Boolean search queries to retrieve and filter references suitable for citation. Applicable for quickly finding high-quality evidence on specific topics and completing reference lists.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts (for example `POLISH_CHANGELOG.md`, `eval_report_reference-retrieval-skill_result.json` and `scripts/litsense_search.py`).

It sits in Research & Science, covering Citation management and Academic paper search. It works with PubMed. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Tasks that involve Citation management
  • Tasks that involve Academic paper search

Example prompts

  • “/reference-retrieval-skill”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Construct Boolean Query
  2. Execute Search
  3. Evaluation & Iteration
  4. Filter & Present

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • pubmed.ncbi.nlm.nih.gov

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Reference Retrieval Skill loads about 2.1k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 1,026 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 1,026 words, ~2,148 tokens.

Download SKILL.mdSave it as .claude/skills/reference-retrieval-skill/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
reference-retrieval-skill
description
Based on user input, directly find relevant literature or automatically construct PubMed Boolean search queries to retrieve and filter references suitable for citation. Applicable for quickly finding high-quality evidence on specific topics and completing reference lists.
license
MIT
author
AIPOCH

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

Reference Retrieval Skill

Core Function

This skill helps users quickly retrieve and filter high-quality, highly relevant references from PubMed based on natural language descriptions.

Workflow

Step 1: Construct Boolean Query
  1. Analyze intent: Understand user semantics, extract core medical keywords (MeSH Terms preferred).
  2. Construct Boolean query:
    • Logical operators: Use AND (intersection), OR (union), NOT (exclusion).
    • Truncation: Use * to match variants (e.g., diagno* matches diagnosis, diagnostic).
    • Example: For "metformin treatment of type 2 diabetes", construct: Metformin AND "Diabetes Mellitus, Type 2" AND (Therapy OR Treatment).

[!TIP] About Escaping: If the query contains double quotes " (e.g., phrase search), you must wrap the entire query in single quotes or escape internal double quotes with \" to avoid command-line parsing errors.

  • Correct: python scripts/pubmed_search.py 'Metformin AND "Type 2 Diabetes"'
  • Correct: python scripts/pubmed_search.py "Metformin AND \"Type 2 Diabetes\""

Prefer LitSense for semantic search; only use PubMed Boolean search when precise control or complex Boolean logic is needed.

Scenario A: Semantic/Natural Language Search (LitSense) [Preferred] Suitable for direct natural language queries or finding literature related to complex statements.

bash
python scripts/litsense_search.py "natural language query"

Scenario B: Basic Boolean Search (PubMed) Suitable when a precise Boolean query has been constructed.

bash
python scripts/pubmed_search.py "YOUR_BOOLEAN_QUERY"
  • --max: Returns 20 articles by default; specify --max 50 for more.
Step 3: Evaluation & Iteration

If initial results are inadequate (too few, low relevance, or empty), must automatically iterate, up to 5 rounds.

  1. Analyze cause:
    • Zero results: Keywords may be misspelled or too specific.
    • Irrelevant results: Keywords are ambiguous or Boolean logic is incorrect.
  2. Refine query:
    • Broaden scope: Remove non-essential AND conditions, add OR synonyms.
    • Narrow scope: Add qualifiers (e.g., diagnosis, therapy), or use field tags [ti].
    • Switch API: If LitSense search fails or lacks precision, try constructing a precise Boolean query for PubMed.
  3. Iterate:
    • Repeat the cycle: modify query, run script, evaluate results.
    • Limit: Maximum 5 retries. If still no satisfactory results after 5 attempts, report tried strategies and request more information from the user.
Step 4: Filter & Present

After the script returns JSON results, filter 3-5 best references based on these criteria:

  1. Selection criteria:

    • Relevance: Title/abstract must directly address the user's question.
    • Article type: Prefer Review, Systematic Review, Meta-Analysis. Then high-quality RCT or Original Article. Never cite Letters, Editorials, or Comments.
    • Recency: Prefer literature from the past 5-10 years (exceptions for classic foundational works).
    • Open Access (OA): If looking for OA/free literature, check for is_oa: true or pmcid field in results, indicating free full text via PMC.
  2. Output format: Present results strictly in the following structure:

    I. Citation Marking Add citation markers at key points in the response content (or in user-provided text).

    • Format example: ...effectively improved prognosis [1]. or ...treatment efficacy [1].
    • Language should match the user's query language.

    II. References List references in citation order, format as follows:

    markdown
    [1] PMID: 34479503 | Title. Journal. https://pubmed.ncbi.nlm.nih.gov/34479503/
    
    Citation rationale: Briefly explain why this reference supports the stated point.
    
    [2] ...

    PubMed link generation rules:

    • Always provide direct link: https://pubmed.ncbi.nlm.nih.gov/{pmid}
    • For example, PMID 34479503 becomes: https://pubmed.ncbi.nlm.nih.gov/34479503

    [!NOTE] Example: [1] The augment of regulatory T cells undermines the efficacy of anti-PD-L1 treatment in cervical cancer. BMC Immunol. https://pubmed.ncbi.nlm.nih.gov/34479503/

Important Notes

  • Accuracy: A query that is too broad yields irrelevant results; too narrow may yield nothing. If results are few, try reducing search terms.
  • Language consistency: Never auto-translate. Summary language must match the user's query language.
  • Search language: Always translate non-English keywords to accurate English medical terms for searching (searches must use English), but present final results matching the user's language.

When to Use

  • Use this skill when the user explicitly needs to perform the core task of reference-retrieval-skill and has provided the minimum executable input.
  • Use this skill when you need a structured deliverable rather than general advice.
  • Use this skill when the current task can be completed using this skill's bundled scripts, templates, or reference materials.
Show full SKILL.md (392 more words)Show less

When Not to Use

  • Do not proceed when required input files, identifiers, parameters, or context are missing — ask the user to provide them first.
  • Do not assume capabilities beyond this skill's declared scope when the user requests external operations or inferences.
  • Do not proceed without user confirmation when overwriting existing results, executing high-cost batch operations, or expanding task scope.

Required Inputs

FieldRequiredFormat/SourceExampleIf Missing
User task descriptionYesTextResearch question, writing goal, analysis objectiveStop and ask user to provide
Primary input materialDepends on taskText, file path, ID, table, or literaturePMID, PDF, CSV, DOCX, keywords, etc.Specify which material type is missing
Output preferenceNoTextLanguage, format, target journal, templateUse skill default format

Output Contract

  • Primary output: Structured result or target file aligned with this skill's objective.
  • Optional output: Intermediate check notes, issue list, supplementary suggestions, or generated file paths.
  • Format requirement: Unless the user specifies otherwise, prefer stable, reviewable Markdown or JSON; if the skill's bundled script requires a fixed format, use that format.
  • If partially complete: Must explicitly mark as PARTIAL and state which steps are completed and which remain.

Failure Handling

  • Missing critical input: Explicitly state which fields, files, or identifiers are missing and pause.
  • Script, template, or resource execution failure: Report the failing step, likely cause, and recovery suggestions — do not silently degrade.
  • Partial completion only: Return the verified portion first, then list remaining blockers and suggested next steps.

User Checkpoints

  • Before executing batch processing, overwriting files, long-running searches, or multi-stage generation, confirm scope and output format with the user.
  • Before proceeding when a key judgment is ambiguous, evidence is insufficient, or the workflow is entering the next stage, confirm with the user.

Input Validation

This skill accepts requests that match the documented purpose of reference-retrieval-skill and include enough context to complete the workflow safely.

Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:

reference-retrieval-skill only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.

Quick Validation

  • Check that key scripts, templates, or reference file paths this skill depends on exist.
  • Check that the final output contains the core fields, sections, or files specified for this task.
  • Check that results clearly mark assumptions, limitations, and incomplete items.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts) in scientific-skills/Evidence Insight/reference-retrieval-skill of aipoch/medical-research-skills.

  • SKILL.md
  • POLISH_CHANGELOG.md
  • eval_report_reference-retrieval-skill_result.json
  • scripts/litsense_search.py
  • scripts/pubmed_search.py
  • scripts/utils.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Reference Retrieval Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Reference Retrieval Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Reference Retrieval Skill this skillaipoch/medical-research-skills2k—~2.1kAutomated safety check: PassMIT
Literature Reviewneflibata-feng/MyArxiv-Agent12621 repos~5.9kAutomated safety check: NotesMIT
Citation ManagementK-Dense-AI/claude-scientific-writer2.4k2 repos~3.9kAutomated safety check: NotesMIT
Citation Managementneflibata-feng/MyArxiv-Agent12620 repos~8.1kAutomated safety check: NotesMIT
Academic Search and Citation RouterYuan1z0825/nature-skills46k—~884Automated safety check: PassApache-2.0
Nature Academic Searchjing1312/nature-figure-skill161—~1.3kAutomated safety check: NotesMIT

Similar skills

  • Literature Review

    neflibata-feng/MyArxiv-Agent

    Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.).

    126 GitHub starsUsed in 21 repos~5.9k tokens
    Research & ScienceAuto-check: notes
  • Citation Management

    K-Dense-AI/claude-scientific-writer

    Finds papers in OpenAlex, PubMed and Google Scholar, turns DOIs, PMIDs and arXiv IDs into clean BibTeX, and validates citations for a manuscript or thesis.

    2.4k GitHub starsUsed in 2 repos~3.9k tokens
    Research & ScienceAuto-check: notes
  • Citation Management

    neflibata-feng/MyArxiv-Agent

    Comprehensive citation management for academic research. An agent skill from neflibata-feng/MyArxiv-Agent.

    126 GitHub starsUsed in 20 repos~8.1k tokens
    Research & ScienceAuto-check: notes
  • Academic Search and Citation Router

    Yuan1z0825/nature-skills

    Finds papers across literature sources, verifies and converts citations, builds MeSH strategies and audits independent citations of a paper.

    46k GitHub stars~884 tokensUpdated today
    Research & ScienceAuto-check passed
  • Nature Academic Search

    jing1312/nature-figure-skill

    Multi-source literature search, citation verification, MeSH search strategy, citation file management (.nbib/.ris/.bib conversion), and reference management (BibTeX, related articles, ID conversion)…

    161 GitHub stars~1.3k tokensUpdated 29 days ago
    Research & ScienceAuto-check: notes
  • Reference Checker

    Liuxiangjian-ai/reference-checker-skill

    Exhaustively verify English and Chinese manuscript references before journal submission.

    138 GitHub stars~5.4k tokensUpdated 4 mo ago
    Research & ScienceAuto-check passed

More from aipoch/medical-research-skills

All 567 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    2k GitHub stars~2.2k tokensUpdated 20 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    2k GitHub stars~1.4k tokensUpdated 20 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    2k GitHub stars~3.7k tokensUpdated 20 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    2k GitHub stars~1.8k tokensUpdated 20 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    2k GitHub stars~1.7k tokensUpdated 20 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    2k GitHub stars~1.3k tokensUpdated 20 days ago
    Auto-check passed

Works with

Questions about Reference Retrieval Skill

What does Reference Retrieval Skill do?

Based on user input, directly find relevant literature or automatically construct PubMed Boolean search queries to retrieve and filter references suitable for citation. Reference Retrieval Skill is an agent skill from aipoch/medical-research-skills. Based on user input, directly find relevant literature or automatically construct PubMed Boolean search queries to retrieve and filter references suitable for citation.

When should I use Reference Retrieval Skill?

Reference Retrieval Skill fits situations like: tasks that involve Citation management; tasks that involve Academic paper search.

How do I install Reference Retrieval Skill in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill reference-retrieval-skill -a claude-code`. Or copy the skill folder (scientific-skills/Evidence Insight/reference-retrieval-skill in aipoch/medical-research-skills) into .claude/skills/reference-retrieval-skill in your project. Claude Code loads it when a task matches its description.

How do I install Reference Retrieval Skill in Codex?

Run `npx skills add aipoch/medical-research-skills --skill reference-retrieval-skill -a codex`. Or copy the skill folder (scientific-skills/Evidence Insight/reference-retrieval-skill in aipoch/medical-research-skills) into .agents/skills/reference-retrieval-skill in your project. Codex loads it when a task matches its description.

Can I use Reference Retrieval Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill reference-retrieval-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/reference-retrieval-skill, .gemini/skills/reference-retrieval-skill, .github/skills/reference-retrieval-skill and .opencode/skills/reference-retrieval-skill in your project.

What does Reference Retrieval Skill need to run?

Going by SKILL.md and its folder, Reference Retrieval Skill needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Reference Retrieval Skill access the network?

SKILL.md names 1 domain. In commands or code: pubmed.ncbi.nlm.nih.gov; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Reference Retrieval Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Reference Retrieval Skill use?

Reference Retrieval Skill is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Reference Retrieval Skill use?

About 2.1k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Reference Retrieval Skill?

Skills that share tags, products or a category with Reference Retrieval Skill: Literature Review (neflibata-feng/MyArxiv-Agent, 126 stars), Citation Management (K-Dense-AI/claude-scientific-writer, 2.4k stars), Citation Management (neflibata-feng/MyArxiv-Agent, 126 stars) and Academic Search and Citation Router (Yuan1z0825/nature-skills, 46k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Reference Retrieval Skill?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,973 GitHub stars. The repository holds 567 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.