librecad

librecad is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 131 tokens per session (3,925 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 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,925 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.00131 $0.03925
Opus 5.5 $0.00052 $0.01570
Sonnet 5.5 $0.00026 $0.00785
Haiku 4.5 $0.00013 $0.00392

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

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

How it starts

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

官方文档: https://librecad.readthedocs.io/

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

许可证: GPL-2.0

最新版本: v2.2.1.6(2026-10-17 发布,截至 2026-11,见 GitHub Releases;2.2.1-latest 为更新中的候选线)

概述

LibreCAD 主要特性:

  • 2D 矢量绘图:线/圆/弧/椭圆/多段线/样条/标注/文字/图案填充
  • 图层、块、属性、坐标输入(绝对/相对/极坐标)
  • 文件:DXF 读写(命令行 -V 可选 r12/r14/r2000/r2004/r2007(缺省)/r2010/r2013/r2018)、PDF/SVG/PNG 导出、DWG 经 ODA File Converter 或 LibreDWG 转换
  • 跨平台:Windows、macOS、Linux
  • 国际化:含完善的中文界面
  • 底层文件读写:由 libdxfrw 提供——LibreCAD 的 C++ DXF/DWG 读写库,承担 DXF 解析与 DWG 转换

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


安装

# macOS(Homebrew 只有 cask,没有 formula)
brew install --cask librecad

# Linux:发行版仓库
sudo apt install librecad

# Windows / 其它平台:官方下载页(含 AppImage / DMG / MSI)
# https://librecad.readthedocs.io/ 与 https://librecad.org/ 的下载入口

验证安装与命令行转换器:

librecad                                   # 启动 GUI
librecad dxf2pdf -h                        # 打印该子命令的完整开关

子命令集合随构建而变:master 分支 README 记录的是 librecad <command> [options] <input files> 一组转换器(dxf2pdf/dxf2png/dxf2svg/dxf2dwg 与 dwg2pdf/dwg2png/dwg2svg/dwg2dxf),其中 DWG 读写要求构建时启用 DWGSUPPORT。发出转换命令前一律先用 librecad <command> -h 确认当前安装包是否带该子命令。


界面与基本操作

区域 用途
顶部菜单 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 相对极坐标(长度<角度)

Read the full file on GitHub · 275 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. 19d ago Changed · +2 lines cdfc815c933d
  2. 21d ago Changed · -7 lines 5fb9a30d7c15
  3. 1mo ago Changed · +53 lines · +78 tokens per session 3a80453cb390
  4. 1mo ago Changed · +1 lines 66193a16b013
  5. 2mo ago Changed 7c90e799510b
  6. 2mo ago Changed 492090f7c8b5
  7. 2mo ago Changed 13d77657dcca
  8. 3mo 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 (87 stars, last pushed 20d ago), licensed MIT. It adds 131 tokens to every session and 3,925 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

librecad compared with skills from other repositories

librecad next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
librecadznlgis/opengis-skillsSkill8720d agoMITB131Claude Code, Codex
zoom-meeting-sdk-unrealanthropics/knowledge-work-pluginsSkill37ktodayApache-2.0A41Claude Code
cudnn-installNVIDIA/skillsSkill4.2ktodayApache-2.0A49Claude Code, Codex
ccclNVIDIA/skillsSkill4.2ktodayApache-2.0A206Claude Code, Codex
doca-argpNVIDIA/skillsSkill4.2ktodayApache-2.0A277Claude Code
cpu-kernelshuggingface/kernelsSkill796todayApache-2.0A89Claude Code
review-trtmc-prNVIDIA/TensorRT-Model-ConnectSkill305todayApache-2.0A105Codex