hmt-convert
Skill132 starsChanged 8 months agoMITView on GitHub
Convert between hydraulic model formats. Supports HEC-RAS 2D to SRH-2D mesh conversion, and SRH-2D results or mesh to VTK. These tools are stateless — no open project is required. Use this when the user wants to convert formats, e.g. "convert RAS to SRH", "export SRH-2D to VTK", or "convert mesh to VTK".
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/calibration-parametric.mdcCursor rule
- .cursor/rules/cli-usage.mdcCursor rule
- .cursor/rules/hydraulic-models.mdcCursor rule
- .cursor/rules/project-overview.mdcCursor rule
- hmt-calibrateSkill
- hmt-exportSkill
- hmt-modifySkill
- hmt-monte-carloSkill
- hmt-openSkill
- hmt-resultsSkill
- hmt-runSkill
- hmt-statusSkill
- hmt-calibrateSkill
- hmt-convertSkill
- hmt-exportSkill
- hmt-modifySkill
- hmt-monte-carloSkill
- hmt-openSkill
- hmt-resultsSkill
- hmt-runSkill
- hmt-statusSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
No open project or session is required.
- Distinctive: line 27
If the user did not provide them, scan the current directory for relevant files:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
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
- 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?"
- Collect required file paths.
If the user did not provide them, scan the current directory for relevant files:
Forhmt-cli list_model_files --args '{"directory": "."}'ras_to_srh: need.hdfresult file, terrain.tif, and desired output case name. Forsrh_to_vtk: need.srhhydrofile and either the HDF result file or output VTK filename. 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
.srhgeomand.srhmatfiles. Remind the user that a.srhhydroboundary-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}'- Report output files and suggest next steps:
- For HEC-RAS → SRH-2D: "Create a
.srhhydrofile to complete the SRH-2D case, then run/hmt-opento open it." - For VTK output: "Open the VTK file(s) in ParaView to visualize the results."
- For HEC-RAS → SRH-2D: "Create a
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.

