docs: clarify lark doc warning prevention#2002
Closed
fangshuyu-768 wants to merge 3 commits into
Closed
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 (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughChangesLark-doc guidance updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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.
Actionable comments posted: 2
🤖 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/references/lark-doc-update.md`:
- Around line 204-209: Revise the general warning guidance in the “结果判读” section
so agents inspect each warning before assuming any document mutation occurred.
Preserve the specific no-op handling for 1011_no_document_changes and clarify
that success or partial_success with warnings may represent either completed
writes or no changes, depending on the warning.
In `@skills/lark-doc/references/lark-doc-whiteboard.md`:
- Around line 41-49: 明确调整白板内容职责说明:仅对 SVG、复杂图表和现有白板更新强制委派;允许主代理直接插入简单 Mermaid
内容。同步检查相关职责表与 Mermaid 插入说明,消除两者冲突,并保留 Mermaid 语法验证要求。
🪄 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: aaedebda-5ef1-416b-85d1-3cd4bc98ae00
📒 Files selected for processing (5)
skills/lark-doc/SKILL.mdskills/lark-doc/references/lark-doc-create.mdskills/lark-doc/references/lark-doc-update.mdskills/lark-doc/references/lark-doc-whiteboard.mdskills/lark-doc/references/lark-doc-xml.md
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@cbaeaa3b6f928431fb930859d08075dd4d271634🧩 Skill updatenpx skills add larksuite/cli#codex/docs-lark-doc-warning-guidance -y -g |
This was referenced Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clarify the lark-doc skill guidance for warning-prone DocxXML creation and update flows identified in the warning audit. The change focuses on preventing invalid or ambiguous inputs before they reach the CLI or service.
Changes
str_replaceuniqueness/no-op behavior plus block-ID lifecycle rules.Test Plan
make fmt-checkgo vet ./...go mod tidyproduces no changesgolangci-lint ... --new-from-rev=origin/mainreports 0 issuesmake unit-testcompletes cleanly in this local environment; unrelated tests that create temporary Git repositories intermittently fail duringt.TempDircleanup with.git: directory not emptyRelated Issues
Summary by CodeRabbit
4030004_no_document_permission), including when to stop retrying and how to request or relocate content for editing.+createguidance for authoritative--titleusage when XML already includes<title>, and reinforced title-source checks.+updateguidance: XML escaping rules, block ID lifecycle constraints,str_replaceedge cases, and interpretingresult/warnings(including zero updated blocks).lark-doc-whiteboardresponsibilities and added a concrete Mermaid example with stricter validation/quoting rules.lark-doc-xmlformatting rules: escaping, supported tags,<callout>boundaries, list and ordering behavior, and image/link requirements with clearer examples.