docs(skills): default raw URLs for Lark Drive-native resource links - #1446
docs(skills): default raw URLs for Lark Drive-native resource links#1446nguyenngothuong wants to merge 1 commit into
Conversation
Add a shared "link-writing rule" to lark-shared/SKILL.md: when writing links to Feishu/Lark Drive-native resources (Docx, Sheets, Base, Wiki, Drive, Slides, Minutes) into rich content surfaces, default to raw URLs instead of wrapping them as [title](url). Raw URLs let the editor preserve native card/preview/mention conversion; wrapping fixes them as plain hyperlinks and loses that. Explicit exceptions: custom display text, external URLs, non-native share/download/callback pages, and structured link/rich_text API fields. Reference the shared rule from the Docx Markdown/XML, Sheets cell, and Base text/url write paths so the guidance has one owner instead of being copied into every skill. Wiki is covered by the shared rule's resource list. Closes larksuite#1298
|
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)
📝 WalkthroughWalkthroughThis PR establishes a shared rule for writing Feishu/Lark native resource URLs (Docx, Sheets, Base, Wiki, Drive, Slides, Minutes) across all skill documentation. Native resource links now default to bare URLs instead of Markdown or display-text link wrappers, with explicit exceptions for custom text, external URLs, and API schema objects. The rule is centralized in shared documentation and referenced from document formatting and structured data skills. ChangesLark native resource link-writing rules
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 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)
⚔️ Resolve merge conflicts
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 |
| @@ -20,6 +20,8 @@ | |||
|
|
|||
| 用字符串。URL 字段也传 URL 字符串;普通文本里可以保留 Markdown 风格链接文本,平台会按字段类型处理。 | |||
|
|
|||
| > **飞书/Lark 原生资源链接默认写裸 URL**:写入指向 Docx、Sheets、Base、Wiki、Drive、Slides、Minutes 等云空间原生资源的链接时,默认写原始 URL 字符串,不要默认包装成 `[标题](url)`。带显示文本的写法仅用于用户明确要求自定义文本、外部 URL 或非原生页面。完整规则见 [`../../lark-shared/SKILL.md`](../../lark-shared/SKILL.md) 的「链接书写规则」。 | |||
There was a problem hiding this comment.
base 现在 cell 输入推荐写成 [标题](url) 模式,并且目前不会对原生链接进行转换
What
Adds a shared link-writing rule to
lark-shared/SKILL.mdand references it from the Docx, Sheets, and Base write paths, so agents stop defaulting to[title](url)for Feishu/Lark Drive-native resource links.Closes #1298.
Why
When agents write Feishu/Lark resource links (Docx, Sheets, Base/bitable, Wiki, Drive, Slides, Minutes) into rich content, raw URLs are the better default: the editor can convert them into native cards, previews, or
@mentions. Wrapping them as Markdown[title](url)fixes them as plain hyperlinks and loses that conversion. The skills didn't state this, so agents had no reason to distinguish native resource URLs from external ones.Changes
lark-shared/SKILL.md— new "链接书写规则" section as the single owner of the rule: default raw URLs for Drive-native resources, with explicit exceptions (custom display text, external URLs, non-native share/download/callback pages, structured link/rich_text API fields).lark-doc/references/lark-doc-md.md&lark-doc-xml.md— Markdown/XML write guidance now tells agents not to default to[title](url)/<a href>for resource URLs, pointing to the shared rule.lark-sheets/SKILL.md— cell-type table notes that native resource links default to the plain-URL form rather than the{"type":"url",...}display-text object.lark-base/references/lark-base-cell-value.md— text/url guidance defaults native resource links to raw URL strings.Acceptance (per #1298)
[title](url)scripts/skill-format-check,scripts/check-skill-wire-vocab.sh)Summary by CodeRabbit
Documentation