Score
8.8
/ 10
Installs
266K
Repo Stars
14.2K
Last Updated
7d ago
Quality Ratio
99%
Description
Verified
Language
Go
First Published
Mar 2026
Summary
The Lark Whiteboard agent skill empowers the AI agent to generate and embed various visual diagrams, such as architecture diagrams, flowcharts, mind maps, and sequence diagrams, directly into Larksuite documents. This agent skill is invaluable for teams and individuals operating within the Larksuite ecosystem who need AI assistance in visual communication and diagramming. It is a moderately adopted skill in the registry. This agent skill guides the AI through a three-step workflow, choosing between a custom DSL for precise control or Mermaid syntax for common diagrams like mind maps. It provides comprehensive guidance on DSL syntax, content planning, layout strategies, and styling, with critical constraints like using `'fit-content'` for text node heights. Crucially, it mandates a dry-run check before overwriting existing Larksuite whiteboards, prompting the agent to ask for user confirmation if content deletion is imminent. Its utility is specifically tied to the Larksuite platform, requiring `whiteboard-cli` and `lark-cli` for local rendering and integration.
Skill Definition
[!IMPORTANT]
- 运行
lark-cli --version,确认可用,无需询问用户。- 运行
npx -y @larksuite/whiteboard-cli@^0.2.11 -v,确认可用,无需询问用户。
CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理
快速决策
身份:画板操作默认使用 --as user。仅当需要以应用身份上传时使用 --as bot。
| 用户需求 | 行动 |
|---|---|
| 查看画板内容 / 导出图片 | +query --output_as image |
| 获取画板的 Mermaid/PlantUML 代码 | +query --output_as code |
| 检查画板是否由代码绘制 | +query --output_as code |
| 修改节点文字/颜色(简单改动) | +query --output_as raw → 手动改 JSON → +update --input_format raw |
| 用户已提供 Mermaid/PlantUML 代码,或明确指定用该格式 | 自己生成/使用代码 → +update --input_format mermaid/plantuml |
| 新建/创作复杂图表(架构/流程/组织等) | → § 创作 Workflow |
| 修改/重绘已有画板 | → § 修改 Workflow |
Shortcuts
不在本 skill 范围
- 文档内容编辑 → lark-doc lark-doc
- 在文档中创建画板 → lark-doc-whiteboard.md
- 表格 / Base 操作 → lark-sheets / lark-base