← 返回 Skills 市场
hanxiao-bot

OpenClaw Hook Examples

作者 hanxiao-bot · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
167
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-hook-examples
功能描述
Provides example hooks for OpenClaw to intercept, modify, block tool calls, switch models, log actions, and handle subagent events.
安全使用建议
This file is a set of examples, not an active plugin: installing it as-is does nothing because there is no install or code to run. If you or a developer copy these examples into a real plugin, be aware: hooks can block or modify tool calls and may log parameters and results — avoid logging or exporting sensitive data, validate and sanitize inputs carefully, and confirm any model/provider strings (e.g., ollama) match your environment and credential posture. Also fix the minor inconsistencies (sync vs async, intended log destination) before using in production. If you plan to run a plugin built from these examples, review where logs go and which sessions are considered "elevated" to prevent accidental exposure or overly broad blocking behavior.
功能分析
Type: OpenClaw Skill Name: openclaw-hook-examples Version: 1.0.0 The bundle contains educational documentation and code examples for OpenClaw hooks in SKILL.md. The examples demonstrate defensive security practices, such as auditing tool usage, blocking dangerous shell commands (e.g., 'rm -rf' and fork bombs), and implementing permission checks for sensitive tools. No malicious logic, data exfiltration, or prompt injection attempts were found.
能力评估
Purpose & Capability
Name/description match the content: the SKILL.md contains example hook handlers for intercepting/modifying/blocking tool calls, switching models, logging, and handling subagent events. It does not request unrelated binaries, env vars, or installs.
Instruction Scope
The instructions stay within the expected runtime hook domain (event, ctx, session, tool, messages). They demonstrate blocking tools, validating exec commands, model switching, and logging. Minor inconsistencies: the doc headline says "Record all tool calls to a file" but the example uses console.log; it also says "Hooks are synchronous" while examples use async handlers. Also note: the examples log tool params and subagent results — if copied verbatim into a real plugin this could expose sensitive inputs/outputs to logs or external sinks.
Install Mechanism
No install spec and no code files — instruction-only skill. Nothing will be downloaded or written to disk by the skill itself.
Credentials
The skill declares no required environment variables, credentials, or config paths. Example code references runtime context only (ctx, event) and a provider string (ollama) but does not require any keys in the skill metadata.
Persistence & Privilege
always is false and the skill is user-invocable only. It does not request permanent presence or modify other skills' configs. The default ability for autonomous invocation is set to false only in metadata? (normal platform default applies) — no extra privileges are requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-hook-examples
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-hook-examples 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug openclaw-hook-examples
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

OpenClaw Hook Examples 是什么?

Provides example hooks for OpenClaw to intercept, modify, block tool calls, switch models, log actions, and handle subagent events. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 167 次。

如何安装 OpenClaw Hook Examples?

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

OpenClaw Hook Examples 是免费的吗?

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

OpenClaw Hook Examples 支持哪些平台?

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

谁开发了 OpenClaw Hook Examples?

由 hanxiao-bot(@hanxiao-bot)开发并维护,当前版本 v1.0.0。

💬 留言讨论