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.
npx skills add znlgis/opengis-skills --skill occtgit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote 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/znlgis/opengis-skills/occt)<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.
<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>- NVIDIA SkillSpector warn
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.
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.00072 | $0.03001 |
| Opus 5 | $0.00036 | $0.01501 |
| Sonnet 5 | $0.00014 | $0.00600 |
| Haiku 4.5 | $0.00007 | $0.00300 |
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 \ 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::exception;Raise()/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");
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.
- 7d ago Changed 122afb1c5b41
- 11d ago First seen · 273 lines · 72 tokens per session scan B 6864c9fc6222
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.
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.
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.
mathgraphs
Math graphing, 3D scene building with lights and particles, and presentations.
computational-geometry
NURBS curves and surfaces, mesh geometry, boolean operations, subdivision surfaces, tessellation methods, surface analysis, and point cloud processing for AEC computational design.
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.
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.