Swmm Experiment Auditのロゴ

Swmm Experiment Audit

コミュニティ
Zhonghao1995
swmm-experiment-audit

Agentic SWMMの実行アーティファクトをまとめ、監査可能な来歴情報、比較記録、ローカルのObsidian監査ノートを作成します。SWMMの構築、実行、QAを試みた後は、成功・失敗を問わず使用します。エージェントやCLIワークフローで、入力、コマンド、アーティファクト、指標、QAチェック、実行間の差分、およびユーザーが最初に使いやすいObsidian可視化を追跡可能な形で記録する必要がある場合に役立ちます。

概要

公開者Zhonghao1995
リポジトリagentic-swmm-workflow
スキル名swmm-experiment-audit
スター
33
フォーク
15
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Zhonghao1995がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Swmm Experiment Audit」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Zhonghao1995/agentic-swmm-workflow/tree/main/skills/swmm-experiment-audit
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Zhonghao1995/agentic-swmm-workflow.git /tmp/agentic-swmm-workflow
mkdir -p .claude/skills
cp -r /tmp/agentic-swmm-workflow/skills/swmm-experiment-audit .claude/skills/swmm-experiment-audit
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSwmm Experiment Auditを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSwmm Experiment Auditを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Swmm Experiment Auditは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

SWMM Experiment Audit

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

What this skill provides

  • A standard audit layer for Agentic SWMM runs.
  • Consolidation of dispersed manifest.json, QA JSON, logs, metrics, and artifact paths.
  • Machine-readable outputs for reproducibility and review.
  • Obsidian-compatible Markdown notes for human research records.
  • Default local Obsidian export into a clean English audit vault.
  • Automatic update of the Obsidian Experiment Audit Index.
  • Optional run-to-run comparison for baseline/scenario or before/after parser validation.

This skill records what happened. It does not run SWMM, build models, invent missing artifacts, or replace module-level validation.

When to use this skill

Use this skill after any of these events:

  • swmm-end-to-end completes successfully.
  • swmm-end-to-end stops or fails after producing partial artifacts.
  • A user wants an Obsidian-ready experiment note for an existing run directory.
  • A user wants to compare two run directories.
  • A run needs evidence for reproducibility, metric provenance, QA status, or paper claims.

Do not use this skill as a substitute for swmm-runner, swmm-builder, or calibration tools. Run the model first, then audit the run directory.

Output contract

For every audited run, write these files into the run's 09_audit/ directory unless explicit output paths are provided:

  • experiment_provenance.json — machine-readable provenance (immutable).
  • experiment_note.md — human-readable Obsidian digest.
  • model_diagnostics.json — deterministic SWMM screening checks.
  • comparison.json — run-to-run comparison (only when --compare-to is given).

experiment_provenance.json is the machine-readable source for:

  • run identity
  • repo state
  • tool versions
  • command trace
  • input hash records
  • artifact index
  • metrics with source artifacts and source tables
  • QA checks
  • detected warnings and limitations

comparison.json records differences against another run when --compare-to is provided. If no comparison target is provided, it still records that no comparison was requested.

experiment_note.md is Obsidian-compatible Markdown with YAML frontmatter. It should stay readable in GitHub as plain Markdown.

The direct script (audit_run.py) writes a copy of the audit note to the Obsidian vault by default; pass --no-obsidian to suppress it. The canonical CLI (aiswmm audit) does not export to Obsidian by default; pass --obsidian to enable it.

When Obsidian export is active, the note is written into:

text
~/Documents/Agentic-SWMM-Obsidian-Vault/20_Audit_Layer/Experiment_Audits

and the index is updated at:

text
~/Documents/Agentic-SWMM-Obsidian-Vault/20_Audit_Layer/Experiment Audit Index.md

CLI

The canonical CLI is aiswmm audit. It wraps the underlying script with backup of prior audit files, MOC regeneration (runs/INDEX.md), and the M2 audit → memory auto-trigger. The direct script path is also supported and is the primary option for MCP / Mode-0 calls.

Canonical CLI (aiswmm audit)

Obsidian export is opt-in with aiswmm audit — pass --obsidian to copy the note to the default vault. Without --obsidian the note is written only into 09_audit/ inside the run directory.

bash
aiswmm audit --run-dir runs/acceptance/latest

With comparison:

bash
aiswmm audit --run-dir runs/acceptance/codex-check-peakfix \
  --compare-to runs/acceptance/codex-check

With explicit metadata and Obsidian export:

bash
aiswmm audit --run-dir runs/real-todcreek-minimal \
  --case-name "Tod Creek minimal" \
  --workflow-mode "minimal real-data fallback" \
  --objective "Verify real-data SWMM execution and preserve provenance." \
  --obsidian

