docs(skills): fix agent routing for doubao.com URLs#1082
Conversation
|
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 (5)
✅ Files skipped from review due to trivial changes (3)
📝 WalkthroughWalkthroughFive skill metadata files update each ChangesDoubao domain support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 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 #1082 +/- ##
=======================================
Coverage 67.92% 67.92%
=======================================
Files 603 603
Lines 55779 55779
=======================================
Hits 37888 37888
Misses 14755 14755
Partials 3136 3136 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@2a1ccd1728f9b4f8cc045e1a54763fd4d644b6be🧩 Skill updatenpx skills add larksuite/cli#feat/skills-add-doubao-domain -y -g |
386bdc5 to
5bc44a3
Compare
5bc44a3 to
2a1ccd1
Compare
Problem
When users provide
doubao.comURLs such ashttps://www.doubao.com/docx/TOKEN, AI agents often skiplark-cliand fall back to WebFetch.This is not a product capability gap.
lark-clialready supports these resources because Doubao uses the same path patterns and token model as Feishu. The real issue is routing: the affected skill descriptions read like Feishu-only capabilities, so agents do not get a strong enough signal to choose the correctlark-cliskill.Changes
Update the frontmatter descriptions of the affected skills so they act as explicit routing instructions for agents, not just compatibility notes.
doubao.comURL or token for that resource typeAffected skills:
lark-doc/docx/,/wiki/lark-drivelark-sheets/sheets/lark-slides/slides/lark-wiki/wiki/Why this helps
Before this change, the descriptions mostly said that these skills work for Feishu resources, with Doubao support implied or missing. After this change, the descriptions give agents a concrete decision rule: if the URL/token matches the resource pattern, use the corresponding
lark-cliskill instead of WebFetch.This makes the PR specifically about improving agent routing behavior, not about adding new end-user functionality.
Test Plan
node scripts/skill-format-check/index.jshttps://www.doubao.com/docx/...preferslark-docover WebFetchhttps://www.doubao.com/sheets/...preferslark-sheetsover WebFetchhttps://www.doubao.com/slides/...preferslark-slidesover WebFetchhttps://www.doubao.com/wiki/...preferslark-wikiover WebFetchfeishu.cnURLs continue routing to the samelark-cliskillsSummary by CodeRabbit