lark-slides

Create and edit Lark Feishu slide presentations via lark-cli XML commands.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/dulltackle/kangkang-skills --skill lark-slides-dulltackle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-slides
Source: https://github.com/dulltackle/kangkang-skills/tree/main/lark-slides
Command: npx skills add https://github.com/dulltackle/kangkang-skills --skill lark-slides-dulltackle

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Creating and editing Feishu (Lark) slide presentations programmatically requires precise XML structures, correct token handling, and careful layout control; this Skill provides the full workflow, schema references, and validation tooling to do it reliably through lark-cli. ## Core Features & Use Cases - Presentation Creation & Editing: Create new decks, add, delete, replace, or fully overwrite individual slides using shortcuts like slides +create, +add-slide, +replace-slide, and +update-slide. - Planning & Validation Pipeline: Enforces a plan-first workflow with slide_plan.json, XML linting via scripts/xml_lint.py, and post-creation readback verification to catch overflow, overlap, and blank pages. - Rich Visual Content: Supports native charts, tables, IconPark icons (via iconpark_tool.py search/resolve), image upload with file tokens, screenshots, and history version rollback. - Use Case: A user asks for a 10-page product review deck; the Skill plans the layout, generates validated XML page by page, uploads generated images, creates the deck in Feishu, and verifies the result before delivering the link. ## Quick Start Ask the assistant to create a Feishu slide presentation on your topic with a specified page count and style, and it will plan, generate, validate, and deliver the deck link.

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 programmatically?

Use lark-cli with the slides +create shortcut after writing a slide_plan.json plan and generating per-slide XML. Run the XML through xml_lint.py first, then create the deck and verify it by reading back the full XML with slides +xml-get.

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

Use the slides +replace-slide shortcut for block-level replace or insert operations, which only affect the targeted block without changing page order. For heavy page-wide changes or background edits, use +update-slide to overwrite the whole page while keeping its slide_id.

Can I use external image URLs in Feishu slides XML?

No, Feishu slides do not render external http(s) image links. Download the image locally first, upload it with slides +media-upload to get a file_token, and reference that token in the img src attribute; images are limited to 20 MB.

Why does my Feishu slide creation fail or produce blank pages?

Common causes include XML escaping errors, shell truncation, invalid image tokens, and error 3350001. Follow the error-handling workflow: read back the current state, validate XML with xml_lint.py, and fix structure or layout issues before retrying.

Does the skill support wiki links to Feishu slides?

Yes, but wiki tokens cannot be used directly as presentation IDs. Resolve the wiki node first to confirm obj_type is slides and obtain the real obj_token; slides shortcuts with --presentation handle this resolution automatically.