openscad

openscad is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 55 tokens per session (2,488 once invoked), scanned B, original, MIT.

A CAD program in which 3D models are written as scripts instead of built mainly with a graphical editor. It creates shapes by combining basic solids such as cubes, spheres, and cylinders.

In plain words
What is it for?
Creating customizable parts for 3D printing, defining parametric shapes with scripts, combining solids with Boolean operations, and exporting formats such as STL, 3MF, DXF, and SVG.
Why use it?
It makes models reproducible, editable through variables and code, and suitable for automated or batch generation.

Skill for Claude CodeCodex

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

Good fit Creating customizable parts for 3D printing, defining parametric shapes with scripts, combining solids with Boolean operations, and exporting formats such as STL, 3MF, DXF, and SVG.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/openscad"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/openscad.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,488 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 40
    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.00055 $0.02488
Opus 5 $0.00028 $0.01244
Sonnet 5 $0.00011 $0.00498
Haiku 4.5 $0.00006 $0.00249

Measured yesterday against content hash 04d6accd8bbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

openscad 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 openscad
cad/openscad/SKILL.md · 279 lines

How it starts

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

项目地址: https://github.com/openscad/openscad

官网: https://openscad.org/

官方文档: https://openscad.org/documentation.html

Cheatsheet: https://openscad.org/cheatsheet/

许可证: GPL-2.0+

概述

OpenSCAD 与传统 GUI CAD 的区别:

  • 代码即模型:所有几何由 .scad 脚本生成
  • CSG 内核:基于 CGAL(精确)或新版 Manifold(更快)
  • 三大基础:原语 + 变换 + 布尔
  • 强参数化:变量、模块、函数、循环、列表推导
  • 导入导出:STL、OFF、DXF、SVG、AMF、3MF;可导入 STL 做处理
  • 批处理:CLI openscad -o out.stl model.scad

安装

# Linux
sudo apt install openscad
# macOS
brew install --cask openscad
# Windows: 安装包
# 开发版(更快的 Manifold 内核):<https://openscad.org/downloads.html#snapshots>

基础语法

// 变量
length = 50;
width  = 30;
height = 10;

// 立方体
cube([length, width, height], center = false);

// 球
sphere(r = 5, $fn = 64);          // $fn 控制圆滑度

// 圆柱
cylinder(h = 20, r1 = 5, r2 = 10, center = true, $fn = 32);

// 文字
text("Hello", size = 8, font = "DejaVu Sans:style=Bold");

变换

translate([10, 0, 0])  cube(5);
rotate([0, 0, 45])     cube(5);
scale([2, 1, 1])       cube(5);
mirror([1, 0, 0])      cube(5);

链式:

translate([20, 0, 0])
    rotate([0, 90, 0])
        cylinder(h = 10, r = 2);

布尔(CSG)

union()        { cube(10); translate([8,0,0]) cube(10); }
difference()   { cube(10); translate([5,5,-1]) cylinder(h=12, r=2); }
intersection() { cube(10); translate([5,5,5]) sphere(7); }

模块与函数

module hex(d = 10, h = 5) {
    cylinder(h = h, r = d/2, $fn = 6);
}

// 阵列模块
module hex_grid(rows, cols, sp = 12) {
    for (i = [0:rows-1])
        for (j = [0:cols-1])
            translate([i*sp, j*sp*sin(60), 0])
                hex();
}

hex_grid(rows = 5, cols = 5);

// 函数(返回值)
function sq(x) = x * x;
echo(sq(5));     // → 25

循环与列表

// for 循环
for (i = [0 : 30 : 360])
    rotate([0, 0, i]) translate([20, 0, 0]) cube(2);

// 列表推导
points = [for (i = [0 : 0.1 : 6.28]) [10*cos(i*180/PI), 10*sin(i*180/PI)]];
polygon(points);

Read the full file on GitHub · 279 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. 8d ago Changed 1365cde7d076
  2. 11d ago First seen · 279 lines · 55 tokens per session scan B 04d6accd8bbe

Subscribe to this mod's changes

openscad is a skill published in the GitHub repository znlgis/opengis-skills (60 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 2,488 once invoked, about $0.0003 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

furniture-fit

Assess whether furniture fits in a measured Pascal room or layout. Use this skill for sofa, table, bed, cabinet, appliance, staging, placement, collision, clearance, or rotated-footprint questions. Produce a tool-backed spatial report that distinguishes footprint fit from unsupported height, door-swing, assembly, and…

pascalorg/editor · 80 tokens

pascal-3d

Connect to Pascal and use its MCP tools to create, inspect, edit, validate, save, or hand off editable 3D building scenes. Use this skill whenever a user asks an agent to work in Pascal, make a room or building model, inspect a Pascal project, perform spatial edits, connect Pascal MCP, or return a verified Pascal…

pascalorg/editor · 92 tokens

FluidCAD

Workflow and best practices for designing parts in FluidCAD through its MCP server. Use this skill whenever the user wants to model, design, or modify any part in FluidCAD, whenever they mention FluidCAD, a .fluid.js file, or ask for CAD/parametric modeling work that involves sketches, extrudes, cuts, fillets…

Fluid-CAD/FluidCAD · 131 tokens

add-interfaces

Enrich an existing PartCAD part with connection interfaces and ports (mating metadata) so it can be mated to other parts automatically. Use for /pc:add-interfaces or when the user asks to add interfaces, ports, connectors, or mating information to a part, or to make parts snap/connect/assemble together.

partcad/partcad · 69 tokens

gen-assembly

Generate a PartCAD assembly (an ASSY that composes parts with placement and/or mates) from a description, generating or reusing the component parts and validating the result with the PartCAD CLI. Use for /pc:gen-assembly or when the user asks to generate or create an assembly, mechanism, or multi-part product.

partcad/partcad · 71 tokens

render

Render a PartCAD object or a CAD file to a 2D image - PNG, JPEG, SVG or DXF - from one or many viewing angles (front, back, left, right, top, bottom, iso, or an arbitrary direction), with pc render for an object a package declares or pc adhoc render for a file that belongs to no package. Use for /pc:render or when the…

partcad/partcad · 168 tokens