Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Pubmed Database

ASecurity

Use when searching biomedical literature via PubMed or NCBI E-utilities — MeSH queries, PMID lookup, abstract/citation retrieval, or API-backed literature monitoring. Covers PubMed field tags, publication-type and date filters, MeSH subheading syntax, and the E-utilities REST endpoints with a working Python request pattern.

2 stars
0 votes
0 copies
0 views
Added 9/19/2026
ai-agentspythongoapidatabasedocumentation

Works with

cliapi

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add Mixard/fable-pack --skill pubmed-database --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pubmed Database?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Pubmed Database
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mixard-pubmed-database/badge)](https://www.skillsdirectory.com/skills/mixard-pubmed-database)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: pubmed-database
description: Use when searching biomedical literature via PubMed or NCBI E-utilities — MeSH queries, PMID lookup, abstract/citation retrieval, or API-backed literature monitoring. Covers PubMed field tags, publication-type and date filters, MeSH subheading syntax, and the E-utilities REST endpoints with a working Python request pattern.
---

# PubMed Database

## Query Construction

Combine concepts with Boolean operators (`AND`, `OR`, `NOT`).

### PubMed field tags

- `[ti]`: title
- `[ab]`: abstract
- `[tiab]`: title or abstract
- `[au]`: author
- `[ta]`: journal title abbreviation
- `[mh]`: MeSH term
- `[majr]`: major MeSH topic
- `[pt]`: publication type
- `[dp]`: date of publication
- `[la]`: language
- `[nm]`: substance name

Examples:

```text
diabetes mellitus[mh] AND treatment[tiab] AND systematic review[pt] AND 2023:2026[dp]
(metformin[nm] OR insulin[nm]) AND diabetes mellitus, type 2[mh] AND randomized controlled trial[pt]
smith ja[au] AND cancer[tiab] AND 2026[dp] AND english[la]
```

## MeSH and Subheadings

Prefer MeSH when the concept has a stable controlled-vocabulary term. Combine MeSH with title/abstract terms when the topic is new or terminology varies.

Correct subheading syntax puts the subheading before the field tag:

```text
diabetes mellitus, type 2/drug therapy[mh]
cardiovascular diseases/prevention & control[mh]
```

Use `[majr]` only when the topic must be central to the paper — improves precision but may miss relevant work.

## Filters

Publication types:

```text
clinical trial[pt]
meta-analysis[pt]
randomized controlled trial[pt]
review[pt]
systematic review[pt]
guideline[pt]
```

Date filters:

```text
2026[dp]
2020:2026[dp]
2026/03/15[dp]
```

Availability filters:

```text
free full text[sb]
hasabstract[text]
```

## E-utilities Workflow

Base URL: `https://eutils.ncbi.nlm.nih.gov/entrez/eutils`

1. `esearch.fcgi`: search and return PMIDs
2. `esummary.fcgi`: return lightweight article metadata
3. `efetch.fcgi`: fetch abstracts or full records in XML, MEDLINE, or text
4. `elink.fcgi`: find related articles and linked resources

Provide `email` and, for higher rate limits, `api_key`. Store API keys in environment variables. Default rate limit is 3 requests/sec without a key, 10/sec with one.

```python
import os, time, requests

BASE = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils"

def esearch(query: str, retmax: int = 20) -> list[str]:
    params = {
        "db": "pubmed",
        "term": query,
        "retmode": "json",
        "retmax": retmax,
        "tool": "my-pubmed-search",
        "email": os.environ.get("NCBI_EMAIL", ""),
    }
    api_key = os.environ.get("NCBI_API_KEY")
    if api_key:
        params["api_key"] = api_key

    response = requests.get(f"{BASE}/esearch.fcgi", params=params, timeout=30)
    response.raise_for_status()
    time.sleep(0.35)  # respect rate limit
    return response.json()["esearchresult"]["idlist"]

pmids = esearch("hypertension[mh] AND randomized controlled trial[pt] AND 2024:2026[dp]")
```

For batches, prefer NCBI history-server parameters (`usehistory=y`, `WebEnv`, `query_key`) instead of passing very long PMID lists through URLs.

## References

- PubMed help: https://pubmed.ncbi.nlm.nih.gov/help/
- NCBI E-utilities documentation: https://www.ncbi.nlm.nih.gov/books/NBK25501/
- NCBI API key guidance: https://support.nlm.nih.gov/kbArticle/?pn=KA-05317

Attribution

MixardMixard
View sourceMore from Mixard →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →