lightningcad

lightningcad is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 45 tokens per session (2,677 once invoked), scanned A, original, MIT.

A commercial plugin for AutoCAD or ZWCAD that helps detail building exterior and roof panel systems. It focuses on arranging panels, drawing connection lines, preparing edge pieces and producing construction documents.

In plain words
What is it for?
Use it to arrange wall, roof and floor panels, define openings and roof slopes, create edge trims and connection lines, number panels, check drawings and export bills of materials.
Why use it?
Manual panel layouts and construction details can be repetitive and prone to clashes or missing quantities. The plugin organizes these tasks and includes drawing checks and material lists.

Skill for Claude CodeCodex

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

Good fit Use it to arrange wall, roof and floor panels, define openings and roof slopes, create edge trims and connection lines, number panels, check drawings and export bills of materials.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/lightningcad"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/lightningcad.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,677 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00045 $0.02677
Opus 5 $0.00023 $0.01339
Sonnet 5 $0.00009 $0.00535
Haiku 4.5 $0.00005 $0.00268

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

Security

Grade A, and why

lightningcad scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cad/lightningcad/SKILL.md · 230 lines

How it starts

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

产品定位: 商业软件(非开源),基于 AutoCAD 2019/2020 与 ZWCAD 2022+ 的建筑围护深化设计插件

上游文档: https://znlgis.github.io/cad/LightningCAD/

许可证: 专有商业软件(30 天试用授权,含 SM2 国密加密认证)

运行时: .NET Framework 4.8 | CAD 平台: AutoCAD R23.0/R23.1、ZWCAD 2022+

概述

LightningCAD 是一套面向装配式建筑围护结构深化设计的 CAD 插件系统,核心解决板材(墙板、屋面板、楼承板)的自动排布、节点线生成、收边下料、图纸校验与 BOM 输出等工程痛点。

七大核心模块:

模块 功能定位
板材排布(Panel Layout) 外墙/内墙/屋面/楼承板板材自动排布、合并、模数归并、碰撞检查、统计表导出
节点线(Node Lines) 基于规则映射的自动节点线生成、手动编辑、节点库管理
收边(Edge Trim / ShouBian) 块参照实体、均分/定尺分段、批量标注、BOM 导出
洞口与屋面(Openings & Roof) 矩形洞口、多边形洞口、屋面坡度定义
图纸校验与输出(Validation & Output) 8 项图纸检查 + 3 类出图检查 + 板文调整
CAD 工具包(CAD Kit) 命令导航、轴网、视口书签、属性面板、快捷键、备份
桌面客户端(Client) 注册登录、插件管理、自动更新、系统托盘

技术架构

技术栈

层面 技术选型
运行时 .NET Framework 4.8
语言 C#
UI WPF + MVVM(CommunityToolkit.Mvvm)
依赖注入 Microsoft.Extensions.DependencyInjection
日志 Serilog
错误监控 Sentry
HTTP Flurl(强类型 DTO)
加密 国密 SM2
UI 主题 Syncfusion Windows11
自动更新 AutoUpdater.NET(阿里云 OSS)
空间分析 NetTopologySuite(STR-Tree 空间索引)
表格控件 ReoGrid
安装包 WixSharp(MSI)

双平台构建

使用条件编译符号为 AutoCAD 和 ZWCAD 编译独立 DLL:

AC_2019/    → AutoCAD R23.0 (2019)
AC_2020/    → AutoCAD R23.1 (2020)
ZW_2022/    → ZWCAD 2022+

自定义 CAD 实体

实体类 用途
AecPanel 墙板/屋面板/楼承板
AecDivisionLineMgd 节点/分割线
AecRectOpeningMgd 矩形洞口
AecPolyOpeningMgd 多边形洞口
AecLayoutBoundaryMgd 排布边界

配置体系

JSON 配置文件存储在 .cfg/Configs/ 目录,支持方案级配置、团队共享与版本间迁移。


核心命令

初始化与板材排布

命令 功能
FsInitBuilding 初始化建筑实体
FsPanelLayout(外墙/内墙/屋面/楼承板) 板材排布
FsMergePanel 板材合并(锚点长度调整、洞口避让)
FsBatchModifyPanel 批量修改板材属性
FsExportPanelTable 导出统计表(DWG + Excel)

节点线

命令 功能
FsCreateNodeLine 创建节点线
FsEditNodeLine 编辑节点线
FsNodeLineLibrary 节点库浏览

收边

命令 功能
FsShouBianKuWeiHu 收边库维护
FsChaRuShouBianTiQuKuang 插入收边块参照
FsShouBianFenDuan 收边分段(均分/定尺)
FsPiLiangBiaoZhuShouBianXian 批量标注收边线
FsShouBianBomDaoExcel 导出收边 BOM

Read the full file on GitHub · 230 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. 8d ago Changed c7bc49b78e86
  2. 11d ago First seen · 230 lines · 45 tokens per session scan A 87347e6d7cfc

Subscribe to this mod's changes

lightningcad is a skill published in the GitHub repository znlgis/opengis-skills (60 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 2,677 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. 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

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

pascal-3d

Connect to Pascal and use its MCP tools to create, inspect, edit, validate, save, or hand off editable 3D building scenes. Use this skill whenever a user asks an agent to work in Pascal, make a room or building model, inspect a Pascal project, perform spatial edits, connect Pascal MCP, or return a verified Pascal…

pascalorg/editor · 92 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-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