← 返回 Skills 市场
yqrpaul

Home Design

作者 yqrpaul · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
169
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install home-design
功能描述
根据户型图生成装修设计方案、效果图及详细施工图纸(含水电路走线和材料清单),支持风格和空间优化建议。
使用说明 (SKILL.md)

Home Design - 房屋装修设计技能

核心功能

本技能帮助根据房屋户型生成完整的装修解决方案,包括:

  1. 户型分析 - 分析户型结构、采光、动线
  2. 布局优化 - 最大化空间利用率,优化功能分区
  3. 风格设计 - 根据用户需求匹配装修风格
  4. 效果图生成 - 输出 AI 生成的可视化装修效果
  5. 施工图纸 - 生成完整的水电走线图、点位图、材料清单 🆕

工作流程

1. 收集需求

在开始设计前,收集以下信息:

  • 户型图 - 原始平面图(图片/CAD 文件)
  • 房屋信息 - 面积、层高、朝向、房间数量
  • 居住需求 - 居住人数、年龄结构、生活习惯
  • 功能需求 - 需要的功能空间(书房、衣帽间、儿童房等)
  • 风格偏好 - 现代、北欧、中式、欧式等
  • 预算范围 - 影响材料选择和设计复杂度

2. 生成设计方案

使用 generate_design_outline.py 生成详细设计方案。

3. 生成效果图

使用 generate_room_prompts.py 生成 AI 绘画提示词,可在 LiblibAI 等在线工具生成效果图。

4. 生成施工图纸 🆕

使用 generate_construction_docs.py 生成完整的施工图纸套装,包括水电走线图。


使用脚本

户型分析

python scripts/analyze_floor_plan.py \
  --area "180㎡" \
  --layout "4 室 2 厅 3 卫" \
  --orientation "南向" \
  --output analysis.md

生成设计大纲

python scripts/generate_design_outline.py \
  --area "180㎡" \
  --rooms "4 室 2 厅 3 卫" \
  --style "欧式豪华" \
  --residents "一家四口" \
  --requirements "书房" \
  --budget "60 万" \
  --output design.md

生成效果图提示词

python scripts/generate_room_prompts.py \
  --style "欧式豪华" \
  --living-room "22.5㎡" \
  --bedroom "20㎡" \
  --output prompts.md

生成施工图纸套装 🆕

python scripts/generate_construction_docs.py \
  --area "180㎡" \
  --layout "4 室 2 厅 3 卫" \
  --style "欧式豪华" \
  --output /tmp/construction

输出文件(5 个):

  1. 01_电路施工图纸.md - 开关、插座、照明、回路设计
  2. 02_水路施工图纸.md - 给水、排水、防水设计
  3. 03_开关插座点位图.md - 详细点位布置、统计
  4. 04_水电材料清单.json - 材料规格、数量、估算
  5. 05_施工说明汇总.md - 施工规范、验收标准

施工图纸内容

电路施工图纸

包含

  • ✅ 各空间开关配置表(位置、类型、高度、控制)
  • ✅ 各空间插座配置表(位置、类型、高度、数量、用途)
  • ✅ 弱电配置(网络、电视、电话)
  • ✅ 照明配置(灯具类型、功率、控制方式)
  • ✅ 回路设计(11 个回路详细设计)
  • ✅ 配电箱配置图
  • ✅ 施工规范(符合 GB50327、GB50303)

示例 - 客厅插座

位置 类型 高度 数量 用途
电视墙 五孔插座 300mm 4 电视、机顶盒、游戏机
电视墙 网络插座 300mm 2 网络、有线电视
沙发墙 五孔插座 300mm 2 手机充电、落地灯
沙发墙 USB 插座 300mm 2 手机充电
空调位 16A 插座 2000mm 1 柜机空调

水路施工图纸

包含

  • ✅ 给水点配置(位置、类型、管径、高度)
  • ✅ 排水点配置(位置、类型、管径、坡度)
  • ✅ 防水要求(地面、墙面、闭水试验)
  • ✅ 水路走向示意图
  • ✅ 材料清单(管材、配件、防水材料)
  • ✅ 施工规范(符合 GB50015、GB50242)

示例 - 卫生间水路

位置 类型 管径 高度
淋浴 冷热水 DN20 1000mm
浴室柜 冷热水 DN20 500mm
马桶 冷水 DN15 300mm
洗衣机 冷水 DN15 1300mm

开关插座点位图

包含

  • ✅ 开关统计(类型、数量、高度)
  • ✅ 插座统计(类型、数量、高度)
  • ✅ 各空间点位明细
  • ✅ 点位布置原则
  • ✅ 验收标准

统计示例(180㎡ 户型):

  • 开关:约 20 个
  • 插座:约 74 个
  • 回路:11 个

水电材料清单

电气材料

  • 电线:BV 2.5/4/6mm²(约 650m)
  • 线管:PVC Φ16/Φ20(约 350m)
  • 开关插座:约 94 个
  • 配电箱:20 位强电箱 + 空开漏保

水路材料

  • PPR 管:DN20/DN15(约 130m)
  • PVC 排水管:DN110/75/50/40(约 65m)
  • 防水材料:聚氨酯涂料 50kg

估算总价:约 4-5 万元


支持的装修风格

风格 特点 适合人群
现代简约 简洁明快、功能性强 年轻人、上班族
北欧风格 清新自然、温馨舒适 有小孩的家庭
新中式 传统与现代结合、典雅 中年人群、文化人士
欧式风格 浪漫典雅、豪华大气 追求品质、大户型
轻奢风格 精致优雅、高级感 追求品质的人
日式风格 极简自然、收纳强 小户型、简洁爱好者
美式风格 温馨舒适、实用 大家庭
工业风格 粗犷个性、时尚 年轻人、创意工作者

