comsol-sim

A workflow for working with COMSOL Multiphysics, a program for building and solving physics-based computer simulations. It covers inspecting saved model files and choosing ways to run or control COMSOL.

In plain words
What is it for?
Use it to inspect, build, run, debug, or revise COMSOL models and collect evidence about their settings, meshes, physics, and results.
Why use it?
It helps an coding agent work with COMSOL models even when the available setup differs, such as having a saved file, a desktop session, or a server connection.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/svd-ai-lab/sim-plugin-comsol/comsol
Any agent
npx skills add svd-ai-lab/sim-plugin-comsol --skill comsol
Clone the repo
git clone --depth 1 https://github.com/svd-ai-lab/sim-plugin-comsol

Made for: Claude Code, Codex.

Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00134 $0.06863
Opus 5 $0.00067 $0.03431
Sonnet 5 $0.00027 $0.01373
Haiku 4.5 $0.00013 $0.00686

Measured 2d ago against content hash 0c979e297880, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

comsol-sim scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (base/workflows/block_with_hole/00_create_geometry.py, base/workflows/block_with_hole/01_assign_material.py, base/workflows/block_with_hole/02_setup_physics.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/sim_plugin_comsol/_skills/comsol/SKILL.md · 589 lines

How it starts

The opening of the file, as written. The whole thing — 589 lines — stays where its author put it; the contents beside it link to each section on GitHub.

comsol-sim

This file is the COMSOL Multiphysics agent workflow index. Its job is to help an agent choose and execute the most reliable real COMSOL control path for the task: saved .mph inspection, local COMSOL documentation, direct COMSOL executables, a server-backed Java API session, or the sim COMSOL runtime when that adds useful structure.

This skill is self-contained for COMSOL work. Do not require a separate skill checkout or an external sim-cli skill. Use this file for COMSOL workflow routing, and load the plugin-bundled references below only when the task needs them.


COMSOL-specific layered content

Choose the control path from the task and the current COMSOL state. Identify whether you have a saved .mph, a standalone Desktop, an mphclient connected to comsolmphserver, an external comsolmphserver, or no running session. Then pick the smallest path that can produce real evidence.

Path Use it for Evidence to collect
saved .mph inspection Offline summaries, archive diffs, parameters, physics tags, mesh/solution metadata, and artifact review without starting COMSOL. inspect_mph(path), MphArchive, or mph_diff output.
local COMSOL docs Unknown physics feature names, module capability, property names, examples, and API terms before writing code. sim-comsol-doc search / retrieve hits from the installed COMSOL help tree.
direct comsolbatch -inputfile Running a saved model headlessly, stripping solutions with -norun, regression/CI/fan-out over .mph files, and one-shot saved-model output artifacts. output .mph, -batchlog, shell exit status, and extracted KPIs/artifacts.
comsolcompile + comsolbatch Settled Java recipes that build, solve, and extract KPIs in a fresh COMSOL process. compiled class, batch log/stdout KPI lines, output .mph or exported data.
comsolmphserver / Java API Stateful model exploration, live property/tag probing, incremental mutation, debugging, and API work where the agent needs to ask the live model questions. model tags/properties, run/build results, saved checkpoints, and explicit model identity.
sim runtime / shared Desktop The same server-backed Java API work when the plugin's structured inspect/exec/checkpoint tools or managed visible Model Builder collaboration are useful. session.health, comsol.model.identity, last.result, live binding checks, checkpoints.

Read the full file on GitHub · 589 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 589 lines · 134 tokens per session scan A 0c979e297880

Subscribe to this mod's changes

comsol-sim is a skill published in the GitHub repository svd-ai-lab/sim-plugin-comsol (65 stars, last pushed 14d ago), licensed Apache-2.0. It adds 134 tokens to every session and 6,863 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gui

Cross-driver GUI actuation for CAE solvers running under sim-cli. Use to click buttons, fill fields, dismiss dialogs, and capture window screenshots against GUI-capable driver windows through sim exec.

svd-ai-lab/sim-cli · 43 tokens

sim-cli

Cross-solver operating discipline for sim-cli workflows — tool choice, input classification, acceptance semantics, and escalation rules that apply across solvers. Use alongside the solver's own plugin skill, which is self-contained for solver-specific work; this skill carries only the shared rules.

svd-ai-lab/sim-cli · 57 tokens

cadquery-modeling

Generate CAD models with CadQuery using an adaptive CAD Compiler workflow: plan-mode skill constraint handoff, focused iteration scopes, fail-first challenge review, compact review packets, real-product reference fidelity, visual/functional audits, source-first repair, and STEP/STL export. Use for CadQuery, CQ, 建模…

armpro24-blip/cad-cae-copilot · 97 tokens

aieng-cad-authoring

Active MCP-first CAD authoring skill for AIENG Workbench. Use when the user asks to create, design, draft, model, or iteratively build CAD geometry through the active cad. MCP tools. Do not use for solver/result review, schema/library implementation, or editing legacy IR plans.

armpro24-blip/cad-cae-copilot · 67 tokens

aieng-cad-cae-copilot

MCP-first evidence workflow for AIENG CAD/CAE setup, solver preflight, approval-gated solver execution, and result extraction. Use when the user asks to inspect CAE readiness, patch setup, prepare/run CalculiX, or report stress/displacement evidence.

armpro24-blip/cad-cae-copilot · 65 tokens

aieng-closed-loop-copilot

MCP-first closed-loop CAD/CAE copilot skill for improving an existing solved design against explicit targets. Use when the user asks for bounded design iteration using editable CAD parameters, solver reruns, and evidence-backed comparison.

armpro24-blip/cad-cae-copilot · 54 tokens