pubmed-database
Search PubMed for scientific literature, including published clinical trials.
Skill by MarceloClaro
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/marceloclaro-pubmed-database
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/pubmed-database
What's inside
- Skill name
pubmed-database- Description
- Search PubMed for scientific literature, including published clinical trials. Fetch abstracts and full text. Link published research to biological databases (gene, protein, nucleotide, PubChem) to discover associations between papers and specific compounds or genes. Verify medical spelling, match raw citations, and cache result sets for bulk processing. Interfaces NCBI E-utilities and PMC BioC APIs.
- License
- MIT
- Instructions
- 190 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "pubmed-database" does not match folder "pubmed_database"
- files: referenced but missing: scripts/pubmed_api.py, references/search-and-discovery.md, references/fetch-and-resolve.md, references/cross-database-linking.md, references/bulk-workflows.md
- body: contains an absolute path from the author's machine
Files (1)
- SKILL.md
SKILL.md (first lines)
# PubMed API
## Prerequisites
1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure
`uv` is installed and on PATH.
2. **User Notification**: If LICENSE_NOTIFICATION.txt does not already exist in
this skill directory then (1) prominently notify the user to check the terms
at https://pubmed.ncbi.nlm.nih.gov/disclaimer/ and
https://www.ncbi.nlm.nih.gov/home/about/policies/ and to always check the
license of the papers retrieved by the skill for any restrictions, then (2)
create the file recording the notification text and timestamp.
3. **`.env` file**: Make sure the `.env` file exists in your home directory.
Create one if it does not exist.
4. **`NCBI_API_KEY`** (optional): Raises the NCBI E-utilities rate limit from 3
to 10 requests/second. The skill works without it, but a key is recommended
if the user plans many queries or encounters a 429 error. The user can
obtain one for free by registering at
https://www.ncbi.nlm.nih.gov/account/settings/
5. **`USER_EMAIL`** (optional but recommended): Identifies the caller to NCBI
(recommended by their Terms of Use).
If the variables are missing from `.env`, do NOT ask the user to paste them into
the chat (this would leak keys into the agent's context). Instead, give the user
these commands — **substituting `ENV_FILE` with the resolved literal path to the
`.env` file**:
```bash
printf "Enter NCBI API key (typing hidden): " && read -s key && echo && echo "NCBI_API_KEY=$key" >> "ENV_FILE" && echo "Saved."
```
```bash
printf "Enter contact email: " && read email && echo "USER_EMAIL=$email" >> "ENV_FILE" && echo "Saved."
```
The scripts load credentials automatically via `dotenv`. **NEVER** read,
print, or inspect the `.env` file or its variables (e.g. no `cat`, `grep`,
`echo`, `printenv`, or `os.environ.get` on keys). Credentials must stay
out of the agent's context.
This skill provides CLI access to the NCBI PubMed and PubMed Central APIs via
`scripts/pubmed_api.py` — a single CLI with 10 functions covering search, fetch,
linking, full text, spelling, discovery, citation matching, and caching.
## Core Rules
- **API Use**: Always use the provided wrapper `scripts/pubmed_api.py` which
manages rate limits automatically and prevents API abuse. Setting the
`NCBI_API_KEY` environment variable raises the rate limit from 3 to 10
requests/second. Querying the API any other way (e.g. via curl, wget, or
hand-written code) is strictly forbidden.
- **JSON Processing**: Use `jq` to filter and transform JSON output (or python
equivalents if `jq` is not available) to prevent hallucinations and context
overflow.
- **Temporary Files**: To avoid polluting the working directory with JSON
files, use a temporary directory inside the current directory. When running
multiple agents or tasks in parallel, ensure each uses a unique subdirectory
name (e.g., `tmp_$TASK_ID/`) to avoid file collisions.
- **Notification**: If this skill is used, ensure this is mentioned in the
output AND list the URLs of all papers that were used in producing the
output.
## Structure of the skill folder
- `SKILL.md` - This file
- `scripts/pubmed_api.py` - The skill CLI
- `references/` - Directory with detailed function specifications
- `advanced-linking.md`
- `advanced-search.md`
- `bulk-workflows.md`
- `citation-matching.md`
- `cross-database-linking.md`
- `fetch-and-resolve.md`
- `search-and-discovery.md`
- `utilities.md`
## CLI Usage
```bash
uv run scripts/pubmed_api.py <output_file> <function_name> <required_args> [--flag value ...]
```
- **Positional Arguments**: Arguments are positional; list arguments are
passed as comma-separated strings without spaces (e.g.
`"35113657,31234568"`).
- **Flag Options**: Optional arguments can be passed as `--flag value` instead
of positional args.
- **Output Handling**: On success, JSON is written to `output_file`. On error,
the process exits with a non-zero code and no output file is written.
### Example Usage
```bash
uv run scripts/pubmed_api.py ./search_results.json search_pubmed "BRCA1" --max_results 5
cat ./search_results.json | jq '.[]' -r
uv run scripts/pubmed_api.py ./abstracts.json fetch_article_abstracts "35113657"
cat ./abstracts.json | jq '.[0].title' -r
```
## Essential Recipes
**Join PMIDs for the next call (most common chaining pattern):**
```bash
cat ./search_results.json | jq -r 'join(",")'
```
**Slim abstracts to essential fields and truncate long abstracts:**
```bash
cat ./abstracts.json | jq '[.[] | {pmid, title, snippet: (.abstract // "")[:500]}]'
```
**Filter by keyword (null-safe):**
```bash
cat ./abstracts.json | jq '[.[] | select((.title // "") | contains("Review"))]'
```From MarceloClaro/OpenCode_Ecosystem, MIT.
More from MarceloClaro/OpenCode_Ecosystem
- 0.546score
deploy
MarceloClaro
Checklist e procedimento pré-deploy.
SkillCFreshness: C★ 12Claude Code +9 - 0.545score
nexus-phd-strategist
MarceloClaro
Skill para orquestração de análises de nível PhD, integrando Teoria dos Jogos, 204 tipos de raciocínio (25 categorias) e auditoria Qualis A1.
SkillCFreshness: C★ 12Claude Code +9 - 0.542score
geology-ml-framework
MarceloClaro
Automatiza a criação de frameworks de Machine Learning (Perceptron/Softmax) para Geociências com rigor acadêmico Qualis A1.
SkillCFreshness: C★ 12Claude Code +9 - 0.542score
ecosystem-auditor
MarceloClaro
Automatiza a auditoria, diagnóstico e correção de ecossistemas multiagentes complexos.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
commit
MarceloClaro
Formata e valida mensagens de commit seguindo Conventional Commits.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
publish-pattern
MarceloClaro
Publica padrões reutilizáveis no global-index do claude-memories.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
pr-review
MarceloClaro
Checklist para abrir ou revisar pull request.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
reasoning-orchestrator
MarceloClaro
OpenCode Reasoning Orchestrator (v8.0).
SkillCFreshness: C★ 12Claude Code +9 - 0.540score
foldseek-structural-search
MarceloClaro
Performs 3D structural searches of proteins against various databases (PDB, AlphaFold, CATH, MGnify, etc.) using the Foldseek API.
SkillCFreshness: C★ 12Claude Code +9 - 0.540score
alphafold-database-fetch-and-analyze
MarceloClaro
Retrieve and analyze AlphaFold predicted structures for a protein.
SkillCFreshness: C★ 12Claude Code +9 - 0.540score
bugfix
MarceloClaro
Skill do ecossistema OpenCode - bugfix
SkillCFreshness: C★ 12Claude Code +9 - 0.540score
jaspar-database
MarceloClaro
Query the JASPAR database for Transcription Factor (TF) binding profiles.
SkillCFreshness: C★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Jun 14, 2026 (4 months ago)
- Last release
- May 30, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from MarceloClaro
- 0.546score
deploy
MarceloClaro
Checklist e procedimento pré-deploy.
SkillCFreshness: C★ 12Claude Code +9 - 0.545score
nexus-phd-strategist
MarceloClaro
Skill para orquestração de análises de nível PhD, integrando Teoria dos Jogos, 204 tipos de raciocínio (25 categorias) e auditoria Qualis A1.
SkillCFreshness: C★ 12Claude Code +9 - 0.542score
ecosystem-auditor
MarceloClaro
Automatiza a auditoria, diagnóstico e correção de ecossistemas multiagentes complexos.
SkillCFreshness: C★ 12Claude Code +9 - 0.542score
geology-ml-framework
MarceloClaro
Automatiza a criação de frameworks de Machine Learning (Perceptron/Softmax) para Geociências com rigor acadêmico Qualis A1.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
pr-review
MarceloClaro
Checklist para abrir ou revisar pull request.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
publish-pattern
MarceloClaro
Publica padrões reutilizáveis no global-index do claude-memories.
SkillCFreshness: C★ 12Claude Code +9
Cite this page
pubmed-database skill. Agent Mart. https://agentmart.dev/skills/marceloclaro-pubmed-database (last updated 2026-10-24)