Well Convert logo

Well Convert

Organization
AI-ModCon
well-convert

Convert a simulation dataset to the Well HDF5 format — preprocess, inspect, plan, generate scripts, run and monitor

Overview

PublisherAI-ModCon
Repositorygenesis-skills
Skill namewell-convert
Stars
37
Forks
16
Bundled files
1
LicenseBSD-2-Clause
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by AI-ModCon on GitHub. Read the source before you install it.

Installation

Install the Well Convert AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basedata-skills/well-convert
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AI-ModCon/genesis-skills.git /tmp/genesis-skills
mkdir -p .claude/skills
cp -r /tmp/genesis-skills/skills/basedata-skills/well-convert .claude/skills/well-convert
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Well Convert in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Well Convert on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Well Convert is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 notes

Tools: 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?"

StepNameDescription
🚀 0PreprocessExtract archives (zip/tar/gz) if present
🔍 1InspectFields, shapes, dtypes, grid, chunk estimate
🔗 2Cross-checkMap source fields to Well schema; resolve gaps
📋 3PlanPresent conversion plan for approval
⚙️ 4GenerateWrite scripts; show output directory tree
▶️ 5Run & MonitorSmoke 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.

ModeWhen to recommendWhat to ask for
GeneralFew or small jobs; interactive sessionNumber of concurrent workers
SlurmMany or large jobs on a clusterPartition, account, nodes, tasks-per-node, wall time
PBSMany or large jobs on a PBS clusterQueue, account, nodes, procs-per-node, wall time

Launch commands:

bash
# 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 --progress

Monitor all modes with:

bash
parallelcmd.py check

Step 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 check until 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:

  1. field | shape | dtype | physical meaning
  2. 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_steps from 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 writers
  • convert_<type>.py — per file type; pre-allocate HDF5, stream snapshots, checkpoint after each
  • init_convert_queue.sh — populate parallelcmd.py SQLite queue with all jobs
  • convert.slurm / convert.pbs / convert_parallel.sh — matching execution mode
  • validate.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

  1. Syntax-check all scripts
  2. Smoke test (e.g. 5 snapshots); run validate.py on the output
  3. bash init_convert_queue.sh
  4. Submit: sbatch convert.slurm / qsub convert.pbs / bash convert_parallel.sh
  5. Monitor: parallelcmd.py check + scheduler state
  6. validate.py --check-values --check-continuity
  7. Report failures; offer to reset and resubmit

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Well Convert AI skill do?

Convert a simulation dataset to the Well HDF5 format — preprocess, inspect, plan, generate scripts, run and monitor

Why use Well Convert on TypingMind?

Because you install it once and use it with any model. Well Convert is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Well Convert in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basedata-skills/well-convert. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Well Convert?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Well Convert?

As many as you like. As long as a model supports skills, you can use Well Convert with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Well Convert AI skill free?

Yes. It is published on GitHub by AI-ModCon under the BSD-2-Clause license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