# Lammpsio

> Use when importing `lammpsio`, reading/writing LAMMPS data/dump files, or converting between LAMMPS and GSD formats.

- **Type:** Skill
- **Install:** `agentstack add skill-wugroup-xjtlu-cc-skills-zhenghaowu-group-lammpsio`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [WuGroup-XJTLU](https://agentstack.voostack.com/s/wugroup-xjtlu)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [WuGroup-XJTLU](https://github.com/WuGroup-XJTLU)
- **Source:** https://github.com/WuGroup-XJTLU/cc-skills-ZhenghaoWu-Group/tree/main/plugins/lammpsio/skills/lammpsio

## Install

```sh
agentstack add skill-wugroup-xjtlu-cc-skills-zhenghaowu-group-lammpsio
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# lammpsio

Pure Python package for reading and writing LAMMPS data and dump files, with optional HOOMD-blue GSD interconversion. Version 0.9.0. All indexes follow the LAMMPS 1-indexed convention. Per-particle arrays use lazy initialization — accessing a property allocates it; use `has_*()` methods to check without allocating.

## Quick Start

```bash
pip install lammpsio
# or: conda install -c conda-forge lammpsio
```

```python
import lammpsio

# Read a data file
snap = lammpsio.DataFile("atoms.data").read()

# Write a data file
lammpsio.DataFile.create("atoms.data", snapshot)

# Iterate a dump file
for snap in lammpsio.DumpFile("trajectory.lammpstrj"):
    print(snap.step, snap.N)
```

See `references/api_reference.md` for complete documentation of `Box`, `Snapshot`, `DataFile`, `DumpFile`, `Topology` classes, and `LabelMap`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [WuGroup-XJTLU](https://github.com/WuGroup-XJTLU)
- **Source:** [WuGroup-XJTLU/cc-skills-ZhenghaoWu-Group](https://github.com/WuGroup-XJTLU/cc-skills-ZhenghaoWu-Group)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-wugroup-xjtlu-cc-skills-zhenghaowu-group-lammpsio
- Seller: https://agentstack.voostack.com/s/wugroup-xjtlu
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
