lark-wiki

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

1.3k|142|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/MiniMax-AI/minimax-code --skill lark-wiki-minimax-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-wiki
Source: https://github.com/MiniMax-AI/minimax-code/tree/main/packages/local-runtime/assets/skills/lark-tools/cli-skills/lark-wiki
Command: npx skills add https://github.com/MiniMax-AI/minimax-code --skill lark-wiki-minimax-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Managing Feishu (Lark) knowledge bases from the command line requires knowing the correct API resources, member identity types, and space resolution rules. This Skill guides an AI agent to create and query wiki spaces, manage space members, and organize document node hierarchies through lark-cli without guessing parameter formats. ## Core Features & Use Cases - Space and Node Management: Create, list, copy, and query wiki spaces and nodes, including shortcut nodes and personal library (my_library) resolution. - Member Administration: Add or remove space members with correct member_type resolution for users (openid), groups (openchat), and departments (opendepartmentid), including the bot-identity restriction for departments. - Document Migration: Move existing wiki nodes across spaces or migrate Drive documents into a wiki with the +move shortcut, including async task polling and approval requests. - Use Case: A user asks to create a new docx page under a specific wiki parent node and add a colleague as a space member; the Skill resolves the space_id, creates the node with +node-create, and adds the member with the correct open_id. ## Quick Start Ask the agent to create a new page titled "Project Plan" in your Feishu personal knowledge base 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 new node in a Feishu wiki space?

Use the lark-cli wiki +node-create shortcut with a title and optionally a space ID or parent node token. If neither is provided under user identity, it falls back to the personal library my_library; bot identity requires an explicit space_id.

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

First resolve the target to a user, group, or department, then call lark-cli wiki members create with the matching member_type. Users need an open_id from contact search, groups need a chat_id, and departments require user identity with an open_department_id.

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

No. The tenant_access_token used with --as bot cannot add members by department ID. You must switch to --as user identity, or the operation cannot be completed through that path.

How do I move a Drive document into a Feishu wiki?

Use lark-cli wiki +move with --obj-type, --obj-token, and --target-space-id. The operation may be synchronous or asynchronous; if a task_id is returned, continue polling with lark-cli drive +task_result --scenario wiki_move.

What permissions are required for Feishu wiki API operations?

Each method maps to a scope, such as wiki:space:read for space queries, wiki:node:create for node creation, and wiki:member:create for adding members. The CLI performs a local scope pre-check and prompts re-login if scopes are missing.