Skip to content

fix: 修复文档更新总是 Append 而非精准替换#75

Open
Luoqiu1 wants to merge 1 commit intoriba2534:mainfrom
Luoqiu1:luoqiu_dev
Open

fix: 修复文档更新总是 Append 而非精准替换#75
Luoqiu1 wants to merge 1 commit intoriba2534:mainfrom
Luoqiu1:luoqiu_dev

Conversation

@Luoqiu1
Copy link
Copy Markdown

@Luoqiu1 Luoqiu1 commented Mar 31, 2026

Summary

  • 重构 feishu-cli-write 技能的"更新已有文档"部分,将 content-update --mode replace_range 作为首选推荐
  • 添加决策树和反模式警告,防止 AI 在修改文档时错误使用 append 模式导致内容重复
  • 统一用 content-update 一条命令替代手动多步操作(doc blocks + doc delete + doc add

Test plan

  • 验证 AI 在收到"修改/替换某章节"指令时使用 replace_range 而非 append
  • 验证 AI 在收到"追加新内容"指令时仍正确使用 append
  • 验证 content-update 各模式(replace_range/insert_before/insert_after/delete_range)功能正常

🤖 Generated with Claude Code

重构 feishu-cli-write 技能的"更新已有文档"部分,将 content-update
replace_range 模式作为首选推荐,添加决策树和反模式警告,防止 AI
在修改文档时错误使用 append 模式导致内容重复。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant