飞书文档修订工具(高亮/下划线/批注)
/install feishu-doc-review
Feishu Doc Review(飞书文档修订)SKILL
三种操作
操作一:高亮文字
调用 feishu_doc(action: color_text),指定 block_id 和颜色。
支持颜色值(背景高亮):
yellow:黄色高亮(最醒目,推荐)green:绿色高亮blue:蓝色高亮red:红色高亮purple:紫色高亮grey:灰色高亮orange:橙色高亮
执行步骤:
- 用
feishu_doc(action:list_blocks)找到目标文字所在的 block_id - 用
feishu_doc(action:color_text)对该 block 设置背景色
操作二:下划线
调用 feishu_doc(action: update_block),在 text_element_style 中设置 underline: true。
执行步骤:
- 用
feishu_doc(action:get_block)获取目标 block 的当前内容结构 - 用
feishu_doc(action:update_block)修改样式,添加 underline
操作三:批注(评论)
调用飞书 Comment API,直接 POST 到文档评论接口。
API 路径:
POST https://open.feishu.cn/open-apis/drive/v1/files/{doc_token}/comments?file_type=docx
鉴权:
- 使用环境变量中的飞书 App 配置获取 tenant_access_token
- App ID:
cli_a92d5b4257391bcb - App Secret: 通过环境变量
FEISHU_APP_SECRET读取(或直接用已知值)
请求体结构:
{
"reply_list": {
"replies": [{
"content": {
"elements": [{
"type": "text_run",
"text_run": {
"text": "批注内容"
}
}]
}
}]
}
}
**执行脚本:**调用 scripts/add_comment.sh,传入 doc_token 和批注内容。
执行流程
用户说"帮我高亮XXX"时:
- 确认目标文档 URL(提取 doc_token)
list_blocks找到包含目标文字的 blockcolor_text设置高亮颜色(默认 yellow)- 报告完成
用户说"帮我加批注:XXX"时:
- 确认目标文档 URL(提取 doc_token)
- 调用
scripts/add_comment.sh {doc_token} "{批注内容}" - 报告批注 ID
用户说"帮我对XXX加下划线"时:
- 确认目标文档 URL
list_blocks+get_block定位目标 blockupdate_block修改 underline 样式- 报告完成
注意事项
- 批注是文档级别的,不锁定到特定段落(飞书 API 当前限制)
- 高亮和下划线操作针对整个 block,无法精确到 block 内的部分文字(飞书 API 限制)
- 操作前先确认 doc_token 正确
- 批注内容建议控制在 500 字以内
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install feishu-doc-review - After installation, invoke the skill by name or use
/feishu-doc-review - Provide required inputs per the skill's parameter spec and get structured output
What is 飞书文档修订工具(高亮/下划线/批注)?
飞书云文档修订工具。支持三种文档标注操作:高亮文字、添加下划线、插入批注(评论)。 **当以下情况时使用此 Skill**: (1) 需要对飞书文档中的文字添加高亮颜色 (2) 需要对飞书文档中的文字添加下划线 (3) 需要在飞书文档中插入批注/评论 (4) 用户说"帮我高亮这段"、"加个批注"、"给这个词加下划... It is an AI Agent Skill for Claude Code / OpenClaw, with 108 downloads so far.
How do I install 飞书文档修订工具(高亮/下划线/批注)?
Run "/install feishu-doc-review" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 飞书文档修订工具(高亮/下划线/批注) free?
Yes, 飞书文档修订工具(高亮/下划线/批注) is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 飞书文档修订工具(高亮/下划线/批注) support?
飞书文档修订工具(高亮/下划线/批注) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 飞书文档修订工具(高亮/下划线/批注)?
It is built and maintained by yipng05-max (@yipng05-max); the current version is v1.0.0.