From content-creation
Reviews and annotates .docx documents/contracts, outputting annotated docx with comments or tracked changes. Analyzes contract risks, rights imbalances, vague wording, missing clauses; general docs for grammar, logic, formatting.
npx claudepluginhub lovstudio/skills --plugin content-creationThis skill uses the workspace's default tool permissions.
AI-powered document and contract review. Outputs annotated docx with comments
Adds structured comments to .docx contracts for four-layer reviews (entity verification, basic, business, legal) without altering original text. Generates summary, opinion, and Mermaid flowchart in detected contract language.
合同起草与审查助手。基于分层分析与四步流程,输出可执行的风险清单、起草骨架、修改建议、推荐措辞和审查意见书,支持批注与修订两种文档处理方式。用户通过飞书或其他 IM 对话发送合同文件并要求审查或起草时,也应使用本 skill,并优先沿原会话回传修订版和审查报告。
Reviews legal documents including contracts, ToS, privacy policies, NDAs, and corporate docs section-by-section. Identifies risks, gaps, unfavorable terms, and provides replacement text.
Share bugs, ideas, or general feedback.
AI-powered document and contract review. Outputs annotated docx with comments and/or tracked changes.
审阅文档或合同,AI 进行审查分析,将审查意见以批注(comment)或修订模式 (track changes)写回文档,输出带批注的 docx。
Extract paragraph text and indices / 用脚本提取段落文本和索引:
python3 lovstudio-review-doc/scripts/annotate_docx.py extract --input <path.docx>
Outputs JSON array, each item has index (paragraph number) and text.
Includes text inside tracked changes (<w:ins>) — e.g. counterparty revisions
visible in Track Changes mode.
输出 JSON 数组,每项含 index(段落序号)和 text(含修订追踪内容)。
Important: If the document has tracked changes (e.g. Schedule A added via Track Changes), these paragraphs are now included in extraction. Always review the full extracted output before generating annotations. 如果文档包含修订追踪内容(如对方以 Track Changes 添加的附件),这些段落 现已包含在提取结果中。
IMPORTANT: Use AskUserQuestion BEFORE generating annotations.
Review mode / 审阅模式确认
━━━ Review type / 审阅类型 ━━━
a) Contract review — risk clauses, rights, vague wording, missing clauses
合同/协议审查 — 风险条款、权利义务、模糊表述、缺失条款
b) General document review — grammar, logic, formatting, completeness
通用文档审阅 — 语法、逻辑、格式、内容完整性
━━━ Annotation mode / 批注方式 ━━━
a) Comments only (default) — add comments alongside text, no changes
批注模式(默认) — 在原文旁加 comment,不改原文
b) Track changes — directly modify text, recipient can accept/reject
修订模式 — 用 track changes 直接改原文,对方可逐条接受/拒绝
c) Comments + track changes — comments for analysis, revisions for suggestions
批注 + 修订 — 批注写分析意见,修订写建议改法
━━━ Author name / 批注者署名 ━━━
Default "手工川", customizable
Review the extracted text. For contract review, focus on:
根据提取的文本进行审查。对于合同审查,重点关注:
生成 annotations JSON,格式:
{
"comments": [
{
"paragraph": 18,
"text": "【风险】Sourced Deal 认定...",
"author": "手工川"
}
],
"revisions": [
{
"paragraph": 12,
"old": "terminates automatically",
"new": "terminates automatically, provided that...",
"author": "手工川"
}
]
}
Annotation text format / 批注文本格式规范:
【风险/Risk】、【建议/Suggestion】、【缺失/Missing】、【模糊/Vague】、【注意/Note】将 JSON 写入临时文件,调用脚本:
python3 lovstudio-review-doc/scripts/annotate_docx.py annotate \
--input <原文.docx> \
--annotations <annotations.json> \
--output <输出路径.docx>
输出文件名规范:手工川-{原文件名}-审阅-{YYYY-MM-DD}-v0.1.docx
放在原文件同目录下。
python3 annotate_docx.py extract --input <path.docx>
python3 annotate_docx.py annotate --input <path.docx> --annotations <json> --output <path.docx>
| Subcommand | Argument | Description |
|---|---|---|
extract | --input | 输入 docx 路径 |
annotate | --input | 输入 docx 路径 |
annotate | --annotations | JSON 批注文件路径 |
annotate | --output | 输出 docx 路径 |
| Field | Required | Description |
|---|---|---|
paragraph | Yes | 0-based 段落索引 |
text | Yes | 批注内容 |
author | No | 批注者署名(默认 "Reviewer") |
start | No | 字符偏移起始位置(精确高亮) |
end | No | 字符偏移结束位置 |
| Field | Required | Description |
|---|---|---|
paragraph | Yes | 0-based 段落索引 |
old | Yes | 要替换的原文 |
new | Yes | 修改后的文本 |
author | No | 修订者署名 |
old text in revisions must match a single
<w:r> (run) in the paragraph. If the target text is split across multiple
runs (common with smart quotes, spell-check, or mixed formatting), the
revision will be skipped. Workaround: match a substring within one run, or
use a comment instead.
修订的 old 文本必须完整匹配段落中的单个 run。如果目标文本跨 run,修订会
被跳过。可改用批注替代。pip install python-docx --break-system-packages