钩子命令行
openhook-cli
by berkantay
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/berkantay/openhook-cli文档
openhook CLI
Use the openhook CLI to receive real-time events from external platforms and communicate with other agents through channels.
When to use
- Receiving webhook events from GitHub, Stripe, Linear, Vercel, Slack
- Listening for external platform events in real-time
- Sending messages to other agents through channels
- Coordinating multi-agent workflows
Installation
brew tap openhook-dev/openhook && brew install openhook
Authentication
Requires an API key from openhook. The user must:
- Sign up at https://openhook.dev/signup
- Go to Settings > API Keys
- Create a new API key (starts with
oh_live_oroh_test_)
Then authenticate:
openhook auth login --key oh_live_xxxxxxxx
# Verify authentication worked
openhook whoami
Receiving Events
Subscribe to platform events
# GitHub
openhook subscribe github --repo owner/repo --events push,pull_request,issues
# Stripe
openhook subscribe stripe --events payment_intent.succeeded,customer.created
# Linear
openhook subscribe linear --events issue.created,issue.updated
Listen for events
# Interactive output
openhook listen
# JSON output (for parsing)
openhook listen --json
# Pipe to your processing script
openhook listen --json | jq '.payload'
Background daemon
openhook daemon start
openhook daemon status
openhook daemon logs -f
openhook daemon stop
Channels (Agent-to-Agent Communication)
Channels let agents send messages to each other. Each agent subscribes to a channel with a unique name, then messages can be sent to specific agents or broadcast to all.
Create a channel
openhook channel create <name> [--description "..."]
# Example
openhook channel create deploy-team --description "Deployment coordination"
Subscribe to a channel
Each subscription needs:
--endpoint: The HTTP endpoint ID that will receive messages--name: A unique alias for this agent in the channel
openhook channel subscribe <channel-id> --endpoint <endpoint-id> --name <alias>
# Example: Subscribe the "deployer" agent
openhook channel subscribe ch_abc123 --endpoint ep_xyz789 --name deployer
List channel members
openhook channel members <channel-id>
openhook channel members <channel-id> --json
Send messages
# Send to specific agent
openhook channel send <channel-id> "<message>" --to <agent-name>
# Broadcast to all agents
openhook channel send <channel-id> "<message>" --to all
# Include sender info
openhook channel send <channel-id> "<message>" --to <agent-name> --from <your-name>
Channel workflow example
# 1. Create coordination channel
openhook channel create release-v2 --description "v2.0 release coordination"
# 2. Agents join with their endpoints
openhook channel subscribe ch_xxx --endpoint ep_builder --name builder
openhook channel subscribe ch_xxx --endpoint ep_tester --name tester
openhook channel subscribe ch_xxx --endpoint ep_deployer --name deployer
# 3. Coordinate the release
openhook channel send ch_xxx "build v2.0.0" --to builder --from coordinator
openhook channel send ch_xxx "run integration tests" --to tester --from builder
openhook channel send ch_xxx "deploy to staging" --to deployer --from tester
openhook channel send ch_xxx "v2.0.0 deployed successfully" --to all --from deployer
Managing subscriptions
# List all subscriptions
openhook list
# View event history
openhook events
# Remove subscription
openhook unsubscribe <subscription-id>
Common patterns
Wait for specific event
# Listen until you get the event you need
openhook listen --json | while read -r event; do
type=$(echo "$event" | jq -r '.event_type')
if [ "$type" = "push" ]; then
echo "$event" | jq '.payload'
break
fi
done
React to GitHub push
openhook subscribe github --repo myorg/myrepo --events push
openhook listen --json | jq -c 'select(.event_type == "push") | .payload.commits'
Reference
| Command | Description |
|---|---|
openhook whoami | Show authenticated user |
openhook subscribe <platform> | Subscribe to platform events |
openhook list | List subscriptions |
openhook unsubscribe <id> | Remove subscription |
openhook listen [--json] | Listen for events |
openhook events | View event history |
openhook channel create <name> | Create channel |
openhook channel list | List channels |
openhook channel subscribe <ch> --endpoint <ep> --name <alias> | Join channel |
openhook channel members <ch> | List members |
openhook channel send <ch> <msg> --to <name|all> | Send message |
Links
- Website: https://openhook.dev
- Dashboard: https://openhook.dev/dashboard
- GitHub: https://github.com/openhook-dev/openhook-cli
相关 Skills
技能工坊
by anthropics
覆盖 Skill 从创建到迭代优化全流程:起草能力、补测试提示、跑评测与基准方差分析,并持续改写内容和描述,提升效果与触发准确率。
✎ 技能工坊把技能从创建、迭代到评测串成闭环,方差分析加描述优化,特别适合把触发准确率打磨得更稳。
PPT处理
by anthropics
处理 .pptx 全流程:创建演示文稿、提取和解析幻灯片内容、批量修改现有文件,支持模板套用、合并拆分、备注评论与版式调整。
✎ 涉及PPTX的创建、解析、修改到合并拆分都能一站搞定,连备注、模板和评论也能处理,做演示文稿特别省心。
PDF处理
by anthropics
遇到 PDF 读写、文本表格提取、合并拆分、旋转加水印、表单填写或加解密时直接用它,也能提取图片、生成新 PDF,并把扫描件通过 OCR 变成可搜索文档。
✎ PDF杂活别再来回切工具了,文本表格提取、合并拆分到OCR识别一次搞定,连扫描件也能变可搜索。
相关 MCP 服务
文件系统
编辑精选by Anthropic
Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。
✎ 这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。
by wonderwhy-er
Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。
✎ 这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。
by stickerdaniel
LinkedIn Profile and Job Scraper 是让 Claude 直接抓取 LinkedIn 个人资料、公司信息和职位详情的工具。
✎ 这个服务器解决了招聘和商业调研中手动复制粘贴 LinkedIn 数据的痛点,适合猎头或市场分析师快速获取候选人背景和公司动态。不过,LinkedIn 反爬机制频繁更新,数据稳定性需要持续维护,使用时建议搭配人工验证。