well-convert
Skill30 starsChanged 50 days agoBSD-2-ClauseView on GitHub
Convert a simulation dataset to the Well HDF5 format — preprocess, inspect, plan, generate scripts, run and monitor
In this repository30 other files it gives its agents.
- skills/academy/agents.mdAGENTS.md
- academySkill
- amsc-data-movement-apiSkill
- amsc-magSkill
- amsc-python-clientSkill
- globus-computeSkill
- i2-apiSkill
- iri-apiSkill
- skill-explorerSkill
- croissant-validatorSkill
- datacard-generatorSkill
- hdmf-schema-builderSkill
- skill-creatorSkill
- card-eval-updaterSkill
- agentic-vulnerabilities-scanSkill
- ai-fingerprintSkill
- battleprintSkill
- fingerprintingSkill
- uncertainty-quantificationSkill
- uq-metrics-evaluatorSkill
- skill-searchSkill
- auroraSkill
- frontierSkill
- pbsSkill
- perlmutterSkill
- slurmSkill
- literature-searchSkill
- multi-agent-systemsSkill
- gkeyllSkill
- gs2Skill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Default output filename: <output_root>/converted/<source_basename>_well.h5.
- Distinctive: line 32
Style: use emojis for headers, recommendations, and key items.
- Distinctive: line 47
After each step print:
- Distinctive: line 84
If none found, skip directly to Step 1.
- Distinctive: line 85
If found, list the archives and ask whether to extract.
- Distinctive: line 94
Do not proceed to Step 1 until all archives are extracted and verified.
- Distinctive: line 113
Surplus fields: no obvious Well mapping — include, drop, or rename?
- Distinctive: line 120
Wait for user to resolve all issues before proceeding.
- Distinctive: line 133
Wait for user approval before proceeding.
- Distinctive: line 147
After generation, show the actual output directory tree listing key generated files under each subdirectory, and confirm source was not …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
This skill guides end-to-end conversion of a scientific simulation dataset into the Well HDF5 format, a standardized layout for PDE simulation data used by the Polymathic AI project. It covers the full pipeline: extracting archives, inspecting source fields, mapping them to the Well schema, planning the conversion, generating ready-to-run HPC scripts, and monitoring the job through to validation.
Setup
Arguments: collect source path and output destination (<output_root>) from $ARGUMENTS; ask for any not provided.
Default output filename: <output_root>/converted/<source_basename>_well.h5.
Input policy: source location is read-only — never write, rename, move, or delete files there.
Output layout — all artifacts go under <output_root>:
<output_root>/
├── scripts/ ← generated conversion, queue, runner, and validation scripts
├── converted/ ← Well HDF5 files and chunked outputs
├── extracted/ ← archives extracted from source (source unchanged)
├── checkpoints/ ← .progress files and resumable state
├── logs/ ← conversion logs, run summaries, error logs
├── validation/ ← validation reports and continuity checks
└── reports/ ← mapping tables, planning summaries, conversion notesTools: scripts/parallelcmd/parallelcmd.py (parallel job manager); see scripts/parallelcmd/README.md. Use it for all CLI examples. Install and verify (parallelcmd.py -h must succeed) before proceeding.
Well spec: fetch before starting — https://raw.githubusercontent.com/PolymathicAI/the_well/refs/heads/master/docs/data_format.md
Style: use emojis for headers, recommendations, and key items. Always include a recommendation with rationale when asking the user a question.
Steps at a Glance
Show this table first, then ask: "Where would you like to start?"
| Step | Name | Description |
| 🚀 0 | Preprocess | Extract archives (zip/tar/gz) if present |
| 🔍 1 | Inspect | Fields, shapes, dtypes, grid, chunk estimate |
| 🔗 2 | Cross-check | Map source fields to Well schema; resolve gaps |
| 📋 3 | Plan | Present conversion plan for approval |
| ⚙️ 4 | Generate | Write scripts; show output directory tree |
| ▶️ 5 | Run & Monitor | Smoke test → full run → validate → handle failures |
After each step print:
✅ **Done:** [one-line summary]
➡️ **Next:** Step N — Name — [one-line description]Parallel execution pattern
Applied in Step 0 (extraction) and Steps 4–5 (conversion). Before running any parallel workload, ask the user for their execution mode and recommend a default based on job count and data size.
| Mode | When to recommend | What to ask for |
| General | Few or small jobs; interactive session | Number of concurrent workers |
| Slurm | Many or large jobs on a cluster | Partition, account, nodes, tasks-per-node, wall time |
| PBS | Many or large jobs on a PBS cluster | Queue, account, nodes, procs-per-node, wall time |
Launch commands:
# General (no scheduler wrapper)
parallelcmd.py --db "$DB" exec -j $NWORKERS --progress
# Slurm
srun parallelcmd.py --db "$DB" exec -j $NTASKS --progress
# PBS
mpiexec -n ${NTOTPROCS} --ppn ${NPROCS_PER_NODE} parallelcmd.py --db "$DB" exec -j $NTASKS --progressMonitor all modes with:
parallelcmd.py checkStep 0 — Preprocess
Scan source for .zip, .tar, .tar.gz, .tgz, .tar.bz2, .gz.
- If none found, skip directly to Step 1.
- If found, list the archives and ask whether to extract.
If extracting:
- Extract to
<output_root>/extracted/only — never modify source - Choose execution mode per the parallel execution pattern above
- Submit and monitor with
parallelcmd.py checkuntil all jobs complete - On failure: report errors and ask whether to retry or skip
- On success: show a file summary under
<output_root>/extracted/and confirm source is unchanged
Do not proceed to Step 1 until all archives are extracted and verified.
Step 1 — Inspect
Scope: original input dir + <output_root>/extracted/ (if populated).
- List files; identify naming patterns and groupings
- Open a representative file: dataset names, shapes, dtypes, attributes
- Identify grid (dimensions, coordinate system), timesteps, field names
- Estimate total size and file count
- Compute suggested
n_steps/chunk targeting ~1 GB/file; show calculation
Output two tables:
- field | shape | dtype | physical meaning
- Total timesteps | Spatial shape | Bytes/step | Suggested steps/chunk | Est. chunks | Est. file size
Step 2 — Cross-check
Flag and resolve before proceeding:
- Missing fields: required by Well spec or physics but absent
- Surplus fields: no obvious Well mapping — include, drop, or rename?
- Missing metadata: simulation params (Re, Ma, dt, grid type) — ask user to supply
- Shape inconsistencies: files differing from the majority — list explicitly
- dtype warnings: float64/integer fields that will be cast to float32
- Naming ambiguities: unclear physical meaning — ask user to confirm
Present table: field | status (mapped / surplus / missing) | proposed Well name | notes. Wait for user to resolve all issues before proceeding.
Step 3 — Plan
- Grid: coordinate system, dimension names/sizes, uniform or non-uniform
- Fields: t0_fields (scalars), t1_fields (vectors), t2_fields (tensors); output shapes (B, T, x1, x2, …)
- Chunking: strategy (by time window / by variable); confirm or override
n_stepsfrom Step 1:"Suggested: N steps/chunk (~X GB/file). Enter a value or press Enter to accept."
- Output shape: (n_trajectories, n_steps, spatial…) and estimated file sizes per chunk
- Output destination: confirm dir and filename pattern
- Special cases: complex fields (real/imag), time_varying=False fields, non-standard coordinates
- Execution mode: confirm mode and resources per the parallel execution pattern; estimate job count and wall time
Wait for user approval before proceeding.
Step 4 — Generate scripts
Using the execution mode and resources confirmed in Step 3, write all scripts to <output_root>/scripts/:
well_common.py— constants, grid loader, checkpoint I/O, Well attribute writersconvert_<type>.py— per file type; pre-allocate HDF5, stream snapshots, checkpoint after eachinit_convert_queue.sh— populateparallelcmd.pySQLite queue with all jobsconvert.slurm/convert.pbs/convert_parallel.sh— matching execution modevalidate.py— required attrs, shapes, dtypes, no NaN/Inf, timestep continuity<output_root>/README.md— workflow, assumptions, commands, execution, monitoring, validation
Requirements: float32 output; pre-allocate before streaming; .progress sidecars for checkpoint/restart; tqdm progress; robust logging; use n_steps confirmed in Step 3 for all chunking.
After generation, show the actual output directory tree listing key generated files under each subdirectory, and confirm source was not modified.
Step 5 — Run and monitor
- Syntax-check all scripts
- Smoke test (e.g. 5 snapshots); run
validate.pyon the output bash init_convert_queue.sh- Submit:
sbatch convert.slurm/qsub convert.pbs/bash convert_parallel.sh - Monitor:
parallelcmd.py check+ scheduler state validate.py --check-values --check-continuity- Report failures; offer to reset and resubmit
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

