dwsim-api-verification
Verifies DWSIM API usage by cross-referencing against the local source code in libs/dwsim_src.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Verifies DWSIM API usage by cross-referencing against the local source code in libs/dwsim_src.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verifies DWSIM API usage by cross-referencing against the local source code in libs/dwsim_src.
Directs agents to avoid bad C# practices like magic strings and poor architecture.
Enforces Enerflow's specific Enterprise Worker architecture and DWSIM integration rules.
Directs agents to avoid bad C# practices like magic strings and poor architecture.
| name | dwsim-api-verification |
| description | Verifies DWSIM API usage by cross-referencing against the local source code in libs/dwsim_src. |
| license | MIT |
| compatibility | opencode |
| metadata | {"project":"enerflow","type":"verification"} |
Enerflow.Worker actually exist in the local DWSIM source code (libs/dwsim_src).CalculateFlowsheet2) and suggest the correct alternatives (e.g., RequestCalculation).DWSIM.* namespaces.MethodNotFoundException or MissingMemberException occurs related to DWSIM.Since libs/dwsim_src contains the authoritative source code, use grep and read to validate your assumptions.
Do not guess where a class is. Find it.
# Example: Finding the Flowsheet class
grep -r "class Flowsheet" libs/dwsim_src/DWSIM.FlowsheetBase
Once you know the file, read it to check the method arguments.
# Example: Checking RequestCalculation arguments
grep -A 5 "public void RequestCalculation" libs/dwsim_src/path/to/Flowsheet.vb
DWSIM uses many Enums (e.g., PropertyPackageType). Verify the exact spelling.
grep -r "Enum PropertyPackageType" libs/dwsim_src
flowsheet.CalculateFlowsheet2(...) (Often void or deprecated in patched binaries)flowsheet.RequestCalculation(...)DWSIM.GlobalSettings.Settings.AutomationMode = true must be set.DWSIM.GlobalSettings/Settings.vb to confirm the property exists if you are unsure.Task.Run wraps direct DWSIM calls without a lock, although the Worker architecture handles this via ConcurrentMessageLimit = 1.