Ncbi gene search
Skill ma-compbio-lab/SkillFoundry/skills/genomics/ncbi-gene-search
Use this skill to search NCBI Gene by symbol and organism, then fetch compact official Entrez Gene summaries. Do not use it for variant interpretation, transcript-level modeling, or bulk offline annotation.From its SKILL.md
npx -y skills add ma-compbio-lab/SkillFoundry --skill ncbi-gene-searchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
2.2 KB, 474 tokens by cl100k_base, as published. Nobody here has run it
Purpose
Resolve a gene symbol through NCBI E-utilities and return concise Gene database summaries.
When to use
- You need an official Entrez Gene identifier for a symbol and species.
- You want a quick NCBI summary before a larger genomics workflow.
When not to use
- You need transcript-level coordinates or large-batch annotation.
- You need clinical interpretation or variant effect prediction.
- You need offline execution.
Inputs
- Gene symbol
- Optional species, maximum result count, email, and output path
Outputs
- JSON payload containing the query, matched Gene IDs, and compact gene summaries
Requirements
- Python 3.10+
- Network access to
eutils.ncbi.nlm.nih.gov
Procedure
- Run
python3 skills/genomics/ncbi-gene-search/scripts/search_ncbi_gene.py --symbol BRCA1 --species "homo sapiens" --retmax 1 --out skills/genomics/ncbi-gene-search/assets/brca1_gene_summary.json. - Inspect the
geneslist forgene_id,symbol,description,organism, andmap_location. - Use the NCBI gene ID in downstream lookup or literature workflows when needed.
Validation
- Command exits successfully.
search.idscontains at least one Gene ID for a known symbol.- The first result has a non-empty
symbolandorganism.
Failure modes and fixes
- No hits: confirm the symbol and organism spelling.
- Unexpected species: make the organism explicit with
--species. - Too many matches: lower
--retmaxand review the returned summaries.
Safety and limits
- Metadata lookup only.
- This skill does not perform variant interpretation or clinical classification.
Example
python3 skills/genomics/ncbi-gene-search/scripts/search_ncbi_gene.py --symbol TP53 --species "homo sapiens" --retmax 1
Provenance
- NCBI E-utilities: https://www.ncbi.nlm.nih.gov/books/NBK25501/
- NCBI Developer APIs: https://www.ncbi.nlm.nih.gov/home/develop/api/
Related skills
ensembl-gene-lookupncbi-pubmed-search
What ships with it: 8 files
15.4 KB alongside SKILL.md, 2 of them executable
assets/
- brca1_gene_summary.json2.5 KB
- README.md184 B
examples/
- README.md406 B
scripts/
- search_ncbi_gene.pyruns5.5 KB
tests/
- README.md190 B
- test_ncbi_gene_search.pyruns5.5 KB
- metadata.yaml906 B
- refs.md228 B