librecad

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

A free, open-source desktop application for drawing in two dimensions, such as floor plans, mechanical drawings and cutting layouts. It works mainly with DXF, a common file format for technical drawings, and can export PDF, SVG and image files.

In plain words
What is it for?
Use it to create and edit lines, circles, arcs, shapes, annotations and hatch patterns. It is suited to floor plans, mechanical drawings and laser-cutting layouts, with limited DWG support through conversion tools.
Why use it?
It provides basic CAD drawing and measurement tools without requiring a commercial CAD license. It also helps organize detailed drawings with layers, blocks, dimensions, text and coordinate input.

Skill for Claude CodeCodex

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

Good fit Use it to create and edit lines, circles, arcs, shapes, annotations and hatch patterns. It is suited to floor plans, mechanical drawings and laser-cutting layouts, with limited DWG support through conversion tools.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/librecad"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/librecad.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,195 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.00053 $0.02195
Opus 5 $0.00026 $0.01097
Sonnet 5 $0.00011 $0.00439
Haiku 4.5 $0.00005 $0.00219

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

Security

Grade B, and why

librecad 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 librecad
cad/librecad/SKILL.md · 226 lines

How it starts

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

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

官网: https://librecad.org/

Wiki: https://github.com/LibreCAD/LibreCAD/wiki

许可证: GPL-2.0

概述

LibreCAD 主要特性:

  • 2D 矢量绘图:线/圆/弧/椭圆/多段线/样条/标注/文字/图案填充
  • 图层、块、属性、坐标输入(绝对/相对/极坐标)
  • 文件:DXF(R12/R2007 读写)、PDF/SVG/PNG(导出)、DWG(通过 ODA File Converter 或 LibreDWG 转换)
  • 跨平台:Windows、macOS、Linux
  • 国际化:含完善的中文界面

读写 DWG 原生支持有限,建议先用 LibreDWG 或 ODA 转 DXF。


安装

# Linux
sudo apt install librecad

# macOS
brew install librecad

# Windows / 其它:从官网下载

界面与基本操作

区域 用途
顶部菜单 File / Edit / View / Plugins / Tools / Drawing / Dimension / Modify / Info
左侧工具栏 绘图(CAD Toolbars)、捕捉、修改
命令行(按 ":" 唤出) 类 AutoCAD 命令输入
图层管理 右侧 Layer List
块管理 右侧 Block List

常用命令缩写

命令 功能
li line 直线
ci circle 圆
re rectangle
pl polyline 多段线
tr trim 修剪
mi mirror 镜像
co / cp copy
mv move
ro rotate
sc scale
os osnap 对象捕捉
di distance 测距
pu purge

坐标输入

输入 含义
100,50 绝对笛卡尔
@100,50 相对笛卡尔(相对上一点)
@100<30 相对极坐标(长度<角度)

图层与块

  • 图层:右侧面板 → New,可设置颜色/线型/线宽/打印开关
  • :选中要素 → 右键 → Create Block,或 Drawing → Block → New
  • 当前图层在状态栏切换;锁定/隐藏/冻结按钮

标注

  • 线性、对齐、半径、直径、角度、引线
  • 标注样式:Options → Drawing Preferences → Dimensions
  • 全局标注比例 + 字高

图案填充与文字

  • Hatch:选中边界 → 选图案(ANSI/ISO/Earth/Solid)+ 比例 + 角度
  • 文字:单行 / 多行;支持 SHX 与 TTF 字体;中文使用 Noto Sans CJK SC

文件交互

# DXF(自带)
File → Open / Save As / Export

# DWG → DXF(需要 ODA File Converter)
ODAFileConverter input.dwg . ACAD2010 DXF 1 0
# 或
dwg2dxf -y input.dwg            # LibreDWG

# 导出 PDF
File → Export → Export as PDF

命令行(无界面)

# 启动并运行命令脚本(需自定义脚本插件支持)
librecad --no-startup-window

# 配合 dxf-tools / Python 脚本批处理

LibreCAD 自身脚本能力较弱;批量转换建议结合:

  • LibreDWG 转换 DWG ↔ DXF
  • ezdxf(Python 库)做 DXF 解析与生成
  • inkscape 做 DXF → SVG/PDF

Read the full file on GitHub · 226 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 492090f7c8b5
  2. 8d ago Changed 13d77657dcca
  3. 12d ago First seen · 226 lines · 53 tokens per session scan B fafda40909c0

Subscribe to this mod's changes

librecad is a skill published in the GitHub repository znlgis/opengis-skills (61 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 2,195 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

qt-cpp-review

Invoke when the user asks to review, check, audit, or look over Qt6 C++ code — or suggest before committing. Runs deterministic linting (60+ rules) then six parallel deep- analysis agents covering model contracts, ownership, threading, API correctness, error handling, and performance. Reports only high-confidence…

mavlink/qgroundcontrol · 86 tokens

qt-cpp-docs

Generates standalone Markdown reference documentation for any Qt/C++ source files — Qt Widgets classes, Qt Quick backends, Qt/C++ modules, plain C++ utilities, structs, free-function headers, and entry points like main.cpp. Use this skill to document any .h or .cpp file: Qt classes, plain C++ code, utility helpers, or…

mavlink/qgroundcontrol · 155 tokens

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