lark-wiki

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

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/TrayMachi/dotfiles --skill lark-wiki-traymachi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-wiki
Source: https://github.com/TrayMachi/dotfiles/tree/main/agents/skills/lark-wiki
Command: npx skills add https://github.com/TrayMachi/dotfiles --skill lark-wiki-traymachi

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Managing Feishu (Lark) knowledge bases through raw APIs is error-prone: space IDs must be resolved from URLs or names, member types must be matched correctly, and destructive operations like space deletion need strict confirmation. This Skill wraps the lark-cli wiki commands into safe, guided workflows. ## Core Features & Use Cases - Space Management: Create, list, and delete wiki spaces, with mandatory name/URL resolution to a real space_id and user confirmation before irreversible deletion. - Node Operations: Create, move, copy, list, get, and delete wiki nodes, including moving Drive documents into Wiki and handling 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 token, 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 in your personal knowledge library 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 delete a Lark wiki space by name?

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

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

First resolve the target to a member type: 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 flags.

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 access tokens cannot use opendepartmentid. You must use --as user for department member additions instead of retrying with bot identity.

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

Use lark-cli wiki +move with --obj-type, --obj-token, and --target-space-id to migrate the Drive document into Wiki. If the operation returns a task_id, the command polls briefly and provides a next_command for continued async status checks.

What operations are outside the scope of the lark-wiki skill?

Uploading files to wiki nodes is handled by lark-drive, editing document content by lark-doc, and spreadsheet or base data operations by lark-sheets and lark-base. Searching files by name and managing comments or permissions also belong to lark-drive.