Cupotential Openmm
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install skills-nvidia-bionemo-cupotential-openmmWhat this does: Use whenever a user asks to adapt an OpenMM simulation to cuPotential, including offline force-only conversion plans and checkpoint-validation plans. Preserve the force field, integrator, seeds and simulation settings; distinguish plans from executed NVT/NPT work.
Manual setup by platform
Claude Code
~/.claude/skills/skills-nvidia-bionemo-cupotential-openmm/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
Run OpenMM simulations with cuPotential
Produce an adapted simulation and evidence for the requested execution or restart.
Use the user's application and selected interpreter; installed-plugin users do
not need a cuPotential source checkout.
The upstream library is NVIDIA/cuPotential.
This skill was reviewed against v0.3.5;
match version-specific behavior to the user's selected runtime.
Instructions
Establish the simulation contract
Inventory the input System, coordinates, box, forces, exceptions, constraints,
virtual sites, masses, precision, integration settings, and requested ensemble.
Record timestep, temperature, friction, integrator and velocity seeds explicitly;
do not let a conversion example replace supplied values.
Keep an independent stock System for comparisons. Preserve supplied files.
Determine whether the task requests a force replacement alone or also cuPotential's
integrator and barostat. The blog's example settings describe its benchmark system;
retain the user's timestep and hydrogen-mass/constraint policy.
Read conversion, execution and restart for the chosen
operation. Confirm the installed release's supported source methods and numerical
settings before converting. The reviewed 0.3.5 API accepts standard PME/LJPME
conversion with its fixed numerical policy; it does not accept arbitrary pinned
meshes or accuracy targets. Explain incompatible requirements before changing
them. Geometry restrictions also need checking for the supplied box and cutoff.
For a supplied JSON contract, explicitly record particle ordering, constraint
count, all supplied seeds and precision settings. Preserve the exception-PBC
flag: false means periodic images are not applied to exception distances; it
does not mean minimum-image exceptions. The OpenMM NonbondedForce API
documents that flag and PME controls. Do not derive a target PME grid from an
ad hoc spacing formula, infer internal storage precision from a platform label,
or invent exclusion-handling rules. Check the selected runtime's documented
behavior and leave unverified numerical details unresolved.
CPU reference fallback
When CUDA/cuPotential is unavailable and a CPU fallback is permitted, run a
separate stock OpenMM control on CPU or Reference, preserving the input model.
Keep the stock integrator, COM remover and, for NPT, stock barostat in that control.
The CPU procedure and bundled
scripts/run_cpu_reference.py exercise energy/forces and a fresh-process restart.
An isolated stock OpenMM installation is an option when package changes are allowed.
Label its result CPU_REFERENCE_PASS or CPU_REFERENCE_FAILED and record
cuPotential/CUDA as NOT_RUN. A stock checkpoint does not test native cuPotential
serialization, COM transfer or barostat state. Prepare those conversions separately.
If the request requires CUDA, the requested cuPotential execution remains incomplete.
Retain failed attempts; use python -B to avoid bytecode cache cleanup.
Adapt and execute
Construct each replacement before removing its source force, and replace it once.
OpenMM owns and deletes removed forces: extract everything needed from a source
before removal. Preserve untouched forces and particle ordering. Check the final
inventory for omissions and double-counting.
If replacing the integrator, transfer the existing center-of-mass removal policy
explicitly; cuPotential's default frequency can otherwise introduce a change.
If retaining the stock integrator, retain its remover. Use one intended barostat,
preserving pressure, temperature, frequency, and the requested seed policy.
Create the Context only after configuring the System. Observe initial finite
energy/forces, then execute the requested duration with appropriate reporting and
checkpoint output. Global value changes use Context.setParameter; supported
particle values use updateParametersInContext. Changes to force structure,
expression layout, or certain policies require reinitialization.
Verify the requested outcome
Check state restoration in a fresh compatible Context when restart is requested.
Distinguish restored positions, velocities, box, time and parameters from identical
future stochastic trajectories, especially for NPT barostat bookkeeping.
Report actual steps and outputs, preserved settings, deliberate changes and
unresolved errors. A running simulation or a restored checkpoint does not establish
numerical accuracy; compare fixed configurations when accuracy is part of the task.
For a preparation-only request, identify which input checks executed and leave
Context construction, energy/force comparison, integration and fresh-process
restart unexecuted. Keep construction and validation of the replacement ahead
of removal of its source in the proposed plan too.
Include a fresh-process checkpoint save/restore and state comparison in a
checkpoint-validation plan, even when those native checks cannot run here.
Examples
Request: "Convert my periodic OpenMM simulation to cuPotential, retain my NPT
settings, run 1,000 steps, and verify a checkpoint restart."
Use the conversion and restart procedure. Return the
adapted script, before/after force inventory, observed step count and checkpoint
restoration checks from a fresh compatible Context. Preserve the supplied
thermostat, barostat and COM policy unless the request changes them.
Security
Reviews (0)
Related skills
Browse all →More from skills
View source →More Build skills
Browse category →Frequently asked questions about cupotential-openmm
What does the cupotential-openmm skill do?
Use whenever a user asks to adapt an OpenMM simulation to cuPotential, including offline force-only conversion plans and checkpoint-validation plans. Preserve the force field, integrator, seeds and simulation settings; distinguish plans from executed NVT/NPT work. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the cupotential-openmm skill?
Run `npx @skills-hub-ai/cli install skills-nvidia-bionemo-cupotential-openmm` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/skills-nvidia-bionemo-cupotential-openmm/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does cupotential-openmm work with?
cupotential-openmm runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the cupotential-openmm skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use cupotential-openmm after installing it?
In Claude Code, type `/skills-nvidia-bionemo-cupotential-openmm` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the cupotential-openmm skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/skills-nvidia-bionemo-cupotential-openmm)<a href="https://skills-hub.ai/skills/skills-nvidia-bionemo-cupotential-openmm"><img src="https://skills-hub.ai/api/badges/skill/skills-nvidia-bionemo-cupotential-openmm" alt="Install on Skills Hub"></a>More options in the badge docs.