hmt-convert

hmt-convert is a skill for Claude Code, Codex from psu-efd/pyHMT2D. It costs 93 tokens per session (754 once invoked), scanned A, original, MIT.

A format-conversion tool for hydraulic models, which are computer files describing water flow and terrain. It converts HEC-RAS 2D meshes to SRH-2D files and converts SRH-2D meshes or results to VTK files for viewing in ParaView.

In plain words
What is it for?
Use it to convert HEC-RAS models to SRH-2D, or export SRH-2D meshes and simulation results for scientific visualization.
Why use it?
It removes the need to rebuild the same model data by hand when moving between supported programs. It works from file paths and does not require an open project or session.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/psu-efd/pyhmt2d/hmt-convert
Any agent
npx skills add psu-efd/pyHMT2D --skill hmt-convert
Clone the repo
git clone --depth 1 https://github.com/psu-efd/pyHMT2D

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hmt-convert

README.md
[![agentmods](https://agentmods.dev/badge/skills/psu-efd/pyhmt2d/hmt-convert.svg)](https://agentmods.dev/skills/psu-efd/pyhmt2d/hmt-convert)
Your own site
<a href="https://agentmods.dev/skills/psu-efd/pyhmt2d/hmt-convert"><img src="https://agentmods.dev/badge/skills/psu-efd/pyhmt2d/hmt-convert.svg" alt="Measured on agentmods" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 754 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.00754
Opus 5 $0.00046 $0.00377
Sonnet 5 $0.00019 $0.00151
Haiku 4.5 $0.00009 $0.00075

Measured 6d ago against content hash a1538fbdd656, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

hmt-convert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/hmt-convert/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Convert between hydraulic model formats using stateless conversion tools. No open project or session is required.

Usage

/hmt-convert [description of what to convert]

Supported conversions

Conversion Tool
HEC-RAS 2D mesh + Manning's n → SRH-2D (.srhgeom, .srhmat) ras_to_srh
SRH-2D HDF results → VTK srh_to_vtk
SRH-2D mesh only → VTK srh_to_vtk with mesh_only: true

Steps

  1. Determine the conversion type from the user's request or arguments. If unclear, ask:

    • "Do you want to convert HEC-RAS to SRH-2D, or export SRH-2D results/mesh to VTK?"
  2. Collect required file paths. If the user did not provide them, scan the current directory for relevant files:

    hmt-cli list_model_files --args '{"directory": "."}'
    

    For ras_to_srh: need .hdf result file, terrain .tif, and desired output case name. For srh_to_vtk: need .srhhydro file and either the HDF result file or output VTK filename.

  3. Run the conversion.

    HEC-RAS → SRH-2D:

    hmt-cli ras_to_srh --args '{"ras_hdf_file": "<path>", "terrain_tif_file": "<path>", "srh_case_name": "<name>"}'
    

    Report the generated .srhgeom and .srhmat files. Remind the user that a .srhhydro boundary-condition file must be created separately.

    SRH-2D results → VTK (last time step):

    hmt-cli srh_to_vtk --args '{"srhhydro_file": "<path>", "output_file": "<result.h5>"}'
    

    SRH-2D results → VTK (all time steps):

    hmt-cli srh_to_vtk --args '{"srhhydro_file": "<path>", "output_file": "<result.h5>", "all_timesteps": true}'
    

    SRH-2D mesh only → VTK:

    hmt-cli srh_to_vtk --args '{"srhhydro_file": "<path>", "output_file": "<mesh.vtk>", "mesh_only": true}'
    
  4. Report output files and suggest next steps:

    • For HEC-RAS → SRH-2D: "Create a .srhhydro file to complete the SRH-2D case, then run /hmt-open to open it."
    • For VTK output: "Open the VTK file(s) in ParaView to visualize the results."

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 61 lines · 93 tokens per session scan A a1538fbdd656

Subscribe to this mod's changes

hmt-convert is a skill published in the GitHub repository psu-efd/pyHMT2D (130 stars, last pushed 26d ago), licensed MIT. It adds 93 tokens to every session and 754 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation.…

bytedance/deer-flow · 95 tokens

arxiv-paper-writer

Write LaTeX ML/AI review articles for arXiv using the IEEEtran template and verified BibTeX citations. Use when writing, planning, or continuing an arXiv review/survey paper, or when validating and repairing citations in an existing LaTeX project.

appautomaton/latex-arxiv-SKILL · 62 tokens

personal-genomics

Analyse personal DNA / genome files for pharmacogenomics, disease risk, carrier status, ancestry and traits. Use whenever the user mentions DNA or genome analysis, a raw genome file, gene names, drug-gene interactions, or wants to combine multiple DNA sources.

sammcj/agentic-coding · 56 tokens

latex-rhythm-refiner

Post-process LaTeX project prose to improve readability through varied sentence and paragraph lengths. Removes filler phrases and unnecessary transitions while preserving all citations and semantic meaning. Use after drafting is complete, when sections read as monotonous or blocky.

appautomaton/latex-arxiv-SKILL · 53 tokens

calculation-skill

A skill for mathematical calculations.

agentscope-ai/agentscope-java · 10 tokens

huggingface-vision-trainer

Prepare, train, evaluate, and publish computer-vision and vision-language models with Hugging Face datasets, Transformers, PEFT, and Jobs.

metaspartan/cybara · 37 tokens