energy-performance-assessment
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 "energy-performance-assessment" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0c2961cbee071d12ccb7040f710d681189a9245ff9ec69c87d2da25d7e81a5bf. Verify the upstream source and version against https://skillhub.cn/skills/user_f8b54a7b/integrated-energy-performance-assessment 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
Generate an enterprise Energy System Performance Assessment table. When the user provides an energy performance spreadsheet (docx) or normalized energy data (JSON), compute total energy consumption, energy per unit product, energy per unit output value, and energy cost share, compare to baseline to calculate saved energy and saving rate, and produce results for compliance scoring and grade evaluation. Applicable to EnMS (GB/T 23331 / ISO 50001) annual audits, surveillance audits, energy reviews, and savings assessments.
Introduction source: third_party · user_f8b54a7b · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Not specified in the source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: energy-performance-assessment
description: >-
生成企业《能源体系绩效综合考核表》。当用户提供能源绩效统计表(docx)或规范化能源数据(JSON),
需要计算综合能耗、单位产品能耗、产值综合能耗、能源成本占比,并与同期基准对比计算节能量/节能率、
做达标评分与等级评定时使用。适用于能源管理体系(EnMS,GB/T 23331 / ISO 50001)年度审核、
监督审核、能源评审与节能考核场景。能源体系绩效综合考核表 Skill
将企业能源绩效数据,按 GB/T 2589 当量值口径折算,计算组织层与产品层能源绩效指标,与同期基准对比得出节能量/节能率,并依据权重与评分规则给出各维度得分与综合等级,最终生成一页式《能源体系绩效综合考核表》(Markdown)。
何时使用
- 用户提供《能源管理体系组织能源绩效统计表》docx,要求生成考核表或做同期对比。
- 用户要求"做能源绩效考核 / 能源评审 / 节能目标完成情况 / 单位产品能耗达标判定"。
- 用户给出能源用量、产量、产值、成本等原始数据,要求核算并评级。
- EnMS 外部审核(初次审核 / 监督审核 / 再认证)前的能源绩效数据整理与考核表生成。
核心方法学(务必遵循)
- 折标系数(当量值,默认):电 0.1229、新水 0.2571、柴油 1.4571、汽油 1.4714(kgce/单位)。权威值与扩展表见
references/折标系数表.md,缺失品种必须由用户补充,禁止臆造。 - 综合能耗 = Σ(能源用量 × 折标系数)。
- 单位产品综合能耗 = 该产品综合能耗 Ei ÷ 产品产量。
- 产值综合能耗 = 综合能耗 ÷ 工业总产值(万元)。
- 能源成本占比 = 能源成本 ÷ 总成本 × 100%。
- 同期对比(节能量/节能率)口径:评审期 vs 同统计期基准期(如 2025.1-9 vs 2024.1-9)。
- 产品节能量 = 基准期 Ei − 评审期 Ei;节能率 = 节能量 ÷ 基准期 Ei × 100%。
- 其余指标节能率 = (基准值 − 评审值) ÷ 基准值 × 100%。
- 节能率负值 = 未达标,必须填写原因(见
references/边界处理.md第 3 条)。
技术实现方案
架构概览
输入层 处理层 输出层
┌──────────┐ ┌──────────────────┐ ┌─────────────────┐
│ docx统计表 │───→│ parse_docx.py │ │ │
│ (python- │ │ 正则提取计算过程 │ │ build_report.py │
│ docx解析) │ │ + 表格元信息 │ │ Markdown考核表 │
└──────────┘ └──────┬───────────┘ └────────┬────────┘
│ │
┌──────────┐ ┌───────▼───────────┐ ┌───────▼────────┐
│ JSON数据 │───→│ calc_performance │───→│ assess.py │
│ (手工/ │ │ 折标/结构/产品/ │ │ 同期对比+评分 │
│ 交互采集) │ │ 组织指标计算 │ │ +等级判定 │
└──────────┘ └──────────────────┘ └────────────────┘
↑
┌────────┴────────┐
│ run_assessment │ ← 一键编排入口
│ .py (CLI) │
└─────────────────┘
脚本依赖关系
| 脚本 | 依赖 | 作用 | 第三方库 |
|---|---|---|---|
parse_docx.py |
python-docx | docx → 规范化 JSON | python-docx |
calc_performance.py |
标准库 | JSON → 绩效指标计算 | 无 |
assess.py |
标准库 | 同期对比 + 评分定级 | 无 |
build_report.py |
标准库 | 生成 Markdown 考核表 | 无 |
run_assessment.py |
上述四个 | 一键编排(自动选择路径) | python-docx(仅docx模式) |
数据流转
docx/docx → parse_docx.parse() → current_raw (dict)
↓
calc_performance.compute()
↓
current_results (dict)
↓
docx/json → parse_docx/JSON → baseline_slim (dict)
↓
assess.assess(current_results, baseline_slim, config)
↓
assessment (dict)
↓
reasons.json ──────────→ build_report.build_report(current_results, assessment, reasons)
↓
report.md (最终考核表)
docx 解析策略
源统计表 docx 包含两类信息源:
-
正文"计算过程"段落(结构化最清晰):按"1.各种能源消耗量""2.各种能源消耗占总能耗的比例""3.生产产品能耗量""4.万元产值综合能耗""5.能源成本占总成本比重""6.节能量、节能率"分节,用正则提取数值。
- 能源折算行格式:
电(KWh):1765439×0.1229=216972.45kgce - 产品能耗行格式:
短纤维耗电折标准煤:209049×0.1229=25692.12Kgce - 财务行格式:
总产值:35689.76万元
- 能源折算行格式:
-
表格元信息:企业名称、组织机构代码、地址、主要产品、主要工艺、审核阶段(☑勾选)、统计起止日期、能量利用效率、节能投入等。
解析失败时对应字段留空并写入 _warnings,由调用方决定回退手工录入。
评分算法
- lower-better 指标(能耗强度类):
improvement_rate = (基准 − 评审) ÷ 基准- 有目标值:
score = clamp(60 + 40 × (基准−评审)÷(基准−目标), 0, 100) - 无目标值:
score = clamp(60 + 40 × improvement_rate ÷ target_rate, 0, 100)(target_rate 默认 3%)
- 有目标值:
- higher-better 指标(利用效率类):公式符号反转,逻辑一致。
- 60 分 = 持平基准(及格线);达到目标改善率得满分;劣于基准线性扣分至 0。
- 产品维度:按各产品 Ei 占比加权聚合(高耗能产品权重更大)。
- 综合得分 = Σ(维度得分 × 维度权重),缺失维度权重自动重新归一。
工作流程
步骤 1:需求提取与澄清
- 用
prompt.md的「需求提取模板」从用户话语抽取结构化需求:统计期、对比基准期、产品清单、是否有目标值、输出格式、是否附未达标原因。 - 若关键字段缺失,用
prompt.md的「确认话术模板」生成澄清问题(一次不超过 4 个),确认后再继续。
步骤 2:确定输入形态并采集
按优先级选择输入方式:
- A. docx 统计表(最省事):
python scripts/parse_docx.py <统计表.docx> current.json解析为规范化 JSON。同期基准同理解析为 baseline.json。 - B. 规范化 JSON:用户直接给或按
references/能源绩效数据录入规范.md的 JSON Schema 填写。 - C. 交互式采集:按
references/统计表字段模板.md逐项询问后构造 JSON。 - 同期基准(baseline)可来自另一期 docx/JSON;缺失则只能做绝对绩效统计,跳过评分(见边界处理第 1 条)。
步骤 3:计算绩效指标
python scripts/calc_performance.py current.json 输出折标、综合能耗、结构占比、单位产品能耗、产值能耗、成本占比、利用效率。公式与口径见 references/指标定义与公式.md。
步骤 4:同期对比与考核评分
python scripts/assess.py current_results.json baseline.json [config.json] 输出各维度节能率、得分、等级与综合得分。评分规则(权重/目标值/等级阈值)见 references/考核评分规则.md,可用 config.json 覆盖默认权重与目标。
步骤 5:生成考核表
一键编排(推荐):
python scripts/run_assessment.py --current-docx 评审期.docx --baseline-docx 基准期.docx [--reasons reasons.json] --out report.md
或 JSON 模式:
python scripts/run_assessment.py --current current.json --baseline baseline.json [--config config.json] [--reasons reasons.json] --out report.md
输出格式遵循根目录 模板.md 的字段定义。未达标项 reasons.json 为 [{"dimension","reason","action"}] 列表。
步骤 6:边界与质检
- 对照
references/边界处理.md逐条检查(缺基准、缺系数、负/零值、口径不一致、未达标原因缺失等)。 - 报告须含:企业信息、能源折算、产品绩效、组织指标、同期对比考核、未达标原因、综合结论七部分。
脚本清单(均经真实数据调试)
| 脚本 | 功能 | 依赖 |
|---|---|---|
scripts/parse_docx.py |
解析能源绩效统计表 docx → 规范化 JSON | python-docx |
scripts/calc_performance.py |
指标计算引擎(折标/结构/产品/组织) | 标准库 |
scripts/assess.py |
同期对比 + 评分定级 | 标准库 |
scripts/build_report.py |
Markdown 考核表生成 | 标准库 |
scripts/run_assessment.py |
一键编排(自动选择 docx / JSON 路径) | 上述全部 |
参考资料
| 文件 | 内容 |
|---|---|
references/折标系数表.md |
标准煤折标系数(GB/T 2589-2020) |
references/指标定义与公式.md |
各指标定义、公式、口径与单位 |
references/考核评分规则.md |
评分维度、权重、目标值、等级阈值 |
references/能源绩效数据录入规范.md |
输入 JSON Schema 与字段说明 |
references/统计表字段模板.md |
文档/表单采集字段清单 |
references/边界处理.md |
边界场景与处置(12 条) |
references/样例输出.md |
完整考核表输出样例 |
案例
cases/ 下含 3 个案例:
- case1:双产品企业,评审期能耗上升(未达标场景)——演示负节能率处理与原因填写。
- case2:单一产品企业,通过技改实现能耗下降(优秀场景)——演示正向改善评分。
- case3:缺失基准期与异常值——演示边界处理(缺基准、缺系数、零产量)。
环境要求
- Python 3.8+
pip install python-docx(仅 docx 解析需要;计算/评分/报告生成均纯标准库)
输出格式
原生输出 Markdown(见 模板.md)。如需 docx,可将 Markdown 交给文档转换工具生成。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向企业能源管理体系(EnMS)的绩效评估与考核,解决明确的工业节能管理痛点
- 适用于 ISO 50001 审核、节能目标考核等高频刚需场景,具备高实用价值
Highlights
- description 在顶层 frontmatter 中完整,覆盖 docx/JSON 输入、同期对比、评分定级等核心功能
- 触发词清晰且边界明确
Highlights
- Phase/步骤清晰(6 步工作流),含端到端示例(run_assessment.py 命令)
- frontmatter 完整,单文件未超限
Highlights
- 工具来源明确(python-docx),参数正确
- 覆盖主要异常(缺基准、缺系数、负值等)
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.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 176
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.