lark-wiki

Manage Feishu wiki spaces, members, and document nodes via lark-cli commands.

3|2|Updated Jul 21, 2026
One-click install
npx skills add https://github.com/zlsbksdxl/codex-lark --skill lark-wiki-zlsbksdxl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-wiki
Source: https://github.com/zlsbksdxl/codex-lark/tree/main/plugins/feishu2codex/skills/lark-wiki
Command: npx skills add https://github.com/zlsbksdxl/codex-lark --skill lark-wiki-zlsbksdxl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lark-cli, and includes references (resource) components.

What problem does it solve? Organizing Feishu/Lark knowledge bases through raw API calls is error-prone: space IDs must be resolved from URLs or names, member types must be matched to the right ID format, and destructive operations like space deletion need strict confirmation. This Skill wraps the lark-cli wiki commands with safe, guided workflows. ## Core Features & Use Cases - Space Management: Create, list, and delete wiki spaces, with mandatory name/URL-to-space_id resolution and user confirmation before irreversible deletions. - Node Operations: Create, list, get, copy, move, and delete wiki nodes, including moving Drive documents into Wiki and moving Wiki nodes out to Drive folders with async task polling. - Member Administration: Add, list, and remove space members with correct member-type resolution (user, chat, department, app) and user/bot identity constraints. - Use Case: A user pastes a wiki URL and asks to add a colleague as admin. The Skill resolves the space_id from the URL, looks up the user's open_id via contact search, and runs lark-cli wiki +member-add with the correct flags. ## Quick Start Ask the assistant to list the nodes in your Feishu knowledge base or create a new page under a specific wiki node using the lark-wiki skill.

Frequently Asked Questions about lark-wiki

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a node in a Feishu wiki from the command line?

Run lark-cli wiki +node-create with a title and optionally a space ID or parent node token. With user identity and no target specified, it defaults to your personal library (my_library); the default object type is docx.

How do I delete a Feishu wiki space safely?

Resolve the real space_id first using wiki spaces get_node for a URL or wiki spaces list for a name, then confirm the candidate with the user. Execute lark-cli wiki +delete-space --space-id <ID> --yes; the --yes flag is mandatory for this irreversible operation.

Can a bot identity add a department as a wiki space member?

No. Adding a department member with --as bot is a known unsupported path because tenant tokens cannot use opendepartmentid for member creation. Use --as user with --member-type opendepartmentid instead.

How do I move a wiki node out of the knowledge base to a Drive folder?

Use lark-cli wiki +move-to-drive with the wiki node token and an optional target folder token. The operation is asynchronous; the shortcut polls the task and returns a next_command for continued polling if it times out.

What is the difference between wiki +move and drive +move?

wiki +move targets a wiki space or parent node and also moves Drive documents into Wiki. drive +move targets Drive folders for files already in Drive; use wiki +move-to-drive when moving a wiki node out to Drive.

Why does wiki +node-list fail with invalid_parameters or not_found?

These errors mean the space_id or parent node token is wrong, not a transient failure. Verify the numeric space_id via wiki +space-list and resolve document URLs to node tokens with wiki +node-get before retrying.