AI Skill

lark-whiteboard

open.feishu.cn

Query and edit Lark (Feishu) whiteboards: export images/SVG, read node structure, and update with Mermaid, PlantUML, or SVG.

What is lark-whiteboard?

lark-whiteboard is a skill for coding agents that enables querying and editing whiteboards in Lark (Feishu) cloud documents. It supports exporting whiteboards as preview images or SVG vectors, reading raw node JSON, extracting Mermaid/PlantUML code, and updating whiteboard content using multiple input formats including Mermaid, PlantUML, SVG, and the native OpenAPI format. Authentication and permissions are handled via a shared lark-shared skill dependency.

  • Export whiteboard content as a preview image or SVG vector graphic
  • Read raw whiteboard node structure as JSON
  • Extract or check existing Mermaid/PlantUML code embedded in a whiteboard
  • Update whiteboard content using Mermaid, PlantUML, SVG, or native OpenAPI raw format
  • Support targeted node edits (text, color) via raw JSON round-trip
  • Operate as user identity by default, with optional bot identity for uploads

How to install lark-whiteboard

npx skills add null --skill lark-whiteboard
Prerequisites
  • lark-cli must be installed and available in PATH
  • npx and @larksuite/whiteboard-cli@^0.2.12 must be accessible
  • lark-shared SKILL.md must be read first for authentication and permission setup
  • Appropriate Lark user or bot credentials configured via lark-shared
Claude Code
Cursor
Windsurf
Cline

How to use lark-whiteboard

  1. 1.Install the skill: npx skills add null --skill lark-whiteboard
  2. 2.Ensure lark-cli is available by running lark-cli --version
  3. 3.Ensure whiteboard-cli is available by running npx -y @larksuite/whiteboard-cli@^0.2.12 -v
  4. 4.Read lark-shared/SKILL.md to configure authentication before any whiteboard operation
  5. 5.To view or export a whiteboard, use the +query shortcut with --output_as image, svg, code, or raw
  6. 6.To update a whiteboard, use the +update shortcut with --input_format set to mermaid, plantuml, svg, or raw
  7. 7.For complex diagram creation, follow the Creation Workflow in lark-whiteboard-workflow.md
  8. 8.For modifying existing whiteboards, follow the Modification Workflow in lark-whiteboard-workflow.md

Use cases

Good for
  • Exporting a Lark whiteboard diagram as an image for sharing or documentation
  • Programmatically updating an architecture or flow diagram on a whiteboard using Mermaid code
  • Inspecting the raw node structure of a whiteboard to make precise edits
  • Checking whether a whiteboard was originally created from code (Mermaid/PlantUML)
  • Creating or redrawing complex diagrams (architecture, flowcharts, org charts) on a whiteboard
Who it's for
  • Developers automating Lark whiteboard content via coding agents
  • Teams that maintain diagrams-as-code (Mermaid/PlantUML) synced to Lark whiteboards
  • Engineers who need to export whiteboard snapshots programmatically
  • Anyone using Claude Code or Cursor to interact with Lark cloud document whiteboards

lark-whiteboard FAQ

Can this skill edit regular Lark document content?

No. Document content editing is handled by the lark-doc skill. This skill only covers whiteboard operations.

Can I use this skill to create a whiteboard inside a document?

No. Creating a whiteboard inside a document is handled by lark-doc via lark-doc-whiteboard.md references.

What input formats are supported when updating a whiteboard?

Mermaid, PlantUML, SVG, and the native OpenAPI raw JSON format are all supported via the +update shortcut.

Does the skill operate as a user or a bot by default?

All whiteboard operations default to --as user. Bot identity (--as bot) is only used when uploading as an application.

Can I make small text or color edits without rewriting the whole whiteboard?

Yes. Use +query --output_as raw to get the node JSON, edit it manually, then apply changes with +update --input_format raw.

Full instructions (SKILL.md)

Source of truth, from open.feishu.cn.


