swmm-uncertainty

swmm-uncertainty is a skill for Claude Code, Codex from Zhonghao1995/agentic-swmm-workflow. It costs 182 tokens per session (5,257 once invoked), scanned A, original, MIT.

A tool for studying how uncertain SWMM model settings and rainfall inputs affect simulated results. EPA SWMM is software for modelling stormwater drainage; uncertainty analysis tests a range of possible inputs rather than selecting one best calibration.

In plain words
What is it for?
Use it to generate hydrograph ranges, run Monte Carlo or fuzzy uncertainty studies, measure output entropy, perturb rainfall series, and screen parameter sensitivity.
Why use it?
It shows how much model outputs can vary and which parameters matter most, instead of presenting one result as certain. It can also identify failed or invalid model runs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/swmm-uncertainty/scripts/probabilistic_sampling.py \.

Good fit Use it to generate hydrograph ranges, run Monte Carlo or fuzzy uncertainty studies, measure output entropy, perturb rainfall series, and screen parameter sensitivity.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Zhonghao1995/agentic-swmm-workflow
agentmods
npx agentmods add skills/zhonghao1995/agentic-swmm-workflow/swmm-uncertainty

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swmm-uncertainty

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhonghao1995/agentic-swmm-workflow/swmm-uncertainty/github.svg)](https://agentmods.dev/skills/zhonghao1995/agentic-swmm-workflow/swmm-uncertainty)
Your own site
<a href="https://agentmods.dev/skills/zhonghao1995/agentic-swmm-workflow/swmm-uncertainty"><img src="https://agentmods.dev/badge/skills/zhonghao1995/agentic-swmm-workflow/swmm-uncertainty/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swmm-uncertainty

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhonghao1995/agentic-swmm-workflow/swmm-uncertainty"><img src="https://agentmods.dev/badge/skills/zhonghao1995/agentic-swmm-workflow/swmm-uncertainty.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 182 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00182 $0.05257
Opus 5 $0.00091 $0.02629
Sonnet 5 $0.00036 $0.01051
Haiku 4.5 $0.00018 $0.00526

Measured 5d ago against content hash fc1cf2ab8b84, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

swmm-uncertainty scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/fuzzy_membership.py, scripts/parameter_recommender.py, scripts/rainfall_ensemble.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/swmm-uncertainty/SKILL.md · 398 lines

How it starts

The opening of the file, as written. The whole thing — 398 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SWMM Uncertainty

Part of Agentic SWMM — install the project first for the executable toolchain (aiswmm CLI, SWMM solver, MCP servers).

Agent path without observed data

The honest split (live findings F-107 and F-109, 2026-09-03): WITH observed flow, swmm_sensitivity_oat / swmm_sensitivity_morris / swmm_sensitivity_sobol rank parameters against the data (they need an observed series and a patch map). WITHOUT observed flow, propagate_parameter_ranges is the tool for both questions: mode=one_at_a_time varies each parameter alone in one call and returns a per-parameter spread and a ranking ("which parameters matter most"); the default joint mode samples all ranges together and reports the spread ("how uncertain is the peak"). Never emulate a ranking with one sweep per parameter. Rainfall: a request to scale the observed event by factors (0.8, 1.0, 1.2) on a model with inline rain is run_climate_scenarios with those factors (live finding F-112, 2026-09-03); swmm_rainfall_ensemble needs a prepared rainfall series file and a JSON config (perturbation or IDF).

propagate_parameter_ranges is the typed tool for "how uncertain is the peak if Manning's n and imperviousness vary". It applies each named parameter globally (the same value on every subcatchment or conduit), runs SWMM once per sample through the audited runner, and writes 09_audit/parameter_sweep.json and .md with the baseline peak, the min/median/max over the samples, the spread as a percent of the baseline and the dominant parameter. Ranges are a mapping such as {"n_imperv": [0.010, 0.020], "pct_imperv": [60, 80]}; aliases manning_n, imperviousness, conduit_roughness, n_perv, s_imperv, s_perv, width, slope. It is prior sensitivity, not calibrated uncertainty; the per-object fuzzy and Monte Carlo workflows below remain the research path.

What this skill provides

  • User-defined fuzzy membership functions for SWMM parameters.
  • Baseline-aware triangular fuzzy numbers, where the current model value is the default triangle peak.
  • Alpha-cut transformation from fuzzy membership functions to parameter intervals.
  • LHS, random, or boundary sampling inside each alpha-cut interval.
  • Monte Carlo parameter sampling for prior or calibration-informed probability distributions.
  • Normal/lognormal/truncated-normal/uniform sampling with simple physical constraints such as bound parameters and greater-than rules.
  • Batch propagation through SWMM by reusing the existing calibration patch-map convention.
  • Normalized Shannon entropy metrics for output ensembles, such as hydrograph entropy over time.
  • Machine-readable uncertainty summaries for output envelopes, entropy records, and failed/invalid samples.
  • Sensitivity-analysis screening with three sub-methods (OAT / Morris / Sobol') sharing one entry point (scripts/sensitivity.py).
  • Rainfall-forcing ensembles: time-series perturbation of an observed rainfall record (gaussian, multiplicative, AR(1), intensity_scaling) or IDF-curve sampling of design storms (Chicago / Huff / SCS Type II), with optional per-realisation SWMM runs and ensemble envelope aggregation.

Read the full file on GitHub · 398 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +3 lines fc1cf2ab8b84
  2. 6d ago Changed · +24 lines · +31 tokens per session d0f179df4c14
  3. 11d ago First seen · 371 lines · 151 tokens per session scan A c6e896c45151

Subscribe to this mod's changes

swmm-uncertainty is a skill published in the GitHub repository Zhonghao1995/agentic-swmm-workflow (27 stars, last pushed 4d ago), licensed MIT. It adds 182 tokens to every session and 5,257 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

arxiv-summarizer-orchestrator

End-to-end orchestration skill for periodic arXiv collection and reporting using three sub-skills: arxiv-search-collector, arxiv-paper-processor, and arxiv-batch-reporter. Supports manual language control across all markdown outputs and Stage-B processing strategy (subagentparallel default max 5, or serial).

InternLM/WildClawBench · 75 tokens

academic-literature-search

A multi-database search tool for academic papers and other scholarly publications. It searches sources such as Semantic Scholar, Crossref, arXiv, and PubMed, which cover research across fields including computing, physics, and medicine.

InternLM/WildClawBench · 0 tokens

cuopt-numerical-optimization-formulation

LP, MILP, QP — concepts, problem-text parsing, and formulation patterns (parameters, constraints, decisions, objective). Concepts only; no API.

NVIDIA/skills · 42 tokens

nemo-mbridge-perf-expert-parallel-overlap

Validate and use MoE expert-parallel communication overlap in Megatron-Bridge, including overlapmoeexpertparallelcomm, delaywgradcompute, and flex dispatcher backends such as DeepEP and HybridEP.

NVIDIA/skills · 56 tokens

earth2studio-create-datasource

Create and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Do NOT use for fetching data with existing sources, model inference, or installation tasks.

NVIDIA/skills · 53 tokens

earth2studio-data-fetch

Fetch weather/climate data via Earth2Studio data sources for specific variables and times. Do NOT use for inference pipelines, model discovery, or installation.

NVIDIA/skills · 36 tokens