skills/research/bayesian-optimization-tools/SKILL.md
Bayesian optimization workflow guide for experiment suggestion, condition tuning, and closed-loop parameter search with Gaussian-process surrogates. Use when the user asks which experiment to try next, how to tune reaction or assay conditions, or how to balance exploration versus exploitation over a bounded numeric search space.
npx skillsauth add drugclaw/drugclaw bayesian-optimization-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 wants the runtime to recommend the next experiment or parameter set instead of only summarizing past results.
Typical triggers:
which python3 || true
python3 - <<'PY'
mods = ["numpy", "sklearn"]
for name in mods:
try:
__import__(name)
print(f"{name}: ok")
except Exception as exc:
print(f"{name}: missing ({exc})")
PY
Do not claim a suggestion run completed if numpy or scikit-learn is missing.
templates/bayesian_optimize.pypython3 templates/bayesian_optimize.py \
--input experiments.csv \
--objective-column yield \
--param-column temperature \
--param-column ph \
--bound temperature:20:80 \
--bound ph:5.5:8.5 \
--direction maximize \
--output optimization/next_conditions.csv \
--summary optimization/next_conditions.json
Inline JSON example:
python3 templates/bayesian_optimize.py \
--history-json '[{"temperature": 20, "ph": 7.0, "yield": 0.52}, {"temperature": 35, "ph": 6.5, "yield": 0.68}]' \
--objective-column yield \
--bound temperature:20:60 \
--bound ph:5.5:8.0 \
--direction maximize \
--suggestions 3 \
--output optimization/suggestions.csv \
--summary optimization/suggestions.json
Good answers should mention:
For regression or hypothesis testing on finished experiments, activate stat-modeling-tools.
For study-planning artifacts or reproducibility checklists, activate scientific-workflow-tools.
For chemistry, omics, or docking analyses that generate the objective values, activate the corresponding domain skill.
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.