name: lark-whiteboard version: 1.0.0 description: > 飞书画板:查询和编辑飞书云文档中的画板。支持导出画板为预览图片、导出原始节点结构、使用多种格式更新画板内容。 当用户需要查看画板内容、导出画板图片、编辑画板时使用此 skill。不负责:飞书云文档内容编辑(lark-doc)、文档内嵌电子表格/Base(lark-sheets / lark-base)。 metadata: requires: bins: ["lark-cli"] cliHelp: "lark-cli whiteboard --help"

[!IMPORTANT]

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

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


快速决策

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

用户需求行动
查看画板内容 / 导出图片 / 导出 SVG 矢量图+query --output_as image/svg
获取画板的 Mermaid/PlantUML 代码+query --output_as code
检查画板是否由代码绘制+query --output_as code
仅微调节点文字/颜色+query --output_as raw → 手动改 JSON → +update --input_format raw
用户已提供 Mermaid/PlantUML/SVG 代码,或明确指定用该格式自己生成/使用代码 → +update --input_format mermaid/plantuml/svg
新建/创作复杂图表(架构/流程/组织等)§ 创作 Workflow
修改/重绘已有画板§ 修改 Workflow

Shortcuts

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

不在本 skill 范围

Related skills

More from open.feishu.cn and the wider catalog.

LA

lark-approval

open.feishu.cn

飞书审批:查询和处理审批待办/已办/实例,搜索可发起审批定义、查看定义详情并发起原生审批实例。当用户要处理审批任务、查看审批实例、搜索或发起审批时使用。审批待办不是飞书任务;非审批类待办走 lark-task。不负责创建审批定义;三方审批定义不走原生提单。

320k installs
LA

lark-doc

open.feishu.cn

飞书云文档(Docx / Wiki 文档):读取和编辑飞书文档内容。当用户给出文档 URL 或 token,或需要查看、创建、编辑文档、插入或下载文档图片附件时使用。文档中嵌入的电子表格、多维表格、画板,先用本 skill 提取 token 再切到对应 skill。当用户给出 doubao.com 的 /docx/ 或 /wiki/ URL/token 时,也应直接使用本 skill;路由依据是 URL 路径模式和 token,而不是域名。不负责文档评论管理,也不负责表格或 Base 的数据操作。

320k installs
LA

lark-base

open.feishu.cn

飞书多维表格(Base)操作:建表、字段、记录、视图、统计、公式/lookup、表单、仪表盘、workflow、角色权限;遇到 Base/多维表格/bitable 或 /base/ 链接时使用。文件导入转 lark-drive,认证/授权转 lark-shared。

320k installs
LA

lark-calendar

open.feishu.cn

飞书日历:管理日历日程和会议室。查看/搜索日程、创建/更新日程、管理参会人、查询忙闲和推荐时段、预定会议室。当用户需要查看日程安排、创建/修改会议、查询/预定会议室时使用。不负责:查询过去的视频会议记录(走 lark-vc)、待办任务(走 lark-task)。

320k installs
LA

lark-drive

open.feishu.cn

飞书云空间(云盘/云存储):管理 Drive 文件和文件夹,包含上传/下载、创建文件夹、复制/移动/删除、查看元数据、评论/权限/订阅、标题、版本和本地文件导入。用户需要整理云盘目录、处理云空间资源 URL/token,或导入 Word/Markdown/Excel/CSV/PPTX/.base 为 docx/sheet/bitable/slides 时使用;doubao.com 云空间 URL/token 也按资源路径和 token 路由,不回退 WebFetch。不负责:文档内容编辑(走 lark-doc)、表格/Base 表内数据操作(走 lark-sheets/lark-base)、知识空间节点/成员管理(走 lark-wiki)、原生 Markdown 文件读写/patch/diff(走 lark-markdown)。

320k installs
LA

lark-contact

open.feishu.cn

飞书 / Lark 通讯录:按姓名 / 邮箱解析成 open_id,或按 open_id 反查姓名 / 部门 / 邮箱 / 联系方式 / 个人状态 / 签名。当用户提到某人姓名要下一步发消息 / 排日程,或拿到 open_id 想查具体信息时使用。不负责部门树遍历、按部门列员工、组织架构图,这类需求走原生 OpenAPI。

320k installs