Feishu-docx is an automation tool that converts Feishu/Lark Docs, Sheets, and Bitables to Markdown. It supports OAuth 2.0, CLI, TUI, and Claude Skills. This tool enables AI agents to access and process Feishu data, benefiting operations teams by automating knowledge base exports and updates.
git clone https://github.com/leemysw/feishu-docx.gitFeishu-docx is an automation tool that reads, writes, and manages Feishu/Lark knowledge bases by converting documents, spreadsheets, Bitables, and wiki nodes to Markdown format. It supports OAuth 2.0 authentication, CLI and TUI interfaces, and integrates with Claude Skills for seamless AI agent access. The tool handles rich-text formatting, embedded tables, images, attachments, and weChat article imports while offering cloud-space file management capabilities. Operations teams benefit from automated knowledge base exports, batch wiki backups, and direct document creation workflows. Setup requires minimal configuration with automatic token refresh and supports both app-level and user-level permissions.
[{"step":"Authenticate with Feishu/Lark using OAuth 2.0. Run the command: `feishu-docx auth --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET` and follow the redirect URL to complete authentication.","tip":"Use the CLI tool for batch processing or the TUI for interactive selection of documents. For Claude Skills, ensure the OAuth token is stored in your environment variables."},{"step":"List available documents to identify the target [DOCUMENT_NAME] and [DOCUMENT_TYPE]. Run: `feishu-docx list --type doc` (replace 'doc' with 'sheet' or 'bitable' as needed).","tip":"Use filters like `--created-after 2023-10-01` to narrow down large document libraries."},{"step":"Convert the document to Markdown. For a single document: `feishu-docx convert --doc-id DOC123456 --output project-phoenix.md`. For batch conversion: `feishu-docx batch-convert --type sheet --output-dir ./markdown-exports/`","tip":"Add `--include-images` to embed images as base64 data URIs in the Markdown file."},{"step":"Verify the output file. Open [OUTPUT_FILENAME].md in a Markdown editor (e.g., VS Code, Typora) to check for formatting errors, broken tables, or missing images.","tip":"Use `feishu-docx validate --file project-phoenix.md` to automatically check for common conversion issues."},{"step":"Integrate with workflows. For example, pipe the output to a GitHub repository: `feishu-docx convert --doc-id DOC123456 --output - | gh gist create -f project-phoenix.md`","tip":"Schedule regular conversions using cron jobs or CI/CD pipelines (e.g., GitHub Actions) to keep Markdown exports up-to-date."}]
Export entire Feishu wiki spaces to Markdown for knowledge base backups and versioning
Enable Claude agents to read and search internal Feishu documents as context
Automate WeChat article imports and conversion to Feishu documents
Create and update Feishu documents programmatically from external data sources
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/leemysw/feishu-docxCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Convert the Feishu/Lark [DOCUMENT_NAME] ([DOCUMENT_TYPE]) to Markdown format. Ensure all formatting, tables, and embedded images are preserved. Save the output as [OUTPUT_FILENAME].md. If the document contains multiple sheets or tables, include them as separate Markdown tables in the same file. Use the Feishu-docx tool with OAuth 2.0 authentication.
```markdown # Project Phoenix - Q3 Roadmap *Last updated: October 12, 2023* ## Executive Summary The Q3 roadmap for Project Phoenix includes three major milestones: - **Launch Beta v2.1** (Target: Oct 20) - **Integrate Payment Gateway** (Target: Nov 5) - **Onboard 50+ Enterprise Clients** (Target: Dec 15) ## Key Metrics (Q3 Progress) | Metric | Target | Current | Status | |-----------------------|---------|---------|--------------| | User Growth | 15,000 | 12,847 | On Track | | Revenue (ARR) | $1.2M | $987K | Behind | | Support Tickets | <100 | 124 | Needs Review | ## Engineering Tasks ### High Priority 1. **Database Migration** (Assigned: @alice) - Status: In Progress - ETA: Oct 18 - Notes: Requires downtime window of 2 hours 2. **API Rate Limiting** (Assigned: @bob) - Status: Blocked - Blocked by: Third-party service outage - ETA: Oct 22 (after vendor fix) ### Medium Priority - **UI/UX Improvements** (Assigned: @charlie) - Status: Backlog - Notes: Feedback from usability tests pending ## Attachments - [Project_Phoenix_Q3_Plan.pptx](attachment:12345678) - [Technical_Architecture_Diagram.png](attachment:87654321) ``` *Note: All images and tables have been converted to Markdown-compatible formats. The original Feishu document contained 3 sheets, 2 tables, and 4 embedded images, all preserved in this output.*
Move fast without breaking things with Lark
AI assistant built for thoughtful, nuanced conversation
Monitor AI agent behavior and user interactions
Get more done every day with Microsoft Teams – powered by AI
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan