hmt-open
Skill132 starsChanged 8 months agoMITView on GitHub
Open a pyHMT2D hydraulic model project (SRH-2D or HEC-RAS) and display its materials, boundary conditions, and available result variables. Use this when the user wants to open, load, or inspect a hydraulic model.
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-convertSkill
- 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-resultsSkill
- hmt-runSkill
- hmt-statusSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
If the user provided a path in the command, use it directly.
- Distinctive: line 22
If multiple files are found, ask the user which one to open.
- Distinctive: line 23
If none are found, tell the user no model files were detected and stop.
- Very specific: line 46
Check the same directory for .h5, .hdf, or .hdf5 files.
- Distinctive: line 47
If found, offer to inspect available variables:
- Very specific: line 58
If result file present: "Run /hmt-results to query simulation output."
- Very specific: line 59
If no result file: "Run /hmt-run to execute the simulation."
≈ “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
Open a pyHMT2D hydraulic model project and display its contents.
Usage
/hmt-open [project_file]
The project file path is optional — if omitted, this skill scans the current directory.
Steps
- Find the project file.
If the user provided a path in the command, use it directly.
Otherwise, scan the current directory:
Show the found files as a table (file, model type, case name). If multiple files are found, ask the user which one to open. If none are found, tell the user no model files were detected and stop.hmt-cli list_model_files --args '{"directory": "."}' - Open the project.
On error: report the message and stop. On success: report model type, case name, number of cells, number of material zones, and number of boundary conditions.hmt-cli get_project_info --args '{"project_file": "<path>"}' - Show materials.
Present as a Markdown table: ID | Name | Manning's nhmt-cli get_materials - Show boundary conditions. (run after step 3 completes — do NOT run in parallel)
Present as a Markdown table: ID | Name | Type | Value | Unitshmt-cli get_boundary_conditions Look for a result file. (run after step 4 completes — do NOT run in parallel) Check the same directory for
.h5,.hdf, or.hdf5files. If found, offer to inspect available variables:hmt-cli get_result_variables --args '{"result_file": "<result_file>"}'Report: variable names and number of time steps.
Important: Each
hmt-clicall spawns a separate process that opens its own HEC-RAS COM instance. Always run these calls sequentially to avoid simultaneous instances that can cause file I/O conflicts.- Suggest next steps based on what was found:
- If result file present: "Run
/hmt-resultsto query simulation output." - If no result file: "Run
/hmt-runto execute the simulation." - To change parameters: "Run
/hmt-modify."
- If result file present: "Run
The session is automatically saved to .hmt_session.json by each hmt-cli call.
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.

