Best for
- experimentprovenance.json
- comparison.json
- experimentnote.md
Zhonghao1995/agentic-swmm-workflow/skills/swmm-modeling-memory/SKILL.md
Read historical Agentic SWMM experiment audit artifacts and summarize repeated assumptions, QA issues, failures, missing evidence, run-to-run differences, lessons learned, and controlled skill update proposals. Use downstream of swmm-experiment-audit when multiple audited runs exist or when a user asks for modeling memory, failure-pattern extraction, lessons learned, or human-reviewed skill refinement proposals.
Decision brief
Part of Agentic SWMM — install the project first for the executable toolchain (aiswmm CLI, SWMM solver, MCP servers).
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/Zhonghao1995/agentic-swmm-workflow --skill "skills/swmm-modeling-memory"Inspect the Agent Skill "swmm-modeling-memory" from https://github.com/Zhonghao1995/agentic-swmm-workflow/blob/b4fd1f9e52f3807b7f1307a1fe81588e76cfe78d/skills/swmm-modeling-memory/SKILL.md at commit b4fd1f9e52f3807b7f1307a1fe81588e76cfe78d. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
This skill does not run SWMM, build SWMM models, modify existing skills, or claim autonomous self-improvement.
Use this skill after swmm-experiment-audit has produced run-level artifacts such as:
The script writes these files to the selected modeling-memory output directory:
To refresh only the aggregate output without writing run-level cards (only available via direct script invocation — aiswmm memory does not expose this flag):
Read existing audit artifacts only.
Permission review
The documentation asks the agent to run terminal commands or scripts.
python3 skills/swmm-modeling-memory/scripts/summarize_memory.py \The documentation asks the agent to run terminal commands or scripts.
python3 skills/swmm-modeling-memory/scripts/summarize_memory.py \Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 94/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 22 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Part of Agentic SWMM — install the project first for the executable toolchain (aiswmm CLI, SWMM solver, MCP servers).
memory_summary.json cards that compress audit artifacts into reusable next-run context.model_diagnostics.json is present.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.
Use this skill after swmm-experiment-audit has produced run-level artifacts such as:
experiment_provenance.jsoncomparison.jsonexperiment_note.mdmodel_diagnostics.json when availableUse it when:
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.
The script writes these files to the selected modeling-memory output directory:
modeling_memory_index.jsonmodeling_memory_index.mdrun_memory_summaries.jsonproject_memory_index.mdprojects/<project-key>/project_memory.jsonprojects/<project-key>/project_memory.mdlessons_learned.mdskill_update_proposals.mdbenchmark_verification_plan.mdThe 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.
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"
SKILL.md files.--out-dir, audited run directories under --runs-dir, or the optional --obsidian-dir.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:
agentic_swmm/memory/audit_hook.py via the M2 hook
after aiswmm audit succeeds.aiswmm 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.
swmm-experiment-auditswmm-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:
aiswmm audit); the M2 hook refreshes lessons_learned.md automatically.aiswmm memory call when a full refresh is needed).Frequently asked questions
Part of Agentic SWMM — install the project first for the executable toolchain (aiswmm CLI, SWMM solver, MCP servers).
The source record exposes this install command: npx skills add https://github.com/Zhonghao1995/agentic-swmm-workflow --skill "skills/swmm-modeling-memory". Inspect the command and pinned source before running it.
Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.