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

hmt-modify

Skill132 starsChanged 8 months agoMITView on GitHub

Modify Manning's n roughness coefficients, inlet flow rates, or exit water surface elevations for the currently open pyHMT2D project and save the changes. Use this when the user wants to change model parameters.

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

    Run sequentially — do NOT run in parallel (each call opens a HEC-RAS instance):

    line 14
  2. Very specific:

    Confirm: all changes with a summary table: Parameter | Old value | New value.

    line 52

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

Modify Manning's n roughness, inlet flow, or exit water surface elevation for the open project.

Prerequisites

A project must be open. If not, run /hmt-open first.

Steps

  1. Show current materials and boundary conditions so the user knows what is available. Run sequentially — do NOT run in parallel (each call opens a HEC-RAS instance):
    hmt-cli get_materials
    hmt-cli get_boundary_conditions
    Present both as Markdown tables.
  2. Ask the user what to change. They may specify:
    • Manning's n values by material name or ID and new value
    • Inlet flow by BC ID and new value (SRH-2D only)
    • Exit WSE by BC ID and new value (SRH-2D only)
  3. Apply Manning's n changes (if any). Map material names to IDs from the materials table shown in step 1.
    hmt-cli set_manning_n --args '{"material_ids": [...], "values": [...], "material_names": [...]}'
    Report the old and new values for each material.
  4. Apply inlet flow changes (if any, SRH-2D only).
    hmt-cli set_inlet_flow --args '{"bc_ids": [...], "values": [...]}'
    Note: skip this step for HEC-RAS models.
  5. Apply exit WSE changes (if any, SRH-2D only).
    hmt-cli set_exit_wse --args '{"bc_ids": [...], "values": [...]}'
  6. Save the modified input files.
    hmt-cli save_modified_inputs
    Report the file path where changes were written.
  7. Confirm all changes with a summary table: Parameter | Old value | New value. Suggest running /hmt-run to execute the simulation with the new parameters.

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.