lark-slides

Automate Feishu Slides creation, retrieval, and modification via lark-cli and SML 2.0 XML.

Updated Aug 17, 2024
One-click install
npx skills add https://github.com/LinoWhy/.dotfiles --skill lark-slides-linowhy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-slides
Source: https://github.com/LinoWhy/.dotfiles/tree/main/agents/.agents/skills/lark-slides
Command: npx skills add https://github.com/LinoWhy/.dotfiles --skill lark-slides-linowhy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Feishu Slides often require manual, repetitive steps to create, read, update, or replace content across many slides. This skill provides a programmatic workflow to manage slide decks using the lark-cli and the SML 2.0 XML standard, reducing manual overhead and ensuring consistency.

Core Features & Use Cases

  • Create PPTs (empty or with slides) via slides +create, with optional slides in a single call.
  • Read full slide XML, add or delete slides, and perform per-page edits using block_replace / block_insert.
  • Upload images for slides via +media-upload and embed file_tokens into slide XML to render images.

Quick Start

Create a new Feishu Slides deck with optional slides using the create command.

Frequently Asked Questions about lark-slides

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Feishu Slides creation and editing programmatically?

Automate Feishu Slides creation and editing by orchestrating the lark-cli with the Slides API and SML 2.0 XML to create decks, edit pages, and replace blocks programmatically. It supports end-to-end presentation workflows from empty PPT creation to per-page edits.

Can I upload and embed images into Feishu Slides using XML?

Upload and embed images into Feishu Slides by using the media-upload command via lark-cli to get file_tokens. You then embed these file_tokens directly into the slide SML 2.0 XML to render images within your presentation decks.

How do I replace or insert specific content blocks in Feishu Slides?

Replace or insert specific content blocks in Feishu Slides using the block_replace and block_insert operations. These commands allow precise per-page edits by modifying structured SML 2.0 XML elements within your slide deck.

What is the best way to safely modify multiple Feishu Slides without data loss?

Safely modify multiple Feishu Slides without data loss by using explicit read/write scopes and revision-based locking. This enforces structured error handling during block replacements and slide edits to prevent destructive actions.

Do I need SML 2.0 XML to read and update Feishu Slides?

SML 2.0 XML is required to read and update Feishu Slides. The workflow retrieves full slide XML to enable structured per-page edits, block insertions, and image embedding through the lark-cli Slides API.

Does lark-cli support creating a Feishu presentation with slides in a single call?

lark-cli supports creating a Feishu presentation with optional slides in a single call. Using the slides create command, you can initialize an empty PPT or generate a deck populated with predefined slide structures immediately.