飞书记忆回顾(feishu-memory-recall)
v2.0.0OpenClaw Feishu 代理的跨组内存、搜索和事件共享
运行时依赖
安装命令
点击复制技能文档
飞书记忆回顾(Feishu Memory Recall)跨群组感知,适用于 OpenClaw。搜索消息、生成摘要、跨所有飞书群组和私信共享事件。
命令 命令描述 recall --user [--hours 24] 在所有群组中查找用户的消息 search --keyword [--hours 24] 在所有群组中按关键词搜索消息 digest [--hours 6] 所有跟踪群组的活动摘要 log-event -s -e 将事件写入 RECENT_EVENTS.md + 每日日志 sync-groups 自动从网关会话中发现群组 add-group -i -n 手动跟踪群组 list-groups 显示跟踪群组
用法 # 在所有群组中搜索“GIF 错误” node skills/feishu-memory-recall/index.js search -k "GIF" --hours 12 # 显示所有群组在过去 6 小时内发生了什么? node skills/feishu-memory-recall/index.js digest --hours 6 # 记录跨会话事件 node skills/feishu-memory-recall/index.js log-event -s "dev-group" -e "在网关中修复 GIF崩溃" # 自动发现所有飞书群组从网关会话 node skills/feishu-memory-recall/index.js sync-groups # 查找特定用户最近说了什么 node skills/feishu-memory-recall/index.js recall -u ou_cdc63fe05e88c580aedead04d851fc04 --hours 48
工作原理 sync-groups:读取 ~/.openclaw/agents/main/sessions/sessions.json 以自动发现代理连接的所有飞书群组。 search/recall/digest:调用 Feishu API 从跟踪群组中获取消息,按关键词/用户/时间过滤。 log-event:追加到 RECENT_EVENTS.md(24 小时跨会话滚动 feed)和 memory/YYYY-MM-DD.md(永久每日日志)。
配置 需要在 .env 中的飞书凭据: FEISHU_APP_ID=cli_xxxxx FEISHU_APP_SECRET=xxxxx 群组列表存储在 memory/active_groups.json 中,可以通过 sync-groups 自动填充。