Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

word-comments-extractor文字评论提取器

Agent Skill

word-comments-extractor 用于整理文档、README、Markdown 和说明材料,适合在 OpenClaw 中需要把零散信息整理成结构清晰的文档时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,869

周安装

122

GitHub Stars

1

下载量

1,005
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:word-comments-extractor(文字评论提取器)
来源仓库:https://github.com/tomyan-zhang/word-comments-extractor
安装命令:
openclaw skills install word-comments-extractor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install word-comments-extractor

简介

从 Word 文档中提取审阅意见并格式化为标准化报告,支持页码定位与语义优化。

  • 适合法务、编辑或项目管理中快速汇总多方反馈意见形成统一修订清单。
  • 自动识别批注类型(如建议/问题/批准),并按章节归类输出可执行项。
  • 依赖本地 Word 组件运行,需确保系统已安装 Microsoft Office 或兼容渲染引擎。
  • 处理加密或受保护文档时可能受限,建议提前解除限制或转换格式后重试。

SKILL.md

name
word-comments-extractor
description
Extract comments from Word documents and format them into standardized review opinions. Auto-matches page numbers, agent-powered semantic polishing. Designed for investment banking QC, legal review, and document audit scenarios.
platforms
["win32"]
binaries
["Microsoft Word"]
install
steps
command
python -m pip install pywin32
note
Microsoft Word must be installed manually by the user. This skill requires Word COM interface for page number retrieval.

Word Comments Extractor

Overview

Extract comments from Word (.docx) documents and format them into standardized review opinions. The script handles data extraction (comment text, anchor text, page numbers) and outputs structured JSON. The agent then performs semantic polishing to produce professional, publication-ready review opinions.

Core capabilities:

  • Accurate page number matching via Word COM interface
  • Comment content semantically polished by the agent into professional review language
  • Description intelligently distilled from anchor text by the agent

Architecture

  • Python script (extract_comments.py): Handles all data extraction locally. Unpacks the .docx file (using Python's built-in zipfile), parses XML to extract comments and anchor text, retrieves page numbers via Word COM. Outputs JSON. No external dependencies beyond pywin32.
  • Agent: Performs semantic polishing on the extracted data (description distillation + comment rewriting). This uses the same agent that runs the skill — no additional external services or APIs are called. The polishing happens entirely within the agent's normal conversation flow, just like any skill that asks the agent to summarize or rewrite text.

Usage

Step 1: Run the extraction script

python extract_comments.py <docx_file_path>

The script takes a single argument — the path to the .docx file. It handles unpacking internally.

Output is a JSON array, each element containing:

  • index: Comment sequence number
  • page: Page number
  • comment_text: Original comment text
  • anchor_text: The document text that the comment is attached to

Step 2: Agent polishes and outputs

After receiving the JSON data, the agent processes each comment:

2.1 Distill description

Extract a concise, precise content description from the anchor text for the "regarding XX" part of the output.

Requirements:

  • Description must reflect the specific business content in the anchor text. Generic terms like "related matters" or "related situation" are not allowed.
  • If the anchor text involves specific financial metrics, product names, company names, or business types, these must appear in the description.
  • Length: 5-30 characters.

Examples:

  • Anchor text mentions "pressure sensor gross margin declining, average unit price trending down" -> Description: "pressure sensor gross margin and average unit price decline"
  • Anchor text mentions "issuer revenue and non-recurring net profit" -> Description: "comparability of issuer revenue and non-recurring net profit with industry peers"

2.2 Polish comment content

Core principle: Understand intent, rewrite professionally, never mechanically concatenate.

Rules:

1. Understand the commenter's true intent

  • "The reason for the price decline wasn't mentioned" -> Intent: "missing explanation" -> Rewrite: "Please supplement the specific reasons for the price decline"
  • "This generally needs to include the position before departure" -> Intent: "need to add position info" -> Rewrite: "Please supplement the specific position held before departure"

2. Combine with anchor text context

  • Never interpret a comment in isolation. If a comment says "this needs to be mentioned", look at the anchor text to understand what "this" refers to.
  • Key information from the anchor text (company names, product names, metrics, time periods) should be incorporated into the polished result.

3. Neither expand nor reduce

  • Preserve the comment's core requirement. Do not add suggestions the comment didn't mention.
  • Do not lose specific details. If the comment mentions "trial verification, partnership incubation period", keep these specific reasons.
  • If the comment is already specific (e.g., "change 'two fields' to 'mass production'"), keep or minimally adjust.

4. Professional language standards

  • Remove colloquial expressions and convert to formal written language.
  • Use standard review phrasing: please supplement, please verify, please clarify, please correct, recommend improving.
  • End with a period. Ensure complete expression.

5. Prohibited error patterns

  • Never embed raw comment text directly into a template (e.g., "please supplement XXX situation" where XXX is the unmodified comment).
  • Never trigger a fixed template from a single keyword match (e.g., seeing "peer" and outputting "verify whether this is a peer introduction").
  • Never output identical boilerplate for all comments.
  • Never ignore specific requirements in a comment to give generic advice.

2.3 Polishing examples

Original commentAnchor text contextCorrect polishing
The reason for the price decline wasn't mentionedSensor gross margin decline, unit price declinePlease supplement the specific reasons for the average unit price decline
The wording here isn't very clear, it's actually more about product mix or specific products, specific customers having a bigger impactOxygen sensor revenue fluctuationPlease clarify the core factors driving the fluctuation: product mix, specific product characteristics, and specific customer dynamics
Add numbering to subheadings, same belowOxygen sensor downstream domestic substitutionPlease add numbering; apply the same numbering format to all subsequent subheadings
The performance improvement compared to externally sourced chip modules needs to be mentioned hereMEMS pressure sensor costPlease supplement the specific performance improvements of the self-developed chip module compared to externally sourced modules
After reading, the comparison doesn't convey much information. Are there more in-depth capacity parameter comparisons?Capacity parameter comparison tableThe current comparison lacks depth. Please supplement with a more detailed cross-comparison of core capacity parameters
Typo?Text contains character errorPlease verify and correct the typo at this location
Be more precise, make it clear this is projectedGross margin related statementPlease ensure precise wording, explicitly stating the "projected" nature to avoid ambiguity

Output format

Each comment formatted as:

[number]. Page [X]: Regarding [description], [polished suggestion]

Overall structure:

[comment 1]
[comment 2]
...

Total: XX review opinions

================================================================================
[Page number note]
Page numbers correspond to physical pages in the document and may differ from
displayed page numbers (e.g., if the document has cover pages or table of contents
that are not numbered). If adjustment is needed, provide the offset between
physical and displayed page numbers for batch correction.
================================================================================

Output requirement: Only output the polished comment list + page number note. No additional summaries, category descriptions, or polishing explanations.

Requirements

  • Windows with Microsoft Word installed
  • Python dependency: pip install pywin32

Notes

  1. Page number retrieval requires Word COM interface — Microsoft Word must be installed.
  2. Output page numbers are physical page numbers (counting from page 1 of the document) and may differ from displayed page numbers.
  3. UTF-8 encoding is handled automatically on Windows.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.8%
按下载量换算722

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills