Logo Well Convert

Well Convert

Tổ chức
AI-ModCon
well-convert

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

Tổng quan

Nhà phát hànhAI-ModCon
Kho mãgenesis-skills
Tên kỹ năngwell-convert
Sao
37
Bản fork
16
Tệp đi kèm
1
Giấy phépBSD-2-Clause
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được AI-ModCon công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Well Convert trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basedata-skills/well-convert
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Well Convert trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Well Convert ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Well Convert không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Well Convert làm được gì?

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

Vì sao nên dùng Well Convert trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Well Convert là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Well Convert trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/AI-ModCon/genesis-skills/tree/main/skills/basedata-skills/well-convert. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Well Convert?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Well Convert với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Well Convert với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Well Convert có miễn phí không?

Có. Kỹ năng này được AI-ModCon phát hành trên GitHub theo giấy phép BSD-2-Clause. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