Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add HKUDS/CLI-Anything --skill cli-anything-unimol-tools -a claude-code
Open on GitHub

What 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 auto to 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-code

2Manually: put the files in place

~/.claude/skills/cli-anything-unimol-tools/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cli-anything-unimol-tools/

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

Similar skills

Everything for AI and ML →

From the same set55

cli-anything-cloudanalyzer Runs CloudAnalyzer checks for point clouds, trajectories, and ground segmentation. Use it when an agent needs QA thresholds or point-cloud processing from the terminal. CX Codex +1 464installs cli-anything-zoom A skill that puts a Zoom CLI into your project: create meetings, register attendees from a CSV, pull cloud recordings, all without leaving the terminal. CX Codex +1 462installs cli-anything-eth2-quickstart Automates Ethereum node provisioning through canonical eth2-quickstart shell scripts. It sets up consensus clients and inspects node health without exposing private keys. CX Codex +1 456installs cli-anything-novita Gives an agent CLI commands for Novita API chat, streamed replies, and model discovery. Use it when calling DeepSeek or GLM models from a terminal. CX Codex +1 462installs cli-anything-seaclip A stateless CLI for managing tasks, pipelines, and schedules on the SeaClip-Lite board. It allows AI agents to inspect and update issues using structured JSON output. CX Codex +1 452installs cli-anything-rms Gives your coding agent a command line for Teltonika RMS, so it can list routers, gateways and IoT devices, read alerts and pull reports. CX Codex +1 451installs cli-anything-unrealinsights This skill controls Unreal Engine trace capture, Trace Store inspection, and Unreal Insights, then exports timing and counter data. It fits agent-driven profiling. CX Codex +1 434installs cli-anything-nsight-graphics Runs NVIDIA Nsight Graphics captures and analysis from the command line. Use it when investigating frames or GPU trace output. CX Codex +1 412installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor