SkillsGrove
SkillsGrove/生産性向上/cklxx/elephant.ai/feishu-im-read

feishu-im-read

インストール

$npx skills add https://github.com/cklxx/elephant.ai --skill feishu-im-read
$git clone --depth 1 https://github.com/cklxx/elephant.ai.git /tmp/elephant.ai && mkdir -p ~/.claude/skills && cp -r /tmp/elephant.ai/skills/feishu-im-read ~/.claude/skills/feishu-im-read
この Agent Skill をインストールしてください:https://github.com/cklxx/elephant.ai/tree/bc94628f41b7daba20825b86069ae8e0fa83dc5e/skills/feishu-im-read — まず SKILL.md とスクリプトを読み、安全であることを確認してから、私のスキルフォルダにインストールしてください。

概要

原文の説明 · MITWhen 飞书 chat history needs reading → fetch group/DM messages, thread replies, and download attached files/images.
以下の SKILL.md は cklxx/elephant.ai(コミット bc94628)から MIT ライセンスに基づいて転載しています。本文は変更しておらず、ファイル先頭のメタデータのみ省略し、画像はリンクとして表示し、非常に長いファイルは途中までの表示としています。Copyright 2025 cklxx。ライセンス:LICENSE。表示しているのは指示ファイルのみです。スクリプト等は元のリポジトリをご覧ください。

Feishu IM Read Skill

快速索引

用户意图 module tool_action 必填参数
发送消息 message send_message chat_id/user_id, content
读取消息历史 message history chat_id
上传文件 message upload_file source, file_type

调用示例

发送消息

python3 skills/feishu-cli/run.py '{
  "action": "tool",
  "module": "message",
  "tool_action": "send_message",
  "chat_id": "oc_xxx",
  "content": "Hello! 这是一条测试消息"
}'

读取消息历史

python3 skills/feishu-cli/run.py '{
  "action": "tool",
  "module": "message",
  "tool_action": "history",
  "chat_id": "oc_xxx",
  "start_time": "2026-03-01",
  "end_time": "2026-03-10",
  "page_size": 20
}'

核心约束

  • chat_id: 群聊 ID(oc_ 开头);必填——可通过参数直传,或由环境变量 LARK_CHAT_ID 自动注入(Lark channel 中默认已注入)
  • user_id: 用户 open_id(ou_ 开头),用于私聊
  • 消息类型: 支持 text、post(富文本)、image、file 等
  • 分页: 使用 page_token 和 page_size 进行分页
  • 时间过滤: start_time 和 end_time 支持日期字符串
ライセンス全文を見る(MIT)
MIT License

Copyright (c) 2025 cklxx

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.