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

Packmol

ASecurity

Generate initial configurations for molecular simulations using Packmol. Build liquid boxes, mixtures, solutions, and solvated systems by packing molecules into a defined region.

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

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

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

Installs into .claude/skills of the current project.

Are you the author of Packmol?

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

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

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

Download Zip
Files
SKILL.md
---
name: packmol
description: >
  Generate initial configurations for molecular simulations using Packmol.
  Build liquid boxes, mixtures, solutions, and solvated systems by packing
  molecules into a defined region.
compatibility: >
  Requires Packmol installed (apt install packmol or compiled from source).
  Input molecules must be in PDB or XYZ format.
catalog-hidden: true
---

# Packmol — Mixture/Solution Box Generation

## When to Use

- User needs to build a liquid simulation box (water, organic solvents)
- User wants to create a mixture of different molecules
- User needs to solvate a solute in a solvent box
- User is preparing initial structures for LAMMPS ReaxFF or classical MD
- User needs to fill a region with molecules at a target density

## Prerequisites

1. Packmol installed (`packmol < /dev/null` should print version)
2. Molecule coordinate files in PDB or XYZ format
3. For molecules from SMILES: first convert with Open Babel (`data/openbabel/SKILL.md`)

## Workflow Steps

### 1. Prepare molecule files

If starting from SMILES, convert to PDB first:
```bash
obabel -:"O" -O water.pdb --gen3d -h
obabel -:"CCO" -O ethanol.pdb --gen3d -h
```

### 2. Create Packmol input and run

```
catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "packmol_mix",
  "command": "packmol < mixture.inp > packmol.log 2>&1",
  "input_files": {
    "mixture.inp": "<packmol input>",
    "water.pdb": "<water coords>",
    "ethanol.pdb": "<ethanol coords>"
  },
  "system_name": "water_ethanol_mix"
})
```

## Packmol Input Template — Simple Liquid Box

```
tolerance 2.0
filetype pdb
output mixture.pdb

structure water.pdb
  number 1000
  inside box 0.0 0.0 0.0 30.0 30.0 30.0
end structure
```

## Packmol Input Template — Binary Mixture

```
tolerance 2.0
filetype pdb
output mixture.pdb

# Water (70% by count)
structure water.pdb
  number 700
  inside box 0.0 0.0 0.0 40.0 40.0 40.0
end structure

# Ethanol (30% by count)
structure ethanol.pdb
  number 300
  inside box 0.0 0.0 0.0 40.0 40.0 40.0
end structure
```

## Packmol Input Template — Solvated Solute

```
tolerance 2.0
filetype pdb
output solvated.pdb

# Solute (fixed at center)
structure solute.pdb
  number 1
  center
  fixed 20.0 20.0 20.0 0.0 0.0 0.0
end structure

# Solvent around solute
structure water.pdb
  number 500
  inside box 0.0 0.0 0.0 40.0 40.0 40.0
  outside sphere 20.0 20.0 20.0 5.0
end structure
```

## Packmol Input Template — Layered System (e.g., Interface)

```
tolerance 2.0
filetype pdb
output interface.pdb

# Liquid phase
structure hexane.pdb
  number 200
  inside box 0.0 0.0 0.0 30.0 30.0 15.0
end structure

# Gas phase
structure oxygen.pdb
  number 50
  inside box 0.0 0.0 15.0 30.0 30.0 30.0
end structure
```

## Box Size Estimation

Target density determines box size. For water at 1 g/cm3:

```
N_molecules * M_molecule / (N_A * V_box) = density

For 1000 water molecules:
V = 1000 * 18.015 / (6.022e23 * 1.0) = 2.993e-20 cm3
L = V^(1/3) = 3.1e-7 cm = 31.0 Angstrom
```

Use a box slightly larger (e.g., 32 Ang) and equilibrate with NPT MD.

## Parameter Guidance

| Parameter | Typical value | Notes |
|---|---|---|
| tolerance | 2.0 Ang | Minimum distance between atoms of different molecules |
| filetype | pdb or xyz | Must match input molecule files |
| number | varies | Number of molecules of each type |
| inside box | x0 y0 z0 x1 y1 z1 | Rectangular region (Angstrom) |
| inside sphere | cx cy cz r | Spherical region |
| outside sphere | cx cy cz r | Exclusion zone (for solvation) |
| fixed | x y z a b c | Fix position and orientation (angles in degrees) |

## Common Pitfalls

1. **Tolerance too small** — `tolerance 2.0` works for most cases. Smaller values cause Packmol to fail to converge.
2. **Box too small** — if density is too high, Packmol cannot place all molecules. Increase box size.
3. **Wrong filetype** — `filetype pdb` must match the actual input file format.
4. **No equilibration after Packmol** — Packmol output is NOT equilibrated. Always run NPT MD to relax the density.
5. **Missing hydrogens** — ensure input molecules have correct hydrogens before packing.
6. **Molecule overlap with solute** — use `outside sphere` to prevent solvent from overlapping with a fixed solute.
7. **Convergence failure** — if Packmol does not converge, increase `tolerance` or box size, or reduce molecule count.

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 →