drpedapati/sciclaw/pubmed-cli
Claude Code and agent skill by drpedapati/sciclaw
- community
Checking that the SKILL.md file is still in the repository.
Search PubMed, fetch article metadata, traverse citation graphs, and look up MeSH terms from the command line. Use when: (1) Searching PubMed with Boolean/MeSH queries, (2) Fetching article details by PMID (abstract, authors, DOI, MeSH terms), (3) Finding papers that cite a given article (cited-by), (4) Finding papers cited by a given article (references), (5) Finding related articles with relevance scores, (6) Looking up MeSH vocabulary (tree numbers, scope notes), (7) Exporting citations in RIS format for Zotero/EndNote, (8) Building reproducible literature review workflows.
Install
npx vskill@latest install drpedapati/sciclaw/pubmed-cliSKILL.md
pubmed-cli
PubMed from your terminal. Search, fetch, cite, traverse — built for humans and AI agents. Zero dependencies, structured JSON, agent-ready.
Install
Binary: /opt/homebrew/bin/pubmed
Verify: pubmed --help
Configuration
Set your NCBI API key for higher rate limits (recommended):
If you're using sciClaw, you can also set this via the sciclaw onboard wizard, or in ~/.picoclaw/config.json:
- Without key: 3 requests/second
- With key: 10 requests/second
- Get a key at: https://www.ncbi.nlm.nih.gov/account/settings/
Commands
search — Query PubMed
Returns: count (total hits), ids (PMIDs), query_translation (how NCBI interpreted the query).
Supports: Boolean operators (AND, OR, NOT), MeSH terms ([MeSH Terms]), field tags ([Title/Abstract], [Author]), wildcards (neoplas*), phrase search ("exact phrase").
fetch — Get article details
Returns per article: pmid, title, abstract, abstract_sections (structured), authors (with affiliations), journal, volume, issue, pages, year, doi, pmcid, mesh_terms (with major topic flags), publication_types.
cited-by — Papers that cite this article
Returns: source_id, links (PMIDs of citing papers).
references — Papers cited by this article
Returns: source_id, links (PMIDs of referenced papers).
related — Similar articles with relevance scores
Returns: source_id, links (PMIDs with score — higher = more similar).
mesh — MeSH vocabulary lookup
Returns: ui (MeSH ID), name, scope_note, tree_numbers, entry_terms (synonyms), annotation.
Output Formats
| Flag | Format | Use case | |
|---|---|---|---|
--json | Structured JSON | Agent parsing, programmatic use | |
--human / -H | Rich terminal tables | Interactive exploration | |
--csv FILE | CSV export | Spreadsheet import, data analysis | |
--ris FILE | RIS citations | Zotero, EndNote, Mendeley import |
Always use --json for agent workflows. The other formats are for human review and export.
Search Modifiers
| Flag | Values | Example | |
|---|---|---|---|
--limit N | Any positive integer (default 20) | --limit 50 | |
--sort | relevance, date, cited | --sort cited | |
--year | YYYY or YYYY-YYYY | --year 2020-2025 | |
--type | review, trial, meta-analysis, randomized, case-report, or custom | --type review |
Workflow: Systematic Literature Search
Workflow: Citation Network Traversal
Workflow: MeSH-Guided Search
Exit Codes
0— success1— user error (invalid flags, bad PMID) or API failure
Error messages are written to stderr with actionable descriptions.
Rate Limiting
Built-in rate limiter respects NCBI guidelines:
- 3 req/s without API key, 10 req/s with key
- Automatic retry on HTTP 429 with exponential backoff
- Respects
Retry-Afterheaders
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pubmed-cli/SKILL.md
Popularity
- Repository stars
- 87
- Repository forks
- 16
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/drpedapati/sciclaw/pubmed-cli)