{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/message-injector",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=message-injector",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/index.ts",
      "scripts/openclaw.plugin.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/message-injector",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Message Injector",
        "body": "A lightweight OpenClaw workspace extension that uses the before_agent_start hook to inject custom text into every user message via prependContext."
      },
      {
        "title": "1. Create the extension directory",
        "body": "mkdir -p ~/.openclaw/workspace/.openclaw/extensions/message-injector"
      },
      {
        "title": "2. Copy the plugin files",
        "body": "Copy scripts/index.ts and scripts/openclaw.plugin.json to the extension directory:\n\ncp scripts/index.ts ~/.openclaw/workspace/.openclaw/extensions/message-injector/\ncp scripts/openclaw.plugin.json ~/.openclaw/workspace/.openclaw/extensions/message-injector/"
      },
      {
        "title": "3. Add configuration",
        "body": "Add the following to ~/.openclaw/openclaw.json under plugins.entries:\n\n\"message-injector\": {\n  \"enabled\": true,\n  \"config\": {\n    \"enabled\": true,\n    \"prependText\": \"Your custom text here\"\n  }\n}"
      },
      {
        "title": "4. Restart Gateway",
        "body": "openclaw gateway restart"
      },
      {
        "title": "Configuration",
        "body": "FieldTypeDefaultDescriptionenabledbooleantrueEnable or disable the injectorprependTextstring\"\"Text to prepend before every user message"
      },
      {
        "title": "Example Use Cases",
        "body": "Force memory search:\n\n\"prependText\": \"[⚠️ 回答前必须先 memory_search 检索相关记忆，禁止凭印象回答]\"\n\nAdd persistent context:\n\n\"prependText\": \"[当前项目：my-app | 技术栈：React + Node.js | 部署环境：AWS]\"\n\nInject safety rules:\n\n\"prependText\": \"[RULE: Always verify file paths before deletion. Never run rm -rf without confirmation.]\""
      },
      {
        "title": "How It Works",
        "body": "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."
      },
      {
        "title": "Source Code",
        "body": "GitHub: https://github.com/Harukaon/openclaw-message-injector"
      }
    ],
    "body": "Message Injector\n\nA lightweight OpenClaw workspace extension that uses the before_agent_start hook to inject custom text into every user message via prependContext.\n\nInstallation\n1. Create the extension directory\nmkdir -p ~/.openclaw/workspace/.openclaw/extensions/message-injector\n\n2. Copy the plugin files\n\nCopy scripts/index.ts and scripts/openclaw.plugin.json to the extension directory:\n\ncp scripts/index.ts ~/.openclaw/workspace/.openclaw/extensions/message-injector/\ncp scripts/openclaw.plugin.json ~/.openclaw/workspace/.openclaw/extensions/message-injector/\n\n3. Add configuration\n\nAdd the following to ~/.openclaw/openclaw.json under plugins.entries:\n\n\"message-injector\": {\n  \"enabled\": true,\n  \"config\": {\n    \"enabled\": true,\n    \"prependText\": \"Your custom text here\"\n  }\n}\n\n4. Restart Gateway\nopenclaw gateway restart\n\nConfiguration\nField\tType\tDefault\tDescription\nenabled\tboolean\ttrue\tEnable or disable the injector\nprependText\tstring\t\"\"\tText to prepend before every user message\nExample Use Cases\n\nForce memory search:\n\n\"prependText\": \"[⚠️ 回答前必须先 memory_search 检索相关记忆，禁止凭印象回答]\"\n\n\nAdd persistent context:\n\n\"prependText\": \"[当前项目：my-app | 技术栈：React + Node.js | 部署环境：AWS]\"\n\n\nInject safety rules:\n\n\"prependText\": \"[RULE: Always verify file paths before deletion. Never run rm -rf without confirmation.]\"\n\nHow It Works\n\nThe 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.\n\nSource Code\n\nGitHub: https://github.com/Harukaon/openclaw-message-injector"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Harukaon/message-injector",
    "publisherUrl": "https://clawhub.ai/Harukaon/message-injector",
    "owner": "Harukaon",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}