Feishu Card Parser logo

Feishu Card Parser

Community
wulaosiji
feishu-card-parser

飞书卡片消息解析器 / Feishu interactive card parser. 解析飞书 Interactive Card 消息为可读 Markdown 或纯文本格式,支持提取图片、链接、@用户等元素。 Use when: "解析飞书卡片", "parse feishu card", "卡片消息提取", "card message extraction", "富文本转Markdown", "rich text to markdown", "飞书卡片内容", "feishu card content", "提取图片链接", "extract image links". 支持 text / lark_md / img / link / at / code_block / url 等元素解析,输出 Markdown 或结构化 JSON。Cross-references: feishu-chat-extractor, feishu-chat-monitor, feishu-message-recall. Built by UniqueClub 🌐 https://uniqueclub.ai

Overview

Publisherwulaosiji
Repositoryskills
Skill namefeishu-card-parser
Stars
28
Forks
11
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by wulaosiji on GitHub. Read the source before you install it.

Installation

Install the Feishu Card Parser AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wulaosiji/skills/tree/main/feishu-card-parser
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wulaosiji/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/feishu-card-parser .claude/skills/feishu-card-parser
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Feishu Card Parser in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Feishu Card Parser on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Feishu Card Parser is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Feishu Card Parser

飞书卡片消息解析器——将飞书的富文本卡片解析为 Markdown 或纯文本格式。

When to Use

Use this skill when:

  • 收到飞书卡片消息需要提取其中文本内容时
  • 需要将卡片中的 lark_md 格式转换为标准 Markdown 时
  • 需要提取卡片中的图片 key、链接、@用户等信息时
  • 需要对飞书消息进行结构化处理或归档时

Do NOT use this skill if:

  • 需要提取普通文本聊天记录 → use feishu-chat-extractor instead
  • 需要处理视频或语音消息 → use feishu-video-sender or feishu-voice-sender instead
  • 需要发送卡片消息 → 使用飞书消息发送 API(非本 skill 范畴)

Typical triggers:

  • 「解析这个飞书卡片消息」「把卡片内容转成 Markdown」
  • "Extract text from this Feishu card", "提取卡片里的图片和链接"

Workflow

  1. 探查 (Probe) 确认卡片消息 JSON 内容或 JSON 文件路径。

  2. 约束 (Constrain) 输入必须是有效的飞书卡片 JSON 格式。lark_md 格式会尽量转换为标准 Markdown,但部分飞书特有语法可能无法完全对应。图片提取后返回的是 image_key,如需实际图片文件需配合飞书图片下载 API。不降级——无效 JSON 时报告错误。

  3. 证据 (Evidence) 确认卡片 JSON 结构有效,识别卡片中的元素类型。

  4. 执行 (Execute) 调用解析器处理卡片 JSON:

bash
python3 skills/feishu-card-parser/card_parser.py --input card.json --format markdown

提取文本、图片、链接、@用户、代码块等元素,根据需求输出为 Markdown 或结构化 JSON。

  1. 验证 (Verify) 检查解析结果,确认所有元素已正确提取,Markdown 格式正确。

  2. 交付 (Deliver) 返回解析后的内容和元数据,清理临时文件。

Output

返回解析后的 Markdown 文本或结构化 JSON,包含提取的文本、图片 key、链接 URL、@用户信息和代码块内容。

Guardrails

Anti-patterns

  • NEVER 尝试解析无效的飞书卡片 JSON
  • Do NOT 假设 lark_md 能完全转换为标准 Markdown(部分飞书特有语法可能丢失)
  • Do NOT 将 image_key 当作图片 URL(需配合飞书图片下载 API 获取实际图片)

Constraints

  • 输入必须是有效的飞书卡片 JSON 格式
  • lark_md 格式会尽量转换为标准 Markdown,但部分飞书特有语法可能无法完全对应
  • 图片提取后返回的是 image_key,如需实际图片文件需配合飞书图片下载 API

Supported Elements

标签说明解析方式
text普通文本✅ 直接提取
lark_mdLark Markdown✅ 转换为标准 Markdown
img图片✅ 提取 image_key
link链接✅ 提取 URL
at@用户✅ 提取用户ID和名称
code_block代码块✅ 提取代码内容
url预览卡片✅ 提取链接和标题

Python API

python
from skills.feishu_card_parser import parse_card_message, card_to_markdown

# 解析卡片消息
card_json = '{"title":"","content":[[{"tag":"text","text":"内容"}]]}'
result = parse_card_message(card_json)

# 转换为 Markdown
markdown = card_to_markdown(card_json)

Related Skills

  • feishu-chat-extractor — 提取和分析聊天记录
  • feishu-chat-monitor — 监控遗漏的 @提及消息
  • feishu-message-recall — 撤回已发送的消息

About UniqueClub

Part of the UniqueClub toolkit. 🌐 https://uniqueclub.ai

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Feishu Card Parser AI skill do?

飞书卡片消息解析器 / Feishu interactive card parser. 解析飞书 Interactive Card 消息为可读 Markdown 或纯文本格式,支持提取图片、链接、@用户等元素。 Use when: "解析飞书卡片", "parse feishu card", "卡片消息提取", "card message extraction", "富文本转Markdown", "rich text to markdown", "飞书卡片内容", "feishu card content", "提取图片链接", "extract image links". 支持 text / lark_md / img / link / at / code_block / url 等元素解析,输出 Markdown 或结构化 JSON。Cross-references: feishu-chat-extractor, feishu-chat-monitor, feishu-message-recall. Built by UniqueClub 🌐 https://uniqueclub.ai

Why use Feishu Card Parser on TypingMind?

Because you install it once and use it with any model. Feishu Card Parser is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Feishu Card Parser in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wulaosiji/skills/tree/main/feishu-card-parser. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Feishu Card Parser?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Feishu Card Parser?

As many as you like. As long as a model supports skills, you can use Feishu Card Parser with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Feishu Card Parser AI skill free?

It is published on GitHub by wulaosiji. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