occt

occt is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 134 tokens per session (3,666 once invoked), scanned B, original, MIT.

A C++ library for 3D geometry used in CAD, CAM, and engineering software. It handles solid models, shape operations, mesh creation, display, and common CAD file formats.

In plain words
What is it for?
Building applications that create or edit solid shapes, perform Boolean cuts and joins, add fillets or chamfers, generate meshes, and read or write STEP, IGES, STL, and related files.
Why use it?
It removes the need to implement complex geometry calculations and model-file import and export yourself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Building applications that create or edit solid shapes, perform Boolean cuts and joins, add fillets or chamfers, generate meshes, and read or write STEP, IGES, STL, and related files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/occt
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.

Any agent
npx skills add znlgis/opengis-skills --skill occt
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, Codex.

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 occt

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/occt/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/occt)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/occt"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/occt/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 occt

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/occt"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/occt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,666 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: 1 finding, 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 43
    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.
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.00134 $0.03666
Opus 5.5 $0.00054 $0.01466
Sonnet 5.5 $0.00027 $0.00733
Haiku 4.5 $0.00013 $0.00367

Measured 19d ago against content hash f73f450daad2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

occt 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 19d 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 libocct-foundation-dev libocct-modeling-data-dev \
cad/occt/SKILL.md · 285 lines

How it starts

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

项目地址: https://github.com/Open-Cascade-SAS/OCCT

官网: https://dev.opencascade.org/

官方文档: https://dev.opencascade.org/doc/refman/html/

教程: https://dev.opencascade.org/doc/overview/html/

许可证: LGPL-2.1(带例外条款)

最新版本: 8.0.1(2026-07-30 发布,截至 2026-11,见 OCCT Releases)

概述

OCCT 提供:

  • 几何与拓扑:gp_* 几何基元、Geom_* 解析曲线/曲面、TopoDS_Shape(Vertex/Edge/Wire/Face/Shell/Solid/Compound)
  • 建模算法:拉伸/旋转/扫掠/放样/圆角/倒角/抽壳/布尔(BOPAlgo)
  • STEP / IGES / STL / OBJ / glTF / VRML / BREP 数据交换
  • 显示:基于 OpenGL(OCAF + AIS 应用框架)
  • 网格:BRepMesh / Triangulation
  • OCAF:CAD 数据应用框架(属性、版本、引用)
  • 跨语言绑定:OCC.js(WebAssembly)、PythonOCC、occt-rs

安装

# Linux
sudo apt install libocct-foundation-dev libocct-modeling-data-dev \
    libocct-modeling-algorithms-dev libocct-data-exchange-dev \
    libocct-visualization-dev occt-misc

# macOS
brew install opencascade

# Conda(含 PythonOCC)
conda install -c conda-forge pythonocc-core

# 源码:CMake 构建(CMake ≥ 3.10;C++ 标准缺省 C++17,可用
# -DBUILD_CPP_STANDARD=C++20/C++23/C++26 调高;VTK 默认关闭,需 -DUSE_VTK=ON 开启)

验证安装(头文件与库是否就位):

ls /usr/include/opencascade/Standard_Version.hxx     # Linux 发行版包
grep -m1 OCC_VERSION_STRING /usr/include/opencascade/Standard_Version.hxx
brew --prefix opencascade                            # macOS Homebrew 安装前缀
python -c "import OCC; print(OCC.__file__)"           # pythonocc-core 可导入即装好;其内置 OCCT 版本随发行包,见 conda 包说明

pythonocc-core 的版本号与 OCCT 版本号不同步(PyPI 上最新为 0.16),升级前先确认该发行包内置的 OCCT 版本,再决定用哪套 API。

版本提示: OCCT 8.0 起有重大变更:Standard_Failure 改为继承 std::exception;Raise()/Throw()/Instance() 静态助手被移除(改用 throw 关键字);Standard_Mutex 等退役,改用 std::mutex/std::lock_guard。从 7.x 升级需留意这些破坏性变更。最新版本请参见 OCCT Releases。


核心 API:包与命名空间

包 内容
gp_* 数学几何基元(Pnt、Vec、Dir、Ax2、Trsf)
Geom_* 参数曲线/曲面
TopoDS_* 拓扑(Vertex/Edge/Wire/Face/Shell/Solid/Compound)
BRep* 拓扑 + 几何接口(BRepBuilderAPI_、BRepPrimAPI_、BRepAlgoAPI_*)
BOPAlgo_* 高级布尔运算
STEPControl_* / IGESControl_* 数据交换
AIS_* / V3d_* 显示
TDocStd_* / TDF_* OCAF 数据框架

Read the full file on GitHub · 285 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. 19d ago Changed f73f450daad2
  2. 21d ago Changed · -8 lines 8551b70c5413
  3. 1mo ago Changed · +15 lines · +62 tokens per session 8c2f20a3876d
  4. 1mo ago Changed · +3 lines 1f01a8db87e3
  5. 2mo ago Changed · +2 lines 88b126c31d34
  6. 2mo ago Changed e5a7f3e31070
  7. 2mo ago Changed 122afb1c5b41
  8. 3mo ago First seen · 273 lines · 72 tokens per session scan B 6864c9fc6222

Subscribe to this mod's changes

occt is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 134 tokens to every session and 3,666 once invoked, about $0.0005 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

occt compared with skills from other repositories

occt next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
occtznlgis/opengis-skillsSkill8720d agoMITB134Claude Code, Codex
zoom-meeting-sdk-unrealanthropics/knowledge-work-pluginsSkill37ktodayApache-2.0A41Claude Code
cudnn-installNVIDIA/skillsSkill4.2ktodayApache-2.0A49Claude Code, Codex
ccclNVIDIA/skillsSkill4.2ktodayApache-2.0A206Claude Code, Codex
doca-argpNVIDIA/skillsSkill4.2ktodayApache-2.0A277Claude Code
cpu-kernelshuggingface/kernelsSkill796todayApache-2.0A89Claude Code
review-trtmc-prNVIDIA/TensorRT-Model-ConnectSkill305todayApache-2.0A105Codex