swmm-runner

swmm-runner is a skill for Claude Code, Codex from Zhonghao1995/agentic-swmm-workflow. It costs 114 tokens per session (1,101 once invoked), scanned A, original, MIT.

A reproducible runner for EPA SWMM simulations, which calculate stormwater behaviour from a model input file. It runs the SWMM command-line program and reads key results from its report file.

In plain words
What is it for?
Use it to run a completed .inp model, save reports and run metadata, extract peak flow and timing, read runoff and flow-routing errors, and compare runs such as command-line versus graphical-interface results.
Why use it?
It gives each run a standard set of output files and makes important results easier to inspect or compare, including continuity errors.

Skill for Claude CodeCodex

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

Good fit Use it to run a completed .inp model, save reports and run metadata, extract peak flow and timing, read runoff and flow-routing errors, and compare runs such as command-line versus graphical-interface results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhonghao1995/agentic-swmm-workflow/swmm-runner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Zhonghao1995/agentic-swmm-workflow --skill swmm-runner
Clone the repo
git clone --depth 1 https://github.com/Zhonghao1995/agentic-swmm-workflow

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-runner

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhonghao1995/agentic-swmm-workflow/swmm-runner/github.svg)](https://agentmods.dev/skills/zhonghao1995/agentic-swmm-workflow/swmm-runner)
Your own site
<a href="https://agentmods.dev/skills/zhonghao1995/agentic-swmm-workflow/swmm-runner"><img src="https://agentmods.dev/badge/skills/zhonghao1995/agentic-swmm-workflow/swmm-runner/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-runner

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhonghao1995/agentic-swmm-workflow/swmm-runner"><img src="https://agentmods.dev/badge/skills/zhonghao1995/agentic-swmm-workflow/swmm-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,101 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.00114 $0.01101
Opus 5 $0.00057 $0.00550
Sonnet 5 $0.00023 $0.00220
Haiku 4.5 $0.00011 $0.00110

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

Security

Grade A, and why

swmm-runner 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/swmm_runner.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-runner/SKILL.md · 66 lines

How it starts

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

SWMM Runner (CLI-first)

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

What this skill provides

  • Deterministic execution wrapper around the swmm5 binary.
  • A standard run directory layout: inp/, rpt/, out/, stdout, stderr, manifest.json.
  • Metric extraction read directly from SWMM's own .rpt:
    • peak flow + time-of-peak for any junction or outfall;
    • Runoff Quantity and Flow Routing continuity tables + continuity error %;
    • cross-run comparison (e.g. GUI vs CLI) on continuity error.

When to use this skill

Use after a SWMM model is fully assembled (typically by swmm-builder.build_inp) and you need to actually execute it and read back the metrics. Also use to compare two .rpt files for regression / GUI parity.

Do not use this skill to assemble the .inp itself (that's swmm-builder) or to plot the results (that's swmm-plot).

MCP tools

mcp/swmm-runner/server.js exposes four tools.

  1. swmm_run — run swmm5 against an .inp and write rpt + out + stdout + stderr + manifest.json into a run directory.

    • Args: inp (path), runDir (path), node (optional), rptName (optional), outName (optional).
    • When node is omitted, the server auto-detects the first entry from the .inp [OUTFALLS] section so the manifest's peak metric targets a real outfall name (no more silent "O1" default).
    • Output: a manifest with inp_sha256, swmm5 version, file paths, metrics.peak, metrics.continuity.
  2. swmm_peak — parse peak flow and time-of-peak for a specific node from a SWMM .rpt. The node argument is required (no default; the previous misleading "O1" default has been removed).

    • Args: rpt (path), node (required).
    • Falls back from "Node Inflow Summary" to "Outfall Loading Summary" when no timed inflow entry exists for the node.
  3. swmm_continuity — parse the Runoff Quantity and Flow Routing continuity tables from a SWMM .rpt.

    • Args: rpt (path).
    • Returns a structured dict with Continuity Error (%) for both blocks plus all the volume rows (precipitation, evaporation, infiltration, runoff, etc.).

Read the full file on GitHub · 66 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 66 lines · 114 tokens per session scan A 98e4496142c6

Subscribe to this mod's changes

swmm-runner is a skill published in the GitHub repository Zhonghao1995/agentic-swmm-workflow (27 stars, last pushed 2d ago), licensed MIT. It adds 114 tokens to every session and 1,101 once invoked, about $0.0006 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

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

flux-analyzer

Analyse FBA flux distributions to extract biological insights. Covers gene essentiality, phenotypic phase planes, flux sampling, pathway-level aggregation, secretion product prediction, and production of publication- quality figures.

aiming-lab/AutoResearchClaw · 44 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