Skip to content
Back to skills

Smirnoff Force Fields

ASecurity

"Load, modify, inspect, serialize, label, and apply SMIRNOFF OFFXML

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
developmentpythonapibackend

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill smirnoff-force-fields --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Smirnoff Force Fields?

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

Security grade badge for Smirnoff Force Fields
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-smirnoff-force-fields/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-smirnoff-force-fields)

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: smirnoff-force-fields
description: "Load, modify, inspect, serialize, label, and apply SMIRNOFF OFFXML
  force fields with OpenFF Toolkit ForceField APIs."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# SMIRNOFF Force Fields

Use this sub-skill when a task centers on OpenFF Toolkit SMIRNOFF force fields: loading `.offxml` files, discovering installed force fields, inspecting or modifying parameter handlers, labeling molecules with assigned parameters, serializing edited force fields, combining sources, creating Interchange/OpenMM systems, or diagnosing SMIRNOFF parsing and handler errors.

## Route First

- Use `references/api-reference.md` for the verified `ForceField` signatures, handler concepts, label shapes, serialization APIs, and Interchange/OpenMM boundary.
- Use `references/workflows.md` for copy-ready recipes: load installed or local `.offxml`, inspect available force fields, label molecules, edit a parameter, serialize/reload, and apply a force field.
- Use `references/plugins-and-custom-parameters.md` for custom `ParameterHandler` classes and entry-point plugin loading with `load_plugins=True`.
- Use `references/troubleshooting.md` when parsing, handler registration, force-field package discovery, charge assignment, virtual-site, Interchange, or OpenMM conversion fails.
- Use `scripts/smoke_smirnoff_workflow.py` for a safe local smoke probe that builds a molecule/topology, loads a force field, optionally labels parameters, and attempts Interchange if installed.

## Boundaries

- For molecule construction, stereochemistry, conformers, file I/O, and mapped SMILES details, route to `../molecules-and-io/SKILL.md`.
- For topology construction, PDB/OpenMM topology conversion, positions, boxes, and system-level preparation depth, route to `../topology-and-systems/SKILL.md`.
- For optional backend installation, toolkit registries, charge toolkit availability, and dependency selection depth, route to `../toolkit-backends/SKILL.md`.
- Do not rely on original repository docs, tests, examples, or notebooks at runtime; this sub-skill bundles the SMIRNOFF patterns needed for future agents.

## Quick Start

```python
from openff.toolkit import ForceField, Molecule, Topology
from openff.toolkit.typing.engines.smirnoff import get_available_force_fields

print(get_available_force_fields())
force_field = ForceField("openff-2.3.0.offxml")
molecule = Molecule.from_smiles("CCO")
topology = Topology.from_molecules([molecule])
labels = force_field.label_molecules(topology)
print(force_field.registered_parameter_handlers)
print(labels[0].keys())
```

If `ForceField("openff-2.3.0.offxml")` cannot find the file, inspect `get_available_force_fields()` and install or point to a local `.offxml` file rather than changing the molecule/topology workflow.

Files in this skill

  • SKILL.md2.8 KB
  • references/api-reference.md7.8 KB
  • references/plugins-and-custom-parameters.md4.5 KB
  • references/troubleshooting.md5.5 KB
  • references/workflows.md5.8 KB
  • scripts/smoke_smirnoff_workflow.py5.9 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.