Lark Wiki Skill
Works in Grok Bot
- Installs
- 948k
TL;DR
Lark Wiki skill: This is the open.feishu.cn copy of lark-wiki, a skill for the lark-cli tool that manages Feishu (Lark) knowledge bases.
Install if
Developers who script or automate a Feishu wiki with lark-cli and want an agent to follow correct identity, space_id and member-type rules.
Skip if
Skip it for editing document, sheet or Base content, or for uploading files to a wiki node. The file routes those to lark-doc, lark-sheets, lark-base and lark-drive.
Try it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add the remote connector:
claude mcp add --transport http skillselion https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:open.feishu.cn#lark-wiki (Lark Wiki) and follow it.Try it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add this URL as a custom connector (Claude.ai, ChatGPT or Cursor):
https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:open.feishu.cn#lark-wiki (Lark Wiki) and follow it.What lark-wiki covers
- Creates and lists Feishu knowledge spaces and the nodes inside them
- Adds, lists and removes space members with explicit member-type rules
- Moves wiki nodes into Drive with a dedicated +move-to-drive command
- Blocks bot-identity department adds and asks you to use user identity
- Resolves a wiki URL to the real space_id before delete or member calls
lark-wiki by the numbers
| All-time installs | 947,738 (948k) | skills.sh registry |
|---|---|---|
| Repository | ||
Data as of Nov 29, 2026 (Skillselion catalog sync)
- 13 wiki shortcuts listed in the shortcut table
- 3 resource groups: spaces, members, nodes
What can the lark-wiki skill do in Claude Code?
Free skill; requires a Feishu/Lark login via lark-cli auth.
- Capabilities
- manage wiki spaces · manage wiki nodes · manage space members
- Use cases
- documentation
- Runs
- Runs locally
- Pricing
- Free
What lark-wiki says it does
用户要在知识库中创建新节点,优先使用 `lark-cli wiki +node-create`。
`--as bot` 对应 `tenant_access_token`。
该 shortcut 默认只取一页,多成员场景显式加 `--page-all`。
What does the Lark Wiki skill produce?
The agent runs the right lark-cli wiki shortcut with a resolved space_id, the correct identity and the matching member type.
- Created or listed wiki spaces and nodes
- Moved or copied wiki nodes
- Added or removed space members
What files ship with lark-wiki?
wiki (v2)
CRITICAL — 开始前 MUST 先用 Read 工具读取 `../lark-shared/SKILL.md`,其中包含认证、权限处理
成员管理硬限制: - 如果目标是“部门”,先判断身份,再决定是否继续。 -
--as bot对应tenant_access_token。官方限制:这种身份下不能使用部门 ID (opendepartmentid) 添加知识空间成员。 - 遇到“部门 + --as bot”时,禁止先调用lark-cli wiki +member-add试错;直接说明该路径不可行。 - 如果用户明确要求“以 bot 身份运行”,且目标是部门,必须停下说明 bot 路径无法完成,不要静默切到--as user。
身份选择:优先使用 user 身份
知识空间和节点都是用户的个人资源,策略上应优先显式使用 --as user(CLI 的 --as 默认值为 auto,不带 --as 时常被解析成 bot,列出的是应用所属空间而非用户的)。仅当用户明确要求“应用 / bot 视角”时才用 --as bot(仍受上面的成员管理硬限制约束)。
快速决策
- 用户要按特定主题 / 关键词 / 内容线索查找资料并收集到知识库节点或新建知识库节点下,必须先阅读 `../lark-drive/references/lark-drive-workflow.md`,再按其中
Workflow Registry进入 `topic_move_collector` workflow。该 workflow 使用 Drive 全量搜索召回,再按 Wiki 目标解析、确认和移动;不要只用 Wiki 节点列表做局部遍历。 - 用户要整理 / 盘点 / 归类 / 重构知识库、个人文档库、文档库目录或 Wiki 节点结构,或要生成整理方案、目标目录树、移动计划时,不要只使用 Wiki 节点 API。必须先阅读 `../lark-drive/references/lark-drive-workflow.md`,再按其中
Workflow Registry进入 `knowledge_organize` workflow;该 workflow 负责 Drive / Wiki / 个人文档库的统一入口解析、资源盘点、分类计划、写前确认和结果验证。 - 用户要把已有 Wiki 节点移出知识库,放到 Drive 文件夹或“我的空间”根目录:使用
wiki +move-to-drive,不要使用wiki +move或drive +move。这是会改变节点归属和权限继承的写操作,执行前确认源节点与目标位置。 - 用户给的是知识库 URL(
.../wiki/<token>),且后续要查成员/加成员/删成员:先确定下游成员操作的身份(默认user;用户明确要求应用 / bot 视角时用bot),再调用lark-cli wiki +node-get --node-token '<wiki_url>' --as user --format json,从data.space_id获取空间 ID;下游使用 bot 时将示例中的身份改为--as bot。节点解析与后续成员操作必须使用相同身份。 - 用户要删除知识空间(
wiki +delete-space)但只给了名称或 URL:不能把名称 / URL 原样传给--space-id,必须先解析出真实space_id。解析方式: - URL(
.../wiki/<token>):先确定后续wiki +delete-space的身份(默认user;明确要求 bot 视角时用bot),再调用lark-cli wiki +node-get --node-token '<wiki_url>' --as user --format json,读取data.space_id;下游使用 bot 时将示例中的身份改为--as bot。解析和删除必须使用相同身份。 - 只知名称:
lark-cli wiki spaces list --format json,边翻页边收集 items 并按name精确匹配;一旦任一页累计到至少 1 条精确匹配就停止翻页。只有当翻完所有页(has_more=false)仍无精确匹配时,才对已收集的全量 items 做宽松匹配(nametrim 空格、大小写不敏感、子串包含)。 - 关键安全约束:无论精确还是模糊,无论命中 1 条还是多条,发起删除前都必须把候选(
name+space_id+description+space_type)列给用户,由用户明确选定一个space_id再执行。不要因为"只命中一条"就自动执行删除。 - 命中 0 条:停下来问用户是名称拼错了还是调用方无权限;不要自行改名字重试。
- 用户明确选定后再执行
lark-cli wiki +delete-space --space-id <ID> --yes(高风险写操作,必须显式--yes)。 - 反例:不要把 wiki URL / 名称直接当
--space-id(如--space-id "https://.../wiki/<wiki_token>");务必先用wiki +node-get解析出data.space_id再传。 - 用户要在知识库中创建新节点,优先使用
lark-cli wiki +node-create。 - 用户要原地重命名 Wiki 节点 / 修改节点标题:使用
lark-cli drive +update-title --url '<wiki_url>' --title '<new_title>'。该命令保留同一个node_token,并会根据 API 返回给出准确的缺失 scope 和授权提示;不要探索 rawwiki.nodes的update_title端点,也不要通过复制或新建第二个节点实现改名。 - 用户要列出 Wiki 节点:先用
wiki +space-list --as user拿数字space_id,再用wiki +node-list --space-id <space_id>。不要把 wiki URL、node token、doc token、名称直接当--space-id。钻子节点时--parent-node-token必须是 wiki node token;如果用户给的是 docx/sheet/base URL,先用wiki +node-get --node-token <url>解析出node_token。 wiki +node-list命中invalid_parameters、not_found、permission_denied时,不要重复调用同一参数;按 hint 修space_id/parent_node_token/ 权限。只有rate_limit才做退避重试。- 用户说“给知识库添加成员/管理员”:先把目标解析成“用户 / 群 / 部门 / 应用”四类之一,再决定
--member-type,不要先调wiki +member-add再根据报错反推类型。 - 用户说“部门 + bot”:这是已知不支持路径。不要继续尝试 `wi
Which skills are related to lark-wiki?
How does lark-wiki compare?
Use it instead of calling raw Feishu wiki endpoints by hand, because it encodes the shortcut choice and the identity and ID rules.
Lark Wiki skill FAQ
Who is the Lark Wiki skill for?
Developers who script or automate a Feishu wiki with lark-cli and want an agent to follow correct identity, space_id and member-type rules. Skip it for editing document, sheet or Base content, or for uploading files to a wiki node. The file routes those to lark-doc, lark-sheets, lark-base and lark-drive.
When should I use lark-wiki?
The user asks to find or create documents in a Feishu knowledge base, browse a space, manage space members, or move or copy wiki nodes, including doubao.com /wiki/ URLs.
How do I add a member to a Feishu wiki space with lark-cli?
Resolve the person, group, app or department to the right ID first, then run wiki +member-add with a matching --member-type. Users default to openid, groups use openchat, apps use appid.
Can a bot add a department to a Feishu wiki space?
No. The file says tenant_access_token (--as bot) cannot use a department ID to add space members. It tells the agent to stop and explain, or use --as user, instead of trying the call.
How do I list wiki nodes with lark-cli?
Run wiki +space-list --as user to get the numeric space_id, then wiki +node-list --space-id with that value. Do not pass a wiki URL, node token or name as the space ID.
Add a lark-wiki badge
Show developers this skill is listed on Skillselion. Paste this into your README.