office-shared

Pack and validate DOCX, PPTX, and XLSX documents using Python scripts.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/KILWA73/MiniSoc --skill office-shared
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: office-shared
Source: https://github.com/KILWA73/MiniSoc/tree/main/.agents/skills/office-shared
Command: npx skills add https://github.com/KILWA73/MiniSoc --skill office-shared

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve?

This skill provides shared infrastructure and utilities to handle DOCX, PPTX, and XLSX workflows, enabling consistent packing, unpacking, and references management across LibreOffice and OOXML environments.

Core Features & Use Cases

  • Shared utilities for converting and packaging Office documents from unpacked directories.
  • Integrates packing, unpacking, and validation scripts to ensure content, relationships, and [Content_Types].xml integrity.
  • Use case: Prepare a directory containing an Office document workspace (word/ppt/xl content) and generate a valid DOCX/PPTX/XLSX by running the provided scripts.

Quick Start

Pack an unpacked Office workspace into a final Office document using the pack.py tool bundled in this skill.

Frequently Asked Questions about office-shared

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pack an unpacked Office document directory into a valid DOCX or PPTX file?

You pack an unpacked Office document workspace by running the bundled pack.py script, which transforms directories containing word, ppt, or xl content into a valid DOCX, PPTX, or XLSX file. This ensures proper structure, relationships, and content types.

What does unpacking an OOXML document do for content transformation workflows?

Unpacking an OOXML document uses unpack.py to extract the internal package structure into an accessible directory. This exposes the underlying XML content, relationships, and parts, enabling you to transform or validate document contents before repacking.

Can I validate relationships and content types in LibreOffice and OpenXML pipelines?

Yes, you validate relationships and content types using the bundled validate.py script. It enforces document structure against OOXML standards, ensuring content integrity across both LibreOffice and OpenXML transformation pipelines.

Do I need lxml and defusedxml to manage Office document packages?

Yes, you need lxml and defusedxml installed to manage Office document packages. These dependencies provide the XML parsing and security layers required to safely process and enforce structure within OOXML content.

Why does my repacked XLSX file have broken content integrity?

Repacked XLSX files lose content integrity when the [Content_Types].xml or internal relationships are malformed. Running validate.py after packing enforces these structural rules, ensuring the final Office document remains valid across LibreOffice environments.