← 返回 Skills 市场
cbd2020

OpenClaw Hook Development

作者 cbd2020 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
359
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install openclaw-hook
功能描述
Create, debug, and maintain OpenClaw Gateway internal hooks for agent events like bootstrap, including virtual file injection and Telegram notification fixes.
安全使用建议
This skill appears to do what it says: inject virtual files and send Telegram notifications by reading your OpenClaw config and workspace. Before installing or enabling it: (1) Inspect ~/.openclaw/openclaw.json to see what tokens would be accessible — the example extracts botToken via regex from that file. (2) Replace placeholder chat IDs in the example or set TELEGRAM_CHAT_ID appropriately. (3) Be aware the hook will read workspace files (e.g., memory/*.md) and can send their info in messages. (4) The provided example code has bugs/typos (missing require('os') in one example, and several stray assignments like "ult = handler" and repeated "ts.default = handler") that may throw runtime exceptions or crash the hook when loaded; fix these errors before using in production. (5) If you want to test, run the included scripts in a safe environment (offline or with a throwaway bot token) and review logs (tail ~/.openclaw/logs/gateway.err.log). If you are not comfortable with code that reads local config files containing tokens, do not enable this hook.
功能分析
Type: OpenClaw Skill Name: openclaw-hook Version: 1.0.2 The skill bundle provides instructions and code templates for creating internal hooks that read the user's primary configuration file (~/.openclaw/openclaw.json) to extract sensitive credentials, such as Telegram bot tokens. While these actions are aligned with the stated purpose of developing notification hooks, the practice of programmatically parsing global secrets and transmitting data to an external endpoint (api.telegram.org) represents a high-risk capability. Key files involved include SKILL.md, references/complete-example.js, and scripts/test-telegram.js.
能力评估
Purpose & Capability
The name/description (developing and debugging OpenClaw internal hooks) aligns with the instructions and included code: reading workspace files, injecting virtual bootstrap files, and calling the Telegram API are coherent capabilities for this purpose. No unrelated services or credentials are requested.
Instruction Scope
SKILL.md instructs the agent to read ~/.openclaw/openclaw.json, workspace files (e.g., ~/.openclaw/workspace/memory), and call api.telegram.org — all consistent with a notification/debugging hook. It does read/semi-parse a local config file to extract bot tokens (which are secrets), so users should expect the hook to access those local files. There are no instructions to exfiltrate data to unexpected endpoints.
Install Mechanism
This is instruction-only (no install spec). The skill ships two example JS scripts but does not download or install remote code during install — lower installation risk.
Credentials
The skill does not declare required env vars, but its code reads the user's OpenClaw config file to extract botToken and may use TELEGRAM_CHAT_ID / OPENCLAW_CONFIG if set. Reading the OpenClaw config (which can contain tokens) is proportionate to sending Telegram notifications, but users should be aware that the hook will access local config files containing secrets.
Persistence & Privilege
The skill does not request permanent/always-on privileges and is user-invocable. It documents placing hooks under ~/.openclaw/hooks and modifying ~/.openclaw/openclaw.json — actions expected for hook deployment; nothing in the package attempts to modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-hook
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-hook 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
彻底移除所有个人信息和硬编码路径
v1.0.1
移除示例代码中的硬编码路径和个人信息,改用通用占位符
v1.0.0
首个版本:完整的 OpenClaw Gateway Internal Hook 开发指南
元数据
Slug openclaw-hook
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

OpenClaw Hook Development 是什么?

Create, debug, and maintain OpenClaw Gateway internal hooks for agent events like bootstrap, including virtual file injection and Telegram notification fixes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 359 次。

如何安装 OpenClaw Hook Development?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-hook」即可一键安装,无需额外配置。

OpenClaw Hook Development 是免费的吗?

是的,OpenClaw Hook Development 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

OpenClaw Hook Development 支持哪些平台?

OpenClaw Hook Development 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 OpenClaw Hook Development?

由 cbd2020(@cbd2020)开发并维护,当前版本 v1.0.2。

💬 留言讨论