skills/pharma/pharma-db-tools/SKILL.md
Query public drug-discovery and translational-research databases including PubChem, ChEMBL, BindingDB, openFDA, ClinicalTrials.gov, and OpenAlex. Use when the user asks to look up compounds, measured binding affinities, regulatory labels or adverse events, clinical trials, or drug-discovery literature from public APIs and curated exports.
npx skillsauth add drugclaw/drugclaw pharma-db-toolsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user asks for public drug-discovery database lookups rather than local cheminformatics analysis.
Typical triggers:
The bundled template uses Python plus HTTP APIs. Check first.
which python3 || true
python3 - <<'PY'
mods = ["requests"]
for name in mods:
try:
__import__(name)
print(f"{name}: ok")
except Exception as exc:
print(f"{name}: missing ({exc})")
PY
If outbound network access is blocked, say so explicitly before claiming the lookup ran.
Use the reusable template instead of rewriting API snippets every time:
templates/pharma_db_lookup.pySupported sources:
pubchemchemblbindingdbopenfdaclinicaltrialsopenalexpython3 templates/pharma_db_lookup.py pubchem \
--query imatinib \
--output pharma/pubchem_imatinib.csv \
--summary pharma/pubchem_imatinib.json
python3 templates/pharma_db_lookup.py chembl \
--mode molecule \
--chembl-id CHEMBL941 \
--output pharma/chembl_imatinib.csv \
--summary pharma/chembl_imatinib.json
python3 templates/pharma_db_lookup.py bindingdb \
--tsv BindingDB_All.tsv \
--uniprot-id P00519 \
--affinity-type Ki \
--max-nm 1000 \
--output pharma/bindingdb_abl1.csv \
--summary pharma/bindingdb_abl1.json
python3 templates/pharma_db_lookup.py openfda \
--endpoint label \
--query imatinib \
--output pharma/fda_imatinib_label.csv \
--summary pharma/fda_imatinib_label.json
python3 templates/pharma_db_lookup.py clinicaltrials \
--condition "non-small cell lung cancer" \
--intervention osimertinib \
--status RECRUITING \
--output pharma/osimertinib_trials.csv \
--summary pharma/osimertinib_trials.json
python3 templates/pharma_db_lookup.py openalex \
--query "KRAS G12C inhibitor resistance" \
--limit 20 \
--output pharma/openalex_kras_g12c.csv \
--summary pharma/openalex_kras_g12c.json
python3 templates/pharma_db_lookup.py pubchem \
--cid 5291 \
--output pharma/pubchem_5291.csv \
--summary pharma/pubchem_5291.json
python3 templates/pharma_db_lookup.py chembl \
--mode activity \
--target-id CHEMBL203 \
--standard-type IC50 \
--limit 25 \
--output pharma/egfr_ic50.csv \
--summary pharma/egfr_ic50.json
python3 templates/pharma_db_lookup.py bindingdb \
--tsv BindingDB_All.tsv \
--compound-name imatinib \
--affinity-type Ki \
--limit 25 \
--output pharma/imatinib_bindingdb.csv \
--summary pharma/imatinib_bindingdb.json
python3 templates/pharma_db_lookup.py openfda \
--endpoint event \
--query pembrolizumab \
--output pharma/pembro_events.csv \
--summary pharma/pembro_events.json
python3 templates/pharma_db_lookup.py clinicaltrials \
--nct-id NCT04280705 \
--output pharma/nct04280705.csv \
--summary pharma/nct04280705.json
python3 templates/pharma_db_lookup.py openalex \
--author "Jennifer Doudna" \
--limit 20 \
--output pharma/doudna_works.csv \
--summary pharma/doudna_works.json
Good answers should mention:
For UniProt, PDB, AlphaFold, ClinVar, Ensembl, GEO, KEGG, Reactome, STRING, or OpenTargets, activate bio-db-tools.
For DrugBank, ADMET, QSAR, descriptors, or structure-aware affinity work, activate chem-tools.
For datamol, molfeat, PyTDC, or medchem-style library workflows, activate pharma-ml-tools.
For docking, receptor preparation, or virtual screening execution, activate docking-tools.
tools
Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs. Use when the user asks for time-to-event analysis, censored data summaries, hazard ratios, or survival-group comparison for research datasets.
tools
Statistical modeling workflow guide for hypothesis tests, effect-size reporting, statsmodels regression, diagnostics, and structured result export. Use when the user asks for statistical test selection, OLS or logistic regression, coefficient tables, inference, or reproducible statistical summaries for scientific datasets.
tools
Research-method workflow guide for hypothesis framing, peer-review style critique, reproducibility planning, study-design checks, and scientific-writing structure. Use when the user asks for manuscript critique, research-gap framing, hypothesis generation, reproducibility checklists, or study-planning support that should stay on the research side rather than patient-care decisions.
tools
Scientific visualization workflow guide for publication-ready static figures with seaborn or matplotlib and interactive figures with Plotly. Use when the user asks for scientific plots, cohort or assay figures, publication graphics, dashboards, or reusable plotting scripts for research datasets.