chinese-office-assistant

Chinese Office Assistant — Supports reading, extracting, summarizing, and comparing PDF, Word, Excel, PowerPoint, and WPS format documents, and provides Chinese document layout optimization and official-document templates. Use when uploading .pdf/.doc/.docx/.xls/.xlsx/.ppt/.pptx/.wps/.et/.dps files or requesting document summaries, key-point extraction, format conversion, or multi-document comparison.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "chinese-office-assistant" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-18c984750908c66a573fdeb253ef98b6d0b4ededeb44a8cfa4ac6615f13ec1d5. Verify the upstream source and version against https://skillhub.cn/skills/org-felwle60/chinese-office-assistant before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Chinese Office Assistant — Supports reading, extracting, summarizing, and comparing PDF, Word, Excel, PowerPoint, and WPS format documents, and provides Chinese document layout optimization and official-document templates. Use when uploading .pdf/.doc/.docx/.xls/.xlsx/.ppt/.pptx/.wps/.et/.dps files or requesting document summaries, key-point extraction, format conversion, or multi-document comparison.

0 Downloads

Introduction source: third_party · org-felwle60 · 1.1.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
python3 {skill_dir}/scripts/extract_office_text.py "/path/to/document.docx" --max-chars 30000 --json ```
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
python3 {skill_dir}/scripts/extract_office_text.py "/path/to/document.pdf" --page-limit 10 --json
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: chinese-office-assistant
description: |
  中文 Office 文档全能助手,支持 PDF、Word、Excel、PowerPoint 及 WPS 格式的读取、提取、总结、对比。
  针对中文文档排版优化,支持公文格式模板,适用于党政机关、企业常用文档处理。
  当用户上传 .pdf/.doc/.docx/.xls/.xlsx/.ppt/.pptx/.wps/.et/.dps 文件,或要求文档摘要、重点提取、格式转换、多文档对比时使用。
version: 1.1.0
displayName: 中文 Office 文档全能助手
slug: chinese-office-assistant
author: 岩罕哈
tags: [office, document, chinese, wps, pdf, word, excel, powerpoint, summary, extraction]
category: 办公效率
license: MIT

中文 Office 文档全能助手

一个专为中文用户设计的 Office 文档处理技能,支持主流办公格式的读取、提取、总结和对比。

支持格式

传统 Office 格式

  • PDF:文字层提取 + OCR 回退
  • Word:.docx、.doc
  • Excel:.xlsx、.xls
  • PowerPoint:.pptx、.ppt

WPS 格式(国内用户常用)

  • WPS 文字:.wps
  • WPS 表格:.et
  • WPS 演示:.dps

核心功能

1. 文档内容提取

  • 文本内容提取
  • 表格数据提取
  • 幻灯片内容提取
  • 批注和备注提取

2. 智能摘要生成

  • 一句话概览
  • 关键点提取(3-8 个)
  • 结构化信息提取(日期、金额、联系人等)

3. 公文格式支持

  • 党政机关公文模板
  • 企业常用公文格式
  • 标准公文要素识别

4. 多文档对比

  • 内容差异对比
  • 结构差异分析
  • 关键信息变更追踪

何时使用

当用户:

  • 上传办公文档(PDF/Word/Excel/PowerPoint/WPS)
  • 要求文档摘要或总结
  • 需要提取文档中的关键信息
  • 要求对比多份文档
  • 需要格式转换
  • 处理中文公文或正式文档

何时不适合

不适合:

  • 需要精确保留原始排版的场景
  • 复杂图表或图像的深度分析
  • 加密或密码保护的文档
  • 需要高级公式审计的电子表格

使用方法

基本用法

# 提取文档内容
python3 {skill_dir}/scripts/extract_office_text.py "/path/to/document.pdf" --json

# 提取 WPS 文档
python3 {skill_dir}/scripts/extract_office_text.py "/path/to/document.wps" --json

高级用法

# 限制提取页数
python3 {skill_dir}/scripts/extract_office_text.py "/path/to/document.pdf" --page-limit 10 --json

# 限制表格行数
python3 {skill_dir}/scripts/extract_office_text.py "/path/to/spreadsheet.xlsx" --row-limit 30 --json

# 限制输出长度
python3 {skill_dir}/scripts/extract_office_text.py "/path/to/document.docx" --max-chars 30000 --json

依赖检查

python3 {skill_dir}/scripts/check_deps.py

输出格式

默认输出 JSON 格式,包含以下字段:

{
  "type": "pdf",
  "page_count": 10,
  "extraction": "text",
  "text": "提取的文本内容...",
  "truncated": false
}

公文模板

技能内置常用公文模板,位于 templates/ 目录:

  • government_notice.md - 通知模板
  • government_report.md - 报告模板
  • enterprise_memo.md - 企业备忘录模板
  • meeting_minutes.md - 会议纪要模板

依赖要求

必需

  • Python 3.8+
  • Python 包:pypdf、python-docx、openpyxl、python-pptx

可选(增强功能)

  • poppler-utils - PDF 转图片
  • tesseract-ocr - OCR 引擎
  • tesseract-ocr-chi-sim - 中文 OCR 支持
  • libreoffice - 旧版格式转换
  • antiword、catdoc - 旧版 Word 支持

中文优化

1. 中文摘要算法

  • 基于中文分词的关键句提取
  • 中文标点符号智能处理
  • 中文文档结构识别

2. 公文要素识别

  • 发文机关识别
  • 文号识别
  • 主题词提取
  • 紧急程度判断

3. 排版优化

  • 中文段落智能分割
  • 中文表格对齐处理
  • 中文标点规范化

更新日志

v1.1.0 (2026-07-25)

  • 重大改进: 集成 jieba 中文分词,关键词提取准确率大幅提升
  • 重大改进: 所有 extract 函数添加异常处理,损坏文件不再崩溃
  • 代码优化: 消除 LibreOffice 转换重复代码(6 个函数合并为 1 个通用函数)
  • 代码优化: 添加完整的类型注解
  • 代码优化: 添加 logging 模块和进度提示
  • 代码优化: 评分算法常量化,便于调优
  • 测试重写: 使用 pytest 框架,22 个实际功能测试全部通过
  • 依赖更新: jieba 正式加入完整依赖

v1.0.0 (2026-07-25)

  • 初始版本发布
  • 支持主流 Office 格式
  • 支持 WPS 格式
  • 内置公文模板
  • 优化中文摘要算法

参考资料

  • references/capabilities.md - 能力边界说明
  • references/troubleshooting.md - 常见问题排查
  • references/wps-compatibility.md - WPS 格式兼容性说明
  • references/chinese-optimization.md - 中文优化说明

Current listing version

1.1.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 支持主流 Office 格式及 WPS 格式,覆盖党政机关和企业常用文档处理场景
  • 提供文档提取、摘要、对比等实用功能,针对中文文档排版优化
Trigger Precision85/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层 description 字段内容与 skill_body 内部重复,未充分利用顶层字段

    Recommendation: 建议将顶层 description 精简为摘要,详细内容放在 skill_body 内部

Highlights

  • 触发词覆盖全面,明确列出支持的格式和使用场景
Structure and Standards90/100

Areas to improve

  • 缺少When to Use独立章节 Reported severity: Minor

    虽然有'何时使用'相关内容,但未作为独立章节突出显示

    Recommendation: 建议将'何时使用'和'何时不适合'合并为独立章节,便于用户快速判断适用性

  • 文档过长 Reported severity: Minor

    文档内容较为详尽,可能影响用户快速获取关键信息

    Recommendation: 建议适当精简内容,或使用折叠/目录结构提升可读性

Highlights

  • 文档结构清晰,包含完整的功能说明、使用方法和依赖要求
  • 提供了具体的命令行示例和输出格式说明
Execution Reliability80/100

Areas to improve

  • 缺少不可逆操作确认机制说明 Reported severity: Minor

    文档中未明确说明对文档的修改操作是否有确认机制

    Recommendation: 建议在文档中补充说明对文档的修改操作是否有确认机制,提升用户信任度

Highlights

  • 提供了依赖检查脚本,便于用户验证环境
  • 列出了完整的依赖要求,包括必需和可选依赖
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.