fy_layout

fy_layout is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 56 tokens per session (6,282 once invoked), scanned A, original, MIT.

An example C# plugin for LightCAD or LightBIM, design applications used for building and construction work. It demonstrates planning a construction site in both two-dimensional drawings and three-dimensional models, with support for DWG and DXF.

In plain words
What is it for?
Use it as a reference for modeling fences, lawns, foundation pits, roads and prefabricated buildings. It also demonstrates connecting 2D shapes and 3D solids to LightCAD commands and user-interface elements.
Why use it?
It shows how to extend the LightCAD platform with custom elements, commands, menus and geometry providers instead of building a separate design application. The example gives developers a starting structure for platform-based plugins.

Skill for Claude CodeCodex

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

Good fit Use it as a reference for modeling fences, lawns, foundation pits, roads and prefabricated buildings. It also demonstrates connecting 2D shapes and 3D solids to LightCAD commands and user-interface elements.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/fy_layout/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/fy_layout)
Your own site
<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.

agentmods 80×15 button for fy_layout

Your own site · 80×15
<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>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,282 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.00056 $0.06282
Opus 5.5 $0.00022 $0.02513
Sonnet 5.5 $0.00011 $0.01256
Haiku 4.5 $0.00006 $0.00628

Measured 12d ago against content hash 3406bcbc8cea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 12d 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.

cad/fy_layout/SKILL.md · 429 lines

How it starts

The opening of the file, as written. The whole thing — 429 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「授权协议」章,非商业使用)

版本: 仓库无公开 Release/Tag,以 master 为准(最后推送 2026-03-16);插件工程(QdLayout)与平台主仓 lightcad1 都是 net8.0-windows / net8.0 目标,引用平台 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
  • 图形引擎: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

调试方式

飞扬最新组件和启动程序为 飞扬主程序/lightcad.EXE。编译后使用 VS2022 附加进程 的方式进行断点调试。


项目结构

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

Read the full file on GitHub · 429 lines

Files

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.

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. 12d ago Changed 3406bcbc8cea
  2. 13d ago Changed · +43 lines 38cb887d0991
  3. 1mo ago Changed · -218 lines 4ef2e1a8a603
  4. 1mo ago First seen · 604 lines · 56 tokens per session scan A e460462cbfe8

Subscribe to this mod's changes

fy_layout is a skill published in the GitHub repository znlgis/opengis-skills (75 stars, last pushed 7d ago), licensed MIT. It adds 56 tokens to every session and 6,282 once invoked, about $0.0002 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-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-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