lark-slides

A skill for creating and editing Lark presentations, including their pages and individual page content. Lark is a workplace collaboration platform.

In plain words
What is it for?
It can create presentations, read or modify slide pages, add or remove pages, and replace part of a page. It also specifies layout and visual requirements for the resulting slides.
Why use it?
It provides rules and procedures for producing presentations with controlled dimensions, readable text, and image-based visuals.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/dropfan/claude-code-plugins/lark-slides
Any agent
npx skills add DropFan/claude-code-plugins --skill lark-slides
Clone the repo
git clone --depth 1 https://github.com/DropFan/claude-code-plugins

Made for: Claude Code, Codex.

Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,907 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00156 $0.07907
Opus 5 $0.00078 $0.03954
Sonnet 5 $0.00031 $0.01581
Haiku 4.5 $0.00016 $0.00791

Measured 2d ago against content hash 95d39e36647e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lark-slides scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/iconpark_tool_test.py, scripts/iconpark_tool.py, scripts/sxsd_validator.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

8. **`<img src>` 只能用上传到飞书 drive 的 `file_token`,禁止使用 http(s) 外链 URL**:飞书 slides 渲染端不会代理外链图片,外链 src 在 PPT 里通常不显示或显示破图。流程必须是「先把图存到本地 → 用 `slides +media-upload` 上传,或在 `+create --slides` 的 XML 里写 `<img src="@./path">` 占位符自动上传
plugins/lark/skills/lark-slides/SKILL.md · 329 lines

How it starts

The opening of the file, as written. The whole thing — 329 lines — stays where its author put it; the contents beside it link to each section on GitHub.

⚙️ Cowork / Claude Desktop 执行环境说明(自动注入)

本技能依赖本地 lark-cli@larksuite/cli,可用 command -v lark-cli 定位)及其 ~/.lark-cli 登录态(应用密钥存于 macOS keychain)。

在 Cowork 中运行任何 lark-cli 命令时,必须在本地 macOS 上执行(使用 Desktop Commander 的 start_process / interact_with_process,或其它本地 shell 工具),不要用隔离的 Linux 沙箱 mcp__workspace__bash——沙箱里没有 lark-cli、也读不到 keychain。 执行前确保 npm 全局 bin 目录(npm prefix -g 输出目录下的 bin)在 PATH 中。

(在 Claude Code 中可忽略本说明,lark-cli 在本机 shell 直接可用。)

slides (v1)

本技能文档较长,务必使用 Read 工具阅读两次,必须阅读完整全文。

权威经验

权威经验是全局硬约束和高频易错点,必须牢记并严格遵守。

  • 你有充足的时间完成这个 PPT,质量永远比速度重要。
  • PPT 的尺寸是 960x540,必须严格确保主体内容在页面边界内。
  • !!!禁止交付无图产物!!! 必须使用大量图片增强视觉效果!!! 禁止重复使用同一张图!!!
  • 封面页的主视觉必须是 <img>(来自生图工具或搜图工具),不要使用 <shape><icon> 拼出封面视觉。
  • 禁止用 <shape><line> 拟形具体物项,必须使用生图工具生成的 <img>
  • 禁止在 headlinetitle 下方放置用于分隔或装饰的 rect<line>
  • 禁止在任何页面内部使用无意义的装饰线条或色块条带,页面任何一边都不要使用贴边窄条。
  • 生图工具的指令参数必须以“不要出现任何文字和颜色色号”结尾,避免生成的图片上出现干扰文字。
  • 禁止使用 emoji 图标,任何位置都不能出现。
  • 字号必须显式设置 <content>fontSize 属性,不要依赖 textType 的默认字号兜底,这些兜底值明显偏大。
  • 大数字、字号大或字数多的 <content> 必须设置 wrap="true" autoFit="normal-auto-fit" 属性自动换行和缩排,避免文字溢出。
  • 文字颜色必须用 <content>color 属性而不是 fontColor 属性。
  • 文字行间距必须设置 <content>lineSpacing="multiple:xx"lineSpacing="fixed:xx" 而不是 lineSpacing="xx"
  • 图片必须用 <img> 而不是 <image>
  • IconPark 图标必须填充颜色(设置 <fill><fillColor color="rgba(R,G,B,A)"/></fill>)并和背景有足够对比。
  • 绘制图表时原生图表(柱状、条形、折线、面积、饼(环)、雷达、组合图)用 <chart>,其他(漏斗图、金字塔图、象限图、矩阵图等)用 <shape> + <line> 模拟。
  • 隐藏 <chart> 的图例只能通过不写或删除 <chartLegend> 实现,<chartLegend> 不支持 position="none"
  • 表格优先用 recttext 模拟,其他用 <table>,没有 <shape type="table">
  • 必须设置 <table>widthheight 固定表格大小,同时设置需要保留列宽或行高的 <col>width<tr>height,其余自动分配。
  • <td> 直接子元素只有 <fill>(背景)、<content>(文字)和边框配置(一般不用),不能嵌套 <shape><img><icon>
  • <shape type="rect"> 只是形状不是容器,<icon><img><shape type="text"> 和其他 <shape> 必须与它平级靠坐标叠放。
  • 填充渐变颜色必须用 <fill><fillColor color="linear-gradient(135deg, rgba(R,G,B,A) 0%, rgba(R,G,B,A) 100%)"/></fill>
  • 编辑页面前必须阅读 lark-slides-edit-workflows.md
  • 绘制图表前必须阅读 slides_chart_demo.xml
  • 当用户要求无损复述历史上下文时,必须无损复述以上权威经验、必读的技能文档(需要重新阅读)和易错元素语法(尤其是 <table><chart>)。

Read the full file on GitHub · 329 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 329 lines · 156 tokens per session scan A 95d39e36647e

Subscribe to this mod's changes

lark-slides is a skill published in the GitHub repository DropFan/claude-code-plugins (7 stars, last pushed 27d ago), licensed MIT. It adds 156 tokens to every session and 7,907 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories