lark-slides

Create and edit Lark Slides presentations via XML and the lark-cli command line.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/trungpr1990-coder/AMI-MAKEUP --skill lark-slides-trungpr1990-coder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-slides
Source: https://github.com/trungpr1990-coder/AMI-MAKEUP/tree/main/.agents/skills/lark-slides
Command: npx skills add https://github.com/trungpr1990-coder/AMI-MAKEUP --skill lark-slides-trungpr1990-coder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Creating and editing Feishu (Lark) slide decks programmatically requires mastering a custom SML 2.0 XML schema, token resolution, image upload flows, and error-prone CLI invocations. This Skill encodes the full workflow so an AI agent can reliably generate, read, and modify presentations without guessing XML structures or API parameters. ## Core Features & Use Cases - Presentation Creation: Plan decks with a structured slide_plan.json, then create slides in one step (slides +create --slides) or two steps for complex multi-page decks with Chinese text and images. - Block-Level Editing: Replace or insert individual blocks on existing pages with +replace-slide, or rebuild multiple pages in place with +replace-pages while keeping the original link. - Rich Visuals: Generate native charts, whiteboard diagrams (SVG/Mermaid), IconPark icons, and upload local images as file_token for embedding. - Use Case: A user pastes a /slides/ or /wiki/ URL and asks to rewrite three pages; the Skill reads the current XML, plans the changes, applies block-level edits, and validates the result with screenshots and lint checks. ## Quick Start Ask the AI to create a five-page Feishu presentation about your project status using the lark-slides skill, with charts and icons on each page.

Frequently Asked Questions about lark-slides

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Feishu slide presentation from the command line?▼

Use lark-cli slides +create with a title, optionally passing --slides as a JSON array of slide XML strings. For complex decks with many pages or heavy Chinese text, create a blank presentation first and add pages one by one with xml_presentation.slide create.

How do I edit a single element on an existing Lark slide?▼

Use the +replace-slide shortcut with block_replace or block_insert actions. First read the page with xml_presentation.slide get to find the target block's short ID, then submit the replacement XML; the CLI injects the required id attribute automatically.

Can I use external image URLs in Feishu slides XML?▼

No, img src only accepts a file_token from Lark Drive, not http(s) links. Download the image locally, upload it with slides +media-upload, and write the returned file_token into the img element; files must be under 20 MB.

Why does my wiki link fail when calling the slides API?▼

A /wiki/ token is not a valid xml_presentation_id. Query the wiki node first with lark-cli wiki spaces get_node, confirm obj_type is slides, and use the returned obj_token as the real presentation ID.

What does error 3350001 mean when editing slides?▼

Error 3350001 indicates invalid parameters, commonly a block_id that no longer exists, malformed XML, or coordinates outside the 960x540 canvas. Re-read the page with slide.get to get current block IDs and validate your XML structure before retrying.

When should I use chart versus whiteboard elements in slides?▼

Use the native chart element for bar, line, area, radar, and pie charts with structured data series. Use whiteboard with SVG or Mermaid for flowcharts, sequence diagrams, architecture diagrams, scatter plots, and funnel charts that chart does not support.