lark-slides

Create and edit Lark presentation slides via XML and lark-cli commands.

Updated May 22, 2026
One-click install
npx skills add https://github.com/CalWade/aigc-creator --skill lark-slides-calwade
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lark-slides
Source: https://github.com/CalWade/aigc-creator/tree/main/.agents/skills/lark-slides
Command: npx skills add https://github.com/CalWade/aigc-creator --skill lark-slides-calwade

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Creating and editing Feishu (Lark) slide decks programmatically requires mastering a complex XML schema, token handling, and API workflows; this Skill guides an AI agent through planning, generating, validating, and fixing slide decks end to end. ## Core Features & Use Cases - Deck Creation & Editing: Create new presentations, add or delete pages, and perform block-level replace/insert edits on existing slides via lark-cli shortcuts and native APIs. - Planning & Validation Pipeline: Enforces a slide_plan.json planning layer, visual/asset planning rules, and a post-creation validation checklist with XML text-overlap linting. - Templates, Icons & Diagrams: Search and reuse slide templates, resolve IconPark semantic icons, and render charts or whiteboard diagrams as native XML elements. - Use Case: A user pastes a doubao.com or larkoffice.com /slides/ URL and asks to rewrite three pages; the agent reads the existing XML, plans the changes, applies block-level replacements, and verifies the result. ## Quick Start Ask the agent to create a six-page Feishu presentation about your project status with a consistent visual theme and charts.

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 with lark-cli?▼

Run lark-cli slides +create --title "My Deck" to create a blank presentation, then add pages with xml_presentation.slide create. For simple decks of one to three pages, pass --slides with XML strings to create everything in one step.

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

Use the +replace-slide shortcut with block_replace or block_insert actions to modify individual shapes, text, or images without changing page order. Read the slide XML first to get the target block's short element ID.

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

No, external http(s) image URLs are not rendered by Feishu slides. Download the image locally, upload it with slides +media-upload to get a file_token, and use that token in the img src attribute. Images are limited to 20 MB.

Why does my slide creation fail with error 3350001?▼

Error 3350001 indicates invalid parameters, often caused by XML escaping issues, shell truncation of long arguments, or a block_id not found in the current slide. Read back the presentation state and follow the troubleshooting reference before retrying.

Does lark-slides handle wiki links to presentations?▼

Wiki URLs cannot be used directly as a 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 xml_presentation_id.

What are the limitations of the slides +create --slides option?▼

The --slides option accepts at most 10 pages and is risky for complex XML with heavy Chinese text, nested quotes, or special characters due to shell argument passing. For complex decks, create a blank presentation first and add pages individually.