hermes-child-agent-feishu-group
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hermes-child-agent-feishu-group":https://skillpi.com/zh/skills/deepskill-9e12f8f82ec9b02811b789ba5ffb5bd0d53e69ae0c5e49331979de527bd20300。安装前核对上游来源和版本:https://skillhub.cn/skills/user_57da45b8/hermes-child-agent-feishu-group。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
配置两个或以上 Hermes 代理作为飞书群聊机器人,通过 delegate_task 协作。将提供的 App ID 与 App Secret 用于自动配置代理资料、SOUL.md 与 launchd 配置文件;代理名称与数量可自定义。
介绍来源: third_party · user_57da45b8 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: feishu-multi-agent-collaboration
description: Set up 2 or more Hermes agents as Feishu group bots collaborating via delegate_task. Send App ID + App Secret to the AI; it provisions profiles, SOUL.md, and launchd plists automatically. Roles are arbitrary — pick any naming and count.
triggers:
- feishu multi-agent setup
- hermes feishu bot team
- PM Plan Dev chain feishuFeishu Multi-Agent Collaboration
Background
Hermes Agent is a personal AI agent that can run multiple independent profiles, each with its own gateway, SOUL.md, and conversation context. Normally profiles live in separate Feishu (or other IM) groups for isolation.
When you need several agents to collaborate inside one Feishu group — e.g. PM dispatches a task to Plan, Plan writes a design for Dev, Dev writes code for Test, Test reports back to PM — you need N independent Feishu bots in the same group, each @mentioning the others by their real open_id.
This skill provisions that setup:
- Creates
~/.hermes/profiles/<role>/for each role you specify - Writes per-profile
config.yaml,SOUL.md,.env - Generates a shared
SOUL.mdtemplate that knows every other role's open_id, so any agent in the group can @mention any other correctly - Starts each profile's gateway (macOS launchd / Linux nohup)
You supply: N Feishu app credentials + chat_id. The AI does the rest.
What you get
you → PM (Feishu) → Plan → Dev → Plan review → Test → PM report
all via delegate_task; Feishu messages = external notifications
Default 4 roles (PM / Plan / Dev / Test) shown above — but you can have as few as 2 or as many as you want. Roles are not hardcoded: name them anything, count them however you like.
Default role table (most users start here, but you can name any roles you want):
| Role | Does | Doesn't |
|---|---|---|
| PM | receive requests, dispatch chain, report back | answer domain questions |
| Plan | architecture, plan output, code review | test, develop |
| Dev | implement per plan, fix bugs | design, test |
| Test | functional test, verify, report | review, develop |
Role keys in env vars (ROLES=pm,plan,dev etc.) must be lower-case to match ${role}_NAME / ${role}_APP_ID lookups in setup.sh. Two profiles is the minimum. There's no hardcoded upper limit in this skill, but real-world ceiling is set by Feishu's per-app / per-group bot caps and by how many concurrent agents your LLM context window can handle.
Setup (5 minutes)
1. Create Feishu apps
For each agent (N = number of bots you want):
- Go to open.feishu.cn/app → Create enterprise app
- App capabilities → Bot → Enable
- Version management → Create version → Publish (required, bot won't respond to @ until published)
- Copy App ID + App Secret
2. Create the group, add bots
- Create a Feishu group chat
- Add all N bots to the group (Settings → Group bots → Add)
- Copy the group chat_id (Settings → Group info → at the bottom)
3. Paste credentials to AI
If running setup.sh yourself, set lower-case env vars (role key matches ROLES):
export ROLES="pm,plan,dev"
export pm_NAME="PM" pm_APP_ID="cli_xxx" pm_APP_SECRET="xxx"
export plan_NAME="Plan" plan_APP_ID="cli_xxx" plan_APP_SECRET="xxx"
export dev_NAME="Dev" dev_APP_ID="cli_xxx" dev_APP_SECRET="xxx"
export FEISHU_CHAT_ID="oc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
bash scripts/setup.sh
Or paste credentials to the AI and let it run setup.sh:
Feishu group chat_id: oc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PM: app_id cli_xxx, app_secret xxx
Plan: app_id cli_xxx, app_secret xxx
Dev: app_id cli_xxx, app_secret xxx
The AI will:
- Fetch each bot's
open_idfrom/bot/v3/info(no need to ask you) - Create
~/.hermes/profiles/<role>/with config, SOUL.md, .env - Install launchd plists, start all gateways
LLM config inherits from main Hermes agent; override per role if needed.
Pre-flight checklist
Run these BEFORE running setup.sh. Any unchecked box = expected failure later.
Feishu apps (per role):
- [ ] All N apps have ≥1 published version (
open.feishu.cn→ app → 版本管理与发布) - [ ] Bot capability enabled (应用能力 → 机器人)
- [ ] Required scopes:
im:message,im:message.group_at_msg,im:message:send_as_bot
Group:
- [ ] Group exists, all N bots added (群设置 → 群机器人)
- [ ] Group
chat_idcopied (Settings → Group info)
Hermes Agent config (~/.hermes/config.yaml):
- [ ]
model:block is full — hasapi_key,api_mode,base_url,default,provider,context_length(runhermes config showto verify) - [ ] Env var follows
<PROVIDER>_API_KEYconvention:provider=minimax-cn→MINIMAX_CN_API_KEY=…in~/.hermes/.env
Linux hosts running hermes-gateway.service:
- [ ] Decide before setup: stop systemd service (custom profiles only) OR leave it active (it will spawn a default gateway that competes for the same Feishu app_id, causing
app_lockconflicts)systemctl status hermes-gateway # check active state
Required checks before asking "why doesn't it work?"
# Are credentials present?
grep -E 'FEISHU_APP_ID|FEISHU_APP_SECRET|FEISHU_BOT_OPEN_ID' ~/.hermes/profiles/<role>/.env
# Is the gateway running?
hermes gateway list
# Is the group chat_id correct?
grep home_channel ~/.hermes/profiles/<role>/config.yaml
@mention not working — check in this order
- App published — bot won't respond to @ until version is published.
FEISHU_BOT_OPEN_IDmissing in.env— the bot doesn't know its own open_id, can't route @s back to itself. Highest-priority failure.channel_directory.json::feishuarray empty — bot was never added to the group, gateway can't see it. Add bot to group, restart gateway.FEISHU_ALLOW_BOTS≠all— bot-to-bot messages silently dropped at default"none". Set inconfig.yamlor env.FEISHU_ALLOWED_USERSdoesn't include sender — message silently dropped. Add sender's open_id.- SOUL.md missing @mention XML for other bots — when you @Claude/@Codex in the group, the receiving bot doesn't know what to do. SOUL.md must contain:
<at user_id="ou_xxx">Claude</at> <at user_id="ou_yyy">Codex</at>Plain
@nametext does NOT trigger anything in Feishu; XML only. - Bot rebuilt on Feishu side → open_id changed — update
FEISHU_BOT_OPEN_IDin.envand every<at user_id=>in every SOUL.md. (Real open_id: grep gateway.log forsender=bot:ou_xxx.)
If multiple bots in one group, each must set FEISHU_REQUIRE_MENTION=true in their .env, or every bot answers every message.
3 files to inspect when a sub-agent behaves wrong
head -1 ~/.hermes/profiles/<role>/SOUL.md # should be the role's identity, not another role's
grep chat_id ~/.hermes/profiles/<role>/config.yaml
grep oc_ ~/.hermes/profiles/<role>/channel_directory.json
All three must reference the same group.
Failure modes — log pattern → grep → fix
When a bot doesn't respond, scan logs in this order:
Symptom (in profiles/<role>/logs/gateway.log) |
Grep | Fix |
|---|---|---|
Unauthorized user: ou_XXX |
grep -h "Unauthorized" ~/.hermes/profiles/*/logs/gateway.log \| tail -20 |
Single trusted user: add FEISHU_ALLOWED_USERS=ou_XXX to that profile's .env. Multi-bot: add FEISHU_ALLOW_ALL_USERS=true to all profile .env files, restart. |
No LLM provider configured or provider: None |
grep -h "No LLM provider\|provider.*None" ~/.hermes/profiles/*/logs/gateway.log |
Each profile's config.yaml::model: block is incomplete. Copy the full block from main config: hermes config show \| grep -A 10 "^model:". setup.sh does this automatically — re-run it. |
Bot @s another bot, recipient gateway shows Inbound group message received then Unauthorized |
grep -B1 "Unauthorized" ~/.hermes/profiles/<recipient>/logs/gateway.log |
Second-layer auth check. FEISHU_GROUP_POLICY=open only opens the first layer; set FEISHU_ALLOW_ALL_USERS=true in all profiles. |
| Short 200-char response that looks generic | grep -h "RuntimeError" ~/.hermes/profiles/*/logs/gateway.log |
This is the gateway's fallback text, NOT the LLM's reply. Root cause is above (provider/model misconfigured). |
app_id or app_secret is invalid |
grep -h "invalid" ~/.hermes/profiles/*/logs/gateway.log |
Wrong credentials, OR another gateway holds the lock. Check ~/.local/state/hermes/gateway-locks/ and remove stale entries. |
Always run hermes config check && hermes config show && hermes status BEFORE reading logs — most failures are config-not-runtime.
Single-bot Feishu setup (default profile only)
Skip the chain — just wire default profile to Feishu:
grep FEISHU_APP_ID ~/.hermes/.env
grep FEISHU_BOT_OPEN_ID ~/.hermes/.env # open_id is the #1 cause of @ not working
hermes gateway list
If all three return values but the bot doesn't respond, run through the @mention checklist above — same root causes apply.
Stop / rollback
macOS (launchd):
for f in ~/Library/LaunchAgents/ai.hermes.gateway*.plist; do
launchctl unload "$f" 2>/dev/null
done
ps aux | grep 'hermes_cli.main.*gateway' | grep -v grep | awk '{print $2}' | xargs kill -9 2>/dev/null
rm -f ~/.local/state/hermes/gateway-locks/*
Linux (nohup / systemd):
pkill -9 -f 'hermes_cli.main.*gateway' 2>/dev/null
sudo systemctl stop hermes-gateway 2>/dev/null # if you started via install.sh
rm -f ~/.local/state/hermes/gateway-locks/*
Full rollback (delete all profiles):
pkill -9 -f 'hermes_cli.main.*gateway' 2>/dev/null
for p in pm-agent plan-agent dev-agent test-agent; do
hermes profile delete "$p" -y 2>/dev/null
done
rm -rf ~/.hermes/profiles/{pm,plan,dev,test}-agent
# Edit ~/.hermes/config.yaml to remove FEISHU_* config if you added any
Verify clean: ps aux | grep gateway | grep -v grep returns nothing.
Restart a gateway
hermes gateway restart is not supported.
macOS (launchd):
launchctl bootout gui/$(id -u)/ai.hermes.gateway-<profile> 2>&1
sleep 2
launchctl load ~/Library/LaunchAgents/ai.hermes.gateway-<profile>.plist
Linux (manual or systemd):
pkill -9 -f 'hermes_cli.main.*gateway.*<profile>' 2>/dev/null
sleep 2
nohup ~/.hermes/hermes-agent/venv/bin/python -m hermes_cli.main \
gateway run --profile <profile> --replace \
> ~/.hermes/profiles/<profile>/logs/gateway.log 2>&1 &
Get a bot's open_id (when you need it manually)
TOKEN=$(curl -s -X POST 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal' \
-H 'Content-Type: application/json' \
-d '{"app_id":"<APP_ID>","app_secret":"<APP_SECRET>"}' | python3 -c "import sys,json; print(json.load(sys.stdin)['tenant_access_token'])")
curl -s -X GET 'https://open.feishu.cn/open-apis/bot/v3/info' -H "Authorization: Bearer $TOKEN"
# → {"bot":{"open_id":"ou_xxx",...}}
Multi-bot @ mention XML format
Feishu bot must emit and parse ONLY XML, never plain text:
<at user_id="ou_xxx_bot_a">BotA</at> please review
Text form @BotA please review does nothing. SOUL.md prompt blocks, message construction, and reference docs all use XML.
Chain discipline
| Rule | If broken |
|---|---|
Chain dispatch uses delegate_task, not Feishu messages |
"ok" response ≠ delivered; task silently lost |
| Dev only @Plan review AFTER code is committed | review on empty diff, chain stalls |
| Every bot's first message must @downstream | handoff fails silently |
| Adding a new bot → update SOUL.md of ALL existing bots | existing bots can't @ new bot |
| Don't run launchd + manual gateway at the same time | port collision, duplicate tokens |
Prerequisites
macOS. Hermes Agent installed. Each Feishu app published with bot capability enabled.
Files
SKILL.md— this filescripts/setup.sh— bulk profile creation; cross-platform (macOS launchd + Linux nohup/systemd)scripts/feishu-multi-agent-setup.py— OAuth device-flow helper (auto-fetches credentials)
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
原始报告中有 2/4 项可核验的维度分数。
亮点
- 提供完整的多 Agent Feishu 群组协作解决方案
- 解决明确的团队协作痛点,支持任务链式流转
- 包含端到端自动化脚本和详细配置指南
待提升项
-
触发词覆盖不全 原报告严重程度:轻微
缺少对单 bot 场景和更通用 'hermes feishu' 的触发支持
改进建议:补充 triggers 如 'hermes feishu bot', 'feishu single agent setup' 以覆盖更多使用场景
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
删除文件
先确认绝对路径及作用范围,保留可恢复备份;不要直接对重要目录运行示例命令。
主文档提及 · 第 205 行 -
调用命令或脚本
先读脚本与参数,使用普通权限和限定目录;安装或执行前由使用工具再次确认。
主文档提及 · 第 72 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 24, 62, 75, 106, 118 行 -
管理员或提升权限
确认确有必要再提升权限;不要关闭防护、绕过证书验证或扩大整个系统的访问权限。
主文档提及 · 第 195 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- open.feishu.cn
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。