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.
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-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-openSkill
- hmt-resultsSkill
- hmt-runSkill
- hmt-statusSkill
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
- Distinctive: line 6
Run automated Manning's n calibration against observed water surface elevations.
- Very specific: line 16
If not, ask the user to run /hmt-open pointing to base_case/<project_file>.
- Very specific: line 19
Ask the user for the observation CSV path (e.g., HWMs.dat).
- Very specific: line 46
If RMSE = 1e6, the simulation failed — check pyHMT2D.log before proceeding.
≈ “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
Run automated Manning's n calibration against observed water surface elevations.
Prerequisites
- Project opened from a
base_case/subdirectory - Observation CSV: columns
x, y, wseorname, x, y, wse(comment lines start with#) - Solver paths configured in
hmt_config.json
Steps
- Check that a project is open.
If not, ask the user to run
/hmt-openpointing tobase_case/<project_file>. - Validate the observation file.
Ask the user for the observation CSV path (e.g.,
HWMs.dat).
Show the preview table. On error: report and ask for a corrected path.hmt-cli check_observation_format --args '{"csv_file": "<path>"}' - Show available materials.
hmt-cli get_materials - Ask the user for calibration parameters. For each material to calibrate:
- Material name, minimum n, maximum n, optional initial guess
- Build validated parameter specifications.
Show the specs and confirm with the user.hmt-cli build_param_specs --args '{"specs": [ {"type": "manning_n", "material_name": "<name>", "min": <min>, "max": <max>, "initial": <init>}, ... ]}' - Optional: single test evaluation at initial values to verify the setup.
If RMSE = 1e6, the simulation failed — checkhmt-cli evaluate_parameters --args '{"param_specs": <specs_with_initial_values>, "observation_csv": "<path>"}'pyHMT2D.logbefore proceeding. - Ask for settings: number of iterations (default: automatic) and method (
"gp"or"nelder-mead"). - Run the calibration.
Periodically show progress while waiting:hmt-cli run_calibration --args '{"param_specs": <specs>, "observation_csv": "<path>", "n_iterations": <N>, "method": "gp"}'tail -20 calib_progress.log - Report results: best parameter values table, best RMSE, iterations completed, history CSV path.
Troubleshooting:
- RMSE = 1,000,000 → check
pyHMT2D.logfor solver errors - Material not found → name must match exactly; copy from
hmt-cli get_materialsoutput
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.

