Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
OpenClaw plugin that prepends custom text to every user message before it reaches the agent. Use for: enforcing memory_search before replies, injecting syste...
OpenClaw plugin that prepends custom text to every user message before it reaches the agent. Use for: enforcing memory_search before replies, injecting syste...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
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.
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.
A lightweight OpenClaw workspace extension that uses the before_agent_start hook to inject custom text into every user message via prependContext.
mkdir -p ~/.openclaw/workspace/.openclaw/extensions/message-injector
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/
Add the following to ~/.openclaw/openclaw.json under plugins.entries: "message-injector": { "enabled": true, "config": { "enabled": true, "prependText": "Your custom text here" } }
openclaw gateway restart
FieldTypeDefaultDescriptionenabledbooleantrueEnable or disable the injectorprependTextstring""Text to prepend before every user message
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.]"
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.
GitHub: https://github.com/Harukaon/openclaw-message-injector
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.