Lark Whiteboard: Install, Source and Security | FunnelSlayer

Lark Whiteboard

Published by larksuite in cli

No known issues456k installsAutomation & Infrastructure

What this skill does

Exports Lark whiteboards as previews, SVG, or source code, and creates or edits boards from Mermaid, PlantUML, SVG, or OpenAPI input. It routes requests through workflows that account for existing board content and the risk of overwriting it. Best for Lark Suite teams that want an agent to inspect, export, create, or edit whiteboard diagrams.

Add Lark Whiteboard to your agent

Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.

Install with a prompt

Paste this into a compatible coding agent:

add this skill "lark-whiteboard" from https://github.com/larksuite/cli

Install with the CLI

Run this command in a controlled environment after reviewing the repository:

npx skills add https://github.com/larksuite/cli --skill lark-whiteboard

Skill instructions

[!IMPORTANT]

  • 运行 lark-cli --version,确认可用,无需询问用户。
  • 运行 npx -y @larksuite/whiteboard-cli@^0.2.13 -v,确认可用,无需询问用户。

CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理


快速决策

身份:画板操作默认使用 --as user。仅当需要以应用身份上传时使用 --as bot。

先判断「只读还是写入」,再在对应表内按上到下匹配,命中即停。

A. 只读 · 查看 / 导出(不改画板)

用户需求行动
查看画板内容 / 导出图片+export --output-type preview
导出 SVG 矢量图+export --output-type svg
提取画板的 Mermaid/PlantUML 源码+export --output-type source

B. 写入 · 创作 / 编辑(会改画板,命中即停)

场景行动写入方式对原内容
用户已提供 Mermaid/PlantUML/SVG 代码,或明确指定用该格式使用该代码 → +update,--input_format 取单值 mermaid / plantuml / svg;写入非空已有画板并需要 overwrite 时,先确认会整板重建;若 SVG 用于修改已有画板,先走 routes/svg-edit.md 有损确认overwrite / append按用户要求
从零新建复杂图表(架构/流程/组织等)→ § 创作 Workflow首次写入—
修改 / 增补已有画板→ § 编辑 Workflow见该表见该表

Shortcuts

Shortcut说明
+export导出画板为预览图片、SVG 矢量图、代码或原始节点结构。
+update更新画板,支持 PlantUML、Mermaid、SVG 或 OpenAPI 原生格式

不在本 skill 范围

Files included

  • elements/connectors.md
  • elements/content.md
  • elements/image.md
  • elements/layout.md
  • elements/schema.md
  • elements/style.md
  • elements/typography.md
  • references/lark-whiteboard-export.md
  • references/lark-whiteboard-update.md
  • references/lark-whiteboard-workflow.md
  • routes/dsl.md
  • routes/mermaid.md
  • routes/svg-edit.md
  • routes/svg.md
  • scenes/architecture.md
  • scenes/bar-chart.md
  • scenes/comparison.md
  • scenes/fishbone.md
  • scenes/flowchart.md
  • scenes/flywheel.md
  • scenes/funnel.md
  • scenes/line-chart.md
  • scenes/mention.md
  • scenes/mermaid.md
  • scenes/milestone.md
  • scenes/organization.md
  • scenes/photo-showcase.md
  • scenes/pyramid.md
  • scenes/swimlane.md
  • scenes/treemap.md
  • SKILL.md

More skills for Automation & Infrastructure