smart-office-assistant

Parses various office documents and provides six core capabilities: intelligent summarization, information extraction, proofreading and correction, format conversion, document comparison, and version change explanation. This skill must be used when the user mentions document summary, typo checking, format conversion, document comparison, or version changes.

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 "smart-office-assistant" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fbd7fd5092f6f6b700e0c8e69b7b58cd86572bf360356f4f8ceab5d50df57647. Verify the upstream source and version against https://skillhub.cn/skills/user_cb943a8c/bg-12 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

Parses various office documents and provides six core capabilities: intelligent summarization, information extraction, proofreading and correction, format conversion, document comparison, and version change explanation. This skill must be used when the user mentions document summary, typo checking, format conversion, document comparison, or version changes.

0 Downloads

Introduction source: third_party · user_cb943a8c · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: smart-office-assistant
description: 解析多种办公文档,提供智能摘要、信息抽取、校对纠错、格式转换、文档对比、版本变更说明六大核心能力。当用户提到文档摘要、错别字检查、格式转换、文档对比、版本变更时必须使用此技能。
dependency:
  system:
    - pip3 install pdfplumber pypdf2 python-docx python-pptx openpyxl reportlab Pillow pycorrector pytesseract
    - apt-get install -y tesseract-ocr tesseract-ocr-chi-sim 2>/dev/null || echo "OCR可选依赖未安装,扫描件识别将不可用"

智能办公助理

任务目标

  • 本 Skill 用于: 办公文档全流程智能处理,覆盖阅读、校对、转换、对比、复盘全场景
  • 能力:
    • 长文档智能摘要自动提炼
    • 文档关键信息精准抽取
    • 全文智能校对纠错优化
    • PDF/Word/PPT/Excel格式智能转换
    • 多文档批量对比差异分析
    • 文档版本变更自动说明生成
  • 触发: 当用户提到文档摘要、信息提取、错别字校对、格式转换、文档对比、版本变更时

前置准备

  • 依赖说明: pdfplumber、pypdf2、python-docx、python-pptx、openpyxl、reportlab、Pillow、pycorrector、pytesseract
  • OCR支持: 需系统安装tesseract-ocr及中文语言包(可选,未安装时跳过扫描件识别)
  • 使用脚本前,先读取 references/usage-guide.md 了解参数详情和输出格式

操作步骤

功能一:长文档智能摘要提炼

  1. 调用 scripts/doc_parser.py 提取文档全文文本(超大文件使用 --pages 分批提取)
  2. 由智能体基于提取的文本内容,生成精简通顺的文档摘要
  3. 摘要需包含:核心主旨、关键观点、重要结论
  4. 适配报告、合同、方案、制度等各类文稿

功能二:文档关键信息精准抽取

  1. 调用 scripts/doc_parser.py 提取文档全文文本
  2. 由智能体基于提取的文本,识别并结构化输出:核心数据、时间节点、权责信息、执行要求、核心条款、决策内容、指标标准
  3. 以结构化清单形式呈现(Markdown表格或列表)
  4. 适配合同审核、项目报告、规章制度精读场景

功能三:全文智能校对纠错优化

  1. 调用 scripts/doc_parser.py 提取文档文本
  2. 调用 scripts/doc_proofread.py 执行错别字检测与纠错建议
  3. 由智能体对纠错结果进行润色和上下文优化,生成最终校对报告
  4. 校对报告需包含:错误位置、错误类型、修改建议、修改后文本
  5. 适合正式对外交付文档

功能四:PDF/Word/PPT/Excel格式智能转换

  1. 确认用户需要转换的源格式和目标格式
  2. 调用 scripts/doc_converter.py 执行格式转换
  3. 转换完成后由智能体检查输出文件,确认转换质量
  4. 提示用户可能丢失的排版细节,建议人工复核

功能五:多文档批量对比差异分析

  1. 调用 scripts/doc_parser.py 分别提取两份文档文本
  2. 调用 scripts/doc_comparator.py 执行文本对比,生成差异报告
  3. 由智能体解读差异结果,高亮核心差异点(新增内容、删减内容、修改段落、数据变动、条款调整)
  4. 生成结构化对比报告

