qcad

qcad is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 53 tokens per session (2,405 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 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,405 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.00053 $0.02405
Opus 5 $0.00026 $0.01203
Sonnet 5 $0.00011 $0.00481
Haiku 4.5 $0.00005 $0.00241

Measured today against content hash c74abc47cf13, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 · 268 lines

How it starts

The opening of the file, as written. The whole thing — 268 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 版商业许可

概述

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)脚本扩展
  • 命令行:qcaddwg2dxfdxf2pdfdxf2bmp

安装

# 二进制:<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)

var doc = getDocument();
print(doc.getEntityIdsByType(RS.EntityLine).length);

// 添加圆
var circle = new RCircleEntity(doc, new RCircleData(new RVector(0,0), 10));
var op = new RAddObjectsOperation();
op.addObject(circle);
doc.applyOperation(op);

命令行批处理

# DXF → PDF
dxf2pdf -o out.pdf input.dxf

# DXF → SVG
dxf2svg -o out.svg input.dxf

# DWG → DXF(需 ODA File Converter 或 LibreDWG)
dwg2dxf -outversion=2018 input.dwg

# DXF → BMP / PNG
dxf2bmp -a -o out.png input.dxf

Read the full file on GitHub · 268 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 c74abc47cf13
  2. 8d ago Changed ebd05914337d
  3. 12d 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 (61 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 2,405 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

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

techdrawai-cad

Turn drawings and photos into CAD files and 3D models with TechDraw AI. Use when the user wants a DXF or DWG for CAD, CNC, laser cutting or plasma cutting; wants to import geometry into Fusion 360, SolidWorks, Onshape, FreeCAD, AutoCAD, Rhino, Blender or LightBurn; wants a 3D model or STL reconstructed from a…

MeltFlexDevs/techdrawai-skills · 110 tokens

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