← 返回 Skills 市场
harukaon

Message Injector

作者 Leo_yang · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
631
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install message-injector
功能描述
OpenClaw plugin that prepends custom text to every user message before it reaches the agent. Use for: enforcing memory_search before replies, injecting syste...
安全使用建议
This skill appears internally consistent with its purpose. Before installing: (1) Understand it will prepend configured text to every user message at the gateway level and agents cannot ignore it — this can change behavior across all users and channels in the workspace. (2) Back up ~/.openclaw/openclaw.json before editing so you can revert. (3) Keep prependText free of secrets or personally identifying data (it will be sent with every message). (4) Installation is manual: the provided code is short and readable; review the included scripts/index.ts yourself (it simply returns prependContext when configured). (5) If you share this workspace, coordinate with other users because the injection is global. If you want scoped or temporary injection, consider toggling enabled or using a different mechanism that targets specific agents or channels.
功能分析
Type: OpenClaw Skill Name: message-injector Version: 1.0.0 The OpenClaw Message Injector plugin is designed to prepend custom text to every user message before it reaches the AI agent. This functionality, while powerful and effectively a form of persistent prompt injection, is the plugin's stated purpose and is implemented without any malicious code or instructions. The `SKILL.md` documentation clearly explains this mechanism and provides examples for legitimate use cases such as enforcing memory search, adding context, or injecting safety rules. The `scripts/index.ts` code simply retrieves the user-configured `prependText` and returns it via the `prependContext` hook, without any file system operations, network calls, or attempts at data exfiltration, persistence, or unauthorized execution. The plugin itself is a neutral tool; its potential for misuse depends entirely on the text configured by the user, not on any inherent maliciousness in the plugin's design or implementation.
能力评估
Purpose & Capability
Name/description claim to prepend text to every user message and the included plugin code and config schema implement exactly that behavior. There are no unrelated environment variables, binaries, or hidden capabilities requested.
Instruction Scope
SKILL.md instructs copying the provided plugin files into ~/.openclaw workspace and editing ~/.openclaw/openclaw.json — all actions relate to installing a workspace extension. The docs explicitly state the injection is applied at the Gateway level and cannot be skipped; this is expected but has privacy/behavioral impact (it affects every message). There are no instructions to read other unrelated files or transmit data externally.
Install Mechanism
No automated installer or remote download is used—installation is manual (copy local files and edit config). The package does not fetch archives or run external installers, so disk writes are limited to the extension directory and the user's OpenClaw config as instructed.
Credentials
The skill requires no environment variables, credentials, or special config paths beyond the workspace plugin placement and an entry in ~/.openclaw/openclaw.json. The runtime code accesses only the plugin config (prependText, enabled).
Persistence & Privilege
The plugin is persistent as a workspace extension (enabled in openclaw.json) and will affect all agent messages in that workspace/channels while enabled. It is not marked always:true and does not autonomously add itself, but it does change gateway behavior globally for the workspace when installed.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install message-injector
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /message-injector 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: prepend custom text to every user message via before_agent_start hook
元数据
Slug message-injector
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Message Injector 是什么?

OpenClaw plugin that prepends custom text to every user message before it reaches the agent. Use for: enforcing memory_search before replies, injecting syste... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 631 次。

如何安装 Message Injector?

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

Message Injector 是免费的吗?

是的,Message Injector 完全免费(开源免费),可自由下载、安装和使用。

Message Injector 支持哪些平台?

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

谁开发了 Message Injector?

由 Leo_yang(@harukaon)开发并维护,当前版本 v1.0.0。

💬 留言讨论