enerflow-architecture
星标2
分支0
更新时间2026年1月16日 14:23
Enforces Enerflow's specific Enterprise Worker architecture and DWSIM integration rules.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Enforces Enerflow's specific Enterprise Worker architecture and DWSIM integration rules.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | enerflow-architecture |
| description | Enforces Enerflow's specific Enterprise Worker architecture and DWSIM integration rules. |
| license | MIT |
| compatibility | opencode |
| metadata | {"project":"enerflow","type":"architecture"} |
Enerflow.Worker. The API and Domain must remain pure.DWSIM.GlobalSettings.Settings.AutomationMode = true is set before any simulation logic.StreamState values (T, P, Flow) are handled in SI Units (Kelvin, Pascal, kg/s) within the Domain and Mapper layers. Unless you are implmenting a feature which extends units handlingNewId via IdGenerator.NextGuid() for identifiers to maintain database performance.Solve() calls in try-catch blocks and writes a FailureResult JSON instead of crashing silently.Enerflow.Domain DTOs, not DWSIM objects.Enerflow.Worker.Split Architecture:
Enerflow.API: Orchestrator (DB, Queue, HTTP). NO DWSIM DLLs.Enerflow.Worker: Executor (DWSIM DLLs). Transient or Hosted Service.Enerflow.Domain: Shared Kernel (POCOs, Enums).DWSIM Integration:
flowsheet.Solved and flowsheet.ErrorMessage.Calculate() call succeeded without verification.Data Flow:
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.
Directs agents to avoid bad C# practices like magic strings and poor architecture.
Verifies DWSIM API usage by cross-referencing against the local source code in libs/dwsim_src.