scholaraio: Skill for Claude Code

.claude/skills/openfoam/SKILL.md

openfoam is a skill for Claude Code from ZimoLiao/scholaraio. It costs 34 tokens per session (2,595 once invoked), scanned B, original, MIT.

A guide for using OpenFOAM, an open-source tool for computational fluid dynamics (CFD), which studies how fluids and heat move. It covers solver choice, case setup, mesh creation, turbulence models, and result checking.

In plain words
What is it for?
Use it to build and configure OpenFOAM cases, create meshes, choose turbulence models, analyse flow or heat-transfer results, and verify simulations.
Why use it?
It helps avoid choosing an unsuitable solver, setting up case files incorrectly, or accepting physically unreasonable results. It also provides a standard workflow when the detailed documentation is incomplete.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ZimoLiao/scholaraio's own configuration. It tells Claude Code how to work on scholaraio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything scholaraio configures →

Part of the scholaraio plugin — 44 skills, 1 hook shipped together

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/ZimoLiao/scholaraio/main/.claude/skills/openfoam/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ZimoLiao/scholaraio

Made for: Claude Code.

Or install scholaraio, the plugin that ships this one along with the rest of its 44 skills, 1 hook.

Wrote 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.

agentmods badge for openfoam

README.md
[![agentmods](https://agentmods.dev/badge/skills/zimoliao/scholaraio/openfoam/github.svg)](https://agentmods.dev/skills/zimoliao/scholaraio/openfoam)
Your own site
<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.

agentmods 80×15 button for openfoam

Your own site · 80×15
<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>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,595 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
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
How audits are shown
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.1 $0.00034 $0.02595
Opus 5.5 $0.00014 $0.01038
Sonnet 5.5 $0.00007 $0.00519
Haiku 4.5 $0.00003 $0.00260

Measured 2mo ago against content hash 014c5612a40e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 2mo 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
.claude/skills/openfoam/SKILL.md · 219 lines

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 一起理解:

  • openfoam skill 负责 CFD 路由、工作流和科学规范
  • scientific-runtime 负责运行时的 toolref-first 行为和覆盖缺口退化策略
  • toolref 负责官方入口页、求解器页、字典页和模型页

当前成熟度:toolref-first, partial coverage

Agent 默认协议(toolref-first, partial coverage)

OpenFOAM 当前的 toolref 适合做主入口查询,但还不是完整手册替代。

对 OpenFOAM 问题,agent 默认按这个顺序工作:

  1. 先判断用户问题属于哪一层:
    • 求解器选择
    • case 骨架与目录结构
    • fvSchemes / fvSolution / controlDict
    • 湍流模型
    • 网格与前处理
    • 后处理与验证
  2. 先用 toolref 查主求解器、主字典和高价值模型页
  3. 对 simpleFoam / pimpleFoam / fvSchemes / fvSolution / controlDict / kOmegaSST / blockMesh / snappyHexMesh / forceCoeffs / Q 这类主入口,优先信任 toolref
  4. 如果 show 没有直接命中 solver / function object 主页,或结果明显退化成模糊页,立即回退到官方文档
  5. 回退时要明确说明这是当前 OpenFOAM toolref 覆盖较浅,而不是用户用法有问题
  6. 不要要求普通用户为了当前任务先自己维护 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

Read the full file on GitHub · 219 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. 2mo ago First seen · 219 lines · 34 tokens per session scan B 014c5612a40e

Subscribe to this mod's changes

openfoam is a skill published in the GitHub repository ZimoLiao/scholaraio (584 stars, last pushed 10d ago), licensed MIT. It adds 34 tokens to every session and 2,595 once invoked, about $0.0001 per session on Opus 5.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.

Related

openfoam compared with skills from other repositories

openfoam next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openfoamZimoLiao/scholaraioSkill58410d agoMITB34Claude Code
infrastructure-validationdocxology/templateSkill23yesterdayApache-2.0A54Claude Code, Codex
provenance-dagdocxology/templateSkill23yesterdayApache-2.0A103Claude Code, Codex
scientific-connectorsdocxology/templateSkill23yesterdayApache-2.0A87Claude Code, Codex
infrastructure-search-literaturedocxology/templateSkill23yesterdayApache-2.0A123Claude Code, Codex
template-academic-paper-reviewerdocxology/templateSkill23yesterdayApache-2.0A52Claude Code, Codex
template-reproducibility-auditdocxology/templateSkill23yesterdayApache-2.0A70Claude Code, Codex