docs(skills): clarify Drive-native resource URL guidance - #1311
Conversation
📝 WalkthroughWalkthroughThis PR establishes and documents a consistent rule for writing Lark Drive-native resource URLs across all skills: default to raw URL strings without Markdown or link formatting, except when users explicitly request custom display text or target APIs require structured link objects. ChangesDrive-native resource URL writing rules
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 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 |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR standardizes guidance across Lark/Feishu skills docs for writing Drive-native resource URLs, introducing a shared “resource URL write rules” section and referencing it from Wiki/Docs/Sheets/Base documentation to avoid incorrectly converting URLs into titled links.
Changes:
- Added a canonical “资源 URL 写入规则” section to
lark-shared/SKILL.md. - Referenced the shared rule from Wiki, Docs (Markdown/XML), Sheets, and Base skill/reference docs.
- Minor markdown cleanup (removed trailing blank line).
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| skills/lark-wiki/SKILL.md | Adds reference to shared resource-URL writing rule for Wiki content |
| skills/lark-sheets/references/lark-sheets-cell-data.md | Documents URL-writing behavior for +write and +append |
| skills/lark-sheets/SKILL.md | Adds a rule block clarifying how to represent Drive-native URLs in cells |
| skills/lark-shared/SKILL.md | Introduces canonical “资源 URL 写入规则” section |
| skills/lark-doc/references/lark-doc-xml.md | Adds XML-specific guidance referencing shared rule |
| skills/lark-doc/references/lark-doc-md.md | Adds Markdown-specific guidance referencing shared rule |
| skills/lark-doc/SKILL.md | Adds global rule block for Docs content URL writing |
| skills/lark-base/references/lark-base-cell-value.md | Adds guidance for writing Drive-native URLs in Base field values |
| skills/lark-base/SKILL.md | Adds Base-wide guidance referencing shared rule |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@skills/lark-doc/SKILL.md`:
- Around line 30-31: The blockquote in SKILL.md currently contains an internal
blank line triggering markdownlint MD028; edit the blockquote (the paragraph
starting with "**资源 URL 写入规则:** 文档内容中写入飞书 / Lark Drive-native 资源 URL 时...") to
remove the blank line so the quote is contiguous and no empty lines exist inside
the blockquote, ensuring the block follows MD028 (no-blanks-blockquote).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 9d72a49e-48a6-414d-8f82-358f0e96b663
📒 Files selected for processing (9)
skills/lark-base/SKILL.mdskills/lark-base/references/lark-base-cell-value.mdskills/lark-doc/SKILL.mdskills/lark-doc/references/lark-doc-md.mdskills/lark-doc/references/lark-doc-xml.mdskills/lark-shared/SKILL.mdskills/lark-sheets/SKILL.mdskills/lark-sheets/references/lark-sheets-cell-data.mdskills/lark-wiki/SKILL.md
00db7e2 to
6faae50
Compare
6faae50 to
a0000f1
Compare
Summary
Clarifies skill guidance for writing Feishu / Lark Drive-native resource URLs into docs, sheets, base fields, and wiki content.
Drive-native URLs should stay as raw URL strings by default so Lark editors and APIs can preserve native resource behavior instead of forcing Markdown-style display text.
Changes
lark-shared.Test Plan
node scripts/skill-format-check/index.jsgit diff --checkmake unit-testblocked locally by Go 1.26 race-test startupSIGSEGVacross unrelated packages before exercising this docs-only change.Related Issues