agentleFS
psu-efdpsu-efd/pyHMT2D/.agents/skills/hmt-convert/SKILL.md

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".

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
  1. Distinctive:

    No open project or session is required.

    line 7
  2. Distinctive:

    If the user did not provide them, scan the current directory for relevant files:

    line 27

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

ConversionTool
HEC-RAS 2D mesh + Manning's n → SRH-2D (.srhgeom, .srhmat)ras_to_srh
SRH-2D HDF results → VTKsrh_to_vtk
SRH-2D mesh only → VTKsrh_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."

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.