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.
使用文本或 block 指令精确更新飞书云文档。默认使用 XML;仅在用户明确要求或必须保真 Markdown 时使用 Markdown。
写入前必须按 --doc-format 读取对应格式参考:xml 读取 lark-doc-xml.md,markdown 读取 lark-doc-md.md;
# 先定位内容并获取最新 block ID
lark-cli docs +fetch --doc "文档URL或token" --scope keyword --keyword "key1|key2" --detail with-ids
# 替换文本;--content "" 可删除文本
lark-cli docs +update --doc "xx" --command str_replace --pattern "旧内容" --content "新内容"
# 替换单个 block,或同父连续范围内的 block
lark-cli docs +update --doc "xx" --command block_replace --block-id blkTarget --content '<p>新段落</p>'
lark-cli docs +update --doc "xx" --command block_replace --start-block-id blkFirst --end-block-id blkLast --content '<p></p>'
lark-cli docs +update --doc "xx" --command block_insert_after --block-id blkAnchor --content '<h2>新章节</h2><p>章节内容</p>'
# 删除单个 block 或范围内的 block
lark-cli docs +update --doc "xx" --command block_delete --block-id blkA
lark-cli docs +update --doc "xx" --command block_delete --start-block-id blkFirst --end-block-id blkLast
docs +fetch 读取当前文档状态,并按意图选择最小范围。
--scope outline --max-depth 2 找章节,再 --scope section --start-block-id <标题id> --detail with-ids--scope range --start-block-id xxx --end-block-id yyy--scope keyword --keyword "key1|key2" --context-before 1 --context-after 1 --detail with-ids--detail with-ids 全文;只读摘要或确认事实时用更轻的 fetchstr_replace,但它不支持资源替换;单个 block 用一个 --block-id,同一直接父节点下的连续 block 用 --start-block-id/--end-block-id。连续范围适用于 block_replace 和 block_delete。整段/整块重写用 block_replace;增补章节用 block_insert_after;删冗余用 block_delete;调整顺序用 block_move_after。<li>...</li>。保护 <cite>、<img>、<source>、<whiteboard>、<sheet>、<bitable>、<synced_reference> 等 token 化内容,不要改成纯文本或占位符。同一 block 的多处修改合并成一次 block_replace。除非用户明确要求完全重建,或原文已无保留价值,否则不要使用 overwrite;它可能丢失评论和暂不支持的资源。
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.