lark-slides
Installation
Summary
Create and edit Lark Office slides with XML protocol, supporting presentation creation, page management, and content modification.
- Supports three creation workflows: one-step creation for simple slides, two-step creation (empty presentation + page-by-page addition) for complex content, and block-level editing of existing pages without reordering
- Handles slide operations including create, read, delete, and replace at both presentation and individual page levels; automatically parses
/slides/and/wiki/URLs to extract presentation tokens - Requires planning layer (slide_plan.json) before XML generation for new presentations or major rewrites; includes visual planning (layout_type, visual_focus, text_density) and asset planning with fallback strategies
- Enforces strict XML validation: text must use
<content><p>...</p></content>, images require uploaded file_tokens (no external URLs), and all complex content undergoes post-creation verification against validation checklist - Provides template search, summarization, and extraction via
template_tool.pyto avoid boilerplate; prioritizes user identity (--as user) for personal content operations
SKILL.md
slides (v1)
CRITICAL — 全局硬约束:PPT 的尺寸是 960x540,确保主体内容在页面边界内。
CRITICAL — 图片至关重要:必须有意识的主动多用图片!素材图使用生图工具和搜图工具,缺图时用生图工具生成配图补足;背景图必须使用生图工具,且生图指令中必须明确要求不要出现任何文字。
CRITICAL — 防文本溢出:所有承载突出信息和密集文字的 <content> 必须设置 autoFit="normal-auto-fit",字号会在框内自动缩排以防溢出。