lark-wiki

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing Lark (Feishu) knowledge bases through raw APIs is error-prone: resolving space IDs from URLs or names, choosing the right identity (user vs bot), and handling async delete/move tasks all require careful orchestration. This Skill wraps the wiki OpenAPI into safe, guided CLI shortcuts. ## Core Features & Use Cases - Space Management: Create, list, and delete wiki spaces, with mandatory user confirmation and name/URL resolution before irreversible deletions. - Node Operations: Create, move, copy, list, get, and delete wiki nodes, including moving Drive documents into a wiki and handling async task polling. - Member Administration: Add, list, and remove space members with correct member-type resolution (user, chat, department) and 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 token, looks up the user's open_id, and grants the role with the correct identity. ## Quick Start Ask the agent to list all 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 create a page in a Lark wiki from the command line?

Run lark-cli wiki +node-create with a --title and optionally --space-id or --parent-node-token. With user identity and no target specified, it defaults to your personal library (my_library) and creates a docx node.

How do I find a wiki space_id from a Lark wiki URL?

Call lark-cli wiki spaces get_node with the token from the /wiki/<token> URL path, then read data.node.space_id from the JSON response. This resolved space_id is required for member and deletion operations.

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

No. Adding a department member with --as bot (tenant_access_token) is not supported by the Lark API. You must use --as user with --member-type opendepartmentid for department grants.

What happens when a wiki space deletion runs asynchronously?

The +delete-space shortcut polls the returned task_id up to 30 times at 2-second intervals. If still processing, it returns timed_out=true with a next_command using lark-cli drive +task_result to continue checking.

Why must I confirm before deleting a Lark wiki space?

Space deletion is irreversible and removes all nodes inside. The CLI requires an explicit --yes flag, and the Skill mandates listing candidate spaces for the user to pick a space_id before any deletion executes.