template-sds-generator

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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "template-sds-generator" with this command: npx skills add yjli-new/template-sds-generator

Use this skill when the user wants a traceable SDS/MSDS package that must preserve a supplied Word template.

Use {baseDir} to refer to this skill folder.

Preconditions

  • Before production use, replace the placeholder company block in {baseDir}/config/fixed_company.yml with the owning company's approved supplier information.
  • The runtime needs Python 3.11+.
  • OCR is optional. If scanned PDFs are expected, tesseract must be available on the host or in the sandbox/container runtime.
  • PDF export requires soffice or libreoffice on the execution runtime.
  • This package is self-bootstrapping at runtime: the Python launcher creates .venv and installs requirements.lock inside the skill folder on first use.
  • ClawHub publishes text files only. The fallback base template assets/templates/sds_base.docx is generated locally on first use when it is missing.

Canonical entrypoint

Prefer the bundled cross-platform Python launcher instead of shell-only wrappers:

python3 {baseDir}/scripts/run_openclaw_skill.py --template-docx <template.docx> --prompt-file <rules.txt> --sources <source1> [<source2> <source3>] --outdir <target> --mode draft

Windows launcher variants:

py {baseDir}\scripts\run_openclaw_skill.py --template-docx <template.docx> --prompt-file <rules.txt> --sources <source1> [<source2> <source3>] --outdir <target> --mode draft
python {baseDir}\scripts\run_openclaw_skill.py --template-docx <template.docx> --prompt-file <rules.txt> --sources <source1> [<source2> <source3>] --outdir <target> --mode draft

Workflow

  1. If the runtime looks incomplete, run: python3 {baseDir}/scripts/runtime_doctor.py On Windows use py or python.
  2. Run the canonical entrypoint. The launcher creates or repairs .venv, installs requirements.lock, and generates a generic base template if assets/templates/sds_base.docx is missing.
  3. Use --enable-ocr only when scanned PDFs are expected. If no OCR backend is available, the run fails clearly.
  4. Return the generated files from outputs/runs/.../final.
  5. When provenance or review details matter, inspect outputs/runs/.../audit.

Output expectations

Primary deliverables:

  • final/sds_document.docx
  • final/sds_document.pdf when a PDF engine is available
  • final/structured_data.json
  • final/field_source_map.csv
  • final/review_checklist.md

Audit outputs may also include:

  • audit/content_policy_report.json
  • audit/ocr_audit.json
  • audit/field_source_map.md
  • run_manifest.json

Guardrails

  • Preserve the supplied template layout. Do not clear the document body when the user provides a client template.
  • Do not invent safety-critical values such as GHS classifications, UN numbers, packing groups, flash points, LD50 values, or regulatory identifiers.
  • Treat structured_data.json, field_source_map.csv, and review_checklist.md as first-class deliverables alongside the DOCX/PDF.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Office Toolkit

A comprehensive toolkit for Microsoft Office documents (Word, Excel, PowerPoint) and PDF files. Supports reading, writing, format conversion, and batch proce...

Registry SourceRecently Updated
2750Profile unavailable
General

File to Markdown Converter

Convert documents, spreadsheets, images, and structured files into clean, structured Markdown optimized for AI processing without authentication.

Registry SourceRecently Updated
6800Profile unavailable
General

claw-text-and-pics

Extract text and embedded images from scanned documents, PDFs, and photos via Mistral OCR API. Use when reading receipts, invoices, contracts, handwritten no...

Registry SourceRecently Updated
1000Profile unavailable
Automation

PDFExtract Pull Text from PDFs

Extract clean readable text from PDF files into agent-ready markdown. Multi-page, tables, headers. No external services.

Registry SourceRecently Updated
3650Profile unavailable