# Send Message Injector to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "message-injector",
    "name": "Message Injector",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Harukaon/message-injector",
    "canonicalUrl": "https://clawhub.ai/Harukaon/message-injector",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/message-injector",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=message-injector",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/index.ts",
      "scripts/openclaw.plugin.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "message-injector",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T12:53:41.799Z",
      "expiresAt": "2026-05-12T12:53:41.799Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=message-injector",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=message-injector",
        "contentDisposition": "attachment; filename=\"message-injector-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "message-injector"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/message-injector"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/message-injector",
    "downloadUrl": "https://openagent3.xyz/downloads/message-injector",
    "agentUrl": "https://openagent3.xyz/skills/message-injector/agent",
    "manifestUrl": "https://openagent3.xyz/skills/message-injector/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/message-injector/agent.md"
  }
}
```
## Documentation

### Message Injector

A lightweight OpenClaw workspace extension that uses the before_agent_start hook to inject custom text into every user message via prependContext.

### 1. Create the extension directory

mkdir -p ~/.openclaw/workspace/.openclaw/extensions/message-injector

### 2. Copy the plugin files

Copy scripts/index.ts and scripts/openclaw.plugin.json to the extension directory:

cp scripts/index.ts ~/.openclaw/workspace/.openclaw/extensions/message-injector/
cp scripts/openclaw.plugin.json ~/.openclaw/workspace/.openclaw/extensions/message-injector/

### 3. Add configuration

Add the following to ~/.openclaw/openclaw.json under plugins.entries:

"message-injector": {
  "enabled": true,
  "config": {
    "enabled": true,
    "prependText": "Your custom text here"
  }
}

### 4. Restart Gateway

openclaw gateway restart

### Configuration

FieldTypeDefaultDescriptionenabledbooleantrueEnable or disable the injectorprependTextstring""Text to prepend before every user message

### Example Use Cases

Force memory search:

"prependText": "[⚠️ 回答前必须先 memory_search 检索相关记忆，禁止凭印象回答]"

Add persistent context:

"prependText": "[当前项目：my-app | 技术栈：React + Node.js | 部署环境：AWS]"

Inject safety rules:

"prependText": "[RULE: Always verify file paths before deletion. Never run rm -rf without confirmation.]"

### How It Works

The plugin registers a before_agent_start hook. When triggered, it returns { prependContext: prependText } which OpenClaw prepends to the user's message before the agent processes it. This is a hard injection at the Gateway level — the agent cannot skip or ignore it.

### Source Code

GitHub: https://github.com/Harukaon/openclaw-message-injector
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Harukaon
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-05T12:53:41.799Z
- Expires at: 2026-05-12T12:53:41.799Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/message-injector)
- [Send to Agent page](https://openagent3.xyz/skills/message-injector/agent)
- [JSON manifest](https://openagent3.xyz/skills/message-injector/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/message-injector/agent.md)
- [Download page](https://openagent3.xyz/downloads/message-injector)