docx_validate

Validate DOCX file ZIP structure and required XML components.

541|171|Updated May 3, 2018
One-click install
npx skills add https://github.com/cas-bigdatalab/piflow --skill docx-validate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docx_validate
Source: https://github.com/cas-bigdatalab/piflow/tree/main/workspace/skills/docx_validate
Command: npx skills add https://github.com/cas-bigdatalab/piflow --skill docx-validate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures that DOCX files meet the necessary format standards, helping to maintain document integrity and usability.

Core Features & Use Cases

  • DOCX Format Verification: Checks if the DOCX file is a valid ZIP archive with all required components.
  • Required File Check: Validates that essential files such as "[Content_Types].xml", "_rels/.rels", and "word/document.xml" are present.
  • Output Result: Provides a JSON file detailing the validation result, including any warnings or errors.
  • Use Case: Before sending a DOCX file via email or archiving it, use this Skill to ensure that it is not corrupted and will open properly on the recipient's end.

Quick Start

Validate the DOCX file 'document.docx' and output the result to 'result.json'.

Frequently Asked Questions about docx_validate

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

FAQPage Schema
How do I check if a DOCX file is corrupted before sending it?

To verify DOCX file integrity, you validate its ZIP archive structure and check for required components like [Content_Types].xml, _rels/.rels, and word/document.xml. This process confirms the document is not corrupted and will maintain readability and compatibility before distribution or archiving.

What files are required inside a valid DOCX archive?

A valid DOCX archive requires core XML files including [Content_Types].xml, _rels/.rels, and word/document.xml. Verifying their presence within the ZIP structure ensures document consistency, readability, and compatibility across different platforms.

How does DOCX format verification work?

DOCX format verification works by checking the document's structure and content against known format standards. It validates the ZIP archive structure and ensures essential XML files are present, providing a JSON output detailing any warnings or errors found during the check.

Can I get a JSON report of DOCX validation errors?

Yes, you can get a JSON report of DOCX validation errors by running a format verification check on the file. The validation process outputs a JSON file that details the validation result, including specific warnings or errors regarding missing components or structural issues.

When do I need to validate DOCX file format integrity?

You need to validate DOCX file format integrity in situations where document consistency is crucial, such as before file distribution via email or long-term archiving. This verification ensures the file is not corrupted and will open properly on the recipient's end.