Feishu doc converter

From wulaosiji/skills · View interactive version

Feishu doc converter is an AI agent skill from the GitHub repository wulaosiji/skills. 飞书文档格式转换技能 / Feishu document converter. 支持飞书云文档与 Markdown 互转,以及外部链接(微信公众号等)转 Markdown。 Use when: "飞书文档转Markdown", "feishu doc to markdown", "markdown转飞书", "markdown to feishu", "链接转Markdown", "url to markdown", "微信公众号抓取", "wechat article fetch", "批量文档转换", "batch document conversion". 支持 doc_to_md()

How to use this skill

Skill file

Feishu Document Converter

飞书文档格式转换技能——文档与 Markdown 互转,外部链接转 Markdown。

When to Use

Use this skill when:

Do NOT use this skill if:

Typical triggers:

Workflow

  1. 探查 (Probe)

确认源内容类型(飞书文档 URL / 外部链接 / 本地文件)和输出路径。

  1. 约束 (Constrain)

根据源类型选择转换方式,不混用:飞书云盘文档用 API 方式,知识库文档用 Browser 方式,外部链接用 url_to_md。批量转换时逐个处理,避免并发导致封号或限流。

  1. 证据 (Evidence)

确认源 URL 有效且可访问。对于飞书文档,提取 doc_token;对于外部链接,确认页面可抓取。

  1. 执行 (Execute)

运行转换脚本:

# 文档转 MD
python3 skills/feishu-doc-converter/scripts/convert.py doc "https://feishu.cn/docx/xxx" output.md

# 链接转 MD
python3 skills/feishu-doc-converter/scripts/convert.py url "https://mp.weixin.qq.com/s/xxx" output.md
  1. 验证 (Verify)

检查生成的 Markdown 格式和内容完整性,确认标题、表格、代码块等元素正确转换。

  1. 交付 (Deliver)

返回输出文件路径,清理临时文件。

Output

生成 Markdown 文件,包含转换后的文档内容。Python API 示例:

from skills.feishu_doc_converter import doc_to_md, url_to_md

# 云盘文档转 Markdown
md_content = doc_to_md("docx/UD18dxyZfoo4uRx4cTNchIc8nBe")
md_content = doc_to_md("https://feishu.cn/docx/xxx")

# 知识库文档
md_content = doc_to_md("https://uniquecapital.feishu.cn/wiki/xxx")

# 链接转 Markdown
md_content = url_to_md("https://mp.weixin.qq.com/s/xxx")

Guardrails

Anti-patterns

Constraints

Supported Sources

| 平台 | 状态 | 说明 |

|------|------|------|

| 飞书云盘文档 | ✅ 支持 | API 方式(doc_to_md)或 Browser 方式(url_to_md) |

| 飞书知识库文档 | ✅ 支持 | Browser 方式(url_to_md,推荐) |

| 外部知识库 | ✅ 支持 | Browser 方式(url_to_md) |

| 微信公众号 | ✅ 支持 | API 方式(url_to_md) |

| 知乎 | 🚧 待实现 | - |

| 普通网页 | 🚧 待实现 | - |

Related Skills

About UniqueClub

Part of the UniqueClub toolkit.

🌐 https://uniqueclub.ai

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.