Skip to content
Back to skills

Universe Io

ASecurity

"Load, construct, inspect, iterate, and write molecular systems

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill universe-io --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Universe Io?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Universe Io
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-universe-io/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-universe-io)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: universe-io
description: "Load, construct, inspect, iterate, and write molecular systems
  with MDAnalysis Universe, readers, writers, and synthetic in-memory systems."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Universe I/O

Use this sub-skill when an MDAnalysis task starts from creating or loading a molecular system, attaching coordinates, iterating trajectories, validating coordinate/topology compatibility, or writing basic coordinate output.

## Read First

- `references/api-reference.md` for exact entry points, signatures, and object responsibilities.
- `references/workflows.md` for loading, synthetic `Universe.empty`, in-memory trajectories, trajectory iteration, `Merge`, and basic writing recipes.
- `references/troubleshooting.md` for format, atom-count, topology-attribute, timestep, writer, and optional dependency failures.
- `scripts/universe_smoke_check.py` for a self-contained import and synthetic Universe check that does not use external test data files.

## Use This For

- Pairing topology and coordinate inputs with `MDAnalysis.Universe(topology, *coordinates, format=..., topology_format=...)`.
- Constructing small synthetic systems with `Universe.empty(...)` and optional `MemoryReader` trajectories.
- Replacing or attaching coordinates with `Universe.load_new(...)`, including NumPy arrays via `MemoryReader`.
- Iterating `u.trajectory`, reading `Timestep` positions/dimensions/frame/time, and validating frame counts.
- Creating one-structure subsystems with `Merge(...)` and adding a new in-memory trajectory when needed.
- Choosing `MDAnalysis.Writer(...)`, `MDAnalysis.coordinates.reader(...)`, `MDAnalysis.coordinates.writer(...)`, or `AtomGroup.write(...)` for basic output.

## Route Elsewhere

- Selection strings, custom topology attributes, groups, guessing semantics, and topology manipulation belong in `../selections-topology/SKILL.md`.
- RMSD/RDF/contacts/distances/hydrogen-bond and custom `AnalysisBase` workflows belong in `../analysis-workflows/SKILL.md`.
- Transformation pipelines, wrap/unwrap/fit/center operations, and transformed-output recipes belong in `../transformations-writing/SKILL.md`.
- Optional converter interoperability, fetchers, auxiliary data, and format dependency triage belong in `../formats-converters/SKILL.md`.

## Quick Checks

- Confirm `len(u.atoms)` equals `u.trajectory.n_atoms` after load or `load_new`.
- Confirm needed topology attributes exist before writing or downstream work, e.g. names, types, masses, residues, segments, bonds.
- Confirm `u.trajectory.ts.positions.shape == (len(u.atoms), 3)` and `u.trajectory.ts.dimensions` is meaningful before box-dependent operations.
- Prefer explicit `format=` or `topology_format=` for streams, ambiguous extensions, arrays, or filenames that MDAnalysis cannot infer.

Files in this skill

  • SKILL.md2.8 KB
  • references/api-reference.md9.4 KB
  • references/troubleshooting.md8.6 KB
  • references/workflows.md8.1 KB
  • scripts/universe_smoke_check.py3.5 KB

Attribution

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

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.