Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reads, creates, edits and media-handles Feishu Docx and Wiki documents, plus mind notes and whiteboards, via lark-cli.
22% 74%+52 ptsof test cases passed
Passed 17 of 23 test cases with the skill, and 5 of 23 without it.
This test ran on v5. v6 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
108 agent runs
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
用于查看 Docx 历史版本、按 history_version_id 回滚,以及查询回滚任务状态。
entries[].edit_time 是 RFC3339 时间字符串(例如 2026-06-22T12:24:45Z)。按时间匹配时先将其解析为时间值,再比较先后关系或时间差。
overwrite 会重建正文和 block ID,且无法保证保留评论等非正文对象。用户要求保留这些对象时,应先说明限制并确认。overwrite 返回 warning 或 partial_success 时,先核验最新内容。核验失败或发生 revision conflict 时停止,不要再次覆盖。+history-list 定位目标记录。需要更多候选时,根据 has_more 和 page_token 翻页。
revision_id:逐页筛选相同 revision_id 的记录。未命中时必须继续翻页至 has_more=false 才可进入 fallback;命中位于页尾时,继续读取下一页以收集相邻的同 revision_id 候选。多条记录时结合 edit_time 选择;无法区分时请用户确认。history_version_id 调用 +history-revert。不要将 revision_id 传给回滚接口。返回 running 时使用 +history-revert-status 查询;只有 done 表示成功,其他终态均停止并报告。revision_id 时,可读取目标版本并恢复正文:
docs +fetch --doc "<doc>" --revision-id <revision_id> --scope full --detail full --format json 读取目标版本。确认文档一致、返回的 revision_id 与目标一致,且 content 不是 <fragment>。docs +fetch --doc "<doc>" --scope full --detail full --format json 读取当前完整文档,其 content 同样不得是 <fragment>。目标与当前响应的 revision_id 相同时直接结束,不执行 overwrite。否则移除目标 content 中旧的 block ID,将正文写入任务目录下的相对路径,然后仅执行一次 docs +update --doc "<doc>" --command overwrite --revision-id <current_revision_id> --content @target.xml,其中 current_revision_id 来自当前文档响应。目标响应包含非空 JSON object 形式的 reference_map 时,将其写入相对路径并追加 --reference-map @target-reference-map.json;否则省略该参数。+update 不支持 --yes。docs +fetch --doc "<doc>" --scope full --detail full --format json 读取最新完整文档并核验。忽略重新生成的 block ID,正文结构、文本、链接和引用资源应与目标版本一致。候选确认时使用类似格式:
同一个 revision_id 命中多个历史版本,请确认要回滚哪一条:
- history_version_id=11 revision_id=42 edit_time=2026-06-22T12:24:45Z name=...
- history_version_id=12 revision_id=42 edit_time=2026-06-22T12:25:14Z name=...
# 列出历史版本
lark-cli docs +history-list --doc "<docx_url_or_token>" --page-size 20
# 翻页
lark-cli docs +history-list --doc "<docx_url_or_token>" --page-size 20 --page-token "<page_token>"
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.