lark-wiki

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

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/dulltackle/kangkang-skills --skill lark-wiki-dulltackle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-wiki
Source: https://github.com/dulltackle/kangkang-skills/tree/main/lark-wiki
Command: npx skills add https://github.com/dulltackle/kangkang-skills --skill lark-wiki-dulltackle

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Organizing a Lark (Feishu) knowledge base through raw APIs 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 deleting a space demand strict confirmation. This Skill wraps the lark-cli wiki commands with safe, validated workflows. ## Core Features & Use Cases - Space management: List, create, and safely delete wiki spaces, including resolving a space ID from a wiki URL or an exact/fuzzy name match with mandatory user confirmation before deletion. - 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, group, department, app) and identity selection between user and bot tokens. - 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 adds them with the correct member type. ## Quick Start Ask the assistant to list the nodes in your Lark wiki space or create a new page titled "Project Plan" in your personal knowledge library.

Frequently Asked Questions about lark-wiki

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

FAQPage Schema
How do I delete a Lark wiki space by name?

First resolve the name to a real space_id by listing spaces with lark-cli wiki spaces list and matching the name exactly. Then present all candidates to the user for explicit selection, and only run wiki +delete-space --space-id <ID> --yes after confirmation, since deletion is irreversible.

How do I add a member to a Feishu wiki space?

Resolve the target to a member type first: use contact search for users (openid), chat search for groups (openchat), or the departments API for departments. Then call lark-cli wiki +member-add with the matching --member-id, --member-type, and --member-role, preferably with --as user.

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

No. The Lark API does not support adding members by department ID with a tenant (bot) token. This path is a known hard limitation, so department member additions must use --as user instead of retrying with the bot identity.

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 command creates an async task and polls it; if it times out, resume with drive +task_result using the returned task_id.

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

wiki +move targets a wiki space or parent node, covering node moves within Wiki and moving Drive documents into Wiki. drive +move only relocates files between Drive folders. Moving a wiki node out to Drive requires wiki +move-to-drive instead.

Why does wiki node-list fail with permission_denied?

Error 131006 means the current user or bot identity lacks access to that space or node; it is a resource access issue, not a missing app scope. Do not retry or switch identities blindly—ask the node owner or wiki administrator to grant read access.