Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Deepmd

ASecurity

Run LAMMPS molecular dynamics with DeePMD-kit machine learning potentials. Use when the user wants MD simulations driven by a trained DP model.

199 stars
0 votes
0 copies
0 views
Added 9/20/2026
developmentpythonrustgoshellreact

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add Hello-QM/catgo-LRG --skill deepmd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deepmd?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Deepmd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hello-qm-deepmd-catgo-lrg/badge)](https://www.skillsdirectory.com/skills/hello-qm-deepmd-catgo-lrg)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: lammps-deepmd
description: >
  Run LAMMPS molecular dynamics with DeePMD-kit machine learning potentials.
  Use when the user wants MD simulations driven by a trained DP model.
compatibility: >
  Requires LAMMPS compiled with the DEEPMD package. A frozen DeePMD model (.pb) is required.
catalog-hidden: true
---

# LAMMPS + DeePMD Potential

## When to Use

- User wants to run MD with a trained DeePMD model
- User needs large-scale MD (10K-1M atoms) at near-DFT accuracy
- User wants to study diffusion, phase transitions, or surface reactions with ML potential
- User has a frozen `.pb` model file

## Prerequisites

1. LAMMPS compiled with DEEPMD package (`lmp -h | grep DEEPMD`)
2. Frozen DeePMD model file (`.pb`)
3. Initial structure (LAMMPS data file or from CatGo viewer)
4. Know the `type_map` used during model training

## Workflow Steps

### 1. Verify structure

```
catgo_view(action="get_state")
```

### 2. Create workflow

```
catgo_workflow_engine(action="create", params={"name": "LAMMPS DeePMD NVT 300K"})
```

### 3. Add LAMMPS task

```
catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "lmp_dpmd",
  "command": "lmp -in lammps.in > lammps.log 2>&1",
  "input_files": {
    "lammps.in": "<input script>",
    "frozen_model.pb": "{{model_path}}"
  },
  "system_name": "TiO2_md"
})
```

## LAMMPS Input Template — NVT

```
units           metal
boundary        p p p
atom_style      atomic

read_data       structure.lmp

pair_style      deepmd frozen_model.pb
pair_coeff      * *

neighbor        2.0 bin
neigh_modify    every 1 delay 0 check yes

# Velocities
velocity        all create 300.0 12345 dist gaussian

# NVT thermostat
fix             1 all nvt temp 300.0 300.0 0.1

# Timestep (ps in metal units)
timestep        0.001

# Output
thermo          100
thermo_style    custom step temp pe ke etotal press vol

dump            1 all custom 100 traj.lammpstrj id type x y z fx fy fz
dump_modify     1 sort id

# Restart
restart         10000 restart.*.data

run             100000
```

## LAMMPS Input Template — NPT

Replace the fix line:

```
fix             1 all npt temp 300.0 300.0 0.1 iso 0.0 0.0 1.0
```

## Model Deviation (Multi-Model)

For active learning or reliability checking, use multiple models:

```
pair_style      deepmd model_0.pb model_1.pb model_2.pb model_3.pb out_freq 100 out_file model_devi.out
pair_coeff      * *
```

This writes `model_devi.out` with per-frame max/min/avg force deviation. Use thresholds:
- `max_devi_f < 0.05` eV/Ang: model is reliable
- `0.05 < max_devi_f < 0.15`: candidate for active learning
- `max_devi_f > 0.15`: model is unreliable, do not trust results

## Preparing LAMMPS Data File

Convert from CatGo structure to LAMMPS data format:

```python
from ase.io import read, write
# Read pymatgen dict, write LAMMPS data
atoms = read('structure.json')
write('structure.lmp', atoms, format='lammps-data')
```

Or use dpdata (see `data/dpdata/SKILL.md`).

## Parameter Guidance

| Parameter | Typical value | Notes |
|---|---|---|
| timestep | 0.001 ps (1 fs) | Metal units; can use 2 fs for stiff systems |
| NVT temp damp | 0.1 ps | Nose-Hoover damping; 100x timestep |
| NPT press damp | 1.0 ps | Pressure damping; 1000x timestep |
| dump frequency | 100-1000 | Every 100 steps = 0.1 ps |
| neighbor skin | 2.0 Ang | Rebuild neighbor list threshold |
| run | 100K-10M | Depends on property of interest |

## Common Pitfalls

1. **Wrong units** — DeePMD pair_style requires `units metal` (eV, Ang, ps). Never use `units real`.
2. **type_map mismatch** — atom types in LAMMPS data file must match the order in the DP model's type_map.
3. **Unfrozen model** — `pair_style deepmd` needs a frozen `.pb` file. Run `dp freeze` first.
4. **Too large timestep** — 1 fs is safe; 2 fs may cause energy drift for light elements (H).
5. **No equilibration** — always equilibrate for 10-50 ps before production run. Discard equilibration data.
6. **Memory for large models** — GPU memory limits apply. For 1M+ atoms, use CPU or multi-GPU.

Attribution

Hello-QMHello-QM
View sourceMore from Hello-QM →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →