major-hazard-safety-assessment

Major-hazard safety assessment tool: used to identify and classify major hazard sources of hazardous chemicals, analyze accident likelihood and consequence, calculate individual and societal risk and plot individual risk contours and societal F–N curves; built-in GB 18218-2018 Table 1/2 threshold quantities, classification method (R=α·Σβ·q/Q) and acceptable risk criteria; can automatically compute classifications and risks and generate a safety assessment report.

Installation

Review the source and dependencies with a prompt.

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 "major-hazard-safety-assessment" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b255102dc2fad94836a23d8410167da94851cf9bd87b6de1ee15464d9a46f455. Verify the upstream source and version against https://skillhub.cn/skills/user_8dd18822/major-hazard-safety-assessment before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Download permission for this version is unverified or restricted.

Source and setup

skillhub.cn

Setup guidance pending

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

Installation test pending

Major-hazard safety assessment tool: used to identify and classify major hazard sources of hazardous chemicals, analyze accident likelihood and consequence, calculate individual and societal risk and plot individual risk contours and societal F–N curves; built-in GB 18218-2018 Table 1/2 threshold quantities, classification method (R=α·Σβ·q/Q) and acceptable risk criteria; can automatically compute classifications and risks and generate a safety assessment report.

0 Downloads

Introduction source: third_party · user_8dd18822 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

A verified file list is not available on Skillπ yet.

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 重大危险源安全评估major-hazard-safety-assessment
description: 可实现对危险化学品重大危险源进行辨识、分级、事故可能性与危害程度分析、个人风险与社会风险计算(含个人风险等值线图、社会风险F-N曲线图绘制),并生成安全评估报告。内置 GB 18218-2018 表1/表2 临界量、分级方法(R=α·Σβ·q/Q)与可容许风险标准,可自动计算等级与风险并出图。触发词:重大危险源、危险化学品重大危险源、安全评估、辨识分级、个人风险、社会风险、QRA、外部安全防护距离、18218。

重大危险源安全评估 Skill

本 skill 依据《危险化学品重大危险源监督管理暂行规定》、《危险化学品重大危险源辨识》GB 18218-2018,辅助完成危险化学品重大危险源安全评估全流程,并产出符合规范的安全评估报告。

何时使用

用户在以下任一情形触发本 skill:

  • 需要判定某生产经营单位/单元是否构成重大危险源(辨识)。
  • 需要计算重大危险源级别(一级/二级/三级/四级)。
  • 需要进行事故发生的可能性及危害程度分析。
  • 需要计算个人风险、社会风险(定量风险评价 QRA),并绘制个人风险等值线图、社会风险 F-N 曲线图。
  • 需要编制或代拟《危险化学品重大危险源安全评估报告》。
  • 提到重大危险源外部安全防护距离、可容许风险标准。

关键依据(务必遵循)

  • 辨识与分级:GB 18218-2018、暂行规定附件1(分级方法)。
  • 可容许风险:暂行规定附件2、GB 36894-2018、GB/T 37243-2019(外部安全防护距离)。
  • 评估程序与报告:发布者(安全理论公众号)预设置工作流,可依照用户所在地有关地方标准确定评估程序。
  • 内置数据见 references/critical_values.md(表1 85项临界量、表2类别临界量、β/α系数、风险标准)。
  • 报告结构与问询清单见 references/report_structure.md。

工作流程

第0步:主动问询基础资料(必须)

用户提出评估需求后,不要直接假设数据。先按 references/report_structure.md 第三节"基础资料问询清单"主动、分模块问询,至少覆盖:

  • 生产经营单位基本情况(名称、地址、规模、安全管理机构)
  • 重大危险源地理位置及自然条件(经纬度、气象、地形、总平面)
  • 涉及的原辅材料、工艺、设备设施、装置(危化品名称/CAS/相态/设计最大量 q、设备一览、自控)
  • 重大危险源周边情况(500m/1000m 防护目标、人数、距离、方位)
  • 安全设施及安全措施(管理/技术/监控/应急、SIS、预案与演练)

用 AskUserQuestion 或分条提问收集;对辨识/分级/风险结论有影响的缺失项要明确提示。用户提供数据后进入计算。

第1步:重大危险源辨识

调用 scripts/calc.py:

  • 表1 化学品(有名称/CAS):python calc.py --identify '[{"name":"氯","q":12},...]'
  • 表1 未列明的化学品:由其危险类别取自 references/critical_values.md 表2 确定临界量 Q 后参与计算(在 JSON 中给出 "Q": <值>, "cat": "toxic_gas"/...)。
  • 判定 S=Σ(q/Q)≥1 即构成重大危险源;逐单元(生产单元/储存单元)分别计算。

第2步:重大危险源分级

调用 scripts/calc.py --grade:

  • python calc.py --grade '[{"name":"氯","q":12},...]' --pop <厂区外500m常住人口>
  • 公式 R=α·Σ(β·q/Q)。β 查 references/critical_values.md 第四节(毒性气体按常见毒性气体表、爆炸品2、易燃气体1.5、其他1);α 按厂外暴露人口取 0.5~2.0。
  • 定级:R≥100 一级;≥50 二级;≥10 三级;<10 四级。

第3步:事故可能性及危害程度

  • 定性/半定量:用 calc.risk_matrix(L, S)(脚本函数或 python calc.py --matrix 3,4)做风险矩阵(L 可能性1-5,S 后果1-5),输出风险等级与措施建议。
  • 定量:指导用户选用事故后果法、泄漏/火灾/爆炸/中毒模型、事故树(FTA)、QRA 等;需要时引入 scripts/risk_qra.py 计算。

第4步:个人风险与社会风险(QRA)

当需要计算个人/社会风险(尤其触发暂行规定第九条的量化情形)时:

  1. 收集情景参数(设备失效频率、源点、各危害半径及对应致死概率、人口网格)。
  2. 调用 scripts/risk_qra.py 计算并出图:
    • python risk_qra.py --scenarios scenarios.json --popgrid pop.json --personal personal.png --social social.png --mode both
    • 或直接 import:from risk_qra import individual_risk_grid, societal_fn, judge。
  3. 生成两张图:个人风险等值线图、社会风险 F-N 曲线图。
  4. 判定是否超过可容许标准:个人风险限值(毒性气体+易燃气体 3×10⁻⁷/年,其他 3×10⁻⁶/年);社会风险 F-N 不可容许线(3×10⁻⁴/N² 或 2×10⁻⁴/N²)。超限须提示采取降级措施。

运行环境:计算/绘图脚本依赖 numpy、matplotlib;Word 文档生成脚本 report_docx.py 依赖 python-docx。均已安装在隔离 Python 环境: C:\Users\Admin\.workbuddy\binaries\python\envs\default\Scripts\python.exe scripts/xxx.py 若系统无中文字体,绘图自动回退英文标签(不影响数值);Word 中的中文字体名(宋体/黑体)由 Word 打开时按本机字体渲染。

第5步:编制评估报告(Word,排版符合技术报告要求)

最终交付为 Word(.docx) 格式,排版符合技术报告规范(A4 版式、宋体小四正文/1.5 倍行距/首行缩进、黑体分级标题、全边框表格、图/表自动编号、独立封面、自动目录域、页脚页码)。流程:

  1. 以 assets/sample_report.md 为模板,将辨识、分级、可能性/危害程度、个人/社会风险、周边情况、安全措施、结论与建议等填入,形成完整 Markdown 报告。章节严格对应 references/report_structure.md 第二节;风险图以 ![图题](相对路径.png) 嵌入,例如 ![个人风险等值线图](personal_risk.png)、![社会风险 F-N 曲线图](social_risk.png),脚本会按 images-dir 查找并居中嵌入、自动生成图题。
  2. 调用 scripts/report_docx.py 转换为 Word: python report_docx.py --md report.md --out report.docx --imgs-dir <图片所在目录>
    • 自动生成:封面页(取 # 标题 与 ## 封面 段键值列表)、目录域(Word 打开后右键"更新域"生成)、分级标题、带边框表格(表头加粗居中、数值列居中、表题"表X.N")、居中图片(图题"图X.N")、页脚"第X页/共Y页"。
    • 封面字段缺失时应在问询阶段要求补齐。
  3. 将 report.docx 与两张 PNG 风险图一并交付。

交付物

  • 辨识与分级计算表(文本/Markdown)
  • 风险矩阵与可能性/危害程度分析
  • 个人风险等值线图(PNG)、社会风险 F-N 曲线图(PNG)
  • 重大危险源安全评估报告(Word .docx,排版符合技术报告要求;Markdown 模板见 assets/sample_report.md,示例见 assets/重大危险源安全评估报告(示例).docx)

重要合规提示

  • 分级 β、α、R 阈值、可容许风险标准等必须与 references/critical_values.md 一致,不得擅自更改。
  • 表1 未列明化学品必须按表2 类别确定临界量;多种危险性取最低临界量。
  • 一级/二级重大危险源且涉毒性气体或爆炸品/液化易燃气体等触发第九条情形时,应提示委托有资质机构采用定量风险评价,本 skill 的计算结果可作为预评估/代拟依据,最终以有资质机构报告为准。
  • 报告中"结论"必须对个人/社会风险可接受程度给出明确结论。
  • 如遇问题,请查看微信公众号:安全理论。

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

  • 针对危险化学品重大危险源安全评估这一工业安全高频刚需场景,具备明确的法规依据和端到端交付能力
  • 内置 GB 18218-2018 标准数据与计算逻辑,显著提升企业合规效率
Trigger Precision95/100

Highlights

  • 触发词覆盖全面且边界清晰,能有效区分同类工具
  • description 位置正确且内容完整
Structure and Standards90/100

Areas to improve

  • 文档过长 Reported severity: Minor

    主文档约1800字,超出建议长度

    Recommendation: 建议精简非核心说明,保留关键流程与参数

Execution Reliability88/100

Highlights

  • 工具调用指令清晰,参数格式规范
  • 覆盖主要异常场景并提供回退机制
  • 依赖环境说明完整
Evidence Verifiability (mean of the first four)91/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

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

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