Open
Conversation
重构 feishu-cli-write 技能的"更新已有文档"部分,将 content-update replace_range 模式作为首选推荐,添加决策树和反模式警告,防止 AI 在修改文档时错误使用 append 模式导致内容重复。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
feishu-cli-write技能的"更新已有文档"部分,将content-update --mode replace_range作为首选推荐content-update一条命令替代手动多步操作(doc blocks+doc delete+doc add)Test plan
content-update --mode replace_range:按标题定位第一章并替换内容 → "已替换索引 1 到 3 的内容" ✅content-update --mode insert_after:在第二章后插入新章节 → "已在索引 4 后插入内容" ✅content-update --mode insert_before:在第三章前插入新章节 → "已在索引 7 前插入内容" ✅content-update --mode delete_range:按标题定位并删除第三章 → "已删除 2 个块(1 个匹配范围)" ✅content-update --mode append:在文档末尾追加附录 → "文档内容追加成功" ✅replace_range,明确禁止append✅append✅测试文档:https://feishu.cn/docx/D73RdtBnyogtlyxFuKUcUzbqnyd
🤖 Generated with Claude Code