lumen-redlining
它能做什么
这项技能说明 AI 应如何对合同提出小幅修改,并生成带有修订痕迹和批注的 Word 文档。适合希望标注清晰、便于审阅的律师和起草人员。
适用场景
- ✓你希望合同的建议修改在 Word 中以修订痕迹显示的时候。
- ✓某个条款只需小幅修改,而不必整体重写的时候。
- ✓你希望每处修改都附有一条批注,说明其所遵循的规则的时候。
技能链接
https://github.com/kortix-ai/suna/blob/dev/apps/white-label/lumen/agent-kit/skills/lumen-redlining/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请做一个最小的修改,将保密期限限制为三年,并以修订痕迹的形式显示。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会列出每处修改,包括要替换的确切文字和批注,然后生成一个 Word 文件,让每处改动都显示为修订删除和插入。完成前它会检查结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Redlining
Edits
- Change the fewest words that reach the position. Replace "seven (7) years" with "three (3) years", not the whole clause.
- Keep defined terms and the document's style: numbering, "shall", capitalisation, numbers written "three (3)".
- One edit per paragraph. If a paragraph needs two changes, make one edit that covers both.
- Every edit has a comment that names the rule: "Rule NDA-04: governing law must be England and Wales, New York or Delaware."
- To add a missing clause, edit the paragraph it belongs after:
fromis its last sentence,tois that sentence plus the new one.
The DOCX
cat > /tmp/edits.json <<'JSON'
[{"a": "p1.9", "from": "seven (7) years", "to": "three (3) years", "comment": "Rule NDA-01: max 3 years."}]
JSON
lumen redline --docx "<original .docx path>" --edits @/tmp/edits.json --out <batch_dir>/out/redline.docx
lumen redline verify --docx <batch_dir>/out/redline.docx # insertions, deletions, comments
The output shows each edit as a tracked deletion and insertion by "Lumen", with the comment. For a PDF or TXT source, pass --doc <doc_id> instead of --docx: Lumen redlines a converted copy and the lawyer sees that it is a copy.
missing in the output lists edits whose from text was not found. Fix from to the exact words and run it again.
Drafting from a template
- Fill
{{fields}}only frominput.jsonor a cited source document. - A field you cannot fill becomes
[[CONFIRM: field]]. Never invent a party, a date or an amount.
常见问题
它会改写整个条款吗?
不会。技能要求只改动达到目标立场所需的最少词语。
它能处理 PDF 文件吗?
能。对于 PDF 或文本文件,它会在转换后的副本上做修订,并告知阅读者这是副本。
如果某处修改与原文不匹配怎么办?
输出会将其列为缺失,AI 会修正确切的词语并重新运行该步骤。
详情
作者的原始描述
Minimal, tracked-change redlines and drafting style - how to propose an edit and how to produce the DOCX with `lumen redline`.
repo: kortix-ai/suna
热度
- GitHub 星标
- 20k
- 排名
- #10385
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
claude-code
20k帮你的智能体把编写代码、审查或规划任务交给 Anthropic 的 Claude Code CLI,并保存结果以便检查。
codex-cli
20k帮你的智能体把编写代码或审查任务交给 OpenAI 的 Codex CLI,并取回结果,让第二个模型检查工作。
commit-dis
20k帮你的智能体把本次对话中的修改保存为当前 Git 分支上的一次提交,不推送,也不创建新分支。
composio
20k帮你的智能体使用 Composio 连接 Gmail、Slack、GitHub 和 Notion 等应用,服务于你自己的智能体或你开发的产品。