renovation-quantity-takeoff

Renovation quantity takeoff skill. Used when a user uploads renovation drawings (floor plans, elevations, construction drawings, MEP drawings, CAD screenshots, etc.) and needs quantity calculations, material usage statistics, or cost estimates. Applicable requests include “calculate quantities,” “produce bill of quantities,” “calculate material usage,” “calculate tile/floor/paint/cement quantities,” “calculate plumbing/electrical runs,” “calculate switches/outlets,” “new project,” “view history,” and “create new version.” Even when the user only mentions approximate needs like “how much material” or “my home is 100 m² with three bedrooms and a living room” or “no drawings,” this skill should be triggered.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "renovation-quantity-takeoff" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d19adf4255991b4d86978f5a2b6517caa290611469afa36d2179003cd1a7d27d. Verify the upstream source and version against https://skillhub.cn/skills/user_ad310a5d/re before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Renovation quantity takeoff skill. Used when a user uploads renovation drawings (floor plans, elevations, construction drawings, MEP drawings, CAD screenshots, etc.) and needs quantity calculations, material usage statistics, or cost estimates. Applicable requests include “calculate quantities,” “produce bill of quantities,” “calculate material usage,” “calculate tile/floor/paint/cement quantities,” “calculate plumbing/electrical runs,” “calculate switches/outlets,” “new project,” “view history,” and “create new version.” Even when the user only mentions approximate needs like “how much material” or “my home is 100 m² with three bedrooms and a living room” or “no drawings,” this skill should be triggered.

0 Downloads

Introduction source: third_party · user_ad310a5d · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: renovation-quantity-takeoff
description: >
  装修工程量自动算量技能。当用户上传装修图纸(平面图、立面图、施工图、水电图、CAD截图等)
  并希望进行工程量计算、材料用量统计、造价估算时,必须使用此技能。
  适用场景:「帮我算量」「出工程量清单」「算材料用量」「算瓷砖/地板/乳胶漆/水泥用量」
  「算水电管线」「算开关插座」「新建项目」「查看历史」「出新版本」等。
  即使用户只说「大概要多少料」「我家100㎡三室两厅」「没有图纸」也应触发。

装修工程量算量技能 v5

读取顺序

立即读取(开始算量前必须读):

  • references/params.md — 所有默认参数、包装规格、损耗率

按需读取(遇到对应情况才读):

  • references/mep-estimation.md — 无水电图时,读取经验估算系数
  • references/edge-cases.md — 遇到薄贴/预拌砂浆/图纸缺失/无图/模糊图纸/多张图纸等情况时读取

导出报告时:

  • Excel:python scripts/generate_excel.py example_input.json
  • PDF:python scripts/generate_pdf.py example_input.json
  • 两者接受相同 JSON,从头生成,不依赖 assets/ 中的模板文件

工作流程

Step 0:项目信息采集 & 图纸置信度评估(每次必做)

0-A 项目信息采集

在开始计算前,先向用户确认以下信息(未提供的项目用默认值并标注):

字段 说明 默认值
项目名称 如「张先生-朝阳三居室」 项目_[日期]
业主/委托方 可选 —
项目地址 可选,影响区域参数 —
版本号 本次算量的版本,如 v1.0 v1.0
算量日期 自动填当日 系统日期
备注 本次算量的特殊说明 —

若用户在对话中已提供上述信息(如「帮我建一个项目叫XX」),直接采用,无需重复询问。

0-B 输入模式判断

根据用户提供的内容,优先按以下顺序匹配输入模式,不同模式走不同路径:

模式 触发条件 精度 路径
A 精算模式 提供清晰平面图(尺寸可读) ★★★★★ → Step 1(正常流程)
B 估算模式 提供模糊图纸 / 仅有效果图 / 手绘草图 ★★★☆☆ → Step 0-C 置信度评估 → Step 1(标注估算项)
C 快速估算模式 无图纸,仅提供面积+户型(几室几厅几卫) ★★☆☆☆ → 读取 references/edge-cases.md 快速估算路径
D 纯文字模式 用户口述房间尺寸(如「客厅6m×4m」) ★★★★☆ → 按精算模式处理,来源标注「用户输入」

0-C 图纸置信度评估(B 模式专用)

对每张图纸逐项评估,必须在回复开头输出置信度表格,再进行计算:

📋 图纸置信度评估
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
评估项              状态        说明
────────────────────────────────────────
图纸类型识别        ✅ 已识别   平面图 + 局部水电图
尺寸链可读性        ⚠️ 部分可读  3/6 个房间标注清晰,厨房/次卧2尺寸模糊
轴线/净尺寸区分     ❌ 不可读   无法区分,使用默认墙厚推算
室内净高标注        ❌ 缺失     假设 2800mm
门洞尺寸标注        ⚠️ 部分可读  入户门+2室内门有标注,阳台门缺失
窗洞尺寸标注        ❌ 缺失     按经验默认值处理
水电点位            ✅ 已读取   局部水电图可读
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
综合置信度:★★★☆☆(中等)
⚠️ 建议复核:厨房、次卧2 的面积数据

置信度规则:

  • ✅ 已识别/可读:从图纸直接读取,数据可靠
  • ⚠️ 部分可读:部分数据读图,部分使用推算,结果标注「(推算)」
  • ❌ 不可读/缺失:使用默认值或经验系数,结果标注「(假设)」或「(经验估算)」

综合置信度低于 ★★☆☆☆ 时,必须在开始计算前提示用户:
「当前图纸清晰度较低,建议提供更清晰的平面图,或直接告诉我各房间尺寸,以提高算量精度。是否继续使用估算模式?」
等待用户确认后再继续。


Step 1:读取图纸,提取数据

识别图纸类型,提取以下数据(每个数据项注明置信度来源):

数据项 来源 说明
房间净尺寸 平面图尺寸链 注意轴线 vs 净尺寸,内墙厚约 120mm,外墙约 240mm
室内净高 图纸标注 无标注时假设 2800mm,须注明
门洞尺寸 MW=宽,MH=高
窗洞尺寸 CHD=顶距,CH=窗高,CLD=台高
水电点位 水电图 无图时见 references/mep-estimation.md

无图或图纸严重不可读:跳转至 references/edge-cases.md → 快速估算路径,用户提供面积+户型即可启动估算。


Step 2:分部分项计算工程量

地面工程

地砖/地板面积(㎡) = 净长 × 净宽
踢脚线(m)         = 房间周长 - Σ门洞宽
找平砂浆            → Step 3 换算
防水(卫/厨/阳台)  = 地面面积 + 墙面上翻 300mm 面积

墙面工程

刷漆/墙砖面积(㎡) = 周长 × 净高 - Σ门洞面积 - Σ窗洞面积
腻子                → Step 3 换算
乳胶漆              → Step 3 换算
墙砖粘结砂浆        → Step 3 换算

顶面工程

刷漆顶面(㎡)   = 房间净面积(刷漆区)
铝扣板(㎡)     = 覆盖面积(厨卫)
石膏板吊顶(㎡) = 造型区面积
石膏顶角线(m)  = 刷漆房间周长之和
腻子/乳胶漆      → Step 3 换算

门窗工程

门套(樘) = 室内门 + 入户门(按图数量)
窗套(处) = 按窗洞数量
垭口(个) = 无门扇的洞口

水电工程

读取 references/mep-estimation.md(无图时),或直接从水电图读取点位,然后:

强电:统计插座/开关/照明点 → 计算线管(m)、导线(m→卷)、底盒(个)
弱电:统计网络/电视点    → 计算线管(m)、网线/同轴电缆(m→卷)
给水:统计冷热水点       → 计算 PPR 管(m)、管件(个)、阀门(个)
排水:统计排水点/地漏    → 计算 PVC 管(m)、地漏(个)

Step 3:深化换算

所有深化换算(乳胶漆/腻子/砂浆/水电材料)由 scripts/calc.py 完成,参数来源为 references/params.md。
Claude 无需手动计算,直接将 Step 2 所得工程量组装为 JSON,交由脚本执行:

python scripts/generate_excel.py '<json>'

需要了解换算公式的推导依据、假设条件及复核方法,见 references/formulas.md。


Step 4:输出格式

每行必须包含:

序号 分项名称 数据来源 计算式 工程量 单位 采购量 深化换算 备注

数据来源列(新增):填写「读图」「用户输入」「推算」「经验估算」「假设值」之一,估算/假设类用斜体标注。

深化换算列(Excel 中用绿色底色)输出规则:

  • 乳胶漆:含损耗㎡ → XL → X桶(15L)
  • 腻子:Xkg → X包(10kg)
  • 砂浆自拌:Xm³ → 水泥X包(50kg) / 黄沙X包(30kg)
  • 砂浆成品:Xkg → X袋(40kg) ← 黄色底色区分
  • 导线:Xm → X卷(100m)

输出结构(五大分部):

一、地面工程  ← 地砖/地板、踢脚线、找平砂浆(自拌+成品)、防水
二、墙面工程  ← 刷漆区(腻子+乳胶漆)、墙砖区(砂浆)
三、顶面工程  ← 刷漆(腻子+乳胶漆)、铝扣板、石膏板、顶角线
四、门窗防水  ← 门套、窗套、防水面积
五、水电工程  ← 5.1强电 / 5.2弱电 / 5.3给水 / 5.4排水

Step 5:导出文件

同一份 JSON,Excel 和 PDF 均可独立生成,两者无依赖关系。

5-A 导出 Excel

python scripts/generate_excel.py data.json

Sheet 结构:

  1. 封面 — 项目元数据
  2. 计算参数 — 黄色底色,可编辑,其他 sheet 全部公式引用
  3. 工程量清单 — 五大分部,绿色列=深化换算(全公式)
  4. 水电点位统计 — 按房间逐项
  5. 材料采购汇总 — 含自拌/成品砂浆对比列

5-B 导出 PDF(使用相同 JSON,独立生成)

python scripts/generate_pdf.py example_input.json

PDF 页面结构:封面 → 算量汇总卡 → 房间概览 → 地面/涂料/墙砖/水电分部明细 → 材料采购汇总

用户需要发给业主或工长留档时,输出 PDF;需要自行调整参数或做进一步分析时,输出 Excel。 两个命令使用完全相同的 JSON 输入,无需重复整理数据。


Step 6:项目元数据 & 版本管理输出

每次完成算量后,必须在对话末尾输出以下项目卡片,并将其写入 Excel 封面 Sheet 和项目日志 Sheet:

项目卡片(对话输出格式)

╔══════════════════════════════════════════════╗
║  📁 项目:张先生-朝阳三居室                    ║
║  👤 委托方:张先生                             ║
║  📍 地址:北京市朝阳区XX小区                   ║
╠══════════════════════════════════════════════╣
║  🗂  版本:v1.0                               ║
║  📅 算量日期:2026-02-26                      ║
║  📐 输入模式:B 估算模式(图纸部分可读)         ║
║  ⭐ 综合置信度:★★★☆☆                       ║
╠══════════════════════════════════════════════╣
║  📊 本次算量摘要                               ║
║     建筑面积:约 89㎡                          ║
║     套内净面积:约 74㎡                         ║
║     分部数量:五大分部 / 共 42 项               ║
╠══════════════════════════════════════════════╣
║  ⚠️  需复核项(3处)                           ║
║     · 厨房净尺寸(推算,建议现场核量)            ║
║     · 次卧2窗洞(使用默认值900×1400mm)         ║
║     · 水电点位(经验估算,无图)                 ║
╠══════════════════════════════════════════════╣
║  💾 如需保存本项目,请告诉我项目名称,            ║
║     下次对话时说「继续XX项目」可调取本版本。      ║
╚══════════════════════════════════════════════╝

Excel 项目日志 Sheet(版本历史)

版本 算量日期 输入模式 置信度 变更说明 主要变化摘要
v1.0 2026-02-26 B 估算模式 ★★★☆☆ 初版 首次算量
v1.1 2026-03-01 A 精算模式 ★★★★★ 用户补图后精算 厨房面积修正 +2.3㎡,乳胶漆+1桶

版本号规则:

  • 首次出图:v1.0
  • 同一项目修改参数/补充信息:v1.x(小版本)
  • 重新上传新图纸/重大范围变更:v2.0(大版本)
  • 用户可随时说「出 v2.0」或「在 v1.1 基础上修改」来指定版本

强制规则(每次必须遵守)

  1. 先读 references/params.md,再开始任何计算
  2. Step 0 必须执行:采集项目信息、判断输入模式、输出置信度评估(B 模式)
  3. 展示完整计算过程,不能只给结果
  4. 分房间逐项列出,汇总行另起
  5. 所有包装换算用 CEILING 向上取整
  6. 自拌砂浆与成品砂浆并列输出,不替代
  7. 无水电图时,每个估算项目标注「经验估算」
  8. 所有假设(净高、墙厚、工艺)在报告末尾汇总列出
  9. 每行结果必须标注数据来源:读图 / 用户输入 / 推算 / 经验估算 / 假设值
  10. Step 6 必须执行:每次算完输出项目卡片,写入 Excel 封面和日志 Sheet
  11. 置信度低于 ★★☆☆☆ 时,必须等用户确认后再继续
  12. 本算量仅供参考,建议由专业预算员/水电工长复核

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决装修工程量算量这一明确刚需场景,支持多种输入模式(精算/估算/快速估算)
  • 功能闭环完整,涵盖从图纸识别到材料采购清单输出的全流程
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包含常见用户表达如“算材料用量”“新建项目”“大概要多少料”等
  • 边界清晰,明确说明即使用户仅提供面积+户型也应触发
Structure and Standards94/100

Areas to improve

  • description内容过长 Reported severity: Minor

    frontmatter 中 description 字段内容过长,建议精简至核心触发场景

    Recommendation: 将详细触发说明移至 skill_body 内,frontmatter 保留简洁描述

Highlights

  • 工作流程分 Step 0~6 清晰划分,每步有明确出口条件和操作指引
  • 提供完整项目卡片输出格式和版本管理机制,结构规范
Execution Reliability93/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    skill_body 中提及 `references/formulas.md` 但未在传入文件中提供

    Recommendation: 补充 formulas.md 文件或移除相关引用说明

Highlights

  • 工具调用路径明确(scripts/generate_excel.py),参数来源清晰(references/params.md)
  • 低置信度场景强制用户确认,避免误操作,可靠性高
Evidence Verifiability (mean of the first four)94/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.