lark-drive

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

3|2|Updated Jul 21, 2026
One-click install
npx skills add https://github.com/zlsbksdxl/codex-lark --skill lark-drive-zlsbksdxl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lark-drive
Source: https://github.com/zlsbksdxl/codex-lark/tree/main/plugins/feishu2codex/skills/lark-drive
Command: npx skills add https://github.com/zlsbksdxl/codex-lark --skill lark-drive-zlsbksdxl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Working with Feishu/Lark cloud storage (Drive) from an AI agent requires knowing dozens of APIs, token types, and URL formats. This Skill provides structured guidance for uploading, downloading, organizing, importing, exporting, and governing Drive files and folders through the official lark-cli, eliminating guesswork around tokens, permissions, and async tasks. ## Core Features & Use Cases - File & Folder Operations: Upload, download, copy, move, delete, create folders and shortcuts, and sync local directories with Drive folders. - Import & Export: Convert local Word, Markdown, Excel, CSV, PPTX, and .base files into online docx, sheet, bitable, or slides documents, and export cloud documents to PDF, XLSX, CSV, Markdown, and more. - Comments, Permissions & Governance: Add and list full-text or anchored comments, manage collaborators and public sharing, apply secure labels, request access from owners, and inspect URL/token types including wiki unwrapping. - Use Case: A user asks to import a local Excel file as a Base table into a specific folder, then share it with teammates. The Skill routes to drive +import --type bitable, then drive +member-add with proper confirmation gates. ## Quick Start Ask the agent to upload a local file to your Feishu Drive or inspect a Feishu document URL, and it will run the appropriate lark-cli drive command after confirming authentication via lark-shared.

Frequently Asked Questions about lark-drive

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

FAQPage Schema
How do I import a local Excel or CSV file into Feishu Base?

Use lark-cli drive +import --type bitable with the local file path. The .xlsx, .csv, and .base extensions map to bitable imports; run batch imports to the same folder serially to avoid server-side concurrency conflicts.

How do I export a Feishu document to PDF or Markdown?

Use lark-cli drive +export with the document URL and --file-extension such as pdf, docx, markdown, xlsx, csv, or pptx. Wiki URLs are automatically unwrapped to the underlying document type before export.

Can I use a wiki URL directly for Drive operations?

Wiki tokens cannot be used directly as file tokens. Run lark-cli drive +inspect --url with the wiki URL to unwrap it and obtain the underlying obj_token and type before performing comments, downloads, or exports.

Why does drive +import fail with error 232140101?

This error indicates concurrent import or creation operations targeting the same location. Switch to serial execution, wait a few seconds before each retry, and retry each failed item at most three times.

What operations are not handled by the lark-drive skill?

Document body editing belongs to lark-doc, spreadsheet cell operations to lark-sheets, Base table records to lark-base, wiki node hierarchy to lark-wiki, and native Markdown file patching to lark-markdown.