lark-slides

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

3|2|Updated Jul 21, 2026
One-click install
npx skills add https://github.com/zlsbksdxl/codex-lark --skill lark-slides-zlsbksdxl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-slides
Source: https://github.com/zlsbksdxl/codex-lark/tree/main/plugins/feishu2codex/skills/lark-slides
Command: npx skills add https://github.com/zlsbksdxl/codex-lark --skill lark-slides-zlsbksdxl

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 complex XML schema, token handling, and CLI workflows; this Skill guides the agent through planning, generating, validating, and delivering presentations without manual trial and error. ## Core Features & Use Cases - Presentation Creation: Plan decks with slide_plan.json, then create slides via lark-cli slides +create or per-page xml_presentation.slide create, with local image upload through @./path placeholders or +media-upload. - Editing & Maintenance: Read full deck XML with +xml-get, perform block-level edits with +replace-slide, rebuild pages with +replace-pages, manage history versions, and capture page screenshots. - Design & Validation: Enforces high-density card-based design principles, IconPark icon search via scripts, native chart/table XML rules, and mandatory XML overlap linting plus validation checklists before delivery. - Use Case: Ask the agent to build a 10-page project status deck with charts and images; it plans the outline, generates schema-compliant XML, uploads images, creates the slides, verifies the result, and returns the presentation link. ## Quick Start Ask the agent to create a Feishu presentation on your topic with a target 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 presentation with lark-cli?

Use `lark-cli slides +create --title "..."` for a blank deck, optionally passing `--slides` with an array of slide XML strings. For complex decks, create the blank presentation first, then add pages one by one with `xml_presentation.slide create`.

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

Read the page with `xml_presentation.slide get` to find the block's short ID, then call `+replace-slide` with a `block_replace` or `block_insert` part containing the new XML fragment. This keeps page order and the original presentation link unchanged.

Can I use external image URLs in Feishu slides XML?

No, `<img src>` only accepts file_token values from Feishu Drive. Download web images locally first, then upload them with `slides +media-upload` or use the `@./path` placeholder in `+create --slides` to get a valid token.

Why does my wiki link fail when creating slides via the API?

Wiki URLs contain a wiki_token, not an xml_presentation_id. Query the node with `lark-cli wiki spaces get_node` first, confirm `obj_type` is slides, and use the returned `obj_token` as the presentation ID.

What should I do when slide creation fails with error 3350001?

Error 3350001 usually indicates invalid XML structure, unknown block IDs, or out-of-range coordinates. Re-read the current page XML, verify block IDs and the 960x540 bounds, and run the xml_text_overlap_lint.py script before resubmitting.