[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ENW3B945X9PXBP022N40WD":3,"skill-same:01M6ENW3B945X9PXBP022N40WD":153},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6ENW3B945X9PXBP022N40WD","packmol",null,"This skill should be used when the user asks to \"create a packmol input\", \"pack molecules with packmol\", \"solvate a protein\", \"build an initial configuration\", \"setup molecular dynamics\", or discusses molecular packing, solvation, or building simulation starting structures.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29],"setup","create","packing","simulation","user","build","configuration","molecular dynamics","molecular","input","dynamics","2026-11-10 10:12:30",false,"---\nname: packmol\ndescription: This skill should be used when the user asks to \"create a packmol input\", \"pack molecules with packmol\", \"solvate a protein\", \"build an initial configuration\", \"setup molecular dynamics\", or discusses molecular packing, solvation, or building simulation starting structures.\nversion: 1.0.0\n---\n\n# Packmol Skill\n\nBuild initial configurations for molecular dynamics simulations using Packmol.\n\n## What is Packmol?\n\nPackmol creates initial configurations for MD simulations by packing molecules according to spatial constraints. It places molecules in boxes, around proteins, at interfaces, or within complex geometries (spheres, cylinders, ellipsoids) while ensuring no overlaps.\n\n## Installation\n\nInstall Packmol via pip:\n\n```bash\npip install packmol\n```\n\nVerify installation:\n\n```bash\npackmol -h\n```\n\nFor more installation options, see the [Packmol website](https:\u002F\u002Fm3g.github.io\u002Fpackmol\u002F).\n\n## Quick Start\n\n### Basic Box Packing\n\nCreate a simple box of water molecules:\n\n```text\n# water_box.inp\ntolerance 2.0\nfiletype pdb\noutput water_box.pdb\n\nstructure water.pdb\n  number 1000\n  inside box 0. 0. 0. 40. 40. 40.\nend structure\n```\n\nRun Packmol:\n\n```bash\npackmol \u003C water_box.inp\n```\n\n### Solvate a Protein\n\nSolvate a protein with water and ions:\n\n```text\n# solvation.inp\ntolerance 2.0\nfiletype pdb\noutput solvated.pdb\n\nstructure protein.pdb\n  number 1\n  fixed 0. 0. 0. 0. 0. 0.\n  center\nend structure\n\nstructure water.pdb\n  number 5000\n  inside box -10. -10. -10. 50. 50. 50.\nend structure\n\nstructure SOD.pdb\n  number 10\n  inside box -10. -10. -10. 50. 50. 50.\nend structure\n\nstructure CLA.pdb\n  number 10\n  inside box -10. -10. -10. 50. 50. 50.\nend structure\n```\n\n### Liquid-Liquid Interface\n\nBuild a water\u002Fchloroform interface:\n\n```text\n# interface.inp\ntolerance 2.0\nfiletype pdb\noutput interface.pdb\npbc -20. -20. -30. 20. 20. 30.\n\nstructure water.pdb\n  number 1000\n  below plane 0. 0. 1. 0.\nend structure\n\nstructure chloroform.pdb\n  number 200\n  above plane 0. 0. 1. 0.\nend structure\n```\n\n## Core Concepts\n\n### Input File Structure\n\nEvery Packmol input file requires:\n\n1. **tolerance**: Minimum distance between atoms (Å)\n2. **output**: Output filename\n3. **filetype**: Format (pdb, xyz, tinker)\n4. **structure blocks**: Define molecules to place\n\n### Structure Block Syntax\n\n```text\nstructure molecule.pdb\n  number \u003CN>                          # Number of molecules\n  inside|outside \u003Cconstraint>         # Spatial constraint\n  [optional parameters]\nend structure\n```\n\n### Common Constraint Types\n\n- **box**: `inside box xmin ymin zmin xmax ymax zmax`\n- **sphere**: `inside sphere xcenter ycenter zcenter radius`\n- **cylinder**: `inside cylinder x1 y1 z1 dx dy dz radius length`\n- **plane**: `above plane a b c d` or `below plane a b c d`\n- **ellipsoid**: `inside ellipsoid xc yc zc xa yb zc scale`\n\nSee [references\u002Fconstraints.md](references\u002Fconstraints.md) for complete constraint documentation.\n\n## Workflows\n\n### 1. Basic Molecular Packing\n\nBuild boxes with multiple molecule types.\n\n**Example**: Water\u002Fethanol mixture\n\n```text\ntolerance 2.0\noutput mixture.pdb\nfiletype pdb\n\nstructure water.pdb\n  number 800\n  inside box 0. 0. 0. 40. 40. 40.\nend structure\n\nstructure ethanol.pdb\n  number 200\n  inside box 0. 0. 0. 40. 40. 40.\nend structure\n```\n\n### 2. Protein Solvation\n\nSolvate biomolecules with water and ions for neutralization.\n\n**Key parameters**:\n- Use `fixed` with `center` for the protein\n- Add Na+\u002FCl- ions for neutrality and concentration\n- Calculate box size based on protein + solvent shell\n\n**Automatic solvation helper**:\n\n```bash\npython scripts\u002Fsolvate_helper.py protein.pdb --shell 15.0 --charge +4\n```\n\n### 3. Interface Systems\n\nBuild liquid-liquid or liquid-vapor interfaces using plane constraints.\n\n**Example**: Water\u002Fhexane interface\n\n```text\ntolerance 2.0\noutput interface.pdb\npbc -20. -20. -30. 20. 20. 30.\n\nstructure water.pdb\n  number 1000\n  below plane 0. 0. 1. 0.\nend structure\n\nstructure hexane.pdb\n  number 200\n  above plane 0. 0. 1. 0.\nend structure\n```\n\n### 4. Advanced Constraints\n\nUse spherical, cylindrical, or ellipsoidal constraints for complex geometries.\n\n**Example**: Spherical vesicle\n\n```text\nstructure lipid.pdb\n  number 2000\n  inside sphere 0. 0. 0. 40.\n  atoms 1 2 3 4\n    outside sphere 0. 0. 0. 35.\n  end atoms\nend structure\n\nstructure water.pdb\n  number 2000\n  inside sphere 0. 0. 0. 35.\nend structure\n\nstructure water.pdb\n  number 5000\n  outside sphere 0. 0. 0. 45.\nend structure\n```\n\n## Input Parameters\n\n### Required Parameters\n\n- **tolerance** `\u003Cdistance>`: Minimum intermolecular distance (Å). Default: 2.0 for all-atom\n- **output** `\u003Cfilename>`: Output file name\n- **filetype** `\u003Cformat>`: pdb, xyz, or tinker\n\n### Optional Parameters\n\n- **pbc** `\u003Cdimensions>`: Periodic boundary conditions (e.g., `pbc 30. 30. 60.`)\n- **seed** `\u003Cinteger>`: Random seed for reproducibility\n- **discale** `\u003Cfactor>`: Distance scaling for optimization (default: 1.0)\n- **maxit** `\u003CN>`: Maximum iterations (default: 20)\n- **precision** `\u003Cvalue>`: Convergence precision (default: 0.01)\n\nSee [references\u002Fparameters.md](references\u002Fparameters.md) for complete parameter reference.\n\n## Structure Block Options\n\n### Positioning Options\n\n- **number**: Molecule count\n- **inside\u002Foutside**: Spatial constraint\n- **fixed**: Fix position and rotation (6 parameters: x, y, z, α, β, γ)\n- **center**: Use center of mass for positioning\n\n### Rotation Constraints\n\n```text\nconstrain_rotation x 180. 20.  # Constrain rotation around x-axis\nconstrain_rotation y 180. 20.  # Constrain rotation around y-axis\nconstrain_rotation z 180. 20.  # Constrain rotation around z-axis\n```\n\n### Atom Selection\n\nApply constraints to specific atoms within molecules:\n\n```text\nstructure molecule.pdb\n  number 100\n  inside box 0. 0. 0. 30. 30. 30.\n  atoms 1 2 3\n    inside box 0. 0. 25. 30. 30. 30.\n  end atoms\nend structure\n```\n\n## Running Packmol\n\n### Basic Execution\n\n```bash\npackmol \u003C input.inp\n```\n\n### Output Interpretation\n\nSuccess message:\n\n```\n------------------------------\nSuccess!\nFinal objective function value: .22503E-01\nMaximum violation of target distance: 0.000000\nMaximum violation of the constraints: .78985E-02\n------------------------------\n```\n\nCheck that both violations are \u003C 0.01 for a valid solution.\n\n## Validation\n\n### Check Overlaps\n\n```bash\npython scripts\u002Fcheck_overlaps.py output.pdb --tolerance 2.0\n```\n\n### Verify Success\n\n```bash\npython scripts\u002Fverify_success.py input.inp output.pdb\n```\n\n### Analyze Density\n\n```bash\npython scripts\u002Fanalyze_density.py output.pdb\n```\n\n### Validate Input\n\n```bash\npython scripts\u002Fvalidate_input.py input.inp\n```\n\n## Troubleshooting\n\n### Common Issues\n\n1. **\"Killed\" error**: System too large\n   - Reduce number of molecules\n   - Use restart files to build incrementally\n   - See [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md)\n\n2. **No convergence**:\n   - Try `discale 1.5` to scale distances\n   - Reduce molecule count\n   - Simplify constraints\n   - Increase `maxit`\n\n3. **Strange geometries**:\n   - Add `check` keyword to validate constraints without packing\n   - Verify constraint syntax\n   - Check for conflicting constraints\n\n4. **Incorrect atom count**:\n   - Verify structure files are readable\n   - Check for duplicate atoms in input files\n   - Validate with `scripts\u002Fvalidate_input.py`\n\nSee [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for detailed solutions.\n\n## Examples\n\nExplore example input files in the `examples\u002F` directory:\n\n- **Basic**: [examples\u002Fbasic\u002F](examples\u002Fbasic\u002F) - Simple boxes and mixtures\n- **Solvation**: [examples\u002Fsolvation\u002F](examples\u002Fsolvation\u002F) - Proteins with water and ions\n- **Interface**: [examples\u002Finterface\u002F](examples\u002Finterface\u002F) - Liquid-liquid interfaces\n- **Advanced**: [examples\u002Fadvanced\u002F](examples\u002Fadvanced\u002F) - Vesicles, bilayers, complex geometries\n\n## Templates\n\nUse templates in `templates\u002F` as starting points:\n\n- **[templates\u002Fbasic_template.inp](templates\u002Fbasic_template.inp)**: Minimal template for simple packing\n- **[templates\u002Fsolvation_template.inp](templates\u002Fsolvation_template.inp)**: Protein solvation setup\n- **[templates\u002Finterface_template.inp](templates\u002Finterface_template.inp)**: Interface systems\n\n## Helper Scripts\n\nUse Python scripts in `scripts\u002F` for automation:\n\n- **generate_input.py**: Generate inputs programmatically\n- **validate_input.py**: Validate input syntax before running\n- **check_overlaps.py**: Detect atomic overlaps in output\n- **analyze_density.py**: Calculate system density\n- **solvate_helper.py**: Automatic protein solvation setup\n- **verify_success.py**: Verify Packmol completed successfully\n\n## Advanced Topics\n\n### Periodic Boundary Conditions\n\nUse `pbc` for periodic systems:\n\n```text\npbc 30. 30. 60.  # or pbc xmin ymin zmin xmax ymax zmax\n```\n\n### Restart Files\n\nBuild large systems incrementally:\n\n```text\nstructure water.pdb\n  number 1000\n  inside box 0. 0. 0. 40. 40. 40.\n  restart_to water1.pack\nend structure\n```\n\nThen restart:\n\n```text\nstructure water.pdb\n  number 1000\n  restart_from water1.pack\nend structure\n```\n\n### Atom-Specific Radii\n\nSet different radii for multiscale models:\n\n```text\nstructure molecule.pdb\n  number 100\n  radius 1.5  # All atoms\nend structure\n\nstructure molecule.pdb\n  number 100\n  atoms 1 2\n    radius 1.5  # Specific atoms\n  end atoms\nend structure\n```\n\n### Constraint Validation\n\nValidate constraints without packing:\n\n```text\nstructure molecule.pdb\n  number 100\n  inside box 0. 0. 0. 30. 30. 30.\n  check\nend structure\n```\n\n## Best Practices\n\n1. **Start simple**: Test with few molecules before scaling up\n2. **Use appropriate tolerance**: 2.0 Å for all-atom, larger for coarse-grained\n3. **Check constraints**: Add `check` keyword to validate regions\n4. **Validate output**: Use scripts to check overlaps and density\n5. **Reproducibility**: Set `seed` for repeatable results\n6. **Large systems**: Use restart files or build in stages\n7. **Box size**: Allow 10-15 Å padding around solutes for solvation\n\n## Tips for Common Use Cases\n\n### Protein Solvation\n\n- Add 10-15 Å solvent shell around protein\n- Calculate ions for neutrality: `N_ions = charge \u002F e`\n- Add salt ions for desired concentration (e.g., 0.15 M NaCl)\n- Use `fixed` with `center` for protein positioning\n\n### Mixed Solvents\n\n- Calculate total number of molecules from desired molar ratios\n- Use same tolerance for all components\n- Test with small systems first\n\n### Membrane Systems\n\n- Use `constrain_rotation` to orient lipids\n- Build in stages: lipids first, then water\n- Consider using specialized membrane builders for large systems\n\n### Nanotubes\u002FPores\n\n- Use `cylinder` constraint for pore region\n- Combine with `outside` constraint for bulk region\n- May need atom selection for specific molecule orientations\n\n## Resources\n\n- Official documentation: [Packmol User Guide](https:\u002F\u002Fm3g.github.io\u002Fpackmol\u002Fuserguide.shtml)\n- Examples: [Packmol Examples](https:\u002F\u002Fm3g.github.io\u002Fpackmol\u002Fexamples.shtml)\n- GitHub: [Packmol Repository](https:\u002F\u002Fgithub.com\u002Fm3g\u002Fpackmol)\n- Paper: [Martínez et al. J Comput Chem 2009](https:\u002F\u002Fdoi.org\u002F10.1002\u002Fjcc.21224)\n\n## References\n\nFor detailed information on specific topics, see:\n\n- [constraints.md](references\u002Fconstraints.md) - Complete constraint syntax and examples\n- [parameters.md](references\u002Fparameters.md) - All input parameters and options\n- [file_formats.md](references\u002Ffile_formats.md) - File format specifications\n- [troubleshooting.md](references\u002Ftroubleshooting.md) - Problem-solving guide\n","# Packmol Skill\n\nBuild initial configurations for molecular dynamics simulations using Packmol.\n\n## What is Packmol?\n\nPackmol creates initial configurations for MD simulations by packing molecules according to spatial constraints. It places molecules in boxes, around proteins, at interfaces, or within complex geometries (spheres, cylinders, ellipsoids) while ensuring no overlaps.\n\n## Installation\n\nInstall Packmol via pip:\n\n```bash\npip install packmol\n```\n\nVerify installation:\n\n```bash\npackmol -h\n```\n\nFor more installation options, see the [Packmol website](https:\u002F\u002Fm3g.github.io\u002Fpackmol\u002F).\n\n## Quick Start\n\n### Basic Box Packing\n\nCreate a simple box of water molecules:\n\n```text\n# water_box.inp\ntolerance 2.0\nfiletype pdb\noutput water_box.pdb\n\nstructure water.pdb\n  number 1000\n  inside box 0. 0. 0. 40. 40. 40.\nend structure\n```\n\nRun Packmol:\n\n```bash\npackmol \u003C water_box.inp\n```\n\n### Solvate a Protein\n\nSolvate a protein with water and ions:\n\n```text\n# solvation.inp\ntolerance 2.0\nfiletype pdb\noutput solvated.pdb\n\nstructure protein.pdb\n  number 1\n  fixed 0. 0. 0. 0. 0. 0.\n  center\nend structure\n\nstructure water.pdb\n  number 5000\n  inside box -10. -10. -10. 50. 50. 50.\nend structure\n\nstructure SOD.pdb\n  number 10\n  inside box -10. -10. -10. 50. 50. 50.\nend structure\n\nstructure CLA.pdb\n  number 10\n  inside box -10. -10. -10. 50. 50. 50.\nend structure\n```\n\n### Liquid-Liquid Interface\n\nBuild a water\u002Fchloroform interface:\n\n```text\n# interface.inp\ntolerance 2.0\nfiletype pdb\noutput interface.pdb\npbc -20. -20. -30. 20. 20. 30.\n\nstructure water.pdb\n  number 1000\n  below plane 0. 0. 1. 0.\nend structure\n\nstructure chloroform.pdb\n  number 200\n  above plane 0. 0. 1. 0.\nend structure\n```\n\n## Core Concepts\n\n### Input File Structure\n\nEvery Packmol input file requires:\n\n1. **tolerance**: Minimum distance between atoms (Å)\n2. **output**: Output filename\n3. **filetype**: Format (pdb, xyz, tinker)\n4. **structure blocks**: Define molecules to place\n\n### Structure Block Syntax\n\n```text\nstructure molecule.pdb\n  number \u003CN>                          # Number of molecules\n  inside|outside \u003Cconstraint>         # Spatial constraint\n  [optional parameters]\nend structure\n```\n\n### Common Constraint Types\n\n- **box**: `inside box xmin ymin zmin xmax ymax zmax`\n- **sphere**: `inside sphere xcenter ycenter zcenter radius`\n- **cylinder**: `inside cylinder x1 y1 z1 dx dy dz radius length`\n- **plane**: `above plane a b c d` or `below plane a b c d`\n- **ellipsoid**: `inside ellipsoid xc yc zc xa yb zc scale`\n\nSee [references\u002Fconstraints.md](references\u002Fconstraints.md) for complete constraint documentation.\n\n## Workflows\n\n### 1. Basic Molecular Packing\n\nBuild boxes with multiple molecule types.\n\n**Example**: Water\u002Fethanol mixture\n\n```text\ntolerance 2.0\noutput mixture.pdb\nfiletype pdb\n\nstructure water.pdb\n  number 800\n  inside box 0. 0. 0. 40. 40. 40.\nend structure\n\nstructure ethanol.pdb\n  number 200\n  inside box 0. 0. 0. 40. 40. 40.\nend structure\n```\n\n### 2. Protein Solvation\n\nSolvate biomolecules with water and ions for neutralization.\n\n**Key parameters**:\n- Use `fixed` with `center` for the protein\n- Add Na+\u002FCl- ions for neutrality and concentration\n- Calculate box size based on protein + solvent shell\n\n**Automatic solvation helper**:\n\n```bash\npython scripts\u002Fsolvate_helper.py protein.pdb --shell 15.0 --charge +4\n```\n\n### 3. Interface Systems\n\nBuild liquid-liquid or liquid-vapor interfaces using plane constraints.\n\n**Example**: Water\u002Fhexane interface\n\n```text\ntolerance 2.0\noutput interface.pdb\npbc -20. -20. -30. 20. 20. 30.\n\nstructure water.pdb\n  number 1000\n  below plane 0. 0. 1. 0.\nend structure\n\nstructure hexane.pdb\n  number 200\n  above plane 0. 0. 1. 0.\nend structure\n```\n\n### 4. Advanced Constraints\n\nUse spherical, cylindrical, or ellipsoidal constraints for complex geometries.\n\n**Example**: Spherical vesicle\n\n```text\nstructure lipid.pdb\n  number 2000\n  inside sphere 0. 0. 0. 40.\n  atoms 1 2 3 4\n    outside sphere 0. 0. 0. 35.\n  end atoms\nend structure\n\nstructure water.pdb\n  number 2000\n  inside sphere 0. 0. 0. 35.\nend structure\n\nstructure water.pdb\n  number 5000\n  outside sphere 0. 0. 0. 45.\nend structure\n```\n\n## Input Parameters\n\n### Required Parameters\n\n- **tolerance** `\u003Cdistance>`: Minimum intermolecular distance (Å). Default: 2.0 for all-atom\n- **output** `\u003Cfilename>`: Output file name\n- **filetype** `\u003Cformat>`: pdb, xyz, or tinker\n\n### Optional Parameters\n\n- **pbc** `\u003Cdimensions>`: Periodic boundary conditions (e.g., `pbc 30. 30. 60.`)\n- **seed** `\u003Cinteger>`: Random seed for reproducibility\n- **discale** `\u003Cfactor>`: Distance scaling for optimization (default: 1.0)\n- **maxit** `\u003CN>`: Maximum iterations (default: 20)\n- **precision** `\u003Cvalue>`: Convergence precision (default: 0.01)\n\nSee [references\u002Fparameters.md](references\u002Fparameters.md) for complete parameter reference.\n\n## Structure Block Options\n\n### Positioning Options\n\n- **number**: Molecule count\n- **inside\u002Foutside**: Spatial constraint\n- **fixed**: Fix position and rotation (6 parameters: x, y, z, α, β, γ)\n- **center**: Use center of mass for positioning\n\n### Rotation Constraints\n\n```text\nconstrain_rotation x 180. 20.  # Constrain rotation around x-axis\nconstrain_rotation y 180. 20.  # Constrain rotation around y-axis\nconstrain_rotation z 180. 20.  # Constrain rotation around z-axis\n```\n\n### Atom Selection\n\nApply constraints to specific atoms within molecules:\n\n```text\nstructure molecule.pdb\n  number 100\n  inside box 0. 0. 0. 30. 30. 30.\n  atoms 1 2 3\n    inside box 0. 0. 25. 30. 30. 30.\n  end atoms\nend structure\n```\n\n## Running Packmol\n\n### Basic Execution\n\n```bash\npackmol \u003C input.inp\n```\n\n### Output Interpretation\n\nSuccess message:\n\n```\n------------------------------\nSuccess!\nFinal objective function value: .22503E-01\nMaximum violation of target distance: 0.000000\nMaximum violation of the constraints: .78985E-02\n------------------------------\n```\n\nCheck that both violations are \u003C 0.01 for a valid solution.\n\n## Validation\n\n### Check Overlaps\n\n```bash\npython scripts\u002Fcheck_overlaps.py output.pdb --tolerance 2.0\n```\n\n### Verify Success\n\n```bash\npython scripts\u002Fverify_success.py input.inp output.pdb\n```\n\n### Analyze Density\n\n```bash\npython scripts\u002Fanalyze_density.py output.pdb\n```\n\n### Validate Input\n\n```bash\npython scripts\u002Fvalidate_input.py input.inp\n```\n\n## Troubleshooting\n\n### Common Issues\n\n1. **\"Killed\" error**: System too large\n   - Reduce number of molecules\n   - Use restart files to build incrementally\n   - See [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md)\n\n2. **No convergence**:\n   - Try `discale 1.5` to scale distances\n   - Reduce molecule count\n   - Simplify constraints\n   - Increase `maxit`\n\n3. **Strange geometries**:\n   - Add `check` keyword to validate constraints without packing\n   - Verify constraint syntax\n   - Check for conflicting constraints\n\n4. **Incorrect atom count**:\n   - Verify structure files are readable\n   - Check for duplicate atoms in input files\n   - Validate with `scripts\u002Fvalidate_input.py`\n\nSee [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) for detailed solutions.\n\n## Examples\n\nExplore example input files in the `examples\u002F` directory:\n\n- **Basic**: [examples\u002Fbasic\u002F](examples\u002Fbasic\u002F) - Simple boxes and mixtures\n- **Solvation**: [examples\u002Fsolvation\u002F](examples\u002Fsolvation\u002F) - Proteins with water and ions\n- **Interface**: [examples\u002Finterface\u002F](examples\u002Finterface\u002F) - Liquid-liquid interfaces\n- **Advanced**: [examples\u002Fadvanced\u002F](examples\u002Fadvanced\u002F) - Vesicles, bilayers, complex geometries\n\n## Templates\n\nUse templates in `templates\u002F` as starting points:\n\n- **[templates\u002Fbasic_template.inp](templates\u002Fbasic_template.inp)**: Minimal template for simple packing\n- **[templates\u002Fsolvation_template.inp](templates\u002Fsolvation_template.inp)**: Protein solvation setup\n- **[templates\u002Finterface_template.inp](templates\u002Finterface_template.inp)**: Interface systems\n\n## Helper Scripts\n\nUse Python scripts in `scripts\u002F` for automation:\n\n- **generate_input.py**: Generate inputs programmatically\n- **validate_input.py**: Validate input syntax before running\n- **check_overlaps.py**: Detect atomic overlaps in output\n- **analyze_density.py**: Calculate system density\n- **solvate_helper.py**: Automatic protein solvation setup\n- **verify_success.py**: Verify Packmol completed successfully\n\n## Advanced Topics\n\n### Periodic Boundary Conditions\n\nUse `pbc` for periodic systems:\n\n```text\npbc 30. 30. 60.  # or pbc xmin ymin zmin xmax ymax zmax\n```\n\n### Restart Files\n\nBuild large systems incrementally:\n\n```text\nstructure water.pdb\n  number 1000\n  inside box 0. 0. 0. 40. 40. 40.\n  restart_to water1.pack\nend structure\n```\n\nThen restart:\n\n```text\nstructure water.pdb\n  number 1000\n  restart_from water1.pack\nend structure\n```\n\n### Atom-Specific Radii\n\nSet different radii for multiscale models:\n\n```text\nstructure molecule.pdb\n  number 100\n  radius 1.5  # All atoms\nend structure\n\nstructure molecule.pdb\n  number 100\n  atoms 1 2\n    radius 1.5  # Specific atoms\n  end atoms\nend structure\n```\n\n### Constraint Validation\n\nValidate constraints without packing:\n\n```text\nstructure molecule.pdb\n  number 100\n  inside box 0. 0. 0. 30. 30. 30.\n  check\nend structure\n```\n\n## Best Practices\n\n1. **Start simple**: Test with few molecules before scaling up\n2. **Use appropriate tolerance**: 2.0 Å for all-atom, larger for coarse-grained\n3. **Check constraints**: Add `check` keyword to validate regions\n4. **Validate output**: Use scripts to check overlaps and density\n5. **Reproducibility**: Set `seed` for repeatable results\n6. **Large systems**: Use restart files or build in stages\n7. **Box size**: Allow 10-15 Å padding around solutes for solvation\n\n## Tips for Common Use Cases\n\n### Protein Solvation\n\n- Add 10-15 Å solvent shell around protein\n- Calculate ions for neutrality: `N_ions = charge \u002F e`\n- Add salt ions for desired concentration (e.g., 0.15 M NaCl)\n- Use `fixed` with `center` for protein positioning\n\n### Mixed Solvents\n\n- Calculate total number of molecules from desired molar ratios\n- Use same tolerance for all components\n- Test with small systems first\n\n### Membrane Systems\n\n- Use `constrain_rotation` to orient lipids\n- Build in stages: lipids first, then water\n- Consider using specialized membrane builders for large systems\n\n### Nanotubes\u002FPores\n\n- Use `cylinder` constraint for pore region\n- Combine with `outside` constraint for bulk region\n- May need atom selection for specific molecule orientations\n\n## Resources\n\n- Official documentation: [Packmol User Guide](https:\u002F\u002Fm3g.github.io\u002Fpackmol\u002Fuserguide.shtml)\n- Examples: [Packmol Examples](https:\u002F\u002Fm3g.github.io\u002Fpackmol\u002Fexamples.shtml)\n- GitHub: [Packmol Repository](https:\u002F\u002Fgithub.com\u002Fm3g\u002Fpackmol)\n- Paper: [Martínez et al. J Comput Chem 2009](https:\u002F\u002Fdoi.org\u002F10.1002\u002Fjcc.21224)\n\n## References\n\nFor detailed information on specific topics, see:\n\n- [constraints.md](references\u002Fconstraints.md) - Complete constraint syntax and examples\n- [parameters.md](references\u002Fparameters.md) - All input parameters and options\n- [file_formats.md](references\u002Ffile_formats.md) - File format specifications\n- [troubleshooting.md](references\u002Ftroubleshooting.md) - Problem-solving guide\n",{"name":5,"version":35,"description":7},"1.0.0","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill packmol",{"tool":51,"command":52},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill packmol",{"tool":54,"command":55},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill packmol","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002FSKILL.md",true,[59,65,71,75,79,83,87,91,95,99,103,107,111,117,121,125,129,133,137,141,145,149],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"examples\u002Fbasic\u002Fmixture.inp","OTHER","其他",1094,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fexamples\u002Fbasic\u002Fmixture.inp",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"examples\u002Fbasic\u002FREADME.md","REFERENCE","参考文档",3404,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fexamples\u002Fbasic\u002FREADME.md",{"path":72,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":73,"sourceHtmlUrl":74},"examples\u002Fbasic\u002Fsimple_box.inp",961,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fexamples\u002Fbasic\u002Fsimple_box.inp",{"path":76,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":77,"sourceHtmlUrl":78},"examples\u002Finterface\u002Fliquid_liquid.inp",2144,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fexamples\u002Finterface\u002Fliquid_liquid.inp",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"examples\u002Finterface\u002FREADME.md",10075,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fexamples\u002Finterface\u002FREADME.md",{"path":84,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":85,"sourceHtmlUrl":86},"examples\u002Fsolvation\u002Fprotein_solvation.inp",2163,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fexamples\u002Fsolvation\u002Fprotein_solvation.inp",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"examples\u002Fsolvation\u002FREADME.md",6727,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fexamples\u002Fsolvation\u002FREADME.md",{"path":92,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":93,"sourceHtmlUrl":94},"examples\u002Fsolvation\u002Fwater_box.inp",1301,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fexamples\u002Fsolvation\u002Fwater_box.inp",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fconstraints.md",9883,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Freferences\u002Fconstraints.md",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Ffile_formats.md",10488,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Freferences\u002Ffile_formats.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Fparameters.md",13150,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Freferences\u002Fparameters.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Ftroubleshooting.md",14332,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Freferences\u002Ftroubleshooting.md",{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"scripts\u002Fanalyze_density.py","SCRIPT","脚本",11757,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fscripts\u002Fanalyze_density.py",{"path":118,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":119,"sourceHtmlUrl":120},"scripts\u002Fcheck_overlaps.py",8880,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fscripts\u002Fcheck_overlaps.py",{"path":122,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":123,"sourceHtmlUrl":124},"scripts\u002Fgenerate_input.py",17032,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fscripts\u002Fgenerate_input.py",{"path":126,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":127,"sourceHtmlUrl":128},"scripts\u002Fsolvate_helper.py",14883,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fscripts\u002Fsolvate_helper.py",{"path":130,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":131,"sourceHtmlUrl":132},"scripts\u002Fvalidate_input.py",14666,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fscripts\u002Fvalidate_input.py",{"path":134,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":135,"sourceHtmlUrl":136},"scripts\u002Fverify_success.py",13961,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fscripts\u002Fverify_success.py",{"path":138,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":139,"sourceHtmlUrl":140},"skill-report.json",13660,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Fskill-report.json",{"path":142,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":143,"sourceHtmlUrl":144},"templates\u002Fbasic_template.inp",2815,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Ftemplates\u002Fbasic_template.inp",{"path":146,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":147,"sourceHtmlUrl":148},"templates\u002Finterface_template.inp",3830,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Ftemplates\u002Finterface_template.inp",{"path":150,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":151,"sourceHtmlUrl":152},"templates\u002Fsolvation_template.inp",4001,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fchenghao-wu\u002Fpackmol\u002Ftemplates\u002Fsolvation_template.inp",[154,163,172,181,187,193],{"skillNo":155,"name":156,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":30},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[160,161,162],"model","model hierarchy","model hierarchy skill",{"skillNo":164,"name":165,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":30},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[169,170,171],"MCP","zoom","zoom mcp",{"skillNo":173,"name":174,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":30},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[178,179,180,170],"sdk","zoom apps sdk","apps",{"skillNo":182,"name":183,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":30},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[183],{"skillNo":188,"name":189,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":190,"categories":191,"keywords":192,"publishedAt":30},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[189],{"skillNo":194,"name":195,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":30},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[195]]