360 Secure SkillHub
360 安全技能中心

Lark CLI Dev Hub Whiteboard

该 Skill 指导用 lark-cli/feishu-cli 配合 @larksuite/whiteboard-cli,把 Mermaid、SVG 或 DSL 图表渲染后写入飞书/Lark 画板,适用于架构图、缺陷排查路径、发布流程、任务依赖图与项目知识图谱;并要求每个长期画板配套 Base Artifacts 记录以便后续检索。

afengzi
afengzi
热度 27.92
最近更新 2026-05-20 02:36:31
分类:创作依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add lark-cli-devhub-whiteboard
Metadata
name
lark-cli-devhub-whiteboard
description
Use when creating or updating Feishu/Lark Whiteboards through lark-cli or feishu-cli for a development knowledge hub, including architecture maps, bug investigation paths, task maps, dependency maps, and project knowledge graphs.
metadata
{"requires":{"bins":["lark-cli","npx"]}}

Lark CLI Dev Hub Whiteboard

Whiteboard is for human scanning and relationship maps. It is not the only AI-readable source of truth.

Discovery aliases: feishu-cli whiteboard, 飞书画板, lark-cli whiteboard, Lark Whiteboard, architecture diagram, knowledge graph.

Good Uses

  • Architecture map with 3-7 zones.
  • Bug diagnosis path.
  • Release flow.
  • Task dependency map.
  • Project knowledge graph overview.
  • Decision impact map.

Required Pairing

Every durable Whiteboard should have a Base Artifacts record with:

  • Title
  • Project
  • Area
  • Artifact Type = Whiteboard
  • Source URL
  • Summary
  • AI Summary
  • Search Keywords

This lets future agents discover the map without needing to visually inspect it first.

Rendering Rules

  • Mermaid is good for simple flows, timelines, sequence diagrams, and mind maps.
  • SVG or DSL is better for dense architecture and knowledge maps.
  • Keep line count low. Prefer grouping and adjacency over all-to-all edges.
  • Validate locally before writing to Feishu when possible.

CLI Pattern

npx -y @larksuite/whiteboard-cli@^0.2.11 \
  -i diagram.mmd -o diagram.png -f mermaid

npx -y @larksuite/whiteboard-cli@^0.2.11 \
  -i diagram.mmd --to openapi --format json \
  | lark-cli whiteboard +update \
      --whiteboard-token "$WHITEBOARD_TOKEN" \
      --source - --input_format raw \
      --idempotent-token "$(date +%s)-devhub" \
      --overwrite --dry-run --as user

After a meaningful redraw, query or export the remote board once to confirm the write landed.

When official lark-whiteboard skill is installed, use it for exact query/update workflows.