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

hmt-calibrate

Skill132 starsChanged 8 months agoMITView on GitHub

Run automated Manning's n calibration against observed water surface elevations using Bayesian optimization or Nelder-Mead. Use this when the user wants to calibrate, optimize, or fit model parameters to observations.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run automated Manning's n calibration against observed water surface elevations.

    line 6
  2. Very specific:

    If not, ask the user to run /hmt-open pointing to base_case/<project_file>.

    line 16
  3. Very specific:

    Ask the user for the observation CSV path (e.g., HWMs.dat).

    line 19
  4. Very specific:

    If RMSE = 1e6, the simulation failed — check pyHMT2D.log before proceeding.

    line 46

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

Run automated Manning's n calibration against observed water surface elevations.

Prerequisites

  • Project opened from a base_case/ subdirectory
  • Observation CSV: columns x, y, wse or name, x, y, wse (comment lines start with #)
  • Solver paths configured in hmt_config.json

Steps

  1. Check that a project is open. If not, ask the user to run /hmt-open pointing to base_case/<project_file>.
  2. Validate the observation file. Ask the user for the observation CSV path (e.g., HWMs.dat).
    hmt-cli check_observation_format --args '{"csv_file": "<path>"}'
    Show the preview table. On error: report and ask for a corrected path.
  3. Show available materials.
    hmt-cli get_materials
  4. Ask the user for calibration parameters. For each material to calibrate:
    • Material name, minimum n, maximum n, optional initial guess
  5. Build validated parameter specifications.
    hmt-cli build_param_specs --args '{"specs": [
      {"type": "manning_n", "material_name": "<name>", "min": <min>, "max": <max>, "initial": <init>},
      ...
    ]}'
    Show the specs and confirm with the user.
  6. Optional: single test evaluation at initial values to verify the setup.
    hmt-cli evaluate_parameters --args '{"param_specs": <specs_with_initial_values>, "observation_csv": "<path>"}'
    If RMSE = 1e6, the simulation failed — check pyHMT2D.log before proceeding.
  7. Ask for settings: number of iterations (default: automatic) and method ("gp" or "nelder-mead").
  8. Run the calibration.
    hmt-cli run_calibration --args '{"param_specs": <specs>, "observation_csv": "<path>", "n_iterations": <N>, "method": "gp"}'
    Periodically show progress while waiting:
    tail -20 calib_progress.log
  9. Report results: best parameter values table, best RMSE, iterations completed, history CSV path.

Troubleshooting:

  • RMSE = 1,000,000 → check pyHMT2D.log for solver errors
  • Material not found → name must match exactly; copy from hmt-cli get_materials output

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.