Query the NCBI Gene database via E-utilities and the NCBI Datasets API; use it when you need to search genes by symbol/ID and retrieve annotations (RefSeq, GO, location, phenotype) for single or batch gene lists.
68
84%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
requests >= 2.28The following examples assume the repository provides these scripts:
scripts/query_gene.pyscripts/fetch_gene_data.pyscripts/batch_gene_lookup.py
python scripts/query_gene.py --search "BRCA1" --organism "human"Example advanced query strings:
python scripts/query_gene.py --search "insulin[gene name] AND human[organism]"
python scripts/query_gene.py --search "dystrophin[gene name] AND muscular dystrophy[disease]"
python scripts/query_gene.py --search "human[organism] AND 17q21[chromosome]"Using E-utilities (format-oriented retrieval):
python scripts/query_gene.py --id 672 --format jsonUsing NCBI Datasets API (consolidated gene payload):
python scripts/fetch_gene_data.py --gene-id 672Or by symbol + taxon:
python scripts/fetch_gene_data.py --symbol BRCA1 --taxon human
python scripts/fetch_gene_data.py --symbol TP53 --taxon "Homo sapiens" --output jsonFrom a file of symbols (organism required for symbol disambiguation):
python scripts/batch_gene_lookup.py --file gene_list.txt --organism humanFrom a comma-separated list of Gene IDs:
python scripts/batch_gene_lookup.py --ids 672,7157,5594 --output results.jsonTypical fielded query components include:
"<SYMBOL>" plus organism scoping: BRCA1[gene name] AND human[organism]GO:0006915[biological process]diabetes[phenotype] AND mouse[organism]insulin signaling pathway[pathway]Obtain an API key from: https://www.ncbi.nlm.nih.gov/account/
Depending on endpoint/script options, gene data may be returned as:
If present in the repository, consult:
references/api_reference.md for endpoint/parameter details and response structuresreferences/common_workflows.md for additional query patterns and end-to-end examples63c61d3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.