AI Agent Hub
Back to skills
Document Processing Toolkit icon

Document Processing Toolkit

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_5b9d6131/dxt-7035 according to https://skillhub.cn/install/skillhub.md.

About this skill

What it solves

When feeding office documents into LLM workflows, the friction is rarely the model but the files: mixed formats, oversized context, and Chinese text encoding. document-skills turns PDF, DOCX, XLSX, PPTX, HTML, CSV, JSON, and TXT files into inspectable text, and keeps a repeatable path for search, summarization, and comparison.

How it works

  • Text extraction: use scripts/extract_text.py; for large files, write output to disk with -o and read portions selectively.
  • Format conversion: scripts/convert_format.py supports PDF → txt/md, DOCX → txt/md/html, XLSX → csv/json/txt, PPTX → txt/md, HTML → txt, CSV → json/xlsx, JSON → csv, and TXT → pdf/docx.
  • Search and summarization: scripts/search_doc.py supports regex, case-insensitive matching with -i, and context lines with -C N; summarization typically extracts text first, then analyzes sections or page ranges.
  • Large-document strategy: PDF can be chunked with --pages, XLSX can be processed sheet by sheet with --sheet, and other files can be exported before partial reads.

Boundaries

This skill is best for preprocessing structured or semi-structured office files for agent pipelines, not OCR, layout reconstruction, or cross-format editing. For Chinese documents, try --encoding gbk or --encoding gb18030; if dependencies are missing or files are corrupted, resolve the library or file issue before expecting stable output.

Use Cases

  • Legal teams review DOCX/PDF contracts and locate clauses with regex context.
  • Data ops converts multiple XLSX files to CSV/JSON, then searches and summarizes fields.
  • Technical writers extract PPTX/HTML materials to Markdown for model summarization.
  • QA analysts compare two XLSX or PDF documents to spot cell and text changes.

Best For

  • Legal reviewers who need to locate key clauses in DOCX/PDF files and extract context.
  • Data operations staff who need to consolidate multiple XLSX files into CSV/JSON and inspect field changes.
  • Technical writers who need to convert PPTX/HTML to Markdown and summarize structure.
  • QA analysts who need to compare two documents or spreadsheets and list differences.