一键导入
predict
Make predictions using a trained AutoMol model. Auto-discovers models from the registry. Use when the user wants to run inference on new molecules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Make predictions using a trained AutoMol model. Auto-discovers models from the registry. Use when the user wants to run inference on new molecules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Plan and execute an AutoMol training pipeline. Analyzes dataset, auto-configures a plan, asks for approval, then executes — all in one invocation. Re-invoke to resume if interrupted. Use when the user wants to train a complete model from raw data.
Generate an interactive HTML dashboard from AutoMol evaluation results. Auto-discovers completed runs with evaluation data and renders Plotly.js charts. Use when the user wants to visualize training results.
| name | predict |
| description | Make predictions using a trained AutoMol model. Auto-discovers models from the registry. Use when the user wants to run inference on new molecules. |
| allowed-tools | Read, Glob, Grep, Bash, AskUserQuestion |
Single-phase skill: load registry, select model, run predictions, show results.
Read MolagentFiles/model_registry.json.
train-pipeline skill to train a model first." STOP.0 models: STOP (handled above).
1 model: Auto-select it. Display a brief summary:
Using model: {id}
Target: {target_properties}
Task: {task_type}
Metrics: {formatted_metrics or "No metrics available"}
Model file: {model_file}
N models: Present choices via AskUserQuestion:
AskUserQuestion:
question: "Which model do you want to use for predictions?"
header: "Model"
options: (up to 4 models, most recent first)
- "{id} — {target_properties} ({task_type}, {key_metric})"
- ...
After selection, display the model summary as above.
If the user already provided input molecules (CSV path or SMILES strings) in their original message, use that directly.
Otherwise, ask:
AskUserQuestion:
question: "How would you like to provide molecules for prediction?"
header: "Input"
options:
- "CSV file — I have a CSV with a SMILES column"
- "SMILES strings — I'll paste individual SMILES"
For CSV file: ask for the path if not provided. Do NOT force --smiles-column from the training config — let predict.py auto-detect the column in the user's new data (it tries SMILES, smiles, standardized_smiles, Stand_SMILES). Only add --smiles-column if the user explicitly specifies a non-standard column name.
For SMILES strings: collect the SMILES. Each becomes a --smiles-list argument.
Read the registry entry's feature_keys. If it contains prolif or AffGraph:
WARNING: This model uses 3D protein-ligand features ({feature_keys}).
Predictions require corresponding protein structures for each molecule.
If you don't have matching 3D data, predictions may fail or be unreliable.
Ask via AskUserQuestion whether to proceed.
Build the command from the registry entry. The approach depends on model_format:
Merged model (model_format: "merged", model_file is a single string):
Single invocation predicts all properties at once:
uv run python ${AUTOMOL_ROOT:-$PWD}/skills/predict/scripts/predict.py \
--model-file {model_file} \
{--smiles-file INPUT_CSV | --smiles-list "SMILES1" --smiles-list "SMILES2"} \
--output-folder MolagentFiles/ \
--verbose
To predict a subset of properties: add --properties prop1 --properties prop2.
Individual models (model_format: "individual", model_file is a list):
One invocation per model file (existing behavior):
uv run python ${AUTOMOL_ROOT:-$PWD}/skills/predict/scripts/predict.py \
--model-file {model_file_path} \
{--smiles-file INPUT_CSV | --smiles-list "SMILES1" --smiles-list "SMILES2"} \
--output-folder MolagentFiles/ \
--verbose
Add --blender-properties {bp} for each entry in the registry's blender_properties array (only for CSV input — the script reads values from the CSV columns).
For CLI SMILES with blender properties, add --blender-values {prop}={value} — ask user for values if not provided.
MolagentFiles/predictions.csv, individual: MolagentFiles/{property}_predictions.csv)Predictions complete!
Model: {id}
Input: {n} molecules
Output: {output_path}
Sample predictions:
{table of first 5 rows}
For API serving, see the model card for deployment instructions.
${AUTOMOL_ROOT:-$PWD} resolves to this plugin's root directory (set by SessionStart hook, falls back to $PWD)uv run python ... (no venv activation needed — uv run handles dependencies)train_info.json if not explicitly provided