用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jacobgao5/hermes-agent --skill feishu-integration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | feishu-integration |
| description | Integrate Feishu (飞书/Lark) messaging platform with Hermes Agent using the built-in platform adapter |
| version | 1.0.0 |
| metadata | {"hermes":{"tags":["messaging","feishu","lark","integration","china"],"homepage":"https://open.feishu.cn/"}} |
| prerequisites | {"commands":["pip","hermes"]} |
Hermes has a built-in Feishu platform adapter at gateway/platforms/feishu.py. This skill covers the complete integration process.
The Feishu adapter supports:
FEISHU_ALLOWED_USERScd ~/hermes-agent
source venv/bin/activate
pip install lark-oapi qrcode aiohttp websockets
python scripts/feishu_setup.py
This interactive script will:
~/.hermes/config.yaml and ~/.hermes/.envhermes gateway run
Edit ~/.hermes/config.yaml:
platforms:
feishu:
enabled: true
extra:
app_id: "cli_xxxxxxxxxxxxxxxx"
app_secret: "your_app_secret"
domain: "feishu" # or "lark" for international
connection_mode: "websocket" # or "webhook"
encrypt_key: "your_encrypt_key"
verification_token: "your_verification_token"
group_policy: "mention_only" # mention_only | open | disabled | allowlist
# Webhook mode only
webhook_host: "0.0.0.0"
webhook_port: 8765
webhook_path: "/feishu/webhook"
Add to ~/.hermes/.env:
FEISHU_ENABLED=true
FEISHU_APP_ID=cli_xxxxxxxxxxxxxxxx
FEISHU_APP_SECRET=your_app_secret
FEISHU_DOMAIN=feishu
FEISHU_CONNECTION_MODE=websocket
FEISHU_ENCRYPT_KEY=your_encrypt_key
FEISHU_VERIFICATION_TOKEN=your_verification_token
FEISHU_GROUP_POLICY=mention_only
hermes gateway feishu onboard
This generates a QR code. Scan with Feishu app to auto-create the application.
cli_)In the app management page, add these permissions:
Bot Capabilities:
Event Subscriptions:
im.message.receive_v1)im.message.message_read_v1)card.action.trigger)Security Settings:
extra:
connection_mode: "websocket"
extra:
connection_mode: "webhook"
webhook_host: "0.0.0.0"
webhook_port: 8765
webhook_path: "/feishu/webhook"
Configure webhook URL in Feishu Open Platform:
https://your-domain.com:8765/feishu/webhook
| Policy | Description |
|---|---|
mention_only | Bot only responds when @mentioned (default) |
open | Anyone in group can interact |
disabled | Bot disabled in groups |
allowlist | Only specific users can interact |
extra:
group_policy: "mention_only"
group_rules:
"chat_id_1":
policy: "open"
"chat_id_2":
policy: "allowlist"
allowlist:
- "ou_xxxxx1" # user open_id
- "ou_xxxxx2"
"chat_id_3":
policy: "disabled"
你好@BotName 你好tail -f ~/.hermes/logs/gateway.log | grep feishu
| Type | Support | Notes |
|---|---|---|
| Text | ✅ | Markdown supported |
| Image | ✅ | Auto-cached and processed |
| File | ✅ | Common document formats |
| Audio | ✅ | Common audio formats |
| Video | ✅ | Auto-downloaded and cached |
| Card | ✅ | Interactive card messages |
| Forwarded | ✅ | Parsed to plain text |
Check config.yaml or .env for correct credentials.
Ensure Verification Token in Feishu platform matches config.
Check Encrypt Key is correctly copied without extra spaces.
# Install missing packages
pip install lark-oapi qrcode aiohttp websockets
extra:
# Text message batching
text_batch_delay_seconds: 0.6
text_batch_max_messages: 8
text_batch_max_chars: 4000
# Media message batching
media_batch_delay_seconds: 0.8
# Environment variable
FEISHU_ALLOWED_USERS=ou_xxxxx1,ou_xxxxx2,ou_xxxxx3
extra:
domain: "feishu" # China mainland
# or
domain: "lark" # International
# Check gateway status
hermes gateway status
# Reload configuration
hermes gateway reload
# View bot info (if implemented)
hermes gateway feishu info
# Check platform status
hermes gateway feishu list
gateway/platforms/feishu.pyscripts/feishu_setup.pydocs/feishu-setup-guide.md~/.hermes/config.yaml~/.hermes/logs/gateway.log