docs(im): fix skill discoverability for +messages-search and +chat-messages-list - #1535
docs(im): fix skill discoverability for +messages-search and +chat-messages-list#1535zhangheng023 wants to merge 1 commit into
Conversation
…essages-list 关键参数名,修复触达缺失根因 Shortcuts 表两条命令摘要缺少易错参数名,agent 直接从摘要猜参数导致 --chat-ids(应为 --chat-id)和 --page-limit(应为 --page-size)用错, 现在摘要直接点名正确参数名并标注 "read reference before use"。
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughDocumentation corrections in Changeslark-im Shortcut Documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1535 +/- ##
==========================================
+ Coverage 72.83% 73.79% +0.96%
==========================================
Files 731 787 +56
Lines 69111 76142 +7031
==========================================
+ Hits 50335 56191 +5856
- Misses 14999 15742 +743
- Partials 3777 4209 +432 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@2d4edfea2dfa10c60ae5b40bb0dc4be15db2cb8e🧩 Skill updatenpx skills add larksuite/cli#docs/opt-im-skill-discoverability -y -g |
Summary
+messages-search:在 Shortcuts 表摘要中补全关键参数名(--query、--chat-id单值逗号分隔而非--chat-ids、--sender、--start/--end),加 read reference before use 提示+chat-messages-list:同样补全--page-size(非--page-limit)、--start/--end、--sort asc|desc,加提示背景
通过评测驱动优化(opt-workflow)发现:agent 直接从 Shortcuts 表摘要猜参数时,会用
--chat-ids(应为--chat-id)和--page-limit(应为--page-size),导致命令调用失败。根因是摘要描述了功能但未点名易错参数名,agent 无法不读 reference 就用对。本次改动直接在摘要行点出正确参数名,最大化可发现性,引导 agent 在需要精确用法时读 reference 文档。
验证
eval 数据(3 case × K=5 sealed run,commit 2752ed2b → 2d4edfe):
skills/lark-im/SKILL.md(T1 纯文档,2 行)Test plan
Summary by CodeRabbit
Release Notes