lark-drive

Manage Feishu Drive files, folders, comments, and permissions via lark-cli commands.

Updated Sep 4, 2025
One-click install
npx skills add https://github.com/ykai55/dotfiles --skill lark-drive-ykai55
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-drive
Source: https://github.com/ykai55/dotfiles/tree/main/opencode/skills/lark-drive
Command: npx skills add https://github.com/ykai55/dotfiles --skill lark-drive-ykai55

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you manage Feishu cloud space content and collaboration workflows without manually handling tokens and API differences, especially when uploading/downloading files, organizing folders, and working with document comments and permissions.

Core Features & Use Cases

  • File & folder operations: upload, download, create folders, copy/move/delete, and list/inspect metadata in Drive.
  • Comment management: add full-document or selected text (docx) comments, list comments with correct counting semantics, reply handling, and reply lifecycle.
  • Wiki-aware token resolution: safely resolve wiki links by querying the wiki node first to obtain the real obj_token, then route to the correct API by obj_type before performing operations.
  • Permission & subscriptions: manage document permissions (members/auth/transfer owner) and subscribe to user comment-related events.

Quick Start

Use the lark-drive skill to download a file by providing its file_token or extracting it from a Drive file URL.

Frequently Asked Questions about lark-drive

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

FAQPage Schema
How do I manage Feishu Drive files and folders via automation?

You can automate Feishu Drive file management by uploading, downloading, copying, moving, and deleting files or folders. It handles directory structures and metadata inspection without manual API calls.

How does wiki token resolution work for Feishu documents?

Wiki token resolution queries the wiki node first to obtain the real obj_token, then routes to the correct API by obj_type. This ensures operations target the correct document object safely.

Can I add and query document comments on Feishu docx files?

Yes, you can add full-document or selected text comments to docx files. The system supports listing comments with correct counting semantics, reply handling, and reply lifecycle management.

Does this approach handle Feishu document permission management?

Feishu document permission management is supported, allowing you to manage document members, configure authorization, transfer ownership, and subscribe to user comment-related events.

What are the limitations of using lark-cli for cloud drive operations?

Operations require deterministic CLI usage via lark-cli drive commands. Strict guardrails apply for comment modes, pagination, and permission scopes, meaning manual API deviations are not supported.

Do I need lark-cli to download a file from a Feishu Drive URL?

Yes, downloading a file from a Feishu Drive URL requires lark-cli. You provide the file_token or extract it from the Drive file URL to execute the deterministic download command.