feishu-notify
它能做什么
这个技能从其他工具向 Feishu 或 Lark 发送通知,两者都是团队聊天应用。适合希望在长时间任务期间于手机上接收更新的人。
适用场景
- ✓当一项较长的实验或审阅完成,并且你希望在手机上收到消息的时候。
- ✓当其他技能需要向你的 Feishu 聊天发送状态更新的时候。
- ✓当你希望手动向 Feishu 或 Lark 发送消息的时候。
技能链接
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/feishu-notify/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请发送一条 Feishu 消息,告诉我实验已经完成。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能读取一个小型设置文件,其中保存了 Feishu 机器人的 webhook 链接,然后在选定的事件发生时发送简短消息。如果不存在设置文件,它不做任何事情。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Feishu/Lark Notification
Send a notification: $ARGUMENTS
Overview
This skill provides Feishu/Lark integration for ARIS. It is designed as an internal utility — other skills call it at key events (experiment done, review scored, checkpoint waiting). It can also be invoked manually.
Zero-impact guarantee: If no feishu.json config exists, this skill does nothing and returns silently. All existing workflows are completely unaffected.
Configuration
The skill reads ~/.claude/feishu.json. If this file does not exist, all Feishu functionality is disabled — skills behave exactly as before.
Config Format
{
"mode": "push",
"webhook_url": "https://open.feishu.cn/open-apis/bot/v2/hook/YOUR_WEBHOOK_ID",
"interactive": {
"bridge_url": "http://localhost:5000",
"timeout_seconds": 300
}
}
Modes
| Mode | "mode" value |
What it does | Requires |
|---|---|---|---|
| Off | "off" or file absent |
Nothing. Pure CLI as-is | Nothing |
| Push only | "push" |
Send webhook notifications at key events. Mobile push, no reply | Feishu bot webhook URL |
| Interactive | "interactive" |
Full bidirectional. Approve/reject from Feishu, reply to checkpoints | feishu-claude-code running |
Workflow
Step 1: Read Config
cat ~/.claude/feishu.json 2>/dev/null
- File not found → return silently, do nothing
"mode": "off"→ return silently, do nothing"mode": "push"→ proceed to Step 2 (push)"mode": "interactive"→ proceed to Step 3 (interactive)
Step 2: Push Notification (webhook)
Send a rich card to the Feishu webhook:
curl -s -X POST "$WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d '{
"msg_type": "interactive",
"card": {
"header": {
"title": {"tag": "plain_text", "content": "TITLE"},
"template": "COLOR"
},
"elements": [
{"tag": "markdown", "content": "BODY"}
]
}
}'
Card templates by event type:
| Event | Title | Color | Body |
|---|---|---|---|
experiment_done |
Experiment Complete | green |
Results table, delta vs baseline |
review_scored |
Review Round N: X/10 | blue (≥6) / orange (<6) |
Score, verdict, top 3 weaknesses |
checkpoint |
Checkpoint: Waiting for Input | yellow |
Question, options, context |
error |
Error: [type] | red |
Error message, what failed |
pipeline_done |
Pipeline Complete | purple |
Final summary, deliverables |
custom |
Custom | blue |
Free-form message from $ARGUMENTS |
Return immediately after curl — push mode never waits for a response.
Step 3: Interactive Notification (bidirectional)
Interactive mode uses feishu-claude-code as a bridge:
Send message to the bridge:
curl -s -X POST "$BRIDGE_URL/send" \ -H "Content-Type: application/json" \ -d '{"type": "EVENT_TYPE", "title": "TITLE", "body": "BODY", "options": ["approve", "reject", "custom"]}'Wait for reply (with timeout):
curl -s "$BRIDGE_URL/poll?timeout=$TIMEOUT_SECONDS"Returns:
{"reply": "approve"}or{"reply": "reject"}or{"reply": "user typed message"}or{"timeout": true}On timeout: Fall back to
AUTO_PROCEEDbehavior (proceed with default option).Return the user's reply to the calling skill so it can act on it.
Step 4: Verify Delivery
- Push mode: Check curl exit code. If non-zero, log warning but do NOT block the workflow.
- Interactive mode: If bridge is unreachable, fall back to push mode (if webhook configured) or skip silently.
Helper Function (for other skills)
Other skills should use this pattern to send notifications:
### Feishu Notification (if configured)
Check if `~/.claude/feishu.json` exists and mode is not "off":
- If **push** mode: send webhook notification with event summary
- If **interactive** mode: send notification and wait for user reply
- If **off** or file absent: skip entirely (no-op)
This check is always guarded. If the config file doesn't exist, the skill skips the notification block entirely — zero overhead, zero side effects.
Event Catalog
Skills send these events at these moments:
| Skill | Event | When |
|---|---|---|
/auto-review-loop |
`review_s |
常见问题
我需要做什么设置?
你需要在用户文件夹中的设置文件里保存 Feishu 或 Lark 机器人的 webhook 网址。
我可以在 Feishu 中回复智能体吗?
只能在交互模式下使用,这需要单独运行的桥接程序。推送模式只发送消息。
如果我不进行设置会怎样?
什么都不会发生。其他技能照常工作,也不会发送任何通知。
详情
作者的原始描述
Send notifications to Feishu/Lark. Internal utility used by other skills, or manually via /feishu-notify. Use when user says \"发飞书\", \"notify feishu\", or other skills need to send status updates.
热度
- GitHub 星标
- 18k
- 排名
- #10536
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
ablation-planner
18k帮你的智能体为论文规划消融实验,在主要结果看起来不错之后,选出审稿人很可能会要求的测试。
alphaxiv
18k让你的智能体借助 AlphaXiv 摘要快速阅读一篇研究论文,并以完整文本或 LaTeX 源文件作为备用,只需提供 arXiv 链接或编号。
analyze-results
18k帮你的智能体分析机器学习实验结果,将各次运行与基线进行比较,并把数字整理成清晰的发现和后续步骤。
arxiv
18k让你的智能体在 arXiv 上搜索学术论文、阅读论文详情,并把 PDF 保存到你的文库中,用于某个研究主题。