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

hmt-results

Skill132 starsChanged 8 months agoMITView on GitHub

Load simulation results and query values at specific points, domain-wide statistics, flood extent, or cross-section profiles. Use this when the user wants to read, query, probe, or analyze simulation results.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check .hmt_session.json for result_file.

    line 14
  2. Distinctive:

    If multiple result files exist, ask the user which one to use.

    line 18

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

Load simulation results and query values at points, domain-wide statistics, flood extent, or cross-section profiles.

Prerequisites

A project must be open. A result file (.h5 or .hdf) must exist.

Steps

  1. Find the result file. Check .hmt_session.json for result_file. If not set, inspect any .h5 / .hdf file:
    hmt-cli get_result_variables --args '{"result_file": "<path>"}'
    If multiple result files exist, ask the user which one to use.
  2. Load the results.
    hmt-cli read_results --args '{"result_file": "<path>", "timestep": -1}'
    Report: available variable names, number of time steps.
  3. Ask the user what they want to query. Offer these options:

    a) Value at a point — ask for x, y, variable name:

    hmt-cli get_value_at_point --args '{"x": <x>, "y": <y>, "variable": "<var>"}'

    b) Domain-wide statistics — ask for variable name:

    hmt-cli get_result_statistics --args '{"variable": "<var>"}'

    Report: min, max, mean, std, number of cells.

    c) Flood extent — ask for depth threshold (default 0.01, in the project's own length unit — m for SI projects, ft for English ones):

    hmt-cli get_flood_extent --args '{"depth_threshold": <threshold>}'

    Report: flooded area in the project's units (the area_units field says which) plus the converted km² figure, and the percentage of domain flooded.

    d) Cross-section profile — ask for two (x,y) endpoints and variable:

    hmt-cli get_cross_section_profile --args '{"x1": <x1>, "y1": <y1>, "x2": <x2>, "y2": <y2>, "variable": "<var>", "n_points": 50}'

    Present as a table: Distance (distance_units) | X | Y | Value.

  4. Offer further queries or suggest /hmt-export to create VTK files.

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.