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.
npx skills add znlgis/opengis-skills --skill fy-layoutgit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote 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.
[](https://agentmods.dev/skills/znlgis/opengis-skills/fy-layout)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/fy-layout"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/fy-layout/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.
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/fy-layout"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/fy-layout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.06616 |
| Opus 5.5 | $0.00044 | $0.02646 |
| Sonnet 5.5 | $0.00022 | $0.01323 |
| Haiku 4.5 | $0.00011 | $0.00662 |
Grade A, and why
fy-layout 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 437 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/znlgis/FY_Layout
所属平台: 飞扬集成设计平台(LightCAD / LightBIM)
许可证: CC-BY-NC 4.0(README「授权协议」章,非商业使用)
包管理器: 无 NuGet 包——直接引用仓库内
Libs/下的飞扬平台 DLL + 主程序飞扬主程序/lightcad.EXE最新版本: 无 Release/Tag,以
master为准(最后提交 2026-01-27,见 commits,截至 2026-11);插件工程(QdLayout)与平台目标为net8.0-windows,引用平台 DLL 时保持同一 TFM,不要混用其它 .NET 版本的 SDK DLL配套教程: https://znlgis.github.io/cad/LightCAD/(飞扬平台 20 章)
概述
FY_Layout 是飞扬集成设计平台(LightCAD)的 场地布置二次开发插件示例,面向建筑工程设计行业,提供二维绘制与三维建模的完整插件示例源代码。该项目演示了如何基于飞扬平台 SDK 进行 C# 插件开发,涵盖元素定义、命令注册、2D/3D Action 编写及形状/实体 Provider 实现等核心流程。
项目包含两个核心模块:
| 模块 | 项目名 | 说明 |
|---|---|---|
| 插件主体 | QdLayout |
场布插件——元素类型定义、命令注册、UI 菜单、2D/3D Action 实现 |
| 形状提供者 | QdLayoutProvider |
元素的二维形状(Shape)和三维实体(Solid)生成逻辑 |
技术栈:
- 开发语言:C#
- 目标框架:.NET 8.0(net8.0-windows)
- 开发环境:Visual Studio 2022 社区版(17.5.5+)
- UI 框架:WinForms(示例插件为
net8.0-windows+ WinForms;平台本体 README 称 Avalonia / WinForms 双框架,Provider 工程为net8.0) - 图形引擎:SkiaSharp(2D)、ThreeJs4Net / OpenTK(3D)
- 数据格式:兼容 DWG/DXF
开发环境准备
前置条件
- Visual Studio 2022 社区版(17.5.5 以上)
- .NET 8.0 SDK
- 飞扬主程序(
飞扬主程序/lightcad.EXE,项目仓库内已包含)
克隆与编译
git clone https://github.com/znlgis/FY_Layout.git
cd FY_Layout
# 使用 VS2022 打开 LightBIM.sln
编译与验证
# 还原(工程引用的是 Libs/ 下的本地 DLL,不是 NuGet 包)
dotnet restore LightBIM.sln
# 编译,确认 QdLayout.dll 与 Provider 都产出
dotnet build LightBIM.sln -c Debug
验证顺序:启动 飞扬主程序/lightcad.EXE → 新建图纸 → 命令行输入 Fence(或别名 W)能画出围墙 → 切三维视图能看到实体。两者都成立才说明插件与 Provider 链路完整。
调试方式
飞扬最新组件和启动程序为 飞扬主程序/lightcad.EXE。编译后使用 VS2022 附加进程 的方式进行断点调试。
核心 API
项目结构
FY_Layout/
├── LightBIM.sln # 解决方案文件
├── Libs/ # 飞扬平台 SDK DLL(LightCAD.Core、LightCAD.Drawing 等)
├── 飞扬主程序/ # 飞扬主程序 lightcad.EXE
├── Build/ # 编译输出目录
├── QdLayout/ # 重点:插件主体项目
│ ├── QdLayout.csproj
│ ├── GlobalUsing.cs # 全局 using 声明
│ ├── LayoutPlugin.cs # 重点:插件入口(ILcPlugin 实现)
│ ├── LayoutCmds.cs # 重点:命令注册([CommandClass] / [CommandMethod])
│ ├── LayoutElementType.cs # 重点:场布元素类型定义
│ ├── LcCurveChangeLoop.cs # 曲线转换为闭合环工具类
│ ├── Barrier/ # 防护栏杆
│ ├── Berm/ # 出土道路
│ ├── Earthwork/ # 土方回填
│ ├── Equipment/ # 场布设备
│ ├── Fence/ # 围栏(围墙)
│ ├── FoundationPit/ # 基坑
│ ├── Ground/ # 硬化地面
│ ├── Harden/ # 路面硬化
│ ├── Lawn/ # 草坪
│ ├── OpenLine/ # 开门边线
│ ├── PlanBuild/ # 拟建建筑
│ ├── PlateHouse/ # 板房 / 板房楼栋
│ ├── PropertyLine/ # 用地红线
│ ├── Road/ # 城市道路 / 交叉路口
│ ├── Site/ # 场地
│ └── TemplateArrange/ # 模板排布方案
└── QdLayoutProvider/ # 重点:形状/实体提供者项目
├── QdLayoutProvider.csproj
├── GlobalUsing.cs
├── QdLayoutProviderRegist.cs # Provider 注册入口(IDllProviderImporter)
├── QdLayoutProviderUtils.cs # Provider 工具方法
├── QdBermProvider.cs # 出土道路 Shape/Solid
├── QdFoundationPitProvider.cs# 基坑 Shape/Solid
├── QdGroundProvider.cs # 硬化地面 Shape/Solid
├── QdEarthworkProvider.cs # 土方回填 Shape/Solid
├── QdHardenProvider.cs # 路面硬化 Shape/Solid
├── QdLawnProvider.cs # 草坪 Shape/Solid
├── QdFenceProvider.cs # 围栏 Shape/Solid
├── QdSiteProvider.cs # 场地 Shape
├── QdBarrierProvider.cs # 防护栏杆 Shape/Solid
└── QdIntersectionProvider.cs # 交叉路口 Shape/Solid
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 19d ago Changed 7587bbcd4f29
- 21d ago First seen · 437 lines · 110 tokens per session scan A 1a77d424dcbe
fy-layout is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 110 tokens to every session and 6,616 once invoked, about $0.0004 per session on Opus 5.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-11-10.
fy-layout compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fy-layoutznlgis/opengis-skills | Skill | 87 | 20d ago | MIT | A | 110 | Claude Code, Codex |
| os2-wpf-themeTripleZeroLabs/TripleZeroLabs.Os2 | Skill | 2 | 12d ago | MIT | A | 194 | Claude Code, Codex |
| avalonia-zafiro-desktopfindscripter/everything-skills | Skill | 12 | today | none | A | 135 | Claude Code |
| revit-api-codeUtopia5327/claude-plugin-for-revit-bim | Skill | 14 | 9mo ago | MIT | A | 166 | Claude Code |
| rhinocommon-geometrybcshih/rhino-dev-skills | Skill | 1 | 5mo ago | MIT | A | 151 | Claude Code |
| dotnet-winforms-basicswshaddix/dotnet-skills | Skill | 94 | 9mo ago | none | A | 31 | Claude Code |
| wpf-best-practicesjcurbelo/skills | Skill | 6 | 9mo ago | none | A | 57 | Claude Code, Codex |