docs(slides): +create 的参数下沉到 create.md,主 skill 只留路由 - #2096
Conversation
trace 里 +create 的三类高频错误(--yes、--name、--slides 塞文件路径) 共同点是调用前没读 lark-slides-create.md。原因不是文档缺内容,而是 SKILL.md 里 +create 的信息「够又不够」:给了半截参数描述,模型觉得 够用就直接拼命令,不再打开文档。 - 删掉「创建方式选择」整节(表格 + 两条 WARNING),下沉到 create.md, 由生成流程 Step 3 和核心规则 2 指向那份文档 - Shortcuts 表 +create 行、核心规则 2 不再复述参数 - Quick Reference 顶部说明参数以文档和 --help 为准,「新建 PPT」行补上 create.md - PPTX 一行改写为 drive +import 导入路径;create.md 里写明本命令不读 本地文件 - create.md 增加「--slides 不接受的形态」对照表,并合并开头零散的 禁止/推荐/最稳/注意条目 - @ 占位符统一写成 <img src="@./path">,消除「--slides 支持 @ 路径」的歧义
|
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 Lark Slides documentation to clarify ChangesLark Slides guidance
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2096 +/- ##
==========================================
+ Coverage 75.16% 75.19% +0.02%
==========================================
Files 912 914 +2
Lines 96475 96781 +306
==========================================
+ Hits 72517 72776 +259
- Misses 18381 18407 +26
- Partials 5577 5598 +21 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@70901a75b7ab67e45de35df6adcd669fcaae736f🧩 Skill updatenpx skills add larksuite/cli#fix-slides-create-doc-routing -y -g |
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-slides/references/lark-slides-create.md`:
- Around line 18-22: Fix the MD028 warning in the admonition containing the
`--slides` guidance by removing the blank line between the two quoted sections
or prefixing that blank line with `>`. Keep the existing warning and important
content unchanged.
- Around line 6-8: Update the “只从零创建演示文稿,不读取本地文件” statement in the slides
+create documentation to clarify that presentation-file inputs such as PPTX
filenames are unsupported, while local image files referenced through <img
src="@./..."> remain supported for upload. Keep the existing PPTX import
workflow guidance unchanged.
🪄 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: 0077f7f9-1f76-4dd6-a1a3-84c8e6443e03
📒 Files selected for processing (2)
skills/lark-slides/SKILL.mdskills/lark-slides/references/lark-slides-create.md
原句「本命令只从零创建演示文稿,不读取本地文件」与本文档 「本地图片:@<path> 占位符」一节自相矛盾——@ 占位符恰恰会读 本地图片并自动上传。改为只否定「导入本地 PPT 文件的参数」, 不波及图片占位符能力。
fca681c to
2a2aa9b
Compare
生成流程 Step 3 和「执行前必做」的创建一行原来只指向 lark-slides-create.md,而两步创建的第二步用的是 xml_presentation.slide create,文档没被路由到,模型只能凭 记忆拼参数。
trace 里 +create 的三类高频错误(--yes、--name、--slides 塞文件路径) 共同点是调用前没读 lark-slides-create.md。原因不是文档缺内容,而是
SKILL.md 里 +create 的信息「够又不够」:给了半截参数描述,模型觉得
够用就直接拼命令,不再打开文档。
Summary
Changes
Test Plan
lark-cli <domain> <command>flow works as expectedRelated Issues
Summary by CodeRabbit
file_tokenplaceholders, and troubleshooting cross-links.