agentleFS
psu-efdpsu-efd/pyHMT2D/.claude/skills/hmt-open/SKILL.md

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.

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

    If the user provided a path in the command, use it directly.

    line 16
  2. Distinctive:

    If multiple files are found, ask the user which one to open.

    line 22
  3. Distinctive:

    If none are found, tell the user no model files were detected and stop.

    line 23
  4. Very specific:

    Check the same directory for .h5, .hdf, or .hdf5 files.

    line 46
  5. Distinctive:

    If found, offer to inspect available variables:

    line 47
  6. Very specific:

    If result file present: "Run /hmt-results to query simulation output."

    line 58
  7. Very specific:

    If no result file: "Run /hmt-run to execute the simulation."

    line 59

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

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

  1. Find the project file. If the user provided a path in the command, use it directly. Otherwise, scan the current directory:
    hmt-cli list_model_files --args '{"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.
  2. Open the project.
    hmt-cli get_project_info --args '{"project_file": "<path>"}'
    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.
  3. Show materials.
    hmt-cli get_materials
    Present as a Markdown table: ID | Name | Manning's n
  4. Show boundary conditions. (run after step 3 completes — do NOT run in parallel)
    hmt-cli get_boundary_conditions
    Present as a Markdown table: ID | Name | Type | Value | Units
  5. Look for a result file. (run after step 4 completes — do NOT run in parallel) Check the same directory for .h5, .hdf, or .hdf5 files. 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-cli call 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.

  6. Suggest next steps based on what was found:
    • If result file present: "Run /hmt-results to query simulation output."
    • If no result file: "Run /hmt-run to execute the simulation."
    • To change parameters: "Run /hmt-modify."

The session is automatically saved to .hmt_session.json by each hmt-cli call.

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.