← 返回 Skills 市场
wongeven

Gb Arch Cad Gen

作者 wongeven · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
51
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install gb-arch-cad-gen
功能描述
程序化生成符合中国建筑设计规范的 CAD 图纸(平面图)。 严格遵循 GB/T 50104-2010《建筑制图标准》、 GB/T 50001-2017《房屋建筑制图统一标准》、 GB 55038-2025《住宅项目规范》(强制性)等相关国标。 支持输出 SVG 和 PDF 格式,不依赖 AutoCAD。
使用说明 (SKILL.md)

中国规范 CAD 图纸生成器

能力边界

本 Skill 用于程序化生成符合中国建筑设计规范的 CAD 图纸,适用于:

  • 住宅建筑方案平面图
  • 建筑构件详图
  • 标准图框与标题栏自动生成
  • 图纸尺寸标注与定位轴线标注

不适用于:

  • 结构计算图纸(需结构工程师校核)
  • MEP(暖通/给排水/电气)专业系统图
  • 需要 PKPM/YJK 等专业软件计算的结构施工图

执行工作流

  1. 接收用户需求 → 解析建筑类型、面积、房间构成
  2. 规范校验 → 根据 GB 55038-2025 等强制规范校验设计参数
  3. 生成布局 → 程序化生成平面图布局数据结构
  4. 绘制图纸 → 调用 Maker.js/Photon 库绘制图形
  5. 尺寸标注 → 按 GB/T 50104 标准格式标注尺寸
  6. 叠加图框 → 添加符合 GB/T 50001 的图框和标题栏
  7. 输出文件 → 导出 SVG + PDF

遵循的规范标准

强制性规范(必须严格执行)

  • GB 55038-2025《住宅项目规范》:层高≥3.0m、卧室净高≥2.6m、≥4层设电梯
  • GB 50016-2014《建筑设计防火规范》:防火分区、疏散距离
  • GB 50763-2012《无障碍设计规范》:无障碍通道、坡道坡度

制图标准

  • GB/T 50104-2010《建筑制图标准》:图线、比例、图例、尺寸标注
  • GB/T 50001-2017《房屋建筑制图统一标准》:图纸幅面、标题栏、图层

参考规范

  • GB 50096-2011《住宅设计规范》:各功能空间面积下限
  • GB 50103-2010《总图制图标准》

关键规范参数速查

参数 规范要求 来源
住宅层高 ≥ 3.0m GB 55038-2025
卧室净高 ≥ 2.6m GB 55038-2025
局部净高 ≥ 2.2m GB 55038-2025
卧室使用面积(双人) ≥ 9㎡ GB 50096-2011
起居室使用面积 ≥ 10㎡ GB 50096-2011
厨房使用面积 ≥ 4.0㎡ GB 50096-2011
卫生间使用面积 ≥ 2.5㎡ GB 50096-2011
户门净宽 ≥ 0.90m GB 55038-2025
卧室门净宽 ≥ 0.80m GB 50096-2011
卫生间门净宽 ≥ 0.70m GB 55038-2025
走廊净宽 ≥ 1.20m GB 50096-2011
电梯设置门槛 ≥ 4层 GB 55038-2025
阳台栏杆高度 ≥ 1.10m GB 55038-2025

图纸幅面(GB/T 50001-2017)

幅面代号 尺寸 (mm) 适用场景
A0 841×1189 大型工程总图
A1 594×841 中型项目
A2 420×594 常规楼层平面
A3 297×420 详图/方案图
A4 210×297 节点详图

线型规定(GB/T 50104-2010)

  • 粗实线(bold) :被剖切的主要建筑构造(墙体等)——线宽 b
  • 中实线(medium) :可见轮廓线——线宽 0.5b
  • 细实线(thin) :尺寸线、引出线、填充线——线宽 0.25b
  • 粗虚线(bold-dash) :地下/被遮挡的主要构造
  • 细点划线(thin-dot-dash) :定位轴线、中心线
  • 线宽组:b = 2.0 / 1.4 / 1.0 / 0.7 / 0.5 mm

