[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73GPJ3QRDR1BDJEZ6VPFHRM":3,"skill-same:01M73GPJ3QRDR1BDJEZ6VPFHRM":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},"01M73GPJ3QRDR1BDJEZ6VPFHRM","gene-database",null,"NCBI Gene via E-utilities: curated records across 1M+ taxa. Official symbols, aliases, RefSeq IDs, summaries, coordinates, GO, interactions. Use for gene ID resolution and cross-species function queries. For sequences use Ensembl; for expression use geo-database.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"CC0-1.0","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fgene-database\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: \"gene-database\"\ndescription: \"NCBI Gene via E-utilities: curated records across 1M+ taxa. Official symbols, aliases, RefSeq IDs, summaries, coordinates, GO, interactions. Use for gene ID resolution and cross-species function queries. For sequences use Ensembl; for expression use geo-database.\"\nlicense: \"CC0-1.0\"\n---\n\n# NCBI Gene Database\n\n## Overview\n\nNCBI Gene is the authoritative curated database for gene-centric information, covering 1M+ genes across hundreds of thousands of taxa. Each gene record includes the official symbol, aliases, full name, functional summary, genomic coordinates (GRCh38\u002FGRCh37), RefSeq accessions, GO annotations, interaction partners, and links to related databases. Access is free via E-utilities REST API (no API key required, though recommended).\n\n## When to Use\n\n- Resolving gene aliases and synonyms to the current official HGNC\u002FNCBI symbol\n- Fetching the NCBI Gene ID (integer) for a gene symbol for downstream API calls (e.g., dbSNP, ClinVar, GEO)\n- Retrieving curated gene summaries and function descriptions programmatically\n- Pulling RefSeq mRNA (NM_) and protein (NP_) accessions associated with a gene\n- Querying GO functional annotations (Biological Process, Molecular Function, Cellular Component)\n- Finding orthologs across species via the NCBI Datasets v2 orthologs endpoint (legacy E-utilities `gene_gene_homolog` retired with HomoloGene in 2019)\n- For expression profiles across conditions use `geo-database`; for variant annotations use `clinvar-database` or `ensembl-database`\n\n## Prerequisites\n\n- **Python packages**: `requests`, `xml.etree.ElementTree` (stdlib), `pandas` (optional)\n- **Data requirements**: gene symbols, NCBI Gene IDs, or tax IDs\n- **Environment**: internet connection; NCBI email required (set `email` parameter)\n- **Rate limits**: 3 req\u002Fs unauthenticated; 10 req\u002Fs with free NCBI API key\n\n```bash\npip install requests pandas\n```\n\n## Quick Start\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef gene_search(query, retmax=5):\n    r = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                     params={\"db\": \"gene\", \"term\": query,\n                             \"retmax\": retmax, \"retmode\": \"json\", \"email\": EMAIL})\n    r.raise_for_status()\n    return r.json()[\"esearchresult\"][\"idlist\"]\n\n# Find human BRCA1 gene ID\nids = gene_search(\"BRCA1[sym] AND Homo sapiens[orgn]\")\nprint(f\"Gene IDs for BRCA1: {ids}\")  # → ['672']\n```\n\n## Core API\n\n### Query 1: Search by Symbol, Name, or Function\n\nUse ESearch with field tags for precise queries.\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\n# Exact symbol match for human gene\nr = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                 params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                         \"term\": \"TP53[sym] AND Homo sapiens[orgn] AND alive[prop]\"})\nids = r.json()[\"esearchresult\"][\"idlist\"]\nprint(f\"TP53 Gene ID: {ids}\")  # → ['7157']\n```\n\n```python\n# Search by function keyword\nr = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                 params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                         \"term\": \"CRISPR[title] AND Homo sapiens[orgn]\", \"retmax\": 5})\nids = r.json()[\"esearchresult\"][\"idlist\"]\nprint(f\"CRISPR-related gene IDs: {ids}\")\n```\n\n### Query 2: Fetch Gene Summary (JSON\u002FESummary)\n\nRetrieve key metadata fields for a list of Gene IDs.\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef esummary_gene(gene_ids):\n    r = requests.post(f\"{BASE}\u002Fesummary.fcgi\",\n                      data={\"db\": \"gene\", \"id\": \",\".join(gene_ids),\n                            \"retmode\": \"json\", \"email\": EMAIL})\n    r.raise_for_status()\n    return r.json()[\"result\"]\n\nresult = esummary_gene([\"672\", \"675\", \"7157\"])  # BRCA1, BRCA2, TP53\n\nfor uid in result.get(\"uids\", []):\n    g = result[uid]\n    print(f\"\\n{g.get('name')} (ID {uid})\")\n    print(f\"  Official symbol : {g.get('nomenclaturesymbol', g.get('name'))}\")\n    print(f\"  Chr location    : {g.get('maplocation')}\")\n    print(f\"  Summary (first 100): {g.get('summary', '')[:100]}...\")\n    print(f\"  Aliases: {g.get('otheraliases', 'none')}\")\n```\n\n### Query 3: Fetch Full Gene Record (XML)\n\nRetrieve the complete gene record in XML for RefSeq accessions, GO terms, and interaction data.\n\n```python\nimport requests\nimport xml.etree.ElementTree as ET\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef efetch_gene_xml(gene_id):\n    r = requests.get(f\"{BASE}\u002Fefetch.fcgi\",\n                     params={\"db\": \"gene\", \"id\": gene_id,\n                             \"rettype\": \"gene_table\", \"retmode\": \"text\", \"email\": EMAIL})\n    r.raise_for_status()\n    return r.text\n\n# Get gene table (tab-delimited overview)\ntable = efetch_gene_xml(\"672\")\nprint(table[:500])\n```\n\n```python\n# XML for RefSeq accession extraction\nr = requests.get(f\"{BASE}\u002Fefetch.fcgi\",\n                 params={\"db\": \"gene\", \"id\": \"672\",\n                         \"rettype\": \"xml\", \"retmode\": \"xml\", \"email\": EMAIL})\nroot = ET.fromstring(r.text)\n\n# Extract RefSeq mRNA accessions\nfor ref in root.iter(\"Gene-commentary\"):\n    acc = ref.find(\"Gene-commentary_accession\")\n    ver = ref.find(\"Gene-commentary_version\")\n    typ = ref.find(\"Gene-commentary_type\")\n    if acc is not None and acc.text and acc.text.startswith(\"NM_\"):\n        print(f\"RefSeq mRNA: {acc.text}.{ver.text if ver is not None else ''}\")\n```\n\n### Query 4: Batch Symbol-to-ID Mapping\n\nMap a list of gene symbols to NCBI Gene IDs efficiently.\n\n```python\nimport requests, time\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef symbols_to_ids(symbols, organism=\"Homo sapiens\"):\n    \"\"\"Map gene symbols to NCBI Gene IDs. Returns dict {symbol: gene_id}.\"\"\"\n    mapping = {}\n    for sym in symbols:\n        r = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                         params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                                 \"term\": f\"{sym}[sym] AND {organism}[orgn] AND alive[prop]\"})\n        ids = r.json()[\"esearchresult\"][\"idlist\"]\n        mapping[sym] = ids[0] if ids else None\n        time.sleep(0.1)\n    return mapping\n\ngenes = [\"EGFR\", \"KRAS\", \"BRAF\", \"PIK3CA\", \"PTEN\"]\nid_map = symbols_to_ids(genes)\nfor sym, gid in id_map.items():\n    print(f\"{sym:10s} → Gene ID {gid}\")\n```\n\n### Query 5: GO Annotation Retrieval\n\nParse GO terms from the gene XML record.\n\n```python\nimport requests\nimport xml.etree.ElementTree as ET\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\nr = requests.get(f\"{BASE}\u002Fefetch.fcgi\",\n                 params={\"db\": \"gene\", \"id\": \"7157\",\n                         \"rettype\": \"xml\", \"retmode\": \"xml\", \"email\": EMAIL})\nroot = ET.fromstring(r.text)\n\n# Extract GO annotations\ngo_terms = []\nfor ref in root.iter(\"Gene-commentary\"):\n    heading = ref.find(\"Gene-commentary_heading\")\n    label = ref.find(\"Gene-commentary_label\")\n    if heading is not None and \"Gene Ontology\" in heading.text:\n        if label is not None:\n            go_terms.append(label.text)\n\nprint(f\"TP53 GO terms ({len(go_terms)} found):\")\nfor term in go_terms[:10]:\n    print(f\"  {term}\")\n```\n\n### Query 6: Cross-Species Orthologs (NCBI Datasets v2)\n\nFind orthologs across species. Note: the legacy E-utilities link `gene_gene_homolog` was retired with HomoloGene in 2019 — the modern path is the **NCBI Datasets v2 REST API**, which exposes a dedicated orthologs endpoint.\n\n```python\nimport requests, time\n\nDATASETS_BASE = \"https:\u002F\u002Fapi.ncbi.nlm.nih.gov\u002Fdatasets\u002Fv2\"\n\ndef get_orthologs(gene_id, taxon_filter=None):\n    \"\"\"Return ortholog Gene reports for a given NCBI Gene ID.\n    taxon_filter: optional tax_id (int) or list of tax_ids to narrow species.\"\"\"\n    params = {}\n    if taxon_filter is not None:\n        # tax_ids: human=9606, mouse=10090, rat=10116, zebrafish=7955, fly=7227\n        ids = taxon_filter if isinstance(taxon_filter, (list, tuple)) else [taxon_filter]\n        params[\"taxon_filter\"] = [str(t) for t in ids]\n    r = requests.get(f\"{DATASETS_BASE}\u002Fgene\u002Fid\u002F{gene_id}\u002Forthologs\",\n                     params=params, timeout=30)\n    r.raise_for_status()\n    return r.json().get(\"reports\", [])\n\n# Mouse ortholog of human TP53 (Gene ID 7157)\nreports = get_orthologs(\"7157\", taxon_filter=10090)\nfor rep in reports[:5]:\n    g = rep.get(\"gene\", {})\n    print(f\"  {g.get('symbol'):8s} (tax {g.get('tax_id')}, gene_id {g.get('gene_id')}): \"\n          f\"{g.get('description', '')[:60]}\")\n# Expect:  Trp53    (tax 10090, gene_id 22059): transformation related protein 53\n\ntime.sleep(0.34)\n# All orthologs (every species in the orthology group)\nall_orthologs = get_orthologs(\"7157\")\nprint(f\"\\nTotal TP53 orthologs across species: {len(all_orthologs)}\")\n```\n\n## Key Concepts\n\n### NCBI Gene ID vs. HGNC ID vs. Ensembl ID\n\nNCBI Gene IDs are integers assigned per gene per organism (e.g., human TP53 = 7157). These are distinct from HGNC IDs (e.g., HGNC:11998) and Ensembl IDs (ENSG00000141510). Many downstream NCBI databases (ClinVar, dbSNP, GEO) use NCBI Gene IDs internally.\n\n### `alive[prop]` Filter\n\nNCBI Gene records for discontinued genes have `status=discontinued`. Always add `AND alive[prop]` to symbol queries to exclude retired entries and avoid retrieving stale data.\n\n## Common Workflows\n\n### Workflow 1: Build a Gene Annotation Table\n\n**Goal**: For a list of gene symbols, retrieve Gene ID, official name, chromosomal location, and description.\n\n```python\nimport requests, time, pandas as pd\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef search_gene(sym, organism=\"Homo sapiens\"):\n    r = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                     params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                             \"term\": f\"{sym}[sym] AND {organism}[orgn] AND alive[prop]\"})\n    ids = r.json()[\"esearchresult\"][\"idlist\"]\n    return ids[0] if ids else None\n\ndef batch_summary(gene_ids):\n    r = requests.post(f\"{BASE}\u002Fesummary.fcgi\",\n                      data={\"db\": \"gene\", \"id\": \",\".join(gene_ids),\n                            \"retmode\": \"json\", \"email\": EMAIL})\n    return r.json()[\"result\"]\n\nsymbols = [\"BRCA1\", \"BRCA2\", \"TP53\", \"EGFR\", \"MYC\", \"KRAS\", \"PTEN\"]\n\n# Step 1: Symbol → Gene ID\nid_map = {}\nfor sym in symbols:\n    gid = search_gene(sym)\n    id_map[sym] = gid\n    time.sleep(0.12)\n\n# Step 2: Batch summary\nvalid_ids = [v for v in id_map.values() if v]\nresult = batch_summary(valid_ids)\n\nrows = []\nsym_to_id = {v: k for k, v in id_map.items() if v}\nfor uid in result.get(\"uids\", []):\n    g = result[uid]\n    rows.append({\n        \"symbol\": sym_to_id.get(uid, g.get(\"name\")),\n        \"gene_id\": uid,\n        \"full_name\": g.get(\"description\"),\n        \"chr_location\": g.get(\"maplocation\"),\n        \"summary\": g.get(\"summary\", \"\")[:200],\n    })\n\ndf = pd.DataFrame(rows)\ndf.to_csv(\"gene_annotations.csv\", index=False)\nprint(df[[\"symbol\", \"gene_id\", \"full_name\", \"chr_location\"]].to_string(index=False))\n```\n\n### Workflow 2: Find All Genes in a Pathway Keyword\n\n**Goal**: Retrieve all human genes associated with a biological keyword from the NCBI Gene summary field.\n\n```python\nimport requests, time, pandas as pd\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\nkeyword = \"DNA mismatch repair\"\nr = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                 params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                         \"retmax\": 50,\n                         \"term\": f\"{keyword}[title\u002Fabstract] AND Homo sapiens[orgn] AND alive[prop]\"})\nids = r.json()[\"esearchresult\"][\"idlist\"]\nprint(f\"Found {len(ids)} genes related to '{keyword}'\")\n\n# Fetch summaries\nr2 = requests.post(f\"{BASE}\u002Fesummary.fcgi\",\n                   data={\"db\": \"gene\", \"id\": \",\".join(ids), \"retmode\": \"json\", \"email\": EMAIL})\nresult = r2.json()[\"result\"]\n\nrows = []\nfor uid in result.get(\"uids\", []):\n    g = result[uid]\n    rows.append({\"gene_id\": uid, \"symbol\": g.get(\"name\"),\n                 \"description\": g.get(\"description\"),\n                 \"location\": g.get(\"maplocation\")})\n\ndf = pd.DataFrame(rows)\nprint(df.to_string(index=False))\ndf.to_csv(f\"{keyword.replace(' ', '_')}_genes.csv\", index=False)\n```\n\n## Key Parameters\n\n| Parameter | Module | Default | Range \u002F Options | Effect |\n|-----------|--------|---------|-----------------|--------|\n| `retmax` | ESearch | `20` | `1`–`10000` | Max records returned |\n| `retmode` | ESearch\u002FESummary | `\"xml\"` | `\"json\"`, `\"xml\"` | Response format |\n| `rettype` | EFetch | depends | `\"xml\"`, `\"gene_table\"`, `\"text\"` | Record format for full fetch |\n| `[sym]` field tag | ESearch | — | gene symbol | Match exact official symbol only |\n| `[orgn]` field tag | ESearch | — | organism name or tax ID | Filter by taxonomy |\n| `alive[prop]` | ESearch | — | boolean flag | Exclude discontinued gene records |\n\n## Best Practices\n\n1. **Always add `alive[prop]`**: Discontinued gene records remain in the database. Without this filter, symbol searches may return outdated records.\n\n2. **Use Gene IDs in pipelines**: Downstream NCBI databases (ClinVar, dbSNP, GEO) accept Gene IDs; avoid re-searching by symbol in each call.\n\n3. **Use ESummary for metadata, EFetch for full records**: ESummary returns JSON with all common fields; EFetch XML is needed only for RefSeq accessions, GO terms, or interaction links.\n\n4. **Register for a free API key**: Triple your rate limit (3 → 10 req\u002Fs) at https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Faccount\u002F. Pass as `api_key` parameter.\n\n5. **Batch with ESummary**: POST up to 200 Gene IDs per call to ESummary instead of querying one at a time.\n\n## Common Recipes\n\n### Recipe: Gene ID to RefSeq NM Accession\n\nWhen to use: Get the canonical mRNA accession for a protein-coding gene.\n\n```python\nimport requests, re\n\nEMAIL = \"your@email.com\"\nGENE_ID = \"672\"  # BRCA1\n\nr = requests.get(\n    \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fefetch.fcgi\",\n    params={\"db\": \"gene\", \"id\": GENE_ID, \"rettype\": \"gene_table\",\n            \"retmode\": \"text\", \"email\": EMAIL}\n)\nnm_accessions = re.findall(r\"NM_\\d+\\.\\d+\", r.text)\nprint(f\"RefSeq mRNA accessions: {list(set(nm_accessions))}\")\n```\n\n### Recipe: Retrieve Gene Aliases\n\nWhen to use: Resolve legacy\u002Falias symbols to the current official NCBI symbol.\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\n\n# P53 is an alias for TP53\nr = requests.get(\n    \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fesearch.fcgi\",\n    params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n            \"term\": \"p53[sym] AND Homo sapiens[orgn] AND alive[prop]\"}\n)\nids = r.json()[\"esearchresult\"][\"idlist\"]\n\nr2 = requests.post(\"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fesummary.fcgi\",\n                   data={\"db\": \"gene\", \"id\": \",\".join(ids[:1]),\n                         \"retmode\": \"json\", \"email\": EMAIL})\ng = r2.json()[\"result\"][ids[0]]\nprint(f\"Official symbol : {g.get('nomenclaturesymbol', g.get('name'))}\")\nprint(f\"Other aliases   : {g.get('otheraliases')}\")\nprint(f\"Designations    : {g.get('otherdesignations', '')[:100]}\")\n```\n\n### Recipe: List All Genes on a Chromosome\n\nWhen to use: Get all protein-coding genes on a specific human chromosome.\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\n\nr = requests.get(\n    \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fesearch.fcgi\",\n    params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\", \"retmax\": 5,\n            \"term\": \"17[chr] AND Homo sapiens[orgn] AND protein coding[filter] AND alive[prop]\"}\n)\nresult = r.json()[\"esearchresult\"]\nprint(f\"Protein-coding genes on chr17: {result['count']} total\")\nprint(f\"Sample IDs: {result['idlist']}\")\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| Empty `idlist` for known symbol | Symbol is an alias, not the official term | Use `[gene name]` or `[title]` field tag; check aliases via ESummary |\n| Wrong species returned | Missing organism filter | Add `AND Homo sapiens[orgn]` or target tax ID (`9606[taxid]`) |\n| Discontinued gene returned | Missing `alive[prop]` filter | Append `AND alive[prop]` to all symbol queries |\n| `HTTP 429` rate limit | Too many requests | Add `time.sleep(0.35)` between calls; use NCBI API key |\n| ESummary missing `uids` key | All IDs invalid\u002Fabsent | Check `id` values are valid integers, not empty strings |\n| XML parse error | Malformed XML for rare genes | Wrap ET.fromstring in try\u002Fexcept; retry with `rettype=text` |\n| Empty ortholog list from ELink | Legacy `linkname=gene_gene_homolog` retired with HomoloGene in 2019 | Use NCBI Datasets v2 `\u002Fgene\u002Fid\u002F{gene_id}\u002Forthologs` instead (Query 6) |\n\n## Related Skills\n\n- `geo-database` — Gene Expression Omnibus for retrieving expression data linked to genes found here\n- `clinvar-database` — Clinical variant data indexed by NCBI Gene IDs\n- `ensembl-database` — Complementary gene annotations with VEP and comparative genomics\n- `biopython-molecular-biology` — Biopython Entrez module wraps E-utilities with typed return values\n\n## References\n\n- [NCBI Gene database](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fgene\u002F) — Official homepage and search interface\n- [E-utilities documentation](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fbooks\u002FNBK25499\u002F) — Complete API reference for ESearch, ESummary, EFetch\n- [NCBI Gene field tags](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fbooks\u002FNBK3840\u002F) — Field tag reference for constructing Entrez queries\n- [NCBI API Key registration](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Faccount\u002F) — Free registration for 10 req\u002Fs rate limit\n- [NCBI Datasets v2 REST API](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fdatasets\u002Fdocs\u002Fv2\u002Freference-docs\u002Frest-api\u002F) — Modern endpoint for orthologs, gene metadata, and taxonomy (replaces retired HomoloGene)\n","# NCBI Gene Database\n\n## Overview\n\nNCBI Gene is the authoritative curated database for gene-centric information, covering 1M+ genes across hundreds of thousands of taxa. Each gene record includes the official symbol, aliases, full name, functional summary, genomic coordinates (GRCh38\u002FGRCh37), RefSeq accessions, GO annotations, interaction partners, and links to related databases. Access is free via E-utilities REST API (no API key required, though recommended).\n\n## When to Use\n\n- Resolving gene aliases and synonyms to the current official HGNC\u002FNCBI symbol\n- Fetching the NCBI Gene ID (integer) for a gene symbol for downstream API calls (e.g., dbSNP, ClinVar, GEO)\n- Retrieving curated gene summaries and function descriptions programmatically\n- Pulling RefSeq mRNA (NM_) and protein (NP_) accessions associated with a gene\n- Querying GO functional annotations (Biological Process, Molecular Function, Cellular Component)\n- Finding orthologs across species via the NCBI Datasets v2 orthologs endpoint (legacy E-utilities `gene_gene_homolog` retired with HomoloGene in 2019)\n- For expression profiles across conditions use `geo-database`; for variant annotations use `clinvar-database` or `ensembl-database`\n\n## Prerequisites\n\n- **Python packages**: `requests`, `xml.etree.ElementTree` (stdlib), `pandas` (optional)\n- **Data requirements**: gene symbols, NCBI Gene IDs, or tax IDs\n- **Environment**: internet connection; NCBI email required (set `email` parameter)\n- **Rate limits**: 3 req\u002Fs unauthenticated; 10 req\u002Fs with free NCBI API key\n\n```bash\npip install requests pandas\n```\n\n## Quick Start\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef gene_search(query, retmax=5):\n    r = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                     params={\"db\": \"gene\", \"term\": query,\n                             \"retmax\": retmax, \"retmode\": \"json\", \"email\": EMAIL})\n    r.raise_for_status()\n    return r.json()[\"esearchresult\"][\"idlist\"]\n\n# Find human BRCA1 gene ID\nids = gene_search(\"BRCA1[sym] AND Homo sapiens[orgn]\")\nprint(f\"Gene IDs for BRCA1: {ids}\")  # → ['672']\n```\n\n## Core API\n\n### Query 1: Search by Symbol, Name, or Function\n\nUse ESearch with field tags for precise queries.\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\n# Exact symbol match for human gene\nr = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                 params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                         \"term\": \"TP53[sym] AND Homo sapiens[orgn] AND alive[prop]\"})\nids = r.json()[\"esearchresult\"][\"idlist\"]\nprint(f\"TP53 Gene ID: {ids}\")  # → ['7157']\n```\n\n```python\n# Search by function keyword\nr = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                 params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                         \"term\": \"CRISPR[title] AND Homo sapiens[orgn]\", \"retmax\": 5})\nids = r.json()[\"esearchresult\"][\"idlist\"]\nprint(f\"CRISPR-related gene IDs: {ids}\")\n```\n\n### Query 2: Fetch Gene Summary (JSON\u002FESummary)\n\nRetrieve key metadata fields for a list of Gene IDs.\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef esummary_gene(gene_ids):\n    r = requests.post(f\"{BASE}\u002Fesummary.fcgi\",\n                      data={\"db\": \"gene\", \"id\": \",\".join(gene_ids),\n                            \"retmode\": \"json\", \"email\": EMAIL})\n    r.raise_for_status()\n    return r.json()[\"result\"]\n\nresult = esummary_gene([\"672\", \"675\", \"7157\"])  # BRCA1, BRCA2, TP53\n\nfor uid in result.get(\"uids\", []):\n    g = result[uid]\n    print(f\"\\n{g.get('name')} (ID {uid})\")\n    print(f\"  Official symbol : {g.get('nomenclaturesymbol', g.get('name'))}\")\n    print(f\"  Chr location    : {g.get('maplocation')}\")\n    print(f\"  Summary (first 100): {g.get('summary', '')[:100]}...\")\n    print(f\"  Aliases: {g.get('otheraliases', 'none')}\")\n```\n\n### Query 3: Fetch Full Gene Record (XML)\n\nRetrieve the complete gene record in XML for RefSeq accessions, GO terms, and interaction data.\n\n```python\nimport requests\nimport xml.etree.ElementTree as ET\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef efetch_gene_xml(gene_id):\n    r = requests.get(f\"{BASE}\u002Fefetch.fcgi\",\n                     params={\"db\": \"gene\", \"id\": gene_id,\n                             \"rettype\": \"gene_table\", \"retmode\": \"text\", \"email\": EMAIL})\n    r.raise_for_status()\n    return r.text\n\n# Get gene table (tab-delimited overview)\ntable = efetch_gene_xml(\"672\")\nprint(table[:500])\n```\n\n```python\n# XML for RefSeq accession extraction\nr = requests.get(f\"{BASE}\u002Fefetch.fcgi\",\n                 params={\"db\": \"gene\", \"id\": \"672\",\n                         \"rettype\": \"xml\", \"retmode\": \"xml\", \"email\": EMAIL})\nroot = ET.fromstring(r.text)\n\n# Extract RefSeq mRNA accessions\nfor ref in root.iter(\"Gene-commentary\"):\n    acc = ref.find(\"Gene-commentary_accession\")\n    ver = ref.find(\"Gene-commentary_version\")\n    typ = ref.find(\"Gene-commentary_type\")\n    if acc is not None and acc.text and acc.text.startswith(\"NM_\"):\n        print(f\"RefSeq mRNA: {acc.text}.{ver.text if ver is not None else ''}\")\n```\n\n### Query 4: Batch Symbol-to-ID Mapping\n\nMap a list of gene symbols to NCBI Gene IDs efficiently.\n\n```python\nimport requests, time\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef symbols_to_ids(symbols, organism=\"Homo sapiens\"):\n    \"\"\"Map gene symbols to NCBI Gene IDs. Returns dict {symbol: gene_id}.\"\"\"\n    mapping = {}\n    for sym in symbols:\n        r = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                         params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                                 \"term\": f\"{sym}[sym] AND {organism}[orgn] AND alive[prop]\"})\n        ids = r.json()[\"esearchresult\"][\"idlist\"]\n        mapping[sym] = ids[0] if ids else None\n        time.sleep(0.1)\n    return mapping\n\ngenes = [\"EGFR\", \"KRAS\", \"BRAF\", \"PIK3CA\", \"PTEN\"]\nid_map = symbols_to_ids(genes)\nfor sym, gid in id_map.items():\n    print(f\"{sym:10s} → Gene ID {gid}\")\n```\n\n### Query 5: GO Annotation Retrieval\n\nParse GO terms from the gene XML record.\n\n```python\nimport requests\nimport xml.etree.ElementTree as ET\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\nr = requests.get(f\"{BASE}\u002Fefetch.fcgi\",\n                 params={\"db\": \"gene\", \"id\": \"7157\",\n                         \"rettype\": \"xml\", \"retmode\": \"xml\", \"email\": EMAIL})\nroot = ET.fromstring(r.text)\n\n# Extract GO annotations\ngo_terms = []\nfor ref in root.iter(\"Gene-commentary\"):\n    heading = ref.find(\"Gene-commentary_heading\")\n    label = ref.find(\"Gene-commentary_label\")\n    if heading is not None and \"Gene Ontology\" in heading.text:\n        if label is not None:\n            go_terms.append(label.text)\n\nprint(f\"TP53 GO terms ({len(go_terms)} found):\")\nfor term in go_terms[:10]:\n    print(f\"  {term}\")\n```\n\n### Query 6: Cross-Species Orthologs (NCBI Datasets v2)\n\nFind orthologs across species. Note: the legacy E-utilities link `gene_gene_homolog` was retired with HomoloGene in 2019 — the modern path is the **NCBI Datasets v2 REST API**, which exposes a dedicated orthologs endpoint.\n\n```python\nimport requests, time\n\nDATASETS_BASE = \"https:\u002F\u002Fapi.ncbi.nlm.nih.gov\u002Fdatasets\u002Fv2\"\n\ndef get_orthologs(gene_id, taxon_filter=None):\n    \"\"\"Return ortholog Gene reports for a given NCBI Gene ID.\n    taxon_filter: optional tax_id (int) or list of tax_ids to narrow species.\"\"\"\n    params = {}\n    if taxon_filter is not None:\n        # tax_ids: human=9606, mouse=10090, rat=10116, zebrafish=7955, fly=7227\n        ids = taxon_filter if isinstance(taxon_filter, (list, tuple)) else [taxon_filter]\n        params[\"taxon_filter\"] = [str(t) for t in ids]\n    r = requests.get(f\"{DATASETS_BASE}\u002Fgene\u002Fid\u002F{gene_id}\u002Forthologs\",\n                     params=params, timeout=30)\n    r.raise_for_status()\n    return r.json().get(\"reports\", [])\n\n# Mouse ortholog of human TP53 (Gene ID 7157)\nreports = get_orthologs(\"7157\", taxon_filter=10090)\nfor rep in reports[:5]:\n    g = rep.get(\"gene\", {})\n    print(f\"  {g.get('symbol'):8s} (tax {g.get('tax_id')}, gene_id {g.get('gene_id')}): \"\n          f\"{g.get('description', '')[:60]}\")\n# Expect:  Trp53    (tax 10090, gene_id 22059): transformation related protein 53\n\ntime.sleep(0.34)\n# All orthologs (every species in the orthology group)\nall_orthologs = get_orthologs(\"7157\")\nprint(f\"\\nTotal TP53 orthologs across species: {len(all_orthologs)}\")\n```\n\n## Key Concepts\n\n### NCBI Gene ID vs. HGNC ID vs. Ensembl ID\n\nNCBI Gene IDs are integers assigned per gene per organism (e.g., human TP53 = 7157). These are distinct from HGNC IDs (e.g., HGNC:11998) and Ensembl IDs (ENSG00000141510). Many downstream NCBI databases (ClinVar, dbSNP, GEO) use NCBI Gene IDs internally.\n\n### `alive[prop]` Filter\n\nNCBI Gene records for discontinued genes have `status=discontinued`. Always add `AND alive[prop]` to symbol queries to exclude retired entries and avoid retrieving stale data.\n\n## Common Workflows\n\n### Workflow 1: Build a Gene Annotation Table\n\n**Goal**: For a list of gene symbols, retrieve Gene ID, official name, chromosomal location, and description.\n\n```python\nimport requests, time, pandas as pd\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\ndef search_gene(sym, organism=\"Homo sapiens\"):\n    r = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                     params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                             \"term\": f\"{sym}[sym] AND {organism}[orgn] AND alive[prop]\"})\n    ids = r.json()[\"esearchresult\"][\"idlist\"]\n    return ids[0] if ids else None\n\ndef batch_summary(gene_ids):\n    r = requests.post(f\"{BASE}\u002Fesummary.fcgi\",\n                      data={\"db\": \"gene\", \"id\": \",\".join(gene_ids),\n                            \"retmode\": \"json\", \"email\": EMAIL})\n    return r.json()[\"result\"]\n\nsymbols = [\"BRCA1\", \"BRCA2\", \"TP53\", \"EGFR\", \"MYC\", \"KRAS\", \"PTEN\"]\n\n# Step 1: Symbol → Gene ID\nid_map = {}\nfor sym in symbols:\n    gid = search_gene(sym)\n    id_map[sym] = gid\n    time.sleep(0.12)\n\n# Step 2: Batch summary\nvalid_ids = [v for v in id_map.values() if v]\nresult = batch_summary(valid_ids)\n\nrows = []\nsym_to_id = {v: k for k, v in id_map.items() if v}\nfor uid in result.get(\"uids\", []):\n    g = result[uid]\n    rows.append({\n        \"symbol\": sym_to_id.get(uid, g.get(\"name\")),\n        \"gene_id\": uid,\n        \"full_name\": g.get(\"description\"),\n        \"chr_location\": g.get(\"maplocation\"),\n        \"summary\": g.get(\"summary\", \"\")[:200],\n    })\n\ndf = pd.DataFrame(rows)\ndf.to_csv(\"gene_annotations.csv\", index=False)\nprint(df[[\"symbol\", \"gene_id\", \"full_name\", \"chr_location\"]].to_string(index=False))\n```\n\n### Workflow 2: Find All Genes in a Pathway Keyword\n\n**Goal**: Retrieve all human genes associated with a biological keyword from the NCBI Gene summary field.\n\n```python\nimport requests, time, pandas as pd\n\nEMAIL = \"your@email.com\"\nBASE = \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\"\n\nkeyword = \"DNA mismatch repair\"\nr = requests.get(f\"{BASE}\u002Fesearch.fcgi\",\n                 params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n                         \"retmax\": 50,\n                         \"term\": f\"{keyword}[title\u002Fabstract] AND Homo sapiens[orgn] AND alive[prop]\"})\nids = r.json()[\"esearchresult\"][\"idlist\"]\nprint(f\"Found {len(ids)} genes related to '{keyword}'\")\n\n# Fetch summaries\nr2 = requests.post(f\"{BASE}\u002Fesummary.fcgi\",\n                   data={\"db\": \"gene\", \"id\": \",\".join(ids), \"retmode\": \"json\", \"email\": EMAIL})\nresult = r2.json()[\"result\"]\n\nrows = []\nfor uid in result.get(\"uids\", []):\n    g = result[uid]\n    rows.append({\"gene_id\": uid, \"symbol\": g.get(\"name\"),\n                 \"description\": g.get(\"description\"),\n                 \"location\": g.get(\"maplocation\")})\n\ndf = pd.DataFrame(rows)\nprint(df.to_string(index=False))\ndf.to_csv(f\"{keyword.replace(' ', '_')}_genes.csv\", index=False)\n```\n\n## Key Parameters\n\n| Parameter | Module | Default | Range \u002F Options | Effect |\n|-----------|--------|---------|-----------------|--------|\n| `retmax` | ESearch | `20` | `1`–`10000` | Max records returned |\n| `retmode` | ESearch\u002FESummary | `\"xml\"` | `\"json\"`, `\"xml\"` | Response format |\n| `rettype` | EFetch | depends | `\"xml\"`, `\"gene_table\"`, `\"text\"` | Record format for full fetch |\n| `[sym]` field tag | ESearch | — | gene symbol | Match exact official symbol only |\n| `[orgn]` field tag | ESearch | — | organism name or tax ID | Filter by taxonomy |\n| `alive[prop]` | ESearch | — | boolean flag | Exclude discontinued gene records |\n\n## Best Practices\n\n1. **Always add `alive[prop]`**: Discontinued gene records remain in the database. Without this filter, symbol searches may return outdated records.\n\n2. **Use Gene IDs in pipelines**: Downstream NCBI databases (ClinVar, dbSNP, GEO) accept Gene IDs; avoid re-searching by symbol in each call.\n\n3. **Use ESummary for metadata, EFetch for full records**: ESummary returns JSON with all common fields; EFetch XML is needed only for RefSeq accessions, GO terms, or interaction links.\n\n4. **Register for a free API key**: Triple your rate limit (3 → 10 req\u002Fs) at https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Faccount\u002F. Pass as `api_key` parameter.\n\n5. **Batch with ESummary**: POST up to 200 Gene IDs per call to ESummary instead of querying one at a time.\n\n## Common Recipes\n\n### Recipe: Gene ID to RefSeq NM Accession\n\nWhen to use: Get the canonical mRNA accession for a protein-coding gene.\n\n```python\nimport requests, re\n\nEMAIL = \"your@email.com\"\nGENE_ID = \"672\"  # BRCA1\n\nr = requests.get(\n    \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fefetch.fcgi\",\n    params={\"db\": \"gene\", \"id\": GENE_ID, \"rettype\": \"gene_table\",\n            \"retmode\": \"text\", \"email\": EMAIL}\n)\nnm_accessions = re.findall(r\"NM_\\d+\\.\\d+\", r.text)\nprint(f\"RefSeq mRNA accessions: {list(set(nm_accessions))}\")\n```\n\n### Recipe: Retrieve Gene Aliases\n\nWhen to use: Resolve legacy\u002Falias symbols to the current official NCBI symbol.\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\n\n# P53 is an alias for TP53\nr = requests.get(\n    \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fesearch.fcgi\",\n    params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\",\n            \"term\": \"p53[sym] AND Homo sapiens[orgn] AND alive[prop]\"}\n)\nids = r.json()[\"esearchresult\"][\"idlist\"]\n\nr2 = requests.post(\"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fesummary.fcgi\",\n                   data={\"db\": \"gene\", \"id\": \",\".join(ids[:1]),\n                         \"retmode\": \"json\", \"email\": EMAIL})\ng = r2.json()[\"result\"][ids[0]]\nprint(f\"Official symbol : {g.get('nomenclaturesymbol', g.get('name'))}\")\nprint(f\"Other aliases   : {g.get('otheraliases')}\")\nprint(f\"Designations    : {g.get('otherdesignations', '')[:100]}\")\n```\n\n### Recipe: List All Genes on a Chromosome\n\nWhen to use: Get all protein-coding genes on a specific human chromosome.\n\n```python\nimport requests\n\nEMAIL = \"your@email.com\"\n\nr = requests.get(\n    \"https:\u002F\u002Feutils.ncbi.nlm.nih.gov\u002Fentrez\u002Feutils\u002Fesearch.fcgi\",\n    params={\"db\": \"gene\", \"email\": EMAIL, \"retmode\": \"json\", \"retmax\": 5,\n            \"term\": \"17[chr] AND Homo sapiens[orgn] AND protein coding[filter] AND alive[prop]\"}\n)\nresult = r.json()[\"esearchresult\"]\nprint(f\"Protein-coding genes on chr17: {result['count']} total\")\nprint(f\"Sample IDs: {result['idlist']}\")\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| Empty `idlist` for known symbol | Symbol is an alias, not the official term | Use `[gene name]` or `[title]` field tag; check aliases via ESummary |\n| Wrong species returned | Missing organism filter | Add `AND Homo sapiens[orgn]` or target tax ID (`9606[taxid]`) |\n| Discontinued gene returned | Missing `alive[prop]` filter | Append `AND alive[prop]` to all symbol queries |\n| `HTTP 429` rate limit | Too many requests | Add `time.sleep(0.35)` between calls; use NCBI API key |\n| ESummary missing `uids` key | All IDs invalid\u002Fabsent | Check `id` values are valid integers, not empty strings |\n| XML parse error | Malformed XML for rare genes | Wrap ET.fromstring in try\u002Fexcept; retry with `rettype=text` |\n| Empty ortholog list from ELink | Legacy `linkname=gene_gene_homolog` retired with HomoloGene in 2019 | Use NCBI Datasets v2 `\u002Fgene\u002Fid\u002F{gene_id}\u002Forthologs` instead (Query 6) |\n\n## Related Skills\n\n- `geo-database` — Gene Expression Omnibus for retrieving expression data linked to genes found here\n- `clinvar-database` — Clinical variant data indexed by NCBI Gene IDs\n- `ensembl-database` — Complementary gene annotations with VEP and comparative genomics\n- `biopython-molecular-biology` — Biopython Entrez module wraps E-utilities with typed return values\n\n## References\n\n- [NCBI Gene database](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fgene\u002F) — Official homepage and search interface\n- [E-utilities documentation](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fbooks\u002FNBK25499\u002F) — Complete API reference for ESearch, ESummary, EFetch\n- [NCBI Gene field tags](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fbooks\u002FNBK3840\u002F) — Field tag reference for constructing Entrez queries\n- [NCBI API Key registration](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Faccount\u002F) — Free registration for 10 req\u002Fs rate limit\n- [NCBI Datasets v2 REST API](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fdatasets\u002Fdocs\u002Fv2\u002Freference-docs\u002Frest-api\u002F) — Modern endpoint for orthologs, gene metadata, and taxonomy (replaces retired HomoloGene)\n",{"name":5,"license":15,"description":7},"master","63f17866001c5ca854bf2fa0b678ce277133de5b","skills\u002Fawesome-skills\u002Fgene-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 gene-database",{"tool":40,"command":41},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill gene-database",{"tool":43,"command":44},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill gene-database","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fgene-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",[],[]]