[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73HZVF1JKGSMNQQPRFFZKJH":3,"skill-same:01M73HZVF1JKGSMNQQPRFFZKJH":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M73HZVF1JKGSMNQQPRFFZKJH","pubmed-database",null,"Programmatic PubMed access via NCBI E-utilities REST API. Covers Boolean\u002FMeSH queries, field-tagged search, endpoints (ESearch, EFetch, ESummary, EPost, ELink), history server for batches, citation matching, systematic review strategies. Use for biomedical literature search or automated pipelines.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"CC-BY-4.0","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fpubmed-database\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: pubmed-database\ndescription: \"Programmatic PubMed access via NCBI E-utilities REST API. Covers Boolean\u002FMeSH queries, field-tagged search, endpoints (ESearch, EFetch, ESummary, EPost, ELink), history server for batches, citation matching, systematic review strategies. Use for biomedical literature search or automated pipelines.\"\nlicense: CC-BY-4.0\n---\n\n# PubMed Database\n\n## Overview\n\nPubMed is the U.S. National Library of Medicine's database providing free access to 36M+ biomedical citations from MEDLINE and life sciences journals. This skill covers programmatic access via the E-utilities REST API and advanced search query construction using Boolean operators, MeSH terms, and field tags.\n\n## When to Use\n\n- Searching biomedical literature with structured Boolean\u002FMeSH queries\n- Building automated literature monitoring or extraction pipelines\n- Conducting systematic literature reviews or meta-analyses\n- Retrieving article metadata, abstracts, or citation information by PMID\u002FDOI\n- Finding related articles or exploring citation networks programmatically\n- Batch processing large sets of PubMed records\n- For Python-native PubMed access, prefer BioPython (`Bio.Entrez`) — this skill covers direct REST API usage\n- For broader academic search (non-biomedical), use OpenAlex or Semantic Scholar APIs\n\n## Prerequisites\n\n```bash\npip install requests  # HTTP client for E-utilities API\n# Optional: pip install biopython  — Bio.Entrez wrapper (higher-level API)\n```\n\n**API Rate Limits**:\n- Without API key: **3 requests\u002Fsecond**\n- With API key: **10 requests\u002Fsecond** (register at https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Faccount\u002F)\n- Always include `User-Agent` header with contact email\n\n## Quick Start\n\n```python\nimport requests\nimport time\n\nBASE_URL = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002F\"\nAPI_KEY = \"YOUR_API_KEY\"  # Optional but recommended\n\ndef pubmed_request(endpoint, params):\n    \"\"\"Reusable helper for E-utilities API calls with rate limiting.\"\"\"\n    params.setdefault(\"api_key\", API_KEY)\n    response = requests.get(f\"{BASE_URL}{endpoint}\", params=params)\n    response.raise_for_status()\n    time.sleep(0.1 if API_KEY != \"YOUR_API_KEY\" else 0.34)  # Rate limit\n    return response\n\n# Search → Fetch workflow\nsearch_resp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\", \"term\": \"CRISPR[tiab] AND 2024[dp]\",\n    \"retmax\": 5, \"retmode\": \"json\"\n})\npmids = search_resp.json()[\"esearchresult\"][\"idlist\"]\nprint(f\"Found {len(pmids)} articles: {pmids}\")\n\nfetch_resp = pubmed_request(\"efetch.fcgi\", {\n    \"db\": \"pubmed\", \"id\": \",\".join(pmids),\n    \"rettype\": \"abstract\", \"retmode\": \"text\"\n})\nprint(fetch_resp.text[:500])\n```\n\n## Core API\n\n### 1. Search Query Construction\n\nBuild PubMed queries using Boolean operators, field tags, and MeSH terms.\n\n```python\n# Boolean operators: AND, OR, NOT (must be uppercase)\nqueries = {\n    \"basic\": \"diabetes AND treatment AND 2024[dp]\",\n    \"synonyms\": \"(metformin OR insulin) AND type 2 diabetes\",\n    \"exclude\": \"cancer NOT review[pt]\",\n    \"phrase\": '\"gene expression\" AND RNA-seq',\n    \"field_tags\": \"smith ja[au] AND cancer[tiab] AND 2023[dp]\",\n}\n\n# Common field tags:\n# [tiab] = title\u002Fabstract    [au] = author       [mh] = MeSH term\n# [pt]   = publication type   [dp] = date          [ta] = journal\n# [1au]  = first author       [lastau] = last author\n# [affil] = affiliation       [doi] = DOI          [pmid] = PubMed ID\n\n# Date filtering\ndate_queries = {\n    \"single_year\": \"cancer AND 2024[dp]\",\n    \"range\": \"cancer AND 2020:2024[dp]\",\n    \"specific\": \"cancer AND 2024\u002F03\u002F15[dp]\",\n}\n```\n\n```python\n# MeSH terms — controlled vocabulary for precise searching\nmesh_queries = {\n    # [mh] includes narrower terms automatically\n    \"broad\": \"diabetes mellitus[mh]\",\n    # [majr] limits to major topic focus\n    \"focused\": \"diabetes mellitus[majr]\",\n    # MeSH + subheading\n    \"therapy\": \"diabetes mellitus, type 2[mh]\u002Fdrug therapy\",\n    # Substance name\n    \"drug\": \"metformin[nm] AND diabetes mellitus[mh]\",\n}\n\n# Common MeSH subheadings:\n# \u002Fdiagnosis  \u002Fdrug therapy  \u002Fepidemiology  \u002Fetiology\n# \u002Fprevention & control  \u002Ftherapy  \u002Fgenetics\n```\n\n### 2. ESearch — Search and Retrieve PMIDs\n\n```python\n# Basic search\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\",\n    \"term\": \"CRISPR[tiab] AND genome editing[tiab] AND 2024[dp]\",\n    \"retmax\": 100,\n    \"retmode\": \"json\",\n    \"sort\": \"relevance\",  # or \"pub_date\", \"first_author\"\n})\nresult = resp.json()[\"esearchresult\"]\npmids = result[\"idlist\"]\ntotal = result[\"count\"]\nprint(f\"Total hits: {total}, Retrieved: {len(pmids)}\")\n\n# With history server (for large result sets > 500)\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\",\n    \"term\": \"cancer AND 2024[dp]\",\n    \"usehistory\": \"y\",\n    \"retmode\": \"json\",\n})\nresult = resp.json()[\"esearchresult\"]\nwebenv = result[\"webenv\"]\nquery_key = result[\"querykey\"]\ntotal = int(result[\"count\"])\nprint(f\"Stored {total} results on history server\")\n```\n\n### 3. EFetch — Download Full Records\n\n```python\n# Fetch abstracts as text\nresp = pubmed_request(\"efetch.fcgi\", {\n    \"db\": \"pubmed\",\n    \"id\": \",\".join(pmids[:10]),\n    \"rettype\": \"abstract\",\n    \"retmode\": \"text\",\n})\nprint(resp.text[:500])\n\n# Fetch XML for structured parsing\nresp = pubmed_request(\"efetch.fcgi\", {\n    \"db\": \"pubmed\",\n    \"id\": \",\".join(pmids[:10]),\n    \"rettype\": \"xml\",\n    \"retmode\": \"xml\",\n})\n\n# Fetch from history server (batch processing)\nbatch_size = 500\nfor start in range(0, total, batch_size):\n    resp = pubmed_request(\"efetch.fcgi\", {\n        \"db\": \"pubmed\",\n        \"query_key\": query_key,\n        \"WebEnv\": webenv,\n        \"retstart\": start,\n        \"retmax\": batch_size,\n        \"rettype\": \"xml\",\n        \"retmode\": \"xml\",\n    })\n    print(f\"Fetched records {start}–{start + batch_size}\")\n    time.sleep(0.5)  # Extra delay for large batches\n```\n\n### 4. ESummary and ELink — Summaries and Related Articles\n\n```python\n# ESummary — lightweight document summaries\nresp = pubmed_request(\"esummary.fcgi\", {\n    \"db\": \"pubmed\",\n    \"id\": \",\".join(pmids[:5]),\n    \"retmode\": \"json\",\n})\nfor uid, data in resp.json()[\"result\"].items():\n    if uid == \"uids\":\n        continue\n    print(f\"PMID {uid}: {data.get('title', '')[:80]}\")\n    print(f\"  Journal: {data.get('fulljournalname', '')}, \"\n          f\"Date: {data.get('pubdate', '')}\")\n\n# ELink — find related articles\nresp = pubmed_request(\"elink.fcgi\", {\n    \"dbfrom\": \"pubmed\",\n    \"db\": \"pubmed\",\n    \"id\": pmids[0],\n    \"cmd\": \"neighbor\",\n    \"retmode\": \"json\",\n})\n# Links to other NCBI databases\nresp = pubmed_request(\"elink.fcgi\", {\n    \"dbfrom\": \"pubmed\",\n    \"db\": \"pmc\",  # PubMed Central\n    \"id\": pmids[0],\n    \"retmode\": \"json\",\n})\n```\n\n### 5. Citation Matching and Identifier Lookup\n\n```python\n# Search by identifiers\nid_queries = {\n    \"pmid\": \"12345678[pmid]\",\n    \"doi\": \"10.1056\u002FNEJMoa123456[doi]\",\n    \"pmc\": \"PMC123456[pmc]\",\n}\n\n# ECitMatch — match partial citations to PMIDs\n# Format: journal|year|volume|first_page|author_name|key|\ncitation = \"Science|2008|320|5880|1185|key1|\"\nresp = pubmed_request(\"ecitmatch.cgi\", {\n    \"db\": \"pubmed\",\n    \"rettype\": \"xml\",\n    \"bdata\": citation,\n})\nprint(f\"Matched PMID: {resp.text.strip()}\")\n\n# Batch citation matching\ncitations = [\n    \"Nature|2020|580|7801|71|ref1|\",\n    \"Science|2019|366|6463|347|ref2|\",\n]\nresp = pubmed_request(\"ecitmatch.cgi\", {\n    \"db\": \"pubmed\",\n    \"rettype\": \"xml\",\n    \"bdata\": \"\\r\".join(citations),\n})\n```\n\n### 6. Publication Filtering\n\n```python\n# Filter by publication type\ntype_filters = {\n    \"rcts\": \"randomized controlled trial[pt]\",\n    \"reviews\": \"systematic review[pt]\",\n    \"meta\": \"meta-analysis[pt]\",\n    \"guidelines\": \"guideline[pt]\",\n    \"case_reports\": \"case reports[pt]\",\n}\n\n# Filter by text availability\navailability = {\n    \"free_text\": \"free full text[sb]\",\n    \"has_abstract\": \"hasabstract[text]\",\n}\n\n# Combine filters\nquery = (\n    \"diabetes mellitus[mh] AND \"\n    \"randomized controlled trial[pt] AND \"\n    \"2023:2024[dp] AND \"\n    \"free full text[sb] AND \"\n    \"english[la]\"\n)\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\", \"term\": query, \"retmax\": 100, \"retmode\": \"json\"\n})\nprint(f\"Free RCTs on diabetes (2023-2024): {resp.json()['esearchresult']['count']}\")\n```\n\n## Key Concepts\n\n### E-utilities Endpoint Summary\n\n| Endpoint | Purpose | Key Parameters |\n|----------|---------|----------------|\n| `esearch.fcgi` | Search, return PMIDs | `term`, `retmax`, `sort`, `usehistory` |\n| `efetch.fcgi` | Download full records | `id`\u002F`query_key`+`WebEnv`, `rettype`, `retmode` |\n| `esummary.fcgi` | Lightweight summaries | `id`, `retmode` |\n| `epost.fcgi` | Upload UIDs to server | `id` (comma-separated) |\n| `elink.fcgi` | Related articles, cross-DB | `id`, `dbfrom`, `db`, `cmd` |\n| `einfo.fcgi` | List databases\u002Ffields | `db` (optional) |\n| `egquery.fcgi` | Count hits across DBs | `term` |\n| `espell.fcgi` | Spelling suggestions | `term` |\n| `ecitmatch.cgi` | Match citations to PMIDs | `bdata` |\n\n### History Server Pattern\n\nFor result sets >500 articles, use the history server to avoid URL length limits:\n\n1. **ESearch** with `usehistory=y` → returns `WebEnv` + `QueryKey`\n2. **EFetch** in batches using `WebEnv` + `QueryKey` + `retstart`\u002F`retmax`\n3. **EPost** to upload additional PMIDs to the same `WebEnv`\n\n### Automatic Term Mapping (ATM)\n\nWhen no field tag is specified, PubMed maps terms through: MeSH Translation Table → Journals Translation Table → Author Index → Full Text. Bypass ATM with explicit field tags or quoted phrases.\n\n### Common MeSH Subheadings\n\n| Subheading | Abbreviation | Use |\n|------------|-------------|-----|\n| \u002Fdiagnosis | \u002FDI | Diagnostic methods |\n| \u002Fdrug therapy | \u002FDT | Pharmaceutical treatment |\n| \u002Fepidemiology | \u002FEP | Disease patterns |\n| \u002Fetiology | \u002FET | Disease causes |\n| \u002Fgenetics | \u002FGE | Genetic aspects |\n| \u002Fprevention & control | \u002FPC | Preventive measures |\n| \u002Ftherapy | \u002FTH | Treatment approaches |\n\n## Common Workflows\n\n### Workflow 1: Systematic Review Search\n\n```python\nimport requests, time, json\n\n# 1. Define PICO-structured query\nquery = (\n    # Population\n    \"(diabetes mellitus, type 2[mh] OR type 2 diabetes[tiab]) AND \"\n    # Intervention + Comparison\n    \"(metformin[nm] OR lifestyle modification[tiab]) AND \"\n    # Outcome\n    \"(glycemic control[tiab] OR HbA1c[tiab]) AND \"\n    # Study design filter\n    \"(randomized controlled trial[pt] OR systematic review[pt]) AND \"\n    # Date range\n    \"2020:2024[dp]\"\n)\n\n# 2. Search with history server\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\", \"term\": query,\n    \"usehistory\": \"y\", \"retmode\": \"json\"\n})\nresult = resp.json()[\"esearchresult\"]\ntotal = int(result[\"count\"])\nprint(f\"Systematic review hits: {total}\")\n\n# 3. Batch fetch all results as XML\nimport xml.etree.ElementTree as ET\narticles = []\nfor start in range(0, total, 200):\n    resp = pubmed_request(\"efetch.fcgi\", {\n        \"db\": \"pubmed\", \"query_key\": result[\"querykey\"],\n        \"WebEnv\": result[\"webenv\"],\n        \"retstart\": start, \"retmax\": 200,\n        \"rettype\": \"xml\", \"retmode\": \"xml\"\n    })\n    root = ET.fromstring(resp.text)\n    for article in root.findall('.\u002F\u002FPubmedArticle'):\n        pmid = article.findtext('.\u002F\u002FPMID')\n        title = article.findtext('.\u002F\u002FArticleTitle')\n        articles.append({\"pmid\": pmid, \"title\": title})\n    time.sleep(0.5)\n\nprint(f\"Retrieved {len(articles)} articles for screening\")\n```\n\n### Workflow 2: Literature Monitoring Pipeline\n\n```python\nimport json, datetime\n\n# 1. Construct monitoring query\ntopic_query = (\n    \"(CRISPR[tiab] OR gene editing[tiab]) AND \"\n    \"(therapeutics[tiab] OR clinical trial[pt])\"\n)\n\n# 2. Search recent publications (last 30 days)\ntoday = datetime.date.today()\nstart_date = today - datetime.timedelta(days=30)\nquery = f\"{topic_query} AND {start_date.strftime('%Y\u002F%m\u002F%d')}:{today.strftime('%Y\u002F%m\u002F%d')}[dp]\"\n\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\", \"term\": query,\n    \"retmax\": 100, \"retmode\": \"json\", \"sort\": \"pub_date\"\n})\npmids = resp.json()[\"esearchresult\"][\"idlist\"]\n\n# 3. Get summaries for new articles\nif pmids:\n    resp = pubmed_request(\"esummary.fcgi\", {\n        \"db\": \"pubmed\", \"id\": \",\".join(pmids), \"retmode\": \"json\"\n    })\n    for uid in pmids:\n        info = resp.json()[\"result\"].get(uid, {})\n        print(f\"[{uid}] {info.get('title', 'N\u002FA')[:80]}\")\n        print(f\"  {info.get('fulljournalname', '')} — {info.get('pubdate', '')}\")\n```\n\n## Key Parameters\n\n| Parameter | Endpoint | Default | Effect |\n|-----------|----------|---------|--------|\n| `term` | ESearch | Required | Search query with Boolean\u002Ffield tags |\n| `retmax` | ESearch\u002FEFetch | 20 | Max records returned (up to 10,000) |\n| `retstart` | ESearch\u002FEFetch | 0 | Offset for pagination |\n| `rettype` | EFetch | `full` | Output type: `abstract`, `medline`, `xml`, `uilist` |\n| `retmode` | All | `xml` | Output format: `xml`, `json`, `text` |\n| `sort` | ESearch | `relevance` | Sort order: `relevance`, `pub_date`, `first_author` |\n| `usehistory` | ESearch | `n` | Enable history server: `y` for large result sets |\n| `api_key` | All | None | NCBI API key for 10 req\u002Fsec (vs 3 without) |\n| `cmd` | ELink | `neighbor` | Link type: `neighbor`, `neighbor_score`, `prlinks` |\n| `datetype` | ESearch | `pdat` | Date field: `pdat` (publication), `edat` (entrez) |\n\n## Best Practices\n\n1. **Always use an API key** — register at NCBI for 10 req\u002Fsec instead of 3\n2. **Use history server for >500 results** — avoids URL length limits and enables batch fetching\n3. **Include rate limiting** — `time.sleep(0.1)` with API key, `time.sleep(0.34)` without\n4. **Cache results locally** — PubMed data changes slowly; cache responses to minimize API calls\n5. **Use MeSH terms + free text** — combine `[mh]` and `[tiab]` for comprehensive coverage: `(diabetes mellitus[mh] OR diabetes[tiab])`\n6. **Document search strategies** — for systematic reviews, record exact queries, dates, and result counts\n7. **Parse XML for structured data** — text output is human-readable but XML preserves field structure for automated extraction\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| HTTP 429 (Too Many Requests) | Exceeding rate limit | Add `time.sleep()`; use API key for higher limit |\n| HTTP 414 (URI Too Long) | Too many PMIDs in URL | Use history server (`usehistory=y`) or EPost |\n| Empty result set | Overly restrictive query | Remove filters one at a time; check ATM with EInfo |\n| Unexpected MeSH mapping | Automatic Term Mapping | Use explicit field tags: `term[tiab]` instead of bare `term` |\n| Missing abstracts | Pre-1975 articles or certain types | Filter: `hasabstract[text]` |\n| XML parsing errors | Malformed response | Check `retmode=xml` and `rettype=xml`; handle encoding |\n| Stale history server | Session expired (8h inactivity) | Re-run ESearch with `usehistory=y` to get new WebEnv |\n| Truncated results | Default `retmax=20` | Set `retmax=100` or higher (max 10,000) |\n\n## Common Recipes\n\n### Recipe: Download Abstracts for a Gene Set\n\n```python\nimport requests\nimport time\n\ndef fetch_abstracts(gene_list, max_per_gene=5):\n    \"\"\"Retrieve PubMed abstracts for each gene in a list.\"\"\"\n    base = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n    records = []\n    for gene in gene_list:\n        r = requests.get(f\"{base}\u002Fesearch.fcgi\",\n                         params={\"db\": \"pubmed\", \"term\": f\"{gene}[gene] AND Homo sapiens[orgn]\",\n                                 \"retmax\": max_per_gene, \"retmode\": \"json\"})\n        ids = r.json()[\"esearchresult\"][\"idlist\"]\n        if ids:\n            fetch = requests.get(f\"{base}\u002Fefetch.fcgi\",\n                                 params={\"db\": \"pubmed\", \"id\": \",\".join(ids), \"rettype\": \"abstract\"})\n            records.append({\"gene\": gene, \"pmids\": ids, \"text\": fetch.text[:500]})\n        time.sleep(0.34)\n    return records\n\nresults = fetch_abstracts([\"BRCA1\", \"TP53\", \"EGFR\"])\nfor r in results:\n    print(f\"{r['gene']}: {r['pmids']}\")\n```\n\n### Recipe: Track New Publications via Date Filter\n\n```python\nimport requests\nfrom datetime import date, timedelta\n\n# Find papers published in the last 7 days on a topic\nweek_ago = (date.today() - timedelta(days=7)).strftime(\"%Y\u002F%m\u002F%d\")\ntoday = date.today().strftime(\"%Y\u002F%m\u002F%d\")\n\nresp = requests.get(\"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fesearch.fcgi\",\n                    params={\"db\": \"pubmed\", \"term\": \"CRISPR AND cancer\",\n                            \"datetype\": \"pdat\", \"mindate\": week_ago, \"maxdate\": today,\n                            \"retmax\": 20, \"retmode\": \"json\"})\ndata = resp.json()[\"esearchresult\"]\nprint(f\"New CRISPR+cancer papers this week: {data['count']}\")\nprint(\"PMIDs:\", data[\"idlist\"])\n```\n\n## Bundled Resources\n\n- `references\u002Fsearch_syntax.md` — Complete field tag reference, Boolean\u002Fwildcard\u002Fproximity syntax, automatic term mapping rules, all filter types (age groups, species, languages), and clinical query filters\n- `references\u002Fcommon_queries.md` — Ready-to-use query templates organized by domain (disease-specific, population-specific, methodology, drug research, epidemiology) with ~40 example patterns\n\nNot migrated from original: `references\u002Fapi_reference.md` (298 lines) — endpoint parameter details are consolidated into Core API sections 2-5 and the E-utilities Endpoint Summary table in Key Concepts.\n\n## References\n\n- PubMed Help: https:\u002F\u002Fpubmed.ncbi.nlm.nih.gov\u002Fhelp\u002F\n- E-utilities Documentation: https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fbooks\u002FNBK25501\u002F\n- NCBI API Key Registration: https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Faccount\u002F\n\n## Related Skills\n\n- **biopython** — higher-level Python wrapper (`Bio.Entrez`) for E-utilities\n- **openalex-database** — broader academic literature beyond biomedical\n- **literature-review** — systematic review methodology and PRISMA framework\n","# PubMed Database\n\n## Overview\n\nPubMed is the U.S. National Library of Medicine's database providing free access to 36M+ biomedical citations from MEDLINE and life sciences journals. This skill covers programmatic access via the E-utilities REST API and advanced search query construction using Boolean operators, MeSH terms, and field tags.\n\n## When to Use\n\n- Searching biomedical literature with structured Boolean\u002FMeSH queries\n- Building automated literature monitoring or extraction pipelines\n- Conducting systematic literature reviews or meta-analyses\n- Retrieving article metadata, abstracts, or citation information by PMID\u002FDOI\n- Finding related articles or exploring citation networks programmatically\n- Batch processing large sets of PubMed records\n- For Python-native PubMed access, prefer BioPython (`Bio.Entrez`) — this skill covers direct REST API usage\n- For broader academic search (non-biomedical), use OpenAlex or Semantic Scholar APIs\n\n## Prerequisites\n\n```bash\npip install requests  # HTTP client for E-utilities API\n# Optional: pip install biopython  — Bio.Entrez wrapper (higher-level API)\n```\n\n**API Rate Limits**:\n- Without API key: **3 requests\u002Fsecond**\n- With API key: **10 requests\u002Fsecond** (register at https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Faccount\u002F)\n- Always include `User-Agent` header with contact email\n\n## Quick Start\n\n```python\nimport requests\nimport time\n\nBASE_URL = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002F\"\nAPI_KEY = \"YOUR_API_KEY\"  # Optional but recommended\n\ndef pubmed_request(endpoint, params):\n    \"\"\"Reusable helper for E-utilities API calls with rate limiting.\"\"\"\n    params.setdefault(\"api_key\", API_KEY)\n    response = requests.get(f\"{BASE_URL}{endpoint}\", params=params)\n    response.raise_for_status()\n    time.sleep(0.1 if API_KEY != \"YOUR_API_KEY\" else 0.34)  # Rate limit\n    return response\n\n# Search → Fetch workflow\nsearch_resp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\", \"term\": \"CRISPR[tiab] AND 2024[dp]\",\n    \"retmax\": 5, \"retmode\": \"json\"\n})\npmids = search_resp.json()[\"esearchresult\"][\"idlist\"]\nprint(f\"Found {len(pmids)} articles: {pmids}\")\n\nfetch_resp = pubmed_request(\"efetch.fcgi\", {\n    \"db\": \"pubmed\", \"id\": \",\".join(pmids),\n    \"rettype\": \"abstract\", \"retmode\": \"text\"\n})\nprint(fetch_resp.text[:500])\n```\n\n## Core API\n\n### 1. Search Query Construction\n\nBuild PubMed queries using Boolean operators, field tags, and MeSH terms.\n\n```python\n# Boolean operators: AND, OR, NOT (must be uppercase)\nqueries = {\n    \"basic\": \"diabetes AND treatment AND 2024[dp]\",\n    \"synonyms\": \"(metformin OR insulin) AND type 2 diabetes\",\n    \"exclude\": \"cancer NOT review[pt]\",\n    \"phrase\": '\"gene expression\" AND RNA-seq',\n    \"field_tags\": \"smith ja[au] AND cancer[tiab] AND 2023[dp]\",\n}\n\n# Common field tags:\n# [tiab] = title\u002Fabstract    [au] = author       [mh] = MeSH term\n# [pt]   = publication type   [dp] = date          [ta] = journal\n# [1au]  = first author       [lastau] = last author\n# [affil] = affiliation       [doi] = DOI          [pmid] = PubMed ID\n\n# Date filtering\ndate_queries = {\n    \"single_year\": \"cancer AND 2024[dp]\",\n    \"range\": \"cancer AND 2020:2024[dp]\",\n    \"specific\": \"cancer AND 2024\u002F03\u002F15[dp]\",\n}\n```\n\n```python\n# MeSH terms — controlled vocabulary for precise searching\nmesh_queries = {\n    # [mh] includes narrower terms automatically\n    \"broad\": \"diabetes mellitus[mh]\",\n    # [majr] limits to major topic focus\n    \"focused\": \"diabetes mellitus[majr]\",\n    # MeSH + subheading\n    \"therapy\": \"diabetes mellitus, type 2[mh]\u002Fdrug therapy\",\n    # Substance name\n    \"drug\": \"metformin[nm] AND diabetes mellitus[mh]\",\n}\n\n# Common MeSH subheadings:\n# \u002Fdiagnosis  \u002Fdrug therapy  \u002Fepidemiology  \u002Fetiology\n# \u002Fprevention & control  \u002Ftherapy  \u002Fgenetics\n```\n\n### 2. ESearch — Search and Retrieve PMIDs\n\n```python\n# Basic search\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\",\n    \"term\": \"CRISPR[tiab] AND genome editing[tiab] AND 2024[dp]\",\n    \"retmax\": 100,\n    \"retmode\": \"json\",\n    \"sort\": \"relevance\",  # or \"pub_date\", \"first_author\"\n})\nresult = resp.json()[\"esearchresult\"]\npmids = result[\"idlist\"]\ntotal = result[\"count\"]\nprint(f\"Total hits: {total}, Retrieved: {len(pmids)}\")\n\n# With history server (for large result sets > 500)\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\",\n    \"term\": \"cancer AND 2024[dp]\",\n    \"usehistory\": \"y\",\n    \"retmode\": \"json\",\n})\nresult = resp.json()[\"esearchresult\"]\nwebenv = result[\"webenv\"]\nquery_key = result[\"querykey\"]\ntotal = int(result[\"count\"])\nprint(f\"Stored {total} results on history server\")\n```\n\n### 3. EFetch — Download Full Records\n\n```python\n# Fetch abstracts as text\nresp = pubmed_request(\"efetch.fcgi\", {\n    \"db\": \"pubmed\",\n    \"id\": \",\".join(pmids[:10]),\n    \"rettype\": \"abstract\",\n    \"retmode\": \"text\",\n})\nprint(resp.text[:500])\n\n# Fetch XML for structured parsing\nresp = pubmed_request(\"efetch.fcgi\", {\n    \"db\": \"pubmed\",\n    \"id\": \",\".join(pmids[:10]),\n    \"rettype\": \"xml\",\n    \"retmode\": \"xml\",\n})\n\n# Fetch from history server (batch processing)\nbatch_size = 500\nfor start in range(0, total, batch_size):\n    resp = pubmed_request(\"efetch.fcgi\", {\n        \"db\": \"pubmed\",\n        \"query_key\": query_key,\n        \"WebEnv\": webenv,\n        \"retstart\": start,\n        \"retmax\": batch_size,\n        \"rettype\": \"xml\",\n        \"retmode\": \"xml\",\n    })\n    print(f\"Fetched records {start}–{start + batch_size}\")\n    time.sleep(0.5)  # Extra delay for large batches\n```\n\n### 4. ESummary and ELink — Summaries and Related Articles\n\n```python\n# ESummary — lightweight document summaries\nresp = pubmed_request(\"esummary.fcgi\", {\n    \"db\": \"pubmed\",\n    \"id\": \",\".join(pmids[:5]),\n    \"retmode\": \"json\",\n})\nfor uid, data in resp.json()[\"result\"].items():\n    if uid == \"uids\":\n        continue\n    print(f\"PMID {uid}: {data.get('title', '')[:80]}\")\n    print(f\"  Journal: {data.get('fulljournalname', '')}, \"\n          f\"Date: {data.get('pubdate', '')}\")\n\n# ELink — find related articles\nresp = pubmed_request(\"elink.fcgi\", {\n    \"dbfrom\": \"pubmed\",\n    \"db\": \"pubmed\",\n    \"id\": pmids[0],\n    \"cmd\": \"neighbor\",\n    \"retmode\": \"json\",\n})\n# Links to other NCBI databases\nresp = pubmed_request(\"elink.fcgi\", {\n    \"dbfrom\": \"pubmed\",\n    \"db\": \"pmc\",  # PubMed Central\n    \"id\": pmids[0],\n    \"retmode\": \"json\",\n})\n```\n\n### 5. Citation Matching and Identifier Lookup\n\n```python\n# Search by identifiers\nid_queries = {\n    \"pmid\": \"12345678[pmid]\",\n    \"doi\": \"10.1056\u002FNEJMoa123456[doi]\",\n    \"pmc\": \"PMC123456[pmc]\",\n}\n\n# ECitMatch — match partial citations to PMIDs\n# Format: journal|year|volume|first_page|author_name|key|\ncitation = \"Science|2008|320|5880|1185|key1|\"\nresp = pubmed_request(\"ecitmatch.cgi\", {\n    \"db\": \"pubmed\",\n    \"rettype\": \"xml\",\n    \"bdata\": citation,\n})\nprint(f\"Matched PMID: {resp.text.strip()}\")\n\n# Batch citation matching\ncitations = [\n    \"Nature|2020|580|7801|71|ref1|\",\n    \"Science|2019|366|6463|347|ref2|\",\n]\nresp = pubmed_request(\"ecitmatch.cgi\", {\n    \"db\": \"pubmed\",\n    \"rettype\": \"xml\",\n    \"bdata\": \"\\r\".join(citations),\n})\n```\n\n### 6. Publication Filtering\n\n```python\n# Filter by publication type\ntype_filters = {\n    \"rcts\": \"randomized controlled trial[pt]\",\n    \"reviews\": \"systematic review[pt]\",\n    \"meta\": \"meta-analysis[pt]\",\n    \"guidelines\": \"guideline[pt]\",\n    \"case_reports\": \"case reports[pt]\",\n}\n\n# Filter by text availability\navailability = {\n    \"free_text\": \"free full text[sb]\",\n    \"has_abstract\": \"hasabstract[text]\",\n}\n\n# Combine filters\nquery = (\n    \"diabetes mellitus[mh] AND \"\n    \"randomized controlled trial[pt] AND \"\n    \"2023:2024[dp] AND \"\n    \"free full text[sb] AND \"\n    \"english[la]\"\n)\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\", \"term\": query, \"retmax\": 100, \"retmode\": \"json\"\n})\nprint(f\"Free RCTs on diabetes (2023-2024): {resp.json()['esearchresult']['count']}\")\n```\n\n## Key Concepts\n\n### E-utilities Endpoint Summary\n\n| Endpoint | Purpose | Key Parameters |\n|----------|---------|----------------|\n| `esearch.fcgi` | Search, return PMIDs | `term`, `retmax`, `sort`, `usehistory` |\n| `efetch.fcgi` | Download full records | `id`\u002F`query_key`+`WebEnv`, `rettype`, `retmode` |\n| `esummary.fcgi` | Lightweight summaries | `id`, `retmode` |\n| `epost.fcgi` | Upload UIDs to server | `id` (comma-separated) |\n| `elink.fcgi` | Related articles, cross-DB | `id`, `dbfrom`, `db`, `cmd` |\n| `einfo.fcgi` | List databases\u002Ffields | `db` (optional) |\n| `egquery.fcgi` | Count hits across DBs | `term` |\n| `espell.fcgi` | Spelling suggestions | `term` |\n| `ecitmatch.cgi` | Match citations to PMIDs | `bdata` |\n\n### History Server Pattern\n\nFor result sets >500 articles, use the history server to avoid URL length limits:\n\n1. **ESearch** with `usehistory=y` → returns `WebEnv` + `QueryKey`\n2. **EFetch** in batches using `WebEnv` + `QueryKey` + `retstart`\u002F`retmax`\n3. **EPost** to upload additional PMIDs to the same `WebEnv`\n\n### Automatic Term Mapping (ATM)\n\nWhen no field tag is specified, PubMed maps terms through: MeSH Translation Table → Journals Translation Table → Author Index → Full Text. Bypass ATM with explicit field tags or quoted phrases.\n\n### Common MeSH Subheadings\n\n| Subheading | Abbreviation | Use |\n|------------|-------------|-----|\n| \u002Fdiagnosis | \u002FDI | Diagnostic methods |\n| \u002Fdrug therapy | \u002FDT | Pharmaceutical treatment |\n| \u002Fepidemiology | \u002FEP | Disease patterns |\n| \u002Fetiology | \u002FET | Disease causes |\n| \u002Fgenetics | \u002FGE | Genetic aspects |\n| \u002Fprevention & control | \u002FPC | Preventive measures |\n| \u002Ftherapy | \u002FTH | Treatment approaches |\n\n## Common Workflows\n\n### Workflow 1: Systematic Review Search\n\n```python\nimport requests, time, json\n\n# 1. Define PICO-structured query\nquery = (\n    # Population\n    \"(diabetes mellitus, type 2[mh] OR type 2 diabetes[tiab]) AND \"\n    # Intervention + Comparison\n    \"(metformin[nm] OR lifestyle modification[tiab]) AND \"\n    # Outcome\n    \"(glycemic control[tiab] OR HbA1c[tiab]) AND \"\n    # Study design filter\n    \"(randomized controlled trial[pt] OR systematic review[pt]) AND \"\n    # Date range\n    \"2020:2024[dp]\"\n)\n\n# 2. Search with history server\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\", \"term\": query,\n    \"usehistory\": \"y\", \"retmode\": \"json\"\n})\nresult = resp.json()[\"esearchresult\"]\ntotal = int(result[\"count\"])\nprint(f\"Systematic review hits: {total}\")\n\n# 3. Batch fetch all results as XML\nimport xml.etree.ElementTree as ET\narticles = []\nfor start in range(0, total, 200):\n    resp = pubmed_request(\"efetch.fcgi\", {\n        \"db\": \"pubmed\", \"query_key\": result[\"querykey\"],\n        \"WebEnv\": result[\"webenv\"],\n        \"retstart\": start, \"retmax\": 200,\n        \"rettype\": \"xml\", \"retmode\": \"xml\"\n    })\n    root = ET.fromstring(resp.text)\n    for article in root.findall('.\u002F\u002FPubmedArticle'):\n        pmid = article.findtext('.\u002F\u002FPMID')\n        title = article.findtext('.\u002F\u002FArticleTitle')\n        articles.append({\"pmid\": pmid, \"title\": title})\n    time.sleep(0.5)\n\nprint(f\"Retrieved {len(articles)} articles for screening\")\n```\n\n### Workflow 2: Literature Monitoring Pipeline\n\n```python\nimport json, datetime\n\n# 1. Construct monitoring query\ntopic_query = (\n    \"(CRISPR[tiab] OR gene editing[tiab]) AND \"\n    \"(therapeutics[tiab] OR clinical trial[pt])\"\n)\n\n# 2. Search recent publications (last 30 days)\ntoday = datetime.date.today()\nstart_date = today - datetime.timedelta(days=30)\nquery = f\"{topic_query} AND {start_date.strftime('%Y\u002F%m\u002F%d')}:{today.strftime('%Y\u002F%m\u002F%d')}[dp]\"\n\nresp = pubmed_request(\"esearch.fcgi\", {\n    \"db\": \"pubmed\", \"term\": query,\n    \"retmax\": 100, \"retmode\": \"json\", \"sort\": \"pub_date\"\n})\npmids = resp.json()[\"esearchresult\"][\"idlist\"]\n\n# 3. Get summaries for new articles\nif pmids:\n    resp = pubmed_request(\"esummary.fcgi\", {\n        \"db\": \"pubmed\", \"id\": \",\".join(pmids), \"retmode\": \"json\"\n    })\n    for uid in pmids:\n        info = resp.json()[\"result\"].get(uid, {})\n        print(f\"[{uid}] {info.get('title', 'N\u002FA')[:80]}\")\n        print(f\"  {info.get('fulljournalname', '')} — {info.get('pubdate', '')}\")\n```\n\n## Key Parameters\n\n| Parameter | Endpoint | Default | Effect |\n|-----------|----------|---------|--------|\n| `term` | ESearch | Required | Search query with Boolean\u002Ffield tags |\n| `retmax` | ESearch\u002FEFetch | 20 | Max records returned (up to 10,000) |\n| `retstart` | ESearch\u002FEFetch | 0 | Offset for pagination |\n| `rettype` | EFetch | `full` | Output type: `abstract`, `medline`, `xml`, `uilist` |\n| `retmode` | All | `xml` | Output format: `xml`, `json`, `text` |\n| `sort` | ESearch | `relevance` | Sort order: `relevance`, `pub_date`, `first_author` |\n| `usehistory` | ESearch | `n` | Enable history server: `y` for large result sets |\n| `api_key` | All | None | NCBI API key for 10 req\u002Fsec (vs 3 without) |\n| `cmd` | ELink | `neighbor` | Link type: `neighbor`, `neighbor_score`, `prlinks` |\n| `datetype` | ESearch | `pdat` | Date field: `pdat` (publication), `edat` (entrez) |\n\n## Best Practices\n\n1. **Always use an API key** — register at NCBI for 10 req\u002Fsec instead of 3\n2. **Use history server for >500 results** — avoids URL length limits and enables batch fetching\n3. **Include rate limiting** — `time.sleep(0.1)` with API key, `time.sleep(0.34)` without\n4. **Cache results locally** — PubMed data changes slowly; cache responses to minimize API calls\n5. **Use MeSH terms + free text** — combine `[mh]` and `[tiab]` for comprehensive coverage: `(diabetes mellitus[mh] OR diabetes[tiab])`\n6. **Document search strategies** — for systematic reviews, record exact queries, dates, and result counts\n7. **Parse XML for structured data** — text output is human-readable but XML preserves field structure for automated extraction\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| HTTP 429 (Too Many Requests) | Exceeding rate limit | Add `time.sleep()`; use API key for higher limit |\n| HTTP 414 (URI Too Long) | Too many PMIDs in URL | Use history server (`usehistory=y`) or EPost |\n| Empty result set | Overly restrictive query | Remove filters one at a time; check ATM with EInfo |\n| Unexpected MeSH mapping | Automatic Term Mapping | Use explicit field tags: `term[tiab]` instead of bare `term` |\n| Missing abstracts | Pre-1975 articles or certain types | Filter: `hasabstract[text]` |\n| XML parsing errors | Malformed response | Check `retmode=xml` and `rettype=xml`; handle encoding |\n| Stale history server | Session expired (8h inactivity) | Re-run ESearch with `usehistory=y` to get new WebEnv |\n| Truncated results | Default `retmax=20` | Set `retmax=100` or higher (max 10,000) |\n\n## Common Recipes\n\n### Recipe: Download Abstracts for a Gene Set\n\n```python\nimport requests\nimport time\n\ndef fetch_abstracts(gene_list, max_per_gene=5):\n    \"\"\"Retrieve PubMed abstracts for each gene in a list.\"\"\"\n    base = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n    records = []\n    for gene in gene_list:\n        r = requests.get(f\"{base}\u002Fesearch.fcgi\",\n                         params={\"db\": \"pubmed\", \"term\": f\"{gene}[gene] AND Homo sapiens[orgn]\",\n                                 \"retmax\": max_per_gene, \"retmode\": \"json\"})\n        ids = r.json()[\"esearchresult\"][\"idlist\"]\n        if ids:\n            fetch = requests.get(f\"{base}\u002Fefetch.fcgi\",\n                                 params={\"db\": \"pubmed\", \"id\": \",\".join(ids), \"rettype\": \"abstract\"})\n            records.append({\"gene\": gene, \"pmids\": ids, \"text\": fetch.text[:500]})\n        time.sleep(0.34)\n    return records\n\nresults = fetch_abstracts([\"BRCA1\", \"TP53\", \"EGFR\"])\nfor r in results:\n    print(f\"{r['gene']}: {r['pmids']}\")\n```\n\n### Recipe: Track New Publications via Date Filter\n\n```python\nimport requests\nfrom datetime import date, timedelta\n\n# Find papers published in the last 7 days on a topic\nweek_ago = (date.today() - timedelta(days=7)).strftime(\"%Y\u002F%m\u002F%d\")\ntoday = date.today().strftime(\"%Y\u002F%m\u002F%d\")\n\nresp = requests.get(\"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fesearch.fcgi\",\n                    params={\"db\": \"pubmed\", \"term\": \"CRISPR AND cancer\",\n                            \"datetype\": \"pdat\", \"mindate\": week_ago, \"maxdate\": today,\n                            \"retmax\": 20, \"retmode\": \"json\"})\ndata = resp.json()[\"esearchresult\"]\nprint(f\"New CRISPR+cancer papers this week: {data['count']}\")\nprint(\"PMIDs:\", data[\"idlist\"])\n```\n\n## Bundled Resources\n\n- `references\u002Fsearch_syntax.md` — Complete field tag reference, Boolean\u002Fwildcard\u002Fproximity syntax, automatic term mapping rules, all filter types (age groups, species, languages), and clinical query filters\n- `references\u002Fcommon_queries.md` — Ready-to-use query templates organized by domain (disease-specific, population-specific, methodology, drug research, epidemiology) with ~40 example patterns\n\nNot migrated from original: `references\u002Fapi_reference.md` (298 lines) — endpoint parameter details are consolidated into Core API sections 2-5 and the E-utilities Endpoint Summary table in Key Concepts.\n\n## References\n\n- PubMed Help: https:\u002F\u002Fpubmed.ncbi.nlm.nih.gov\u002Fhelp\u002F\n- E-utilities Documentation: https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fbooks\u002FNBK25501\u002F\n- NCBI API Key Registration: https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Faccount\u002F\n\n## Related Skills\n\n- **biopython** — higher-level Python wrapper (`Bio.Entrez`) for E-utilities\n- **openalex-database** — broader academic literature beyond biomedical\n- **literature-review** — systematic review methodology and PRISMA framework\n",{"name":5,"license":15,"description":7},"master","63f17866001c5ca854bf2fa0b678ce277133de5b","skills\u002Fawesome-skills\u002Fpubmed-database",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill pubmed-database",{"tool":40,"command":41},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill pubmed-database",{"tool":43,"command":44},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill pubmed-database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fpubmed-database\u002FSKILL.md",true,[],[49,58,65,72,79,86],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":57},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":57},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":57},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":57},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":53,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":57},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]