输出内容

标准交付物

  1. 户型分析报告 - 优劣势、动线、采光分析
  2. 设计大纲 - 详细设计方案
  3. 效果图提示词 - AI 绘画提示词(8 个房间)
  4. 施工图纸套装 🆕 - 5 个文件:
    • 电路施工图纸
    • 水路施工图纸
    • 开关插座点位图
    • 水电材料清单
    • 施工说明汇总

施工图纸特点

  • 符合国标 - GB50327、GB50303、GB50015
  • 点位详细 - 每个开关插座都有位置、高度、用途
  • 回路清晰 - 11 个回路独立设计,安全合理
  • 材料准确 - 可直接用于采购
  • 验收明确 - 水压、电路测试标准齐全

注意事项

  1. 结构安全 - 承重墙不可拆除,改动需专业评估
  2. 水电安全 - 大功率电器单独回路,水路走顶便于检修
  3. 防水要求 - 卫生间、厨房防水必须到位,闭水试验 48 小时
  4. 环保材料 - 优先选择 E0/ENF 级环保材料
  5. 图纸保存 - 施工完成后保存水电图纸,便于日后维修

触发场景

以下用户请求应触发本技能:

  • "帮我设计一下房子装修"
  • "这个户型怎么布局比较好"
  • "生成装修效果图"
  • "需要施工图纸"
  • "水电怎么走线"
  • "开关插座怎么布置"
  • "如何最大化利用空间"
  • "装修风格推荐"
  • "装修预算规划"

版本

v2.0 - 完整版

  • ✅ 户型分析
  • ✅ 设计大纲生成
  • ✅ 效果图提示词生成
  • ✅ 🆕 完整施工图纸套装(水电走线图、点位图、材料清单)
安全使用建议
This package appears to do what it claims: generate design reports, image prompts, and施工(水电) drawings. Important things to consider before installing/using: 1) Privacy: if you use online image backends (DALL·E, Liblib) or upload images for ControlNet, prompts and images will be transmitted to those services — avoid sending sensitive data or floor plans you don't want shared. 2) Credentials: the tool expects API keys/config JSON for remote backends (not declared as required env vars), so store keys securely and pass them via local config files rather than embedding them in public places. 3) Verification: generated施工图 and electrical/water plans are algorithmic suggestions — always have a qualified professional verify site-specific structural, safety and code compliance before any demolition or electrical/plumbing work. 4) Local SD: if you run Stable Diffusion WebUI locally, be cautious of exposing the WebUI port to untrusted networks; run it only on localhost unless you understand and secure remote access. 5) If you need tighter control over data, use local SD (no external upload) or sanitize inputs before sending to external APIs.
功能分析
Type: OpenClaw Skill Name: home-design Version: 2.0.1 The home-design skill bundle is a legitimate toolset for interior design planning, including floor plan analysis, design outline generation, and AI-driven image rendering. The Python scripts (e.g., generate_effect.py and analyze_floor_plan.py) perform their stated functions using standard libraries and interact with well-known APIs (OpenAI, LiblibAI, and local Stable Diffusion instances) as documented. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
The name/description (home design, layout, effects,施工图) match the included scripts and docs: floor-plan analysis, design-outline, effect prompt generation, effect image generation, and construction/water-electric plan generation. The external API usage (SD WebUI, DALL·E, Liblib) and the Stable Diffusion installation guidance are coherent with the described '效果图生成' capability.
Instruction Scope
SKILL.md and scripts instruct the agent to run the shipped Python scripts with user-supplied inputs (area, layout, prompts, output path). The generate_effect.py script performs HTTP requests to local SD WebUI (127.0.0.1), to OpenAI's images endpoint, and to LiblibAI. This is expected for image generation, but it means user-provided prompts and any images uploaded for ControlNet could be sent to third-party services. The instructions do not ask the agent to read unrelated system files or secrets.
Install Mechanism
There is no automated install spec in the registry (instruction-only skill). The repo includes an INSTALL_SD.md describing how to install Stable Diffusion (cloning well-known GitHub repo AUTOMATIC1111), which is a normal, transparent manual install flow. The skill itself does not download or execute remote archives on install.
Credentials
The skill declares no required environment variables or credentials. However, generate_effect.py supports/needs API credentials if the user chooses remote backends (OpenAI API key for DALL·E or Liblib API key) via a JSON config file. The absence of declared required env vars is not inconsistent but users must provide credentials to use some features; those credentials would be used only for image backends and not required for core design/analysis scripts.
Persistence & Privilege
The skill does not request permanent platform presence (always: false). It does not modify other skills or system-wide agent settings. It reads/writes files only under provided output directories (e.g., /tmp or specified output path) and the skill folder; no elevated privileges are requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install home-design
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /home-design 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
户型图分析、效果图生成、施工图纸(含水电路走线图)
元数据
Slug home-design
版本 2.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Home Design 是什么?

根据户型图生成装修设计方案、效果图及详细施工图纸(含水电路走线和材料清单),支持风格和空间优化建议。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 169 次。

如何安装 Home Design?

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

Home Design 是免费的吗?

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

Home Design 支持哪些平台?

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

谁开发了 Home Design?

由 yqrpaul(@yqrpaul)开发并维护,当前版本 v2.0.1。

💬 留言讨论