Skip to content
Back to skills

Reinvent4

ASecurity

"Use REINVENT4 for molecular design CLI workflows: sampling,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
developmentpythonbashbackend

Works with

  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill reinvent4 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reinvent4?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reinvent4
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-reinvent4/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-reinvent4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reinvent4
description: "Use REINVENT4 for molecular design CLI workflows: sampling,
  scoring, transfer learning, staged reinforcement learning, enumeration,
  plugins, and SMILES preprocessing."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# REINVENT4

Use this repo skill when a task mentions REINVENT4, `reinvent`, `reinvent_datapre`, de novo molecular design, molecular scoring, transfer learning, staged reinforcement learning, peptide enumeration, LibInvent, LinkInvent, Mol2Mol, PepInvent, or REINVENT scoring plugins.

## First Checks

1. Confirm the package imports and CLIs are available:
   ```bash
   python scripts/check_reinvent_install.py
   ```
2. Read `references/cli-reference.md` when choosing global CLI flags, config formats, logging, seed handling, device overrides, or data-preprocessing CLI syntax.
3. Read `references/troubleshooting.md` when install/import, Torch/RDKit, CUDA/CPU, optional extras, config parsing, or missing dependency failures appear.
4. Read `references/repo-provenance.md` before deciding whether this skill matches a current checkout or needs refresh.

## Route By Task

- `sub-skills/sampling/SKILL.md`: sample or generate molecules from priors, TL/RL models, LibInvent scaffolds, LinkInvent warheads, Mol2Mol seeds, or PepInvent inputs.
- `sub-skills/scoring/SKILL.md`: build scoring-only configs, scoring blocks for RL, transforms, aggregation, custom `comp_*` plugins, and optional scoring integrations.
- `sub-skills/learning/SKILL.md`: configure transfer learning, staged RL/curriculum learning, diversity filters, inception memory, TensorBoard outputs, checkpoints, and TL-to-RL workflows.
- `sub-skills/data-pipeline/SKILL.md`: clean and filter SMILES datasets with `reinvent_datapre`, validate `data_pipeline.toml`, and create tiny preprocessing fixtures.
- `sub-skills/enumeration/SKILL.md`: configure peptide/library enumeration and validate scaffold, warhead, Mol2Mol, PepInvent, and amino-acid-library seed files.

## Install And Import Guidance

- Use Python 3.11 or newer, matching the package metadata requirement.
- For REINVENT4 CLI use, install the base package and a PyTorch wheel matching the host backend. Use CPU wheels for portable inspection and smoke checks; use CUDA/ROCm/XPU/MPS wheels only when the host driver/backend is known to support them.
- Optional extras are not needed for normal scoring/sampling/TL/RL config work unless the selected scoring component requires them:
  - `chemprop1` or `chemprop2` for ChemProp scoring components.
  - `openeye` for ROCS/OpenEye scoring, which also requires a valid license and package index.
  - `isim` for iSIM similarity tracking.
- At this repository snapshot, `reinvent --help` imports plotting code that requires `scipy`; install `scipy` if the CLI fails with `ModuleNotFoundError: No module named 'scipy'`.

## Common Command Shapes

```bash
reinvent --help
reinvent --device cpu --seed 123 --log-filename run.log config.toml
reinvent -f json --device cpu config.json
reinvent_datapre data_pipeline.toml --log-filename datapre.log
```

Convert configs without relying on source checkout helpers:

```bash
python scripts/convert_config_format.py input.toml output.json
python scripts/convert_config_format.py input.json output.yaml --output-format yaml
```

## Safe Operating Rules

- Validate configs and seed files with bundled scripts before launching expensive sampling, TL, RL, enumeration, or external scoring jobs.
- Run tiny CPU smoke checks before scaling to GPU or long jobs.
- Do not run workflows that require proprietary licenses, external services, model downloads, network calls, or long training unless the user explicitly approves those side effects.
- Keep REINVENT run configs, input SMILES, output CSV/model/checkpoint paths, and TensorBoard log directories explicit and separate per experiment.

Files in this skill

  • SKILL.md3.8 KB
  • references/cli-reference.md2.6 KB
  • references/repo-provenance.md1.9 KB
  • references/repo-routing-metadata.json332 B
  • references/troubleshooting.md3.8 KB
  • scripts/check_reinvent_install.py3.8 KB
  • scripts/convert_config_format.py3.7 KB
  • sub-skills/data-pipeline/SKILL.md2.6 KB
  • sub-skills/data-pipeline/references/data-formats.md4.6 KB
  • sub-skills/data-pipeline/references/preprocessing-workflow.md5.3 KB
  • sub-skills/data-pipeline/references/troubleshooting.md5 KB
  • sub-skills/data-pipeline/scripts/make_tiny_smiles_fixture.py5.9 KB
  • sub-skills/data-pipeline/scripts/validate_data_pipeline_config.py18.2 KB
  • sub-skills/enumeration/SKILL.md2.8 KB
  • sub-skills/enumeration/references/enumeration-workflow.md5.6 KB
  • sub-skills/enumeration/references/seed-files-and-chemistry.md4.8 KB
  • sub-skills/enumeration/references/troubleshooting.md4.9 KB
  • sub-skills/enumeration/scripts/validate_seed_files.py20 KB
  • sub-skills/learning/SKILL.md4.1 KB
  • sub-skills/learning/references/monitoring-and-outputs.md5.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.