docs(slides): 补齐 shortcut 参数说明,修正 +xml-get --output 必填标注 - #2088
Conversation
State the "all local file path args must be CWD-relative (absolute rejected)" rule once in SKILL.md 权威经验, and trim the per-command repetitions in media-upload / create / screenshot / xml-presentations-get. Also fix the stale xml-presentations-get param table: --output is optional (relative), not required.
- 「调用命令前再读」改为「调用相关命令前必须读取相关的文档以了解命令的使用方式」, 并把原「按需再读」列表合并进来,去掉可选语义 - 移除 lark-shared 的 CRITICAL 前置阅读要求 - Step 4 回读示例补全 `--presentation <xml_presentation_id>` 参数
- 新增 +screenshot 行:--slide-number 页号(从 1 开始,可重复,一次最多 10 页)、 --output-dir 保存目录(CWD 内相对路径,默认 .lark-slides/screenshots) - +xml-get 行补上 --presentation 和 --output(CWD 内相对路径), 并说明省略 --output 时 XML 返回在 JSON 信封里
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughUpdated the Slides skill documentation to require command-reference reading, explicit XML validation after generation, and precise ChangesSlides documentation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
把 lark-slides-create.md、lark-slides-media-upload.md、lark-slides-screenshot.md、 lark-slides-xml-presentations-get.md 还原为 main 的版本,本分支只改 SKILL.md。
认证、权限和全局参数以 lark-shared 为准,这条前置阅读不该在本分支被删掉。
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@cc9bbf4bd2afb0533a689b25d788d803b109fc6c🧩 Skill updatenpx skills add larksuite/cli#fix-slides-xml-get-output-path -y -g |
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-slides/SKILL.md`:
- Around line 317-318: Align the +xml-get contract across SKILL.md,
references/lark-slides-xml-presentations-get.md, and the Step 4 example: either
keep --output required and ensure every invocation writes XML to a CWD-relative
local file, or document and implement the CLI behavior that allows omission and
returns a JSON envelope. Preserve consistency with validation-checklist.md and
update all related option descriptions and examples atomically.
🪄 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 Plus
Run ID: 4f9d1333-9c24-4a00-ac46-f1f350355204
📒 Files selected for processing (1)
skills/lark-slides/SKILL.md
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2088 +/- ##
=======================================
Coverage 75.16% 75.16%
=======================================
Files 912 912
Lines 96475 96475
=======================================
Hits 72517 72517
Misses 18381 18381
Partials 5577 5577 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
改动
只动
skills/lark-slides/SKILL.md:+screenshot行:写明--slide-number(页号从 1 开始、多页重复传入、一次最多 10 页)和
--output-dir(CWD 内相对路径,默认.lark-slides/screenshots),并提示截图失败时降级到 XML 回读等非截图检查。+xml-get行补上参数:--presentation指定xml_presentation_id,--output落盘(CWD 内相对路径),并说明省略
--output时 XML 直接返回在 JSON 信封里——该参数自 v1.0.70(07-15)起就是可选的。
把命令参考文档从可选阅读提升为调用前必读。
--presentation <xml_presentation_id>,避免残缺命令被照抄。影响面
纯文档改动,单文件 +4 / -3,不涉及 Go 代码,无行为变更。
references/下的文档本轮未改动。Summary by CodeRabbit
+xml-getusage details, including--presentationselection and--outputrequirements for saving XML to a relative path within the current working directory.