Writes or reviews parallel HDF5 and MPI-IO code so many ranks share one file correctly and collectively, and checks the result with Darshan counters. Not for serial file reading; not for choosing the science stored in the file.
Ships in hpc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Get many MPI ranks writing or reading one shared file correctly first, then quickly. Correctness rules come first because breaking them hangs a job or corrupts a file. Everything here runs on the cluster with no network access.
h5pcc -showconfig (or h5cc -showconfig)
must print Parallel HDF5: yes. Load it with the same MPI the program uses
(see the hpc-modules skill).python3 -c 'import h5py; print(h5py.get_config().mpi)' must
print True, and mpi4py must import. A pip-installed h5py is serial unless
it was built against a parallel HDF5.Parallel HDF5 (C or h5py):
h5py.File(path, "w", driver="mpio", comm=MPI.COMM_WORLD), or in C a file access list with
H5Pset_fapl_mpio(fapl, comm, info).with dset.collective: dset[lo:hi] = block
in h5py, or in C a transfer list with
H5Pset_dxpl_mpio(dxpl, H5FD_MPIO_COLLECTIVE). Every rank must then take part
in each collective write, including a rank whose selection is empty.MPI-IO:
MPI_File_open is collective over its communicator.MPI_File_write_at_all and MPI_File_read_at_all are collective;
MPI_File_write_at and MPI_File_read_at are independent. With many small
per-rank pieces, prefer the collective forms. They let ROMIO aggregate the
pieces into large requests (two-phase I/O).MPI_File_set_view and a derived
datatype, instead of looping over many small writes.Change one knob at a time and measure each change (Phase 3).
MPI_Info passed at open (H5Pset_fapl_mpio passes
one through): romio_cb_write / romio_cb_read (enable, disable,
automatic), cb_nodes (aggregator count), cb_buffer_size.lfs getstripe <file or dir> shows the striping. Set a new
file's striping on its directory with lfs setstripe -c <stripe count> -S <stripe size> <dir>,
or through the striping_factor and striping_unit hints at creation. An
existing file keeps the striping it was created with.H5Pset_coll_metadata_write(fapl, true) and
H5Pset_all_coll_metadata_ops(fapl, true) make metadata writes and reads
collective, which helps at high rank counts. Chunk shapes that align with each
rank's slab avoid sharing chunks between ranks.Run the smallest real case first, with the same code path and a few ranks
(mpirun -n 4 python3 write.py), before the full-scale job. Then:
h5dump -H <file> or h5ls -r <file>. Check that the
shapes and dtypes are as intended, and that the values in each rank's slab
match what that rank wrote.MPIIO_COLL_WRITES against MPIIO_INDEP_WRITES shows whether the
collective path was taken, and the POSIX request-size histogram shows whether
aggregation produced large requests. For the per-file check, call
mcp_hpc__darshan_files with the log as path and module = MPIIO
(or POSIX) to see which files carried the bytes and through which layer.State the rank count, the access mode (independent or collective), the hints and striping used, and the readback or Darshan counters that support each claim. A throughput number without the log it came from is a guess.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/hpc-darshanCharacterizes an application's I/O from a Darshan log through the hpc plugin's MCP server (darshan-parser as the fallback): reads volumes, access sizes, sequentiality and collective use, and names the bottleneck the counters support. Not for instrumenting a build or for tuning without a log./hpc-modulesFinds software on an HPC system through the hpc plugin's MCP server (Lmod or Environment Modules, and Spack installs), plans the module loads a script needs, and loads them from bash in the shell that uses them. Not for installing software or for writing the job script's science./hpc:hpc-parallel-iofrom hpc
npx claudepluginhub panstudio/pancode --plugin hpc