feishu-md-exporter

Convert Feishu/Lark documents and Drive folders to Markdown using Open Platform APIs.

4|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/hwj123hwj/custom-skills --skill feishu-md-exporter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feishu-md-exporter
Source: https://github.com/hwj123hwj/custom-skills/tree/main/skills/feishu-md-exporter
Command: npx skills add https://github.com/hwj123hwj/custom-skills --skill feishu-md-exporter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for exporting Feishu/Lark documents to Markdown format, allowing users to easily access and backup their documents locally.

Core Features & Use Cases

  • Document Exporting: Converts Feishu/Lark documents, Drive folders, and entire Drive folder trees to Markdown files.
  • Personal Backup: Facilitates the creation of personal backups for documents that are viewable but not easily copyable or exportable through the UI.
  • Use Case: If you have important documents stored in Feishu/Lark and want to ensure they are backed up in a format that can be easily accessed and shared, this Skill can help you convert them to Markdown.

Quick Start

Run the script with the following command:

python /Users/weijian/.agents/skills/feishu-md-exporter/scripts/export_feishu_md.py "https://example.feishu.cn/drive/folder/xxxxx" --output ./feishu_md_exports

Frequently Asked Questions about feishu-md-exporter

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

FAQPage Schema
How do I export Feishu documents to Markdown for local backup?

You can export Feishu documents to Markdown for local backup by using a Python script that leverages official Open Platform APIs. It processes document blocks and converts them into easily accessible Markdown files stored in a local directory.

Does exporting Feishu documents to Markdown require OAuth user authorization?

Yes, exporting Feishu documents to Markdown requires OAuth user authorization. The script uses the official Feishu Open Platform APIs, which necessitate proper OAuth authentication to access and process your Drive folders and document blocks securely.

What is the best way to back up Feishu documents that cannot be easily copied through the UI?

The best way to back up restricted Feishu documents is using an API-based script to convert them to Markdown. This bypasses UI limitations by directly processing document blocks via the Open Platform API, creating a local, shareable personal backup.

Do I need to install the requests library to use this Feishu document exporter?

Yes, you need to install the requests library to use this Feishu document exporter. The script relies on the requests dependency to handle HTTP communication with the Feishu Open Platform APIs during the document block processing and conversion.

How does document block processing work when converting Feishu files to Markdown?

Document block processing works by fetching document structures via the Feishu Open Platform API and mapping them to Markdown syntax. The script systematically processes these blocks to ensure accurate formatting and content transfer into the final Markdown files.