功能六:文档版本变更自动说明生成

  1. 调用 scripts/doc_parser.py 分别提取新旧版本文档文本
  2. 调用 scripts/doc_comparator.py 执行文本对比
  3. 由智能体基于差异结果,生成标准化版本变更说明:
    • 修改位置(章节/段落/条款)
    • 修改内容(原文→新文)
    • 变更原因推断
    • 版本优化方向总结
  4. 方便团队复盘迭代、工作交接、项目归档

资源索引

脚本工具

  • scripts/doc_parser.py

    • 用途: 解析PDF/Word/PPT/Excel/TXT文档,提取全文文本内容,支持OCR识别扫描件
    • 触发时机: 当需要读取或提取文档内容时调用(所有功能的基础步骤)
    • 脚本使用说明: python3 ./scripts/doc_parser.py --input <文件路径> [--ocr] [--pages 1-5] [--output output.json]
  • scripts/doc_proofread.py

    • 用途: 全文智能校对,检测错别字、语法错误并给出纠错建议
    • 触发时机: 当用户需要校对文档时调用
    • 脚本使用说明: python3 ./scripts/doc_proofread.py --input <文件路径或文本> [--model kenlm|macbert] [--output result.json]
  • scripts/doc_converter.py

    • 用途: PDF/Word格式互转,保留基本排版和表格结构
    • 触发时机: 当用户需要格式转换时调用
    • 脚本使用说明: python3 ./scripts/doc_converter.py --input <文件路径> --format <docx|pdf> [--output 输出路径]
  • scripts/doc_comparator.py

    • 用途: 两份文档内容差异对比,生成JSON/HTML/文本格式差异报告
    • 触发时机: 当需要对比文档差异或生成版本变更说明时调用
    • 脚本使用说明: python3 ./scripts/doc_comparator.py --file1 <文件1> --file2 <文件2> [--format json|html|text] [--output diff.html]

参考文档

  • references/usage-guide.md
    • 内容: 各脚本详细使用说明、参数说明、输出格式说明、常见问题解答
    • 使用时机: 在使用任何脚本工具前读取,了解详细用法和注意事项

注意事项

  • 脚本调用规则:文档解析(doc_parser.py)是所有功能的基础步骤,务必先调用提取文本后再执行后续操作
  • 附件读取规则:使用脚本前,先读取 references/usage-guide.md 了解参数详情和输出格式
  • OCR使用:扫描件PDF需加 --ocr 参数,且依赖tesseract-ocr系统安装,未安装时仅提取可编辑文本
  • 格式转换限制:复杂排版(多栏、嵌套表格、艺术字、特殊字体)转换后可能部分丢失,建议人工复核
  • 校对纠错限制:pycorrector对专业术语、人名等可能误判,纠错建议需人工判断是否采纳
  • 大文件处理:超过100页的文档建议使用 --pages 参数分批处理,避免内存溢出
  • 旧格式支持:.doc/.ppt/.xls等旧格式请先转为.docx/.pptx/.xlsx后使用

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 覆盖办公文档全流程智能处理六大核心能力
  • 解决高频刚需场景,显著提升文档处理效率
Trigger Precision88/100

Highlights

  • 触发词精准覆盖文档处理核心场景
  • 边界清晰,变体覆盖合理
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,六大功能分步说明
  • 含出口条件和端到端示例,frontmatter完整
Execution Reliability75/100

Areas to improve

  • 缺少异常处理说明 Reported severity: Major

    未显式说明脚本执行失败、文件不存在等常见异常的处理机制

    Recommendation: 在注意事项或各功能步骤中补充异常处理说明,如文件不存在、脚本执行失败、依赖未安装等场景的应对方案

  • 缺少 When to Use/示例章节 Reported severity: Minor

    文档中未单独设立 When to Use 或详细示例章节

    Recommendation: 建议在操作步骤后增加 When to Use 章节,提供具体使用场景示例

Highlights

  • 工具来源明确,参数说明清晰
  • 覆盖主要异常场景(OCR、大文件、旧格式)
Evidence Verifiability (mean of the first four)86/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.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 6, 7

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.

Translation pending; see source documentation.

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