lark-slides

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

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

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, CLI commands, image upload rules, and layout constraints. This Skill encodes the full workflow—planning, XML generation, validation, creation, and verification—so an AI agent can reliably produce well-designed presentations without trial and error. ## Core Features & Use Cases - Presentation Creation & Editing: Create new decks, add or delete pages, perform block-level replacements or full-page overwrites, and read back full presentation XML via lark-cli slides shortcuts. - Design & Planning Layer: Enforces a slide_plan.json planning step with layout types, visual focus, text density, and asset fallback rules, plus a Doubao high-density card-based design system. - Validation & Tooling: Ships xml_lint.py for pre-submission XML linting, an XSD-based validator, and an IconPark search/resolve tool for icons, plus chart, table, and media-upload guidance. - Use Case: Ask the agent to build a 10-page product review deck: it plans the outline, generates validated XML with charts and images, creates the deck in Feishu, and verifies the result by reading it back. ## 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 slide deck programmatically?

Use lark-cli slides +create after writing a slide_plan.json planning file and generating per-page XML. Validate the XML with xml_lint.py first, then create in one step or add pages individually with +add-slide.

How do I edit an existing Lark Slides page?

Use slides +replace-slide for block-level replacement or insertion of individual elements without changing page order. Use slides +update-slide for full-page overwrites when changing backgrounds, batch styles, or deleting elements.

Can I use external image URLs in Feishu slides XML?

No, <img src> only accepts file_token values from images uploaded to Feishu Drive via slides +media-upload, or local @./path placeholders during creation. External http(s) links will not render and images are limited to 20 MB.

What chart types does the Lark Slides XML support?

The native <chart> element supports column, bar, line, area, pie, doughnut, radar, and combo charts. Funnel, pyramid, quadrant, and matrix diagrams must be simulated with <shape> and <line> elements.

Why does my slide creation fail with error 3350001 or blank pages?

These failures usually come from XML escaping issues, shell truncation, invalid image tokens, or structural errors. Follow the error-handling workflow: read back the presentation state, run xml_lint.py, and fix issues before retrying.

How do I roll back a Feishu presentation to a previous version?

Use slides +history-list to find the history_version_id, then call +history-revert with that ID. Do not pass revision_id directly to the revert command, and poll +history-revert-status if needed.