openscad

openscad is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 122 tokens per session (4,091 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 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,091 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.00122 $0.04091
Opus 5.5 $0.00049 $0.01636
Sonnet 5.5 $0.00024 $0.00818
Haiku 4.5 $0.00012 $0.00409

Measured today against content hash 39de70dd67db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 today.

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

How it starts

The opening of the file, as written. The whole thing — 345 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+

最新稳定版: 2021.01(GitHub 最后一个正式 Release,截至 2026-10 未变)。日常实操普遍用快照/测试版:仓库最新标签为 openscad-2026.10-TEST4(2026-10-15),官网 Snapshots 提供各平台每日构建;Manifold 后端与新增函数(如 offset 的 3D 模式、polyline() 等)只在快照里可用,见 tags 与 downloads

概述

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(Homebrew 只有 cask)
brew install --cask openscad
# Windows: 官方安装包 / 便携版
# 开发版(含 Manifold 后端):<https://openscad.org/downloads.html#snapshots>

验证安装与版本:

openscad --version          # 打印版本
openscad --info             # 打印构建信息(编译器、依赖库、Manifold 是否编入)
openscad --help             # 列出当前构建支持的全部开关

各发行版仓库里的 openscad 常年停在 2021.01,没有 Manifold 后端与新版函数。需要这些特性时装官网 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); }

Read the full file on GitHub · 345 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. today Changed · +64 lines · +67 tokens per session 39de70dd67db
  2. 13d ago Changed 7aaaa7bce1b5
  3. 1mo ago Changed · +2 lines 678d092449d7
  4. 1mo ago Changed bd0655c4e90f
  5. 1mo ago Changed 1365cde7d076
  6. 1mo 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 (75 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 4,091 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

Other skills, from other repositories

get-context

Mandatory design-brief gate for clarifying the product and outcome. Use before ideation, image-to-code builds, redesigns, or product UI work to clarify missing product information and play back the brief before proceeding.

XiaomiMiMo/MiMo-Code · 46 tokens

frontend

Builds, styles, and polishes anything drawn with HTML, CSS, or SVG: web UI, pages, components, HTML reports rendered to PDF or print, figures, PNG/SVG diagrams, slides, and images for Notion or Slack. Use for any styling, layout, animation, or visual-quality task, or when asked to make something look or feel a certain…

code-yeongyu/lazycodex · 79 tokens

voiden

Create and edit Voiden .void files for API testing. Covers the .void file format and all enabled extension block types.

VoidenHQ/voiden · 28 tokens

cli-anything-photoshop

A command-line tool that controls Adobe Photoshop through Windows automation. It can work with Photoshop documents, layers, selections, text, image adjustments, and exports.

yb2460/harness-anything · 43 tokens

designlang-tokens

Use when styling UI for cal.com — references the extracted design system tokens instead of inventing colors, spacing, or typography.

Manavarya09/design-extract · 30 tokens

app-screenshot-debug

Drive the running termio app via AppleScript / System Events to reach a UI state (focus the window, click a sidebar project, a terminal pane, a control), capture a pixel-accurate screenshot of just that window, and read it back for visual analysis — for diagnosing layout / spacing / alignment / 'this looks ugly'…

termio-sh/termio · 161 tokens