feishu-docx
57
总安装量
57
周安装量
#3802
全站排名
安装命令
npx skills add https://github.com/leemysw/agent-kit --skill feishu-docx
Agent 安装分布
claude-code
39
opencode
37
gemini-cli
27
codex
25
antigravity
21
Skill 文档
Feishu Docx Exporter
Export Feishu/Lark cloud documents to Markdown format for AI analysis.
Instructions
Setup (One-time)
- Install the tool:
pip install feishu-docx
- Configure Feishu app credentials:
feishu-docx config set --app-id YOUR_APP_ID --app-secret YOUR_APP_SECRET
# or use environment variables
- Authorize with OAuth (opens browser):
feishu-docx auth
Export Documents
Export any Feishu document URL to Markdown:
feishu-docx export "<FEISHU_URL>" -o ./output
The exported Markdown file will be saved with the document’s title as filename.
Supported Document Types
- docx: Feishu cloud documents â Markdown with images
- sheet: Spreadsheets â Markdown tables
- bitable: Multidimensional tables â Markdown tables
- wiki: Knowledge base nodes â Auto-resolved and exported
Examples
Export a wiki page
feishu-docx export "https://xxx.feishu.cn/wiki/ABC123" -o ./docs
Export a document with custom filename
feishu-docx export "https://xxx.feishu.cn/docx/XYZ789" -o ./docs -n meeting_notes
Export spreadsheet as Markdown table
feishu-docx export "https://xxx.feishu.cn/sheets/DEF456" --table md
Read content directly (recommended for AI Agent)
# Output content to stdout instead of saving to file
feishu-docx export "https://xxx.feishu.cn/wiki/ABC123" --stdout
# or use short flag
feishu-docx export "https://xxx.feishu.cn/wiki/ABC123" -c
Read content without saving to file (Python)
from feishu_docx import FeishuExporter
exporter = FeishuExporter(app_id="xxx", app_secret="xxx")
content = exporter.export_content("https://xxx.feishu.cn/wiki/xxx")
print(content)
Command Reference
| Command | Description |
|---|---|
feishu-docx export <URL> |
Export document to Markdown |
feishu-docx auth |
OAuth authorization |
feishu-docx config set |
Set credentials |
feishu-docx config show |
Show current config |
feishu-docx config clear |
Clear token cache |
Tips
- Images are automatically downloaded to a folder named after the document
- Use
--table mdfor Markdown tables instead of HTML - Token is cached and auto-refreshed, no need to re-authorize
- For Lark (overseas), add
--larkflag