cli-anything-unimol-tools — Claude Code skill: setup and features
CLI skill for training and running Uni-Mol molecular property prediction models. It handles experiment tracking, inference, and storage cleanup for chemistry workflows.
npx skills add HKUDS/CLI-Anything --skill cli-anything-unimol-tools -a claude-codeWhat cli-anything-unimol-tools does
The skill exposes the cli_anything.unimol_tools package to orchestrate Uni-Mol prediction pipelines. Agents run training and inference directly from the command line. Supported tasks cover binary classification, continuous regression, multiclass, and multilabel setups.
Project state persists across CLI runs. You can inspect saved models with models list or rank them using models rank. To save disk space, cleanup auto strips out low-performing checkpoints, while the --json flag formats terminal output for automation.
Running this workflow requires Python 3.8+, PyTorch 1.12+, and the Uni-Mol Tools backend. Training demands at least 8GB RAM, with 4GB RAM being the absolute minimum for basic operations. Every input CSV file must contain a SMILES column, or the execution halts.
What it helps with
- Train molecular property prediction models from SMILES datasets
- Rank saved checkpoints by performance using
models rank - Free disk space with
cleanup autoto remove low-scoring runs - Run batch predictions on CSV files containing molecular structures
Example prompts for the agent
- Train a classification model on train.csv with target column active for 10 epochs
- List and rank all trained models by performance
- Predict molecular properties for test.csv using the latest model
How to install cli-anything-unimol-tools
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-unimol-tools -a claude-code2Manually: put the files in place
~/.claude/skills/cli-anything-unimol-tools/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cli-anything-unimol-tools/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-unimol-tools -a codex2Manually: put the files in place
.agents/skills/cli-anything-unimol-tools/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-unimol-tools -a cursor2Manually: put the files in place
.cursor/skills/cli-anything-unimol-tools/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install HKUDS/CLI-Anything cli-anything-unimol-tools2Manually: put the files in place
.github/skills/cli-anything-unimol-tools/SKILL.md1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-unimol-tools -a gemini-cli2Platform CLI
gemini skills install https://github.com/HKUDS/CLI-Anything --path skills/cli-anything-unimol-toolsManually: put the files in place
.devin/skills/cli-anything-unimol-tools/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-unimol-tools -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cli-anything-unimol-tools
How to install cli-anything-unimol-tools in Claude Code?
Run npx skills add HKUDS/CLI-Anything --skill cli-anything-unimol-tools -a claude-code in your terminal.
What does cli-anything-unimol-tools do?
It provides a CLI workflow to train, evaluate, and run inference with Uni-Mol models across five molecular prediction task types.
What format is required for input data files?
Input CSV files must include a SMILES column with molecular representations and target columns specified by the --target-col flag.
Source text
SKILL.md · Apache-2.0
---
name: "cli-anything-unimol-tools"
description: >-
Interactive CLI for Uni-Mol molecular property prediction training and inference workflows.
---
# Uni-Mol Tools - Molecular Property Prediction CLI
**Package**: `cli-anything-unimol-tools`
**Command**: `python3 -m cli_anything.unimol_tools`
## Description
Interactive CLI for training and inference of molecular property prediction models using Uni-Mol Tools. Supports 5 task types: binary classification, regression, multiclass, multilabel classification, and multilabel regression.
## Key Features
- **Project Management**: Organize experiments with named projects
- **5 Task Types**: Classification, regression, multiclass, multilabel variants
- **Model Tracking**: Automatic performance history and rankings
- **Smart Storage**: Analyze usage and clean up underperformers
- **JSON API**: Full automation support with `--json` flag
## Common Commands
### Project Management
```bash
# Create a new project
project create --name drug_discovery
# List all projects
project list
# Switch to a project
project switch --name drug_discovery
```
### Training
```bash
# Train a classification model
train --data-path train.csv --target-col active --task-type classification --epochs 10
# Train a regression model
train --data-path train.csv --target-col affinity --task-type regression --epochs 10
```
### Model Management
```bash
# List all trained models
models list
# Show model details and performance
models show --model-id <id>
# Rank models by performance
models rank
```
### Storage & Cleanup
```bash
# Analyze storage usage
storage analyze
# Automatic cleanup of poor performers
cleanup auto
# Manual cleanup with criteria
cleanup manual --max-models 10 --min-score 0.7
```
### Prediction
```bash
# Make predictions with a trained model
predict --model-id <id> --data-path test.csv
```
## Data Format
CSV files must contain:
- `SMILES` column: Molecular structures in SMILES format
- Target column(s): Values to predict (name specified via `--target-col`)
Example:
```csv
SMILES,target
CCO,1
CCCO,0
CC(C)O,1
```
## Task Types
1. **classification**: Binary classification (0/1)
2. **regression**: Continuous value prediction
3. **multiclass**: Multiple class classification
4. **multilabel_classification**: Multiple binary labels
5. **multilabel_regression**: Multiple continuous values
## JSON Mode
Add `--json` flag to any command for machine-readable output:
```bash
python3 -m cli_anything.unimol_tools --json models list
```
Output format:
```json
{
"status": "success",
"data": [...],
"message": "..."
}
```
## Interactive Mode
Launch without commands for interactive REPL:
```bash
python3 -m cli_anything.unimol_tools
```
Features:
- Tab completion
- Command history
- Contextual help
- Project state persistence
## Test Data
Example datasets available at:
https://github.com/545487677/CLI-Anything-unimol-tools/tree/main/unimol_tools/examples
Includes data for all 5 task types.
## Requirements
- Python 3.8+
- PyTorch 1.12+
- Uni-Mol Tools backend
- 4GB+ RAM (8GB+ recommended for training)
## Installation
```bash
cd unimol_tools/agent-harness
pip install -e .
```
## Documentation
- **SOP**: [UNIMOL_TOOLS.md](../UNIMOL_TOOLS.md)
- **Quick Start**: [docs/guides/02-QUICK-START.md](../docs/guides/02-QUICK-START.md)
- **Full Documentation**: [docs/README.md](../docs/README.md)
## Testing
```bash
cd docs/test
bash run_tests.sh --unit -v # Unit tests (67 tests)
bash run_tests.sh --full -v # Full test suite
```
## Performance Tips
- Start with 10 epochs for initial experiments
- Use smaller batch sizes if memory is limited
- Monitor storage with `storage analyze`
- Use `models rank` to identify best performers
- Clean up regularly with `cleanup auto`
## Troubleshooting
- **CUDA errors**: Reduce batch size or use CPU mode
- **CSV not recognized**: Verify SMILES column exists
- **Low accuracy**: Try more epochs or adjust learning rate
- **Storage full**: Run `cleanup auto` to free space
## Related
- **Uni-Mol Tools**: https://github.com/dptech-corp/Uni-Mol/tree/main/unimol_tools
- **Uni-Mol Paper**: https://arxiv.org/abs/2209.11126
- **CLI-Anything**: https://github.com/HKUDS/CLI-Anything
© HKUDS · Apache-2.0 · HKUDS/CLI-Anything