Borrowing it
Nothing to install: this file belongs to ZimoLiao/scholaraio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ZimoLiao/scholaraio/main/.claude/skills/openfoam/SKILL.mdgit clone --depth 1 https://github.com/ZimoLiao/scholaraioWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zimoliao/scholaraio/openfoam)<a href="https://agentmods.dev/skills/zimoliao/scholaraio/openfoam"><img src="https://agentmods.dev/badge/skills/zimoliao/scholaraio/openfoam/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zimoliao/scholaraio/openfoam"><img src="https://agentmods.dev/badge/skills/zimoliao/scholaraio/openfoam.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Privilege Escalation · line 51 Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
- medium Privilege Escalation · line 56 Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
- medium MCP Rug Pull · line 53 Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.Fix: Pin the image: image:tag or image@sha256:abc123
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.02595 |
| Opus 5 | $0.00017 | $0.01298 |
| Sonnet 5 | $0.00007 | $0.00519 |
| Haiku 4.5 | $0.00003 | $0.00260 |
Grade B, and why
openfoam scanned grade B with 1 finding 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 10d ago.
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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo apt install openfoam How it starts
The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenFOAM 计算流体力学
用 OpenFOAM 做 CFD:从 case 结构、网格、求解器、湍流模型到后处理和验证。
本 skill 故意保持轻量:
- 它负责告诉 agent 什么时候该用 OpenFOAM、标准工作流是什么、哪些 CFD 规范不能忽略
- 它不充当完整字典/求解器手册
- 具体求解器页面、字典字段、模型说明统一去查
scholaraio toolref
本 skill 应与 scientific-runtime 一起理解:
openfoamskill 负责 CFD 路由、工作流和科学规范scientific-runtime负责运行时的toolref-first行为和覆盖缺口退化策略toolref负责官方入口页、求解器页、字典页和模型页
当前成熟度:toolref-first, partial coverage
Agent 默认协议(toolref-first, partial coverage)
OpenFOAM 当前的 toolref 适合做主入口查询,但还不是完整手册替代。
对 OpenFOAM 问题,agent 默认按这个顺序工作:
- 先判断用户问题属于哪一层:
- 求解器选择
- case 骨架与目录结构
fvSchemes/fvSolution/controlDict- 湍流模型
- 网格与前处理
- 后处理与验证
- 先用
toolref查主求解器、主字典和高价值模型页 - 对
simpleFoam/pimpleFoam/fvSchemes/fvSolution/controlDict/kOmegaSST/blockMesh/snappyHexMesh/forceCoeffs/Q这类主入口,优先信任toolref - 如果
show没有直接命中 solver / function object 主页,或结果明显退化成模糊页,立即回退到官方文档 - 回退时要明确说明这是当前 OpenFOAM
toolref覆盖较浅,而不是用户用法有问题 - 不要要求普通用户为了当前任务先自己维护 OpenFOAM 文档层
这意味着:
toolref先解决“找对入口”的问题- 细粒度深挖可以暂时回退官方文档
- agent 应主动吸收这种复杂度,不要转嫁给用户
- 在真实任务里,优先保证 case 正确性、物理合理性和验证闭环,而不是追求文档层完美无缺
前置条件
# 安装(Ubuntu/WSL2)
sudo apt install openfoam
# 或 Docker
docker pull openfoam/openfoam-dev
# 可视化
sudo apt install paraview
验证:simpleFoam -help 应正常输出。确认 $WM_PROJECT_DIR 环境变量已设置。
何时使用
适合:
- 外流、内流、传热、稳态/瞬态 RANS 或更复杂的 CFD 工作流
- 需要几何建模、网格控制、边界条件和场量后处理的工程问题
不适合:
- 只需要快速低保真估算、且不打算做网格无关性和验证时
- 物理模型选择没有依据、只想“先跑起来再说”的情况
Toolref 优先
当 agent 不确定求解器、字典、function object、湍流模型时,先查 toolref。
常用查法:
scholaraio toolref show openfoam simpleFoam
scholaraio toolref show openfoam pimpleFoam
scholaraio toolref show openfoam controlDict
scholaraio toolref show openfoam fvSchemes
scholaraio toolref show openfoam fvSolution
scholaraio toolref show openfoam kOmegaSST
scholaraio toolref show openfoam blockMesh
scholaraio toolref show openfoam snappyHexMesh
scholaraio toolref show openfoam forceCoeffs
scholaraio toolref search openfoam numerical schemes
scholaraio toolref search openfoam linear solver settings
scholaraio toolref search openfoam turbulence model
scholaraio toolref search openfoam drag coefficient
scholaraio toolref search openfoam q criterion
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.
- 10d ago First seen · 219 lines · 34 tokens per session scan B 014c5612a40e
openfoam is a skill published in the GitHub repository ZimoLiao/scholaraio (570 stars, last pushed 10d ago), licensed MIT. It adds 34 tokens to every session and 2,595 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
infrastructure-validation
Skill for the validation infrastructure module providing PDF validation, markdown validation, output integrity checks, link verification, documentation audits, issue categorization, and repository scanning. Use when validating research outputs, checking document quality, running audits, or verifying cross-references.
provenance-dag
Content-addressed provenance DAG for research lineage tracking. Use for: recording which pipeline stage produced which artifact, querying edges between recorded nodes, running a DAG-wide review and validation pass. CLI: python -m infrastructure.provenance {list,record-artifact,review,validate}. Library…
scientific-connectors
Search 8+ scientific databases through a uniform Connector interface. Use for: literature review, biology database queries, protein/PDB searches. CLI: python -m infrastructure.search.connectors {list-dbs,search}. Config: set queries in projects/{name}/manuscript/config.yaml connectorsearch: block. Orchestrator…
infrastructure-documentation
Skill for the documentation infrastructure module providing figure management, image handling, markdown integration, and API glossary generation. Use when managing research figures, inserting images into manuscripts, auto-numbering figures, or generating API documentation.
infrastructure-search-literature
Paperclip-style multi-source literature search across arXiv, Crossref, local JSON corpora, and (opt-in) the Paperclip API. Provides Paper/SearchQuery/SearchResult data models, a LiteratureClient aggregator with per-backend failure isolation, DOI/arXiv-aware deduplication via mergepapers, deterministic JSON caching via…
template-formal
Strongly-typed multiagent ant-robot colony exemplar — ADTs, session-typed protocols, affine-discipline resource handles, storage-as-functor framing, Active-Inference-flavored decision loop, mypy-as-oracle negative controls.