lark-slides

Create, read, and manage Feishu presentation slides via XML markup and lark-cli commands.

1.3k|142|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/MiniMax-AI/minimax-code --skill lark-slides-minimax-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-slides
Source: https://github.com/MiniMax-AI/minimax-code/tree/main/packages/local-runtime/assets/skills/lark-tools/cli-skills/lark-slides
Command: npx skills add https://github.com/MiniMax-AI/minimax-code --skill lark-slides-minimax-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Creating and editing Feishu (Lark) presentations programmatically requires mastering a strict XML schema (SML 2.0), handling authentication identities, resolving wiki tokens, and working around API limitations like the lack of element-level editing. This Skill encodes all of that operational knowledge so an agent can reliably build, read, and modify PPT decks without trial and error. ## Core Features & Use Cases - One-command PPT creation: Use lark-cli slides +create --slides '[...]' to create a presentation with up to 10 fully styled pages in a single call, including automatic local image upload via @./path placeholders. - Full-content reading and page management: Read an entire presentation's XML with xml_presentations.get, then add or delete individual slides with xml_presentation.slide.create/delete, including precise insertion via before_slide_id. - Image handling workflows: Upload local images with +media-upload to obtain file_token values for <img src>, and follow the safe read-modify-recreate-delete procedure for adding images to existing pages. - Use Case: A user asks for a 6-page quarterly business review deck with a light professional style. The Skill guides the agent to confirm an outline, pick colors from the style table, generate per-slide XML from templates, create the deck in one command, then verify the result by reading the full XML back. ## Quick Start Use the lark-slides skill to create a Feishu presentation titled 'Q3 Review' with a cover page and three content pages in a light business style.

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 slides from the command line?

Run lark-cli slides +create with a --title and a --slides JSON array where each element is a complete slide XML string. This creates the presentation and adds up to 10 pages in one call, returning the xml_presentation_id for later operations.

How do I add images to Feishu slides via the XML API?

Images must be uploaded first to get a file_token, either automatically via the @./path placeholder in +create --slides or manually with slides +media-upload. External http(s) URLs are not rendered by Feishu slides and must never be used as img src values.

Can I edit a single element on an existing Feishu slide?

No, the Feishu slides XML API only supports slide-level create and delete with no element-level editing. To change one element you must read the full slide XML, modify it, create a replacement page at the original position using before_slide_id, then delete the old page.

Why does my gradient background turn white in Feishu slides?

Gradients must use rgba() color stops with explicit percentage positions, such as linear-gradient(135deg,rgba(15,23,42,1) 0%,rgba(56,97,140,1) 100%). Using rgb() stops or omitting percentage stops causes the server to fall back to a white background.

How do I handle a Feishu wiki link pointing to a slides document?

Wiki tokens cannot be used directly as xml_presentation_id. First call wiki.spaces.get_node with the wiki token, confirm obj_type is slides, then use the returned obj_token as the presentation ID for all subsequent slides operations.