occt

occt is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 72 tokens per session (3,001 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 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,001 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.00072 $0.03001
Opus 5 $0.00036 $0.01501
Sonnet 5 $0.00014 $0.00600
Haiku 4.5 $0.00007 $0.00300

Measured yesterday against content hash 6864c9fc6222, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 yesterday.

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 · 273 lines

How it starts

The opening of the file, as written. The whole thing — 273 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(带例外条款)

概述

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 构建(OCCT 8.0.0 起要求 C++17、CMake ≥ 3.10;VTK 默认关闭,需 -DUSE_VTK=ON 开启)

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


核心命名空间

内容
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 数据框架

C++ 入门:构造立方体并布尔差集

#include <BRepPrimAPI_MakeBox.hxx>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <BRepFilletAPI_MakeFillet.hxx>
#include <STEPControl_Writer.hxx>
#include <TopExp_Explorer.hxx>
#include <gp_Ax2.hxx>

TopoDS_Shape box = BRepPrimAPI_MakeBox(100, 60, 30).Shape();

gp_Ax2 ax(gp_Pnt(50,30,0), gp_Dir(0,0,1));
TopoDS_Shape cyl = BRepPrimAPI_MakeCylinder(ax, 10, 50).Shape();

TopoDS_Shape result = BRepAlgoAPI_Cut(box, cyl).Shape();

// 圆角
BRepFilletAPI_MakeFillet fil(result);
for (TopExp_Explorer ex(result, TopAbs_EDGE); ex.More(); ex.Next())
    fil.Add(2.0, TopoDS::Edge(ex.Current()));
result = fil.Shape();

// STEP 导出
STEPControl_Writer w;
w.Transfer(result, STEPControl_AsIs);
w.Write("out.step");

Read the full file on GitHub · 273 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. 7d ago Changed 122afb1c5b41
  2. 11d 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 (60 stars, last pushed 2d ago), licensed MIT. It adds 72 tokens to every session and 3,001 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

computational-geometry

NURBS curves and surfaces, mesh geometry, boolean operations, subdivision surfaces, tessellation methods, surface analysis, and point cloud processing for AEC computational design.

Abhinavbwj/Claude-skills-for-Computational-Designers · 32 tokens

cd-calculator

Python calculators for geometry analysis, structural checking, solar calculations, panel optimization, mesh analysis, material estimation, and fabrication cost estimation for AEC computational design.

Abhinavbwj/Claude-skills-for-Computational-Designers · 30 tokens

mathgraphs

Math graphing, 3D scene building with lights and particles, and presentations.

architectds/mathgraphs-mcp · 19 tokens

computational-geometry

NURBS curves and surfaces, mesh geometry, boolean operations, subdivision surfaces, tessellation methods, surface analysis, and point cloud processing for AEC computational design.

marcinfinitesimal533/Claude-skills-for-Computational-Designers · 32 tokens

cd-calculator

Python calculators for geometry analysis, structural checking, solar calculations, panel optimization, mesh analysis, material estimation, and fabrication cost estimation for AEC computational design.

marcinfinitesimal533/Claude-skills-for-Computational-Designers · 30 tokens

zoom-meeting-sdk-unreal

Zoom Meeting SDK for Unreal Engine wrapper integrations. Use when building Unreal projects that embed Zoom meetings with C++ and Blueprint wrappers, including wrapper-to-SDK mapping concerns.

anthropics/knowledge-work-plugins · 41 tokens