← 返回 Skills 市场
zhonghao1995

Swmm Modeling Memory

作者 Zhonghao Zhang · GitHub ↗ · v0.7.3 · MIT-0
cross-platform ⚠ suspicious
39
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install swmm-modeling-memory
功能描述
Read historical Agentic SWMM experiment audit artifacts and summarize repeated assumptions, QA issues, failures, missing evidence, run-to-run differences, le...
使用说明 (SKILL.md)

SWMM Modeling Memory

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

What this skill provides

  • A downstream memory layer for audited Agentic SWMM runs.
  • Deterministic summaries of repeated assumptions, QA issues, failures, missing evidence, and run-to-run differences.
  • Run-level memory_summary.json cards that compress audit artifacts into reusable next-run context.
  • Project/case-level memory groups that keep Tod Creek, Tecnopolo, TUFLOW, Generate_SWMM_inp, acceptance, and other cases separate.
  • Summaries of deterministic SWMM-specific diagnostics when model_diagnostics.json is present.
  • Human-readable lessons learned from previous audit records.
  • Controlled skill update proposals that require human review and benchmark verification.

This skill does not run SWMM, build SWMM models, modify existing skills, or claim autonomous self-improvement.

Agentic SWMM is not only an automation workflow. It is a memory-informed, verification-first modeling system that can learn from audited modeling history through controlled skill refinement.

When to use this skill

Use this skill after swmm-experiment-audit has produced run-level artifacts such as:

  • experiment_provenance.json
  • comparison.json
  • experiment_note.md
  • model_diagnostics.json when available

Use it when:

  • multiple audited runs exist,
  • the user wants lessons learned across runs,
  • the user asks for recurring failure patterns or QA issues,
  • the user wants evidence-informed skill refinement proposals.

The proposals may point to relevant workflow skills such as end-to-end orchestration, audit reporting, QA verification, model building, or result parsing. They are not accepted changes.

Output contract

The script writes these files to the selected modeling-memory output directory:

  • modeling_memory_index.json
  • modeling_memory_index.md
  • run_memory_summaries.json
  • project_memory_index.md
  • projects/\x3Cproject-key>/project_memory.json
  • projects/\x3Cproject-key>/project_memory.md
  • lessons_learned.md
  • skill_update_proposals.md
  • benchmark_verification_plan.md

The script also writes memory_summary.json beside each audited run by default. The JSON index and run summaries are the machine-readable source. The Markdown files are human-readable and can be copied to Obsidian with --obsidian-dir.

CLI

python3 skills/swmm-modeling-memory/scripts/summarize_memory.py \
  --runs-dir runs \
  --out-dir memory/modeling-memory

To refresh only the aggregate output without writing run-level cards (only available via direct script invocation — aiswmm memory does not expose this flag):

python3 skills/swmm-modeling-memory/scripts/summarize_memory.py \
  --runs-dir runs \
  --out-dir memory/modeling-memory \
  --no-run-summaries

With optional Obsidian export:

python3 skills/swmm-modeling-memory/scripts/summarize_memory.py \
  --runs-dir runs \
  --out-dir memory/modeling-memory \
  --obsidian-dir "/path/to/Obsidian/Agentic SWMM/05_Modeling_Memory"

Safety rules

  • Read existing audit artifacts only.
  • Tolerate partial and failed runs.
  • Do not modify any existing SKILL.md files.
  • Do not modify benchmark behavior or audit output formats.
  • Do not write outside --out-dir, audited run directories under --runs-dir, or the optional --obsidian-dir.
  • Treat SWMM-specific diagnostics as deterministic audit evidence only; do not infer model errors from free-text notes.
  • Treat skill update proposals as proposals only.
  • Accept real skill refinements only after human review and benchmark verification.

Audit-end auto-trigger (M2)

aiswmm audit fires an auto-trigger after every successful audit that calls summarize_memory.py in the background to refresh lessons_learned.md and (unless --no-rag is given) rebuild the RAG corpus. This means lessons_learned.md can be written by two paths:

  1. Automaticagentic_swmm/memory/audit_hook.py via the M2 hook after aiswmm audit succeeds.
  2. Manualaiswmm memory --runs-dir runs or direct python3 skills/swmm-modeling-memory/scripts/summarize_memory.py.

Set AISWMM_SKIP_MEMORY=1 in the environment to suppress the auto-trigger (useful for CI or benchmark runs where memory mutation is unwanted). Pass --no-memory to aiswmm audit for the same effect on a single run.

The auto-trigger uses add_negative_lesson / NegativeLessonMd.update from agentic_swmm/memory/negative_lessons_markdown.py, which increments evidence_count and updates last_seen_utc on duplicate lesson names rather than clobbering the existing entry. Manual summarize_memory.py runs use the same merge logic.

Relationship to swmm-experiment-audit

swmm-experiment-audit records evidence for one run.

swmm-modeling-memory reads many audited runs and turns repeated evidence patterns into reusable project memory.

The intended controlled loop is:

  1. Run SWMM or attempt a workflow.
  2. Audit the run (aiswmm audit); the M2 hook refreshes lessons_learned.md automatically.
  3. Preserve an Obsidian-compatible experiment note.
  4. Summarize modeling memory across audited runs (manual aiswmm memory call when a full refresh is needed).
  5. Extract recurring failure patterns.
  6. Generate a skill update proposal.
  7. Review the proposal as a human.
  8. Verify with existing benchmarks before accepting any skill change.
安全使用建议
Install only if you are comfortable letting the skill read run or memory artifacts and write summary files. Prefer running it on a copied test directory first, set output paths explicitly, avoid broad or symlink-heavy runs directories, and check whether it overwrites existing Obsidian or summary files.
能力评估
Purpose & Capability
Reading run or memory artifacts and producing summaries is coherent with the apparent summarization purpose, but the content may include sensitive historical agent context.
Instruction Scope
The reported behavior includes default writes back into discovered run directories and optional export to caller-supplied paths, which is broader than a simple read-only summarization workflow.
Install Mechanism
No artifact evidence in the supplied materials shows deceptive install steps, background installation, or hidden package execution.
Credentials
The skill needs filesystem access to run artifacts and output locations, but the supplied findings indicate unclear path constraints and possible cross-directory writes.
Persistence & Privilege
Writing memory_summary.json into each discovered run directory can persist generated data inside historical artifacts and may contaminate audit records if users expected read-only analysis.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install swmm-modeling-memory
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /swmm-modeling-memory 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.7.3
Add project link back to the Agentic SWMM repository (install the project for the executable toolchain).
v0.7.2
Initial ClawHub release, aligned with agentic-swmm-workflow v0.7.2.
元数据
Slug swmm-modeling-memory
版本 0.7.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Swmm Modeling Memory 是什么?

Read historical Agentic SWMM experiment audit artifacts and summarize repeated assumptions, QA issues, failures, missing evidence, run-to-run differences, le... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 39 次。

如何安装 Swmm Modeling Memory?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install swmm-modeling-memory」即可一键安装,无需额外配置。

Swmm Modeling Memory 是免费的吗?

是的,Swmm Modeling Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Swmm Modeling Memory 支持哪些平台?

Swmm Modeling Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Swmm Modeling Memory?

由 Zhonghao Zhang(@zhonghao1995)开发并维护,当前版本 v0.7.3。

💬 留言讨论