Accesses Comparative Toxicogenomics Database (CTD) for chemical, gene, disease, and pathway interaction data. Invoke when user needs to query CTD, retrieve toxicogenomics data, or investigate chemical-disease relationships.
58
68%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./scientific-skills/Evidence Insight/ctd-api/SKILL.mdThis skill allows you to query the Comparative Toxicogenomics Database (CTD) using the Batch Query API. You can retrieve curated and inferred associations between chemicals, diseases, genes, pathways, and phenotypes.
scripts/query_ctd.py.references/ for task-specific guidance.Python: 3.10+. Repository baseline for current packaged skills.Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.cd "20260316/scientific-skills/Evidence Insight/ctd-api"
python -m py_compile scripts/query_ctd.py
python scripts/query_ctd.py --helpExample run plan:
CONFIG block or documented parameters if the script uses fixed settings.python scripts/query_ctd.py with the validated inputs.scripts/query_ctd.py.references/ contains supporting rules, prompts, or checklists.Retrieve data for a list of terms.
Script: scripts/query_ctd.py
Usage:
python scripts/query_ctd.py --inputType <type> --inputTerms <term1> <term2> ... --report <report_type> [--format <format>]Parameters:
inputType: chem, disease, gene, go, pathway, phenotype, referenceinputTerms: List of identifiers (MeSH IDs, NCBI Gene IDs, etc.) or names.report: The type of data to retrieve (e.g., genes_curated, diseases_curated). See references/ctd_api_docs.md for valid combinations.format: json (default), tsv, csv, xml.To generate a URL for a specific entity (no script needed, just text generation):
https://ctdbase.org/detail.go?type=chem&acc={ID}https://ctdbase.org/detail.go?type=disease&acc={ID}https://ctdbase.org/detail.go?type=gene&acc={ID}https://ctdbase.org/detail.go?type=go&acc={ID}https://ctdbase.org/detail.go?type=pathway&acc={ID}Get curated genes associated with a chemical (e.g., Mercury):
python scripts/query_ctd.py --inputType chem --inputTerms "Mercury" --report genes_curated --format jsonGet diseases associated with a gene (e.g., APP):
python scripts/query_ctd.py --inputType gene --inputTerms "APP" --report diseases_curatedSee references/ctd_api_docs.md for a complete list of valid inputType and report combinations.
ctd_api_result.md unless the skill documentation defines a better convention.Run this minimal verification path before full execution when possible:
python scripts/query_ctd.py --helpExpected output format:
Result file: ctd_api_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any63c61d3
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.