qcad

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

A free, open-source 2D CAD application for creating and editing technical drawings, with DXF as its main drawing format. It also supports layers, blocks, layouts, printing, scripting and file conversion through command-line tools.

In plain words
What is it for?
Use it for mechanical drawings, construction plans, dimensions, shapes, hatch patterns and CAM preparation. You can automate tasks with ECMAScript and convert drawings to formats such as DWG, PDF, SVG and bitmap images.
Why use it?
It provides a desktop drawing environment and automation options without requiring a proprietary CAD application for basic 2D work. Scripts can repeat drawing or conversion tasks without manual clicking.

Skill for Claude CodeCodex

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

Good fit Use it for mechanical drawings, construction plans, dimensions, shapes, hatch patterns and CAM preparation. You can automate tasks with ECMAScript and convert drawings to formats such as DWG, PDF, SVG and bitmap images.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/qcad"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/qcad.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,864 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: 3 findings, 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 Data Exfiltration · line 20
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 265
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Privilege Escalation · line 45
    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.00126 $0.03864
Opus 5.5 $0.00050 $0.01546
Sonnet 5.5 $0.00025 $0.00773
Haiku 4.5 $0.00013 $0.00386

Measured today against content hash 9a7819387a76, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

qcad 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.

# Linux 自带:sudo apt install qcad
cad/qcad/SKILL.md · 300 lines

How it starts

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

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

官网: https://qcad.org/

官方文档: https://qcad.org/en/qcad-documentation

API 参考: https://api.qcad.org/

许可证: GPL-3.0(社区版);Pro 版商业许可

最新稳定版: 3.33.1(2026-09-08,GitHub tag v3.33.1.0;截至 2026-10 未发新版,下一版将切换到日历版本号 27.x,见 Changelog 与 https://qcad.org/en/download)

概述

QCAD 由两部分组成:

  • QCAD Community Edition:开源核心,支持 DXF(自带)+ DWG(需要 Teigha/ODA File Converter 或 LibreDWG)
  • QCAD/CAM 与 QCAD Pro:商业插件(数控、PDF、SVG 详细输出等)

核心能力:

  • 2D 绘图:线/弧/圆/多段线/样条/标注/填充/文本
  • 图层、块、视图、布局、打印
  • DXF/DWG/PDF/SVG 输入输出
  • ECMAScript(QtScript / V8)脚本扩展
  • 脚本接口:QCAD 提供 ECMAScript(JavaScript)脚本接口用于二次开发,相关仓库为 qcad/qtjsapi 与 qcad/qcadjsapi
  • 命令行:qcad 本体 + Pro 版附带的控制台工具(dwginfo、dwg2pdf、dwg2svg、dwg2bmp 等,见「命令行批处理」)

安装

# 二进制:<https://qcad.org/en/download>
# Linux 自带:sudo apt install qcad

# 命令行
qcad             # 启动 GUI
qcad -no-gui -autostart script.js   # 无界面运行脚本

将 ODA File Converter(免费)放在 PATH 中以支持 DWG。


项目结构

qcad-installation/
├── qcad             # 主程序
├── plugins/         # 二进制插件
├── scripts/         # 脚本扩展(自带 + 用户)
│   ├── Draw/
│   ├── Modify/
│   ├── File/
│   └── Examples/
└── doc/api/         # API 文档(同 api.qcad.org)

用户脚本目录:$HOME/.qcad/scripts(Linux)或对应路径。


ECMAScript 入门:画一条线

include("scripts/EAction.js");

function MyLine(guiAction) { EAction.call(this, guiAction); }
MyLine.prototype = new EAction();

MyLine.prototype.beginEvent = function() {
    EAction.prototype.beginEvent.call(this);
    var doc = this.getDocument();

    var line = new RLineEntity(doc, new RLineData(
        new RVector(0, 0), new RVector(100, 50)));

    var op = new RAddObjectsOperation();
    op.addObject(line);
    doc.applyOperation(op);

    this.terminate();
};

将文件保存为 ~/.qcad/scripts/MyLine.js 并通过 Misc → Run script,或在控制台调用。


脚本控制台(Tools → Script Shell)

Read the full file on GitHub · 300 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 · +1 lines · +73 tokens per session 9a7819387a76
  2. 12d ago Changed · +1 lines 1813ed537b68
  3. 13d ago Changed · +28 lines 0e5c2c9f8e2b
  4. 1mo ago Changed · +2 lines e5cff1e23190
  5. 1mo ago Changed c74abc47cf13
  6. 1mo ago Changed ebd05914337d
  7. 1mo ago First seen · 268 lines · 53 tokens per session scan B 76e049fec66c

Subscribe to this mod's changes

qcad is a skill published in the GitHub repository znlgis/opengis-skills (75 stars, last pushed today), licensed MIT. It adds 126 tokens to every session and 3,864 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

solidworks-automation

An automation skill for SolidWorks, a computer-aided design program used to create 3D parts, assemblies, and engineering drawings. It covers verified CAD operations and marks less-tested operations for human review.

wzyn20051216/solidworks-automation-skill · 56 tokens

autocad-automation

An automation skill for AutoCAD, a computer-aided design program commonly used for 2D technical drawings. It works with drawing formats such as DWG and DXF and can use Windows automation or other supported scripting routes.

wzyn20051216/solidworks-automation-skill · 151 tokens

solidworks-vibecad

A planning guide for turning natural-language mechanical design requests into structured, parameterized SolidWorks plans that can be reviewed before execution.

wzyn20051216/solidworks-automation-skill · 96 tokens

solidworks-engineering-drawing

A SolidWorks skill for creating and reviewing engineering drawings, which are manufacturing documents showing views, measurements, holes, parts lists, and title-block information.

wzyn20051216/solidworks-automation-skill · 58 tokens

solidworks-fillet-chamfer-cnc

A SolidWorks skill for creating CNC parts with multiple rounded edges and chamfers, which are angled or softened edges used in manufacturing. It includes parameter checks, edge selection, and evidence after rebuilding the model.

wzyn20051216/solidworks-automation-skill · 107 tokens

solidworks-threaded-holes

A SolidWorks skill for creating and checking ISO metric internal threaded holes, such as M6, in new parts. It covers supported blind and through holes, chamfers, thread direction, and delivery evidence.

wzyn20051216/solidworks-automation-skill · 150 tokens