Skip the M2 memory auto-trigger (useful for acceptance / benchmark runs):

bash
aiswmm audit --run-dir runs/acceptance/latest --no-memory

Run-to-run comparison with the standalone verb:

bash
aiswmm compare --run-a runs/baseline --run-b runs/scenario

Direct script path (python3 scripts/audit_run.py)

Use when calling from MCP or when the full aiswmm install is unavailable. Obsidian export is on by default in the script; disable with --no-obsidian.

Initialize a first-user Obsidian vault:

bash
python3 skills/swmm-experiment-audit/scripts/init_obsidian_vault.py
bash
python3 skills/swmm-experiment-audit/scripts/audit_run.py \
  --run-dir runs/acceptance/latest \
  --no-obsidian

With comparison:

bash
python3 skills/swmm-experiment-audit/scripts/audit_run.py \
  --run-dir runs/acceptance/codex-check-peakfix \
  --compare-to runs/acceptance/codex-check \
  --no-obsidian

With explicit metadata including --case-id (records the case slug in experiment_provenance.json for cross-session memory recall):

bash
python3 skills/swmm-experiment-audit/scripts/audit_run.py \
  --run-dir runs/real-todcreek-minimal \
  --case-id tod-creek \
  --case-name "Tod Creek minimal" \
  --workflow-mode "minimal real-data fallback" \
  --objective "Verify real-data SWMM execution and preserve provenance." \
  --no-obsidian

With an Obsidian vault folder:

bash
python3 skills/swmm-experiment-audit/scripts/audit_run.py \
  --run-dir runs/acceptance/latest \
  --obsidian-dir "/path/to/Obsidian/Agentic SWMM/04_Experiments"

Audit rules

  • Always preserve relative paths when the artifact is inside the repository.
  • Include absolute paths in JSON only when useful for local traceability.
  • Record SHA256 for existing file artifacts when feasible.
  • Record artifact role, producer, and downstream use.
  • Preserve command return codes, stdout paths, stderr paths, and timings when available.
  • Treat failed or partial runs as auditable. Missing artifacts should be recorded as missing, not invented.
  • Keep metrics tied to source artifacts and source tables.
  • For SWMM peak flow, prefer Node Inflow Summary / Maximum Total Inflow.
  • Use Outfall Loading Summary / Max Flow only as fallback for outfalls.
  • Do not extract peak flow from Node Depth Summary; that table reports depth and HGL, not flow.

Relationship to swmm-end-to-end

swmm-end-to-end is the executor and orchestrator.

swmm-experiment-audit is the recorder and auditor.

The agent should run this audit skill after every build/run/QA attempt, even when the workflow stops early or fails. The audit output should reference whatever artifacts exist in the run directory and clearly mark missing or incomplete evidence.

Obsidian support

The generated experiment_note.md is designed for Obsidian:

  • YAML frontmatter
  • stable headings
  • tables for QA, metrics, and artifact index
  • relative paths for vault portability
  • no chat transcript or conversational content

The note is also valid GitHub Markdown, so it can be committed as an example or exported as supplementary evidence if desired.

The default local vault is:

text
~/Documents/Agentic-SWMM-Obsidian-Vault

It is organized for first-time Obsidian use:

text
00_Home/
10_Memory_Layer/
20_Audit_Layer/
30_Evidence_Layer/
40_Skill_Evolution/
90_Templates/

The direct script always writes canonical outputs into the run directory and copies the note to the Obsidian vault unless --no-obsidian is given. The canonical CLI (aiswmm audit) writes canonical outputs only; add --obsidian to also copy to the vault.

In both paths, use --obsidian-dir and --obsidian-index to target a vault location other than the default ~/Documents/Agentic-SWMM-Obsidian-Vault.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Swmm Experiment Audit」では何ができますか?

Agentic SWMMの実行アーティファクトをまとめ、監査可能な来歴情報、比較記録、ローカルのObsidian監査ノートを作成します。SWMMの構築、実行、QAを試みた後は、成功・失敗を問わず使用します。エージェントやCLIワークフローで、入力、コマンド、アーティファクト、指標、QAチェック、実行間の差分、およびユーザーが最初に使いやすいObsidian可視化を追跡可能な形で記録する必要がある場合に役立ちます。

TypingMindでSwmm Experiment Auditを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Swmm Experiment Auditはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSwmm Experiment Auditをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Zhonghao1995/agentic-swmm-workflow/tree/main/skills/swmm-experiment-auditを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Swmm Experiment Auditを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Swmm Experiment Auditで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSwmm Experiment Auditを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Swmm Experiment Audit」は無料ですか?

はい。Zhonghao1995がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