Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

cuPotential custom potentials

FreeNo executable scriptsNot checked

Build and validate cuPotential custom pair potentials through its OpenMM expression API, including WCA, LJ fusion, soft-core interactions and live globals…

nvidiaby nvidia122 installs in other catalogs

About this skill

Implement a custom pair potential

Deliver a supported expression, its physical conventions, and checks of its energy, forces and requested parameter changes. This workflow uses nv_openmm_plugin; caller-written CUDA evaluators and experimental C ABI integration need separate version-specific work.

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

Select the requested deliverable

For an implementation task, use the selected interpreter and available runtime. Read the supplied model and bundled recipes first. Inspect the installed constructor/setter signatures once, then build and exercise the requested model. Resolve installed files from module locations and package metadata; use matching official documentation for a specific unresolved API question. Limit diagnostic output to interpreter/module paths, package versions, platform names and the specific failure. Avoid dumping the full environment, credentials or package index configuration while diagnosing an import or CUDA failure. For preinstalled-runtime tasks, preserve the supplied environment instead of substituting a different package stack. If an import or CUDA probe fails, retain the exact failure and prepare the remaining code and independent checks. Bound runtime discovery to the selected environment instead of scanning the filesystem root; identify which requested execution remains blocked.

For an assessment based on a supplied API contract, use that contract directly. Write the requested decision artifact with the required observable, the relevant contract provision, the implementation/protocol decision, and remaining evidence needs. Importing packages, installing software and running a simulation are unnecessary for this mode.

CPU reference fallback

If CPU fallback is permitted, execute independent analytic/finite-difference checks and, when stock OpenMM is available, a separate stock CPU or Reference definition. For WCA, retain unequal-particle mixing, nonzero and outside-support controls, exclusions and the reversible strength sequence. For a fused expression, the stock control must retain full LJ, electrostatics and the addition. An isolated stock OpenMM installation is an option only when package changes are allowed.

Record CPU results separately from the prepared cuPotential definition. Label cuPotential CUDA evaluation, live native parameter updates and native-versus-stock comparisons NOT_RUN until actually exercised. If CUDA was required, the requested execution remains incomplete. Keep failed checks and temporary caches rather than cleaning away evidence; python -B avoids creating bytecode caches.

Define the interaction before implementing it

Establish the complete pair energy, physical units, symmetric combining rules, cutoff, switching, exclusions, exceptional pairs, and any periodic lattice terms. Identify which existing interactions are being replaced and which remain. For alchemical inputs, identify the meanings of the lambda parameters and the unchanged bonded/exception terms as well as the nonbonded expression.

Read expression recipes and checks for the appropriate construction and its limitations. The reviewed expression API uses nanometers and kJ/mol; parameter arrays contain numbers in the expression's declared units.

Choose the supported construction

Convert a supported periodic-cutoff openmm.CustomNonbondedForce for a standalone custom interaction. To combine custom LJ with standard periodic electrostatics, use a standard cuPotential force and its setCutoffInteraction API. That operation replaces the complete ordinary LJ contribution. Include the ordinary interactions that must remain in the new expression.

Custom cutoff expressions do not acquire a reciprocal sum automatically. A declared lattice term describes the decomposition of a bare term already present in the full expression. Check the installed release's supported kernels and corrections. Apply a switch once, and account for its derivative and tail treatment. Interaction groups, tabulated functions, and requested energy-parameter derivatives need explicit compatibility checks rather than automatic conversion assumptions.

Exercise the definition

Start with a small nonzero interaction having an independent analytic or stock reference. Check force sign and symmetry, finite differences over several step sizes, exceptional/excluded pairs, and both sides of the cutoff. Keep the chosen acceptance checks separate from exploratory diagnostics. The reference contains an independent WCA formula and a complete LJ-plus-Gaussian construction pattern.

Full SKILL.md on ClawHub

Install cuPotential custom potentials in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the cuPotential custom potentials skill do?

Build and validate cuPotential custom pair potentials through its OpenMM expression API, including WCA, LJ fusion, soft-core interactions and live globals. Review path-specific support for alchemical estimators and analytic energy-parameter derivatives.

How do I install the cuPotential custom potentials skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the cuPotential custom potentials skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare cuPotential custom potentials with