返回顶部
t

template-sds-generator模板SDS生成器

Generate a deterministic, template-preserving 16-section SDS/MSDS package from 1 DOCX template, 1 prompt/rule file, and 1-3 source SDS/MSDS files, with DOCX/PDF output plus structured JSON, provenance CSV, and review checklist artifacts.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.2.1
安全检测
已通过
222
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

template-sds-generator

技能名称: template-sds-generator

详细描述:
当用户需要一份可追溯的SDS/MSDS文件包,且必须保留所提供的Word模板时,使用此技能。

使用{baseDir}来指代此技能文件夹。

前置条件

  • - 在生产使用前,请将{baseDir}/config/fixedcompany.yml中的占位公司信息替换为所属公司已批准的供应商信息。
  • 运行环境需要Python 3.11+。
  • OCR为可选功能。如果预期会处理扫描版PDF,则主机或沙箱/容器运行环境中必须安装tesseract。
  • PDF导出功能要求运行环境中安装soffice或libreoffice。
  • 此软件包在运行时自动引导:Python启动器会在首次使用时在技能文件夹内创建.venv并安装requirements.lock。
  • ClawHub仅发布文本文件。当缺少备用基础模板assets/templates/sdsbase.docx时,会在首次使用时在本地生成该模板。

标准入口

优先使用捆绑的跨平台Python启动器,而非仅限Shell的包装器:

text
python3 {baseDir}/scripts/runopenclawskill.py --template-docx --prompt-file --sources [ ] --outdir --mode draft

Windows启动器变体:

text
py {baseDir}\scripts\runopenclawskill.py --template-docx --prompt-file --sources [ ] --outdir --mode draft
python {baseDir}\scripts\runopenclawskill.py --template-docx --prompt-file --sources [ ] --outdir --mode draft

工作流程

  1. 1. 如果运行环境看起来不完整,请运行:
python3 {baseDir}/scripts/runtime_doctor.py 在Windows上使用py或python。
  1. 2. 运行标准入口。启动器会创建或修复.venv,安装requirements.lock,并在assets/templates/sds_base.docx缺失时生成一个通用基础模板。
  2. 仅在预期处理扫描版PDF时使用--enable-ocr参数。如果没有可用的OCR后端,运行将明确失败。
  3. 从outputs/runs/.../final目录返回生成的文件。
  4. 当需要关注来源或审查细节时,检查outputs/runs/.../audit目录。

输出预期

主要交付物:

  • - final/sdsdocument.docx
  • final/sdsdocument.pdf(当PDF引擎可用时)
  • final/structureddata.json
  • final/fieldsourcemap.csv
  • final/reviewchecklist.md

审计输出可能还包括:

  • - audit/contentpolicyreport.json
  • audit/ocraudit.json
  • audit/fieldsourcemap.md
  • runmanifest.json

防护措施

  • - 保留所提供的模板布局。当用户提供客户模板时,请勿清空文档正文。
  • 不要编造安全关键值,如GHS分类、UN编号、包装组、闪点、LD50值或监管标识符。
  • 将structureddata.json、fieldsourcemap.csv和reviewchecklist.md视为与DOCX/PDF同等重要的一级交付物。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 template-sds-generator-1776182052 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 template-sds-generator-1776182052 技能

通过命令行安装

skillhub install template-sds-generator-1776182052

下载

⬇ 下载 template-sds-generator v0.2.1(免费)

文件大小: 126.15 KB | 发布时间: 2026-4-15 12:59

v0.2.1 最新 2026-4-15 12:59
Polish the public OpenClaw release for ClawHub text-only publishing and cross-platform runtime bootstrap.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部