Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

add-feishu添加飞书

Agent Skill

add-feishu 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

14,041

周安装

597

GitHub Stars

公开资料未说明

下载量

4,919
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:add-feishu(添加飞书)
来源仓库:https://github.com/will-17173/add-feishu
安装命令:
openclaw skills install add-feishu
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install add-feishu

简介

通过 WebSocket 长连接接入飞书频道消息流。

  • 无需公网 URL 或 ngrok 隧道转发。
  • 可与 Slack、Telegram 等平台共存使用。
  • 需配置飞书机器人 Webhook 密钥。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 消息处理应遵循企业信息安全规范。add-feishu 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
add-feishu
description
Add Feishu (Lark) as a channel. Uses WebSocket long connection — no public URL or ngrok needed. Works alongside WhatsApp, Telegram, Slack, or as a standalone channel.

Add Feishu Channel

This skill adds Feishu (飞书/Lark) support to NanoClaw using the skills engine for deterministic code changes, then walks through interactive setup.

Phase 1: Pre-flight

Check if already applied

Read .nanoclaw/state.yaml. If feishu is in applied_skills, skip to Phase 3 (Setup). The code changes are already in place.

Ask the user

Use AskUserQuestion to collect configuration:

AskUserQuestion: Do you have a Feishu (Lark) app already created, or do you need to create one?

If they have one, ask for the App ID and App Secret. If not, walk them through creation in Phase 3.

Phase 2: Apply Code Changes

Run the skills engine to apply this skill's code package. The package files are in this directory alongside this SKILL.md.

Initialize skills system (if needed)

If .nanoclaw/ directory doesn't exist yet:

npx tsx scripts/apply-skill.ts --init

Apply the skill

npx tsx scripts/apply-skill.ts .claude/skills/add-feishu

This deterministically:

  • Adds src/channels/feishu.ts (FeishuChannel class with self-registration via registerChannel)
  • Adds src/channels/feishu.test.ts (unit tests)
  • Appends import './feishu.js' to the channel barrel file src/channels/index.ts
  • Installs the @larksuiteoapi/node-sdk npm dependency
  • Updates .env.example with FEISHU_APP_ID and FEISHU_APP_SECRET
  • Records the application in .nanoclaw/state.yaml

If the apply reports merge conflicts, read the intent file:

  • modify/src/channels/index.ts.intent.md — what changed and invariants

Validate code changes

npm test
npm run build

All tests must pass (including the new feishu tests) and build must be clean before proceeding.

Phase 3: Setup

Create Feishu App (if needed)

If the user doesn't have an app, tell them:

I need you to create a Feishu app: 1. Go to Feishu Open Platform (or Lark Open Platform for international) 2. Click Create AppCustom App 3. Fill in app name and description (e.g., "NanoClaw Assistant") 4. Go to Credentials & Basic Info — copy the App ID and App Secret 5. Go to Event SubscriptionsAdd Events → search and add: - im.message.receive_v1 (Receive messages — v2.0) 6. Go to Permissions & Scopes → add the following permissions: - im:message (Send & receive messages) - im:message:send_as_bot (Send messages as bot) - im:chat (Read chat info) - im:chat.members:read (Read chat members) 7. Go to Bot tab → enable the bot feature 8. Click Publish / Apply for Release Note: For enterprise use, your IT admin may need to approve the app.

Wait for the user to provide the App ID (format: cli_xxxxxxxxxxxxxxxxxx) and App Secret.

Configure environment

Add to .env:

FEISHU_APP_ID=cli_xxxxxxxxxxxxxxxxxx
FEISHU_APP_SECRET=your_app_secret_here

Channels auto-enable when their credentials are present — no extra configuration needed.

Sync to container environment:

mkdir -p data/env && cp .env data/env/env

The container reads environment from data/env/env, not .env directly.

Build and restart

npm run build
launchctl kickstart -k gui/$(id -u)/com.nanoclaw  # macOS
# Linux: systemctl --user restart nanoclaw

Phase 4: Registration

Get Chat ID

Tell the user:

To register a Feishu chat with NanoClaw, I need the chat's ID: For a direct (p2p) chat: 1. Add the bot to your Feishu contacts 2. Open a direct message to the bot 3. Send any message — NanoClaw will log the JID as fs:p2p:<your_open_id> 4. Check logs/nanoclaw.log for: Message from unregistered Feishu chat For a group chat: 1. Add the bot to the group: Group Settings → Members → Add Bot 2. Send any message in the group (or @mention the bot) 3. NanoClaw will log the JID as fs:oc_<chat_id> 4. Check logs/nanoclaw.log for: Message from unregistered Feishu chat

Tell user to check the log:

tail -f logs/nanoclaw.log | grep "unregistered Feishu"

Wait for the user to provide the JID (format: fs:oc_xxxxx or fs:p2p:ou_xxxxx).

Register the chat

For a main chat (responds to all messages):

registerGroup("fs:<chat-id>", {
  name: "<chat-name>",
  folder: "feishu_main",
  trigger: `@${ASSISTANT_NAME}`,
  added_at: new Date().toISOString(),
  requiresTrigger: false,
  isMain: true,
});

For additional chats (trigger-based, responds only when @mentioned or triggered):

registerGroup("fs:<chat-id>", {
  name: "<chat-name>",
  folder: "feishu_<group-name>",
  trigger: `@${ASSISTANT_NAME}`,
  added_at: new Date().toISOString(),
  requiresTrigger: true,
});

Phase 5: Verify

Test the connection

Tell the user:

Send a message to your registered Feishu chat: - For main chat: Any message works - For non-main: @mention the bot or include a question/request keyword The bot should respond within a few seconds.

Check logs if needed

tail -f logs/nanoclaw.log

Troubleshooting

Bot not receiving messages

Check:

  1. im.message.receive_v1 event is added in the app's Event Subscriptions
  2. App is published / enabled (enterprise apps need admin approval)
  3. For groups: the bot is added as a member of the group
  4. FEISHU_APP_ID and FEISHU_APP_SECRET are set in .env AND synced to data/env/env
  5. Service is running: launchctl list | grep nanoclaw (macOS) or systemctl --user status nanoclaw (Linux)

Bot not responding in groups

By default, NanoClaw only responds in groups when:

  • The bot is @mentioned
  • The message contains a request keyword (帮, 请, 分析, etc.)
  • The message ends with ? or ?

To make the bot respond to all messages in a group, register it with requiresTrigger: false.

"Message from unregistered Feishu chat" in logs

This is normal — it means the bot is receiving messages, but the chat isn't registered yet. Follow Phase 4 to register.

Finding the JID

If the log message is hard to find:

sqlite3 store/messages.db "SELECT DISTINCT chat_jid FROM chats WHERE channel = 'feishu'"

App Secret security

The App Secret is sensitive. Store it only in .env and data/env/env. Do NOT commit these files to version control.

JID Format Reference

Chat typeJID formatExample
Group chatfs:oc_<id>fs:oc_4e359893776d45f7cd05d40e3ee10f55
Direct (p2p)fs:p2p:<open_id>fs:p2p:ou_7a66d6bd1baa3e6e3d7b3df9a8c90000

After Setup

If running npm run dev while the service is active:

# macOS:
launchctl unload ~/Library/LaunchAgents/com.nanoclaw.plist
npm run dev
# When done testing:
launchctl load ~/Library/LaunchAgents/com.nanoclaw.plist
# Linux:
# systemctl --user stop nanoclaw
# npm run dev
# systemctl --user start nanoclaw

Removal

To remove Feishu integration:

  1. Delete src/channels/feishu.ts and src/channels/feishu.test.ts
  2. Remove import './feishu.js' from src/channels/index.ts
  3. Remove FEISHU_APP_ID and FEISHU_APP_SECRET from .env
  4. Remove Feishu registrations from SQLite: sqlite3 store/messages.db "DELETE FROM registered_groups WHERE jid LIKE 'fs:%'"
  5. Uninstall: npm uninstall @larksuiteoapi/node-sdk
  6. Rebuild: npm run build && launchctl kickstart -k gui/$(id -u)/com.nanoclaw (macOS) or npm run build && systemctl --user restart nanoclaw (Linux)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.47%
按下载量换算3,958

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills