Atomic Data Export

0•

Implements crash-safe, all-or-nothing measurement data exports with lossless precision formatting and automated run-directory organization.

Atomic Data Export equips Claude with robust patterns and tooling to eliminate corrupted or half-written measurement files during laboratory instrument runs and scientific data workflows. By utilizing a serialize-to-temp, flush, fsync, and atomic rename pipeline alongside path-yield wrappers for binary formats like HDF5, MATLAB, and NumPy, it ensures readers only ever observe complete data files. The skill also enforces lossless floating-point serialization, standardized run-folder structures with collision handling, config-snapshot metadata pairing, and static AST linting to flag unsafe direct-to-disk write operations.

Características Principales

01Includes static AST linting (export_lint.py) to catch direct open-for-write calls and non-atomic path writers
020 GitHub stars
03Preserves full precision with lossless floating-point round-tripping and explicit NaN serialization
04Provides path-yield atomic wrappers for binary writers including HDF5, NumPy (.npz), and MATLAB (.mat)
05Guarantees crash-safe, all-or-nothing writes using temp-file, flush, fsync, and atomic rename pipelines
06Organizes experiment outputs into collision-safe run directories paired with metadata JSON snapshots

Casos de Uso

01Preventing torn, half-written, or corrupted data files during unexpected power cuts or process aborts
02Standardizing experiment directory hierarchies with automated metadata capture and run indexing
03Building resilient scientific data acquisition and laboratory instrument export pipelines