← Back to Skills Marketplace
359
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install openclaw-hook
Description
Create, debug, and maintain OpenClaw Gateway internal hooks for agent events like bootstrap, including virtual file injection and Telegram notification fixes.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openclaw-hook - After installation, invoke the skill by name or use
/openclaw-hook - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
彻底移除所有个人信息和硬编码路径
v1.0.1
移除示例代码中的硬编码路径和个人信息,改用通用占位符
v1.0.0
首个版本:完整的 OpenClaw Gateway Internal Hook 开发指南
Metadata
Frequently Asked Questions
What is OpenClaw Hook Development?
Create, debug, and maintain OpenClaw Gateway internal hooks for agent events like bootstrap, including virtual file injection and Telegram notification fixes. It is an AI Agent Skill for Claude Code / OpenClaw, with 359 downloads so far.
How do I install OpenClaw Hook Development?
Run "/install openclaw-hook" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is OpenClaw Hook Development free?
Yes, OpenClaw Hook Development is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does OpenClaw Hook Development support?
OpenClaw Hook Development is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created OpenClaw Hook Development?
It is built and maintained by cbd2020 (@cbd2020); the current version is v1.0.2.
More Skills