Feishu Chat Extractor logo

Feishu Chat Extractor

Community
wulaosiji
feishu-chat-extractor

提取并分析飞书群聊历史消息 / Extract and analyze historical chat messages from Feishu/Lark groups. 支持分页、时间范围过滤和内容提取,可生成用户反馈报告和话题分类。 Use when: "提取聊天记录", "extract chat history", "分析群消息", "analyze group messages", "飞书聊天导出", "feishu chat export", "消息历史检索", "message history retrieval", "用户反馈收集", "user feedback collection". 支持按时间范围过滤、关键词分析、话题分类,自动处理分页确保完整检索。Cross-references: feishu-chat-monitor, feishu-card-parser, feishu-message-recall. Built by UniqueClub 🌐 https://uniqueclub.ai

Overview

Publisherwulaosiji
Repositoryskills
Skill namefeishu-chat-extractor
Stars
28
Forks
11
Bundled files
7
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.

  • 7 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 Chat Extractor 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-chat-extractor
  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-chat-extractor .claude/skills/feishu-chat-extractor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Feishu Chat Extractor 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 Chat Extractor 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 Chat Extractor 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 Chat Extractor

提取并分析飞书群聊历史消息——支持分页、时间范围过滤和内容提取。

When to Use

Use this skill when:

  • 需要提取飞书群的完整聊天记录时
  • 需要按时间范围过滤和分析群消息时
  • 需要从聊天中提取 OpenClaw/Clawdbot 相关讨论时
  • 需要基于聊天数据生成用户反馈报告时
  • 需要对聊天内容进行关键词分析和话题分类时

Do NOT use this skill if:

  • 只需要检查最近是否有遗漏的 @提及 → use feishu-chat-monitor instead
  • 需要发送消息或语音到群聊 → use feishu-voice-sender or feishu-video-sender instead
  • 需要撤回已发送消息 → use feishu-message-recall instead

Typical triggers:

  • 「导出这个群的聊天记录」「分析最近一周的群消息」
  • "Extract chat history from this Feishu group", "帮我整理群里的用户反馈"

Workflow

  1. 探查 (Probe) 确认目标群聊 ID、时间范围、是否需要关键词过滤。

  2. 约束 (Constrain) 务必使用 start_time 和 end_time 参数以确保完整提取,避免因保留策略导致分页遗漏。提取完成后检查 has_more 字段,确保所有分页已处理。不降级——数据不完整时报告错误。

  3. 证据 (Evidence) 确定提取范围(全部消息还是按关键词过滤),收集所有必要参数。

  4. 执行 (Execute) 运行提取和分析脚本:

bash
# 提取聊天记录
python3 scripts/extract_chat.py --chat-id <CHAT_ID> --output chat_data.json

# 分析内容(如需要)
python3 scripts/analyze_content.py --input chat_data.json --keywords openclaw,clawdbot,cron,mcp

自动处理分页,确保完整消息检索跨所有时间范围。

  1. 验证 (Verify) 检查消息数量、时间覆盖范围和数据完整性。确认 has_more 为 false,所有分页已处理。

  2. 交付 (Deliver) 输出结构化报告并保存到工作区,返回提取摘要和分析结果。

Output

返回 JSON 格式的聊天数据和结构化分析报告,包含消息列表、时间范围、关键词统计和话题分类。

Guardrails

Anti-patterns

  • NEVER 不使用时间范围参数提取(可能导致分页遗漏)
  • Do NOT 忽略 has_more 字段(可能遗漏后续分页)
  • Do NOT 在未验证数据完整性的情况下生成分析报告

Constraints

  • 保存中间结果以避免重复提取
  • 分析前验证数据完整性
  • 文档化提取参数以便结果可复现
  • 时间范围使用 Unix 时间戳(秒)

Key Techniques

Time Range Extraction

python
params = {
    "container_id": chat_id,
    "container_id_type": "chat",
    "start_time": 1700000000,
    "end_time": 1700100000,
    "page_size": 50
}

Pagination Handling

python
all_messages = []
page_token = None
while True:
    params["page_token"] = page_token
    result = fetch_messages(params)
    all_messages.extend(result["items"])
    if not result["has_more"]:
        break
    page_token = result["page_token"]

Related Skills

  • feishu-chat-monitor — 检查遗漏的 @提及消息
  • feishu-card-parser — 解析飞书卡片消息为可读文本
  • 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 Chat Extractor AI skill do?

提取并分析飞书群聊历史消息 / Extract and analyze historical chat messages from Feishu/Lark groups. 支持分页、时间范围过滤和内容提取,可生成用户反馈报告和话题分类。 Use when: "提取聊天记录", "extract chat history", "分析群消息", "analyze group messages", "飞书聊天导出", "feishu chat export", "消息历史检索", "message history retrieval", "用户反馈收集", "user feedback collection". 支持按时间范围过滤、关键词分析、话题分类,自动处理分页确保完整检索。Cross-references: feishu-chat-monitor, feishu-card-parser, feishu-message-recall. Built by UniqueClub 🌐 https://uniqueclub.ai

Why use Feishu Chat Extractor on TypingMind?

Because you install it once and use it with any model. Feishu Chat Extractor 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 Chat Extractor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wulaosiji/skills/tree/main/feishu-chat-extractor. 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 Chat Extractor?

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 Chat Extractor?

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

Is the Feishu Chat Extractor 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 👇