Preface¶
In multi-Agent environments like OpenClaw, a common requirement is enabling different Agents to notify each other via Feishu (Lark): a Customer Service Agent forwarding conclusions to an Operations Agent, or a Main Agent dispatching tasks to Sub-Agents. Manually writing Feishu OpenAPI calls for every instance, while maintaining respective chat_ids and sender identities, involves high configuration costs and risks identity mix-ups.
The feishu-agent-send introduced below consolidates “who is who, whom to send to, and whether it is P2P or group chat” into local configuration and a set of Python utilities. Guided by the Skill, Agents follow a fixed workflow to call these tools, making it suitable for repeatable and verifiable multi-Agent Feishu communication.
What is this¶
feishu-agent-send is a community Skill on SkillHub with the coordinate @user_d1914364/feishu-agent-send. The current page version is v3.0.2, categorized under ai-agent, with a tag indicating requires_api_key=false (the Skill itself does not enforce a separate API Key field; actual message sending still relies on the Feishu/OpenClaw channel capabilities already present in your environment).
Positioning (see SKILL.md / README.md in the package): A Feishu multi-Agent communication tool—a single Skill shared by multiple Agents to automatically identify the current sender via local configuration and scripts, generating send instructions for feishu_im_user_message.
Maintenance info: The package’s README.md lists the author as zy4522 (Zhang Yan) and the license as MIT.
Core Features¶
The following capabilities are derived from the documentation and scripts in the v3.0.x package and can be cross-referenced with the SkillHub entry.
- Local Agent Directory: Use
feishu_add.pyto register target Agent names andchat_ids (supports configuring P2Pp2pand group chatgroupper Agent). - Sender Identity: Each Agent must use
feishu_set_self.pyto write its ownchat_idupon first use; the sender can be detected automatically during sending, or specified via--from. - Send Message:
feishu_send.pysends text to a specified Agent; when--deliveris added, it outputs complete one-stop sending instructions (including thefeishu_im_user_messagecall and log prompts). Without--deliver, it operates in preview mode. - Query:
feishu_who.pyviews registered Agents; error outputs are structured JSON with attached step-by-step repair hints (e.g., missing sender, unknown Agent,--chat-typeonly allowsp2p/group). - Integration with OpenClaw Config: The core module reads binding information from
~/.openclaw/openclaw.json(or paths likeOPENCLAW_CONFIG) to assist in identifying the current Agent.
The configuration file path is fixed as:
~/.feishu_agent_send/config.json
Example structure (excerpt from SKILL.md):
{
"version": "3.0.0",
"agents": {
"ying": {
"p2p": {"chat_id": "oc_xxx"},
"group": {"chat_id": "oc_yyy"}
},
"kfj": {
"p2p": {"chat_id": "oc_xxx"}
}
},
"self_by_agent": {
"kfj": {"chat_id": "oc_xxx"},
"main": {"chat_id": "oc_xxx"}
}
}
Installation and Activation¶
Install via SkillHub CLI¶
First, confirm that skillhub is installed on your machine (see SkillHub Installation Instructions for installation details). When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized.
skillhub install @user_d1914364/feishu-agent-send --dir <your skills directory>
Common directories (consistent with official installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, the scripts inside the package are located at @user_d1914364/feishu-agent-send/tools/ under that directory (depending on your actual --dir).
You can also let the Agent install it following official prompts:
Please install `@user_d1914364/feishu-agent-send` based on https://skillhub.cn/install/skillhub.md.
Runtime Dependencies¶
The tools are Python 3 scripts and require python3 to be executable on the local machine. The final delivery of messages relies on available Feishu IM capabilities in the environment (feishu_im_user_message in the Skill docs); please prepare this along with your OpenClaw / Feishu channel configuration.
Typical Usage¶
Assume the Skill is installed to ~/.openclaw/skills/@user_d1914364/feishu-agent-send (replace the path with your actual directory).
1. Register sender for the current Agent (first time)
python3 ~/.openclaw/skills/@user_d1914364/feishu-agent-send/tools/feishu_set_self.py kfj oc_xxx
2. Add common target Agents
python3 ~/.openclaw/skills/@user_d1914364/feishu-agent-send/tools/feishu_add.py ying oc_xxx
3. Send (recommend --deliver)
python3 ~/.openclaw/skills/@user_d1914364/feishu-agent-send/tools/feishu_send.py ying "Hello" --deliver
Follow the instructions output in the terminal to execute feishu_im_user_message to complete the actual sending. If you only want to view the generated content without delivering, remove --deliver.
4. Switch between P2P / Group Chat
When the same Agent has both p2p and group configured, P2P is selected by default; for group messages, you must specify explicitly:
python3 .../feishu_send.py ying "Message" --chat-type group --deliver
The documentation notes that for group message scenarios, it will prompt to wait about 6 seconds before executing the send to reduce the risk of frequent mass messaging.
Use Cases and Notes¶
Suitable for:
- Users already employing OpenClaw or multi-Agent orchestration who need point-to-point notifications between Agents on Feishu.
- Users wanting to consolidate
chat_idand sender mappings into~/.feishu_agent_send/config.json, constraining the call sequence via the Skill to reduce manual curl usage.
Notes:
- SkillHub page statistics (at time of capture): Rating 100000, Downloads approx 922; after installation, prioritize the package’s
SKILL.mdand script behavior. The page version number (3.0.2) and the functional version written in the docs (3.0.0) may differ slightly; rely on the files you actually installed. feishu_send.py’s--delivergenerates and guides the call; it does not replace Feishu authentication. Feishu app credentials, tenant tokens, etc., are still provided by existing channel configurations.- Target Agent names must match the configuration;
available_agentsin the error JSON can be used to cross-reference and complete entries infeishu_add.py. - Some example paths in the package’s
SKILL.mdare written as~/.openclaw/skills/feishu_agent_send/; when installing via SkillHub, the directory name is often@user_d1914364/feishu-agent-send. Please use the real path when executing commands.
Conclusion¶
feishu-agent-send breaks down multi-Agent Feishu communication into three steps: “Register Self → Register Peer → Script Generates Send Instructions.” It is suitable for stable, reviewable collaborative notifications rather than one-off temporary curl commands.
Official Entry Points:
- SkillHub Page: https://www.skillhub.cn/skills/user_d1914364/feishu-agent-send
- API Coordinate Page: https://api.skillhub.cn/user_d1914364/feishu-agent-send