Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
一句话:Claude 干活时,自动通过飞书给你发消息,你不在电脑前也知道进度。
插件机制下,hooks 通过 hooks/hooks.json 注册,脚本用 ${CLAUDE_PLUGIN_ROOT} 引用,启用后对所有项目全局生效,不用每个项目重复配。
大图景:
Claude 发生事件(要权限、干完活、子任务完成…)
│ hooks/hooks.json 按事件触发
▼
hooks/feishu_notify.py:渲染卡片 → 节流去重 → 投递
▼
飞书私聊卡片 📱(人不在电脑前也看得到)
| 事件 | 卡片标题 | 什么时候发 |
|---|---|---|
Notification | 🔔 待处理 | 需要你确认权限,或闲置 ≥60 秒 |
Stop | ✅ 已完成 | Claude 写完一轮回复 |
SubagentStop | 🧩 子任务完成 | 子代理干完活 |
UserPromptSubmit | — | 你发了新指令 |
SessionStart / SessionEnd | — | 会话开始 / 结束 |
PreToolUse / PostToolUse | — | 每次工具调用前 / 后 |
想加减事件:改 hooks/hooks.json 的事件键,并同步 hooks/feishu_config.json 的 enabled_events。
im:message 权限并发布,拿 App ID / App Secret。union_id(跨应用通用,推荐)或 user_id / open_id。cp hooks/feishu_config.example.json hooks/feishu_config.json。自测(收到飞书卡片即成功;失败看 hooks/feishu_notify.log):
echo '{"hook_event_name":"Notification","message":"测试","cwd":".","session_id":"t1"}' \
| python "hooks/feishu_notify.py"
claude --plugin-dir <本仓库根>/feishu-notify
/plugin marketplace add https://github.com/zengsipei/z-claude-plugins
/plugin install feishu-notify@z-claude-plugins
如果你以前在某个项目里也配过同样的飞书通知(项目级 .claude/settings.json + .claude/hooks/),启用本插件后会收到两次。确认插件通知正常后,删掉项目里的那份:
rm -f <旧项目>/.claude/settings.json
rm -rf <旧项目>/.claude/hooks
hooks/feishu_config.json 含密钥,已 gitignore,千万别提交。feishu-notify/
├── .claude-plugin/plugin.json # 插件清单
├── hooks/
│ ├── hooks.json # 注册的 hook 事件
│ ├── feishu_notify.py # 通知脚本(编排 + 建卡,纯标准库)
│ ├── feishu_client.py # FeishuClient 深模块(鉴权 + 传输)
│ ├── throttle.py # 节流闸门(跨进程冷却)
│ ├── delivery_rules.py # 投递规则
│ ├── notifiers.py # 多通道 Notifier 注册表
│ ├── renderers.py # 卡片渲染器
│ ├── feishu_config.py # 配置读取
│ ├── test_*.py # 零网络单测(unittest)
│ ├── feishu_config.json # 真实配置(含密钥,已 gitignore)
│ └── feishu_config.example.json # 配置模板(可提交)
├── docs/ # ADR
├── skills/ # 未来放 skills
├── commands/ # 未来放 commands
├── CLAUDE.md # 插件说明 + 根 AGENTS.md 守则指针
└── README.md
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub zengsipei/z-claude-plugins --plugin feishu-notifyPlugins from other owners that cover similar ground