图层命名(GB/T 50001-2017 协同设计)

  • A-WALL — 墙体
  • A-DOOR — 门窗
  • A-DIMS — 尺寸标注
  • A-AXIS — 定位轴线
  • A-TEXT — 文字说明
  • A-TTLB — 图框标题栏
  • A-FURN — 家具布置

使用说明

典型请求示例

参数说明

用户可指定以下参数(未指定则使用默认值):

  • building_type:建筑类型(residential / office / school / commercial)
  • total_area:总面积(㎡)
  • rooms:房间列表(名称 + 面积)
  • paper_size:图纸幅面(A0~A4,默认 A3)
  • scale:比例(默认 1:100)
  • output_format:输出格式(svg / pdf / both,默认 both)

所需工具

  • file_write — 写入 SVG/PDF 文件
  • command_exec — 执行 Node.js 脚本

环境依赖

  • Node.js ≥ 18.x
  • npm 包:makerjs(程序化绘图)、pdfkit(PDF 生成)
  • 安装命令:npm install makerjs pdfkit

注意事项

  1. 本 Skill 生成的图纸为方案级图纸,不可直接用于施工。
  2. 所有尺寸标注单位为毫米(mm),符合国标规定。
  3. 图纸输出路径默认为 ./output/ 目录。
  4. 图纸数据以 JSON 格式结构化存储,方便二次处理。
安全使用建议
Install only if you treat its drawings as draft/reference output and independently verify code compliance with a qualified professional. Do not rely on the generated plans for permitting, construction, or safety decisions unless the publisher changes validation to fail closed on mandatory violations and updates the vulnerable/unpinned dependency.
能力评估
Purpose & Capability
The stated purpose is generating CAD drawings that strictly follow Chinese building standards, but the implementation only logs regulatory violations and continues producing output, which is mismatched with the compliance claims.
Instruction Scope
The skill discloses that drawings are scheme-level and not for construction, but its frontmatter and standards sections repeatedly frame compliance with mandatory standards as strict, creating ambiguity for users who rely on the output.
Install Mechanism
Installation is ordinary for a Node drawing tool, but it asks for npm packages and declares makerjs with a caret version range and no lockfile, reducing reproducibility.
Credentials
Requested file writing and Node command execution are proportionate to generating SVG/PDF CAD outputs, and no credential, broad file-reading, or unrelated network behavior was found in the artifacts.
Persistence & Privilege
No autostart, background persistence, privilege escalation, credential/session access, or hidden data flow was evident; runtime writes are limited to generated output files.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gb-arch-cad-gen
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gb-arch-cad-gen 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 首次发布:支持程序化生成符合中国建筑设计规范的 CAD 平面图。 - 遵循 GB/T 50104、GB/T 50001、GB 55038 等多项建筑制图与住宅规范。 - 支持输出 SVG 和 PDF 格式,完全独立于 AutoCAD。 - 涵盖图纸布局、标准图框、标题栏、尺寸标注、图层管理等关键环节。 - 可针对住宅平面、构件详图等需求定制参数化输出;详细规范与参数速查表一应俱全。
元数据
Slug gb-arch-cad-gen
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Gb Arch Cad Gen 是什么?

程序化生成符合中国建筑设计规范的 CAD 图纸(平面图)。 严格遵循 GB/T 50104-2010《建筑制图标准》、 GB/T 50001-2017《房屋建筑制图统一标准》、 GB 55038-2025《住宅项目规范》(强制性)等相关国标。 支持输出 SVG 和 PDF 格式,不依赖 AutoCAD。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 51 次。

如何安装 Gb Arch Cad Gen?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gb-arch-cad-gen」即可一键安装,无需额外配置。

Gb Arch Cad Gen 是免费的吗?

是的,Gb Arch Cad Gen 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Gb Arch Cad Gen 支持哪些平台?

Gb Arch Cad Gen 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Gb Arch Cad Gen?

由 wongeven(@wongeven)开发并维护,当前版本 v1.0.0。

💬 留言讨论