تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

message-injector

بواسطة harukaon

Web & Frontend Development
401التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

OpenClaw plugin that prepends custom text to every user message before it reaches the agent.

الوصف

ما الذي تفعله هذه المهارة

A workspace extension for OpenClaw that prepends custom text to every user message before the agent processes it. Uses the `before_agent_start` hook to inject text at the Gateway level, making it impossible for the agent to bypass. Works across all channels.

Unlike system prompt edits that vary per session or client, this injects at the Gateway level so the instruction applies universally regardless of which channel or client is used.

متى تستخدمها

  • Force memory search before every agent reply
  • Inject current project context into each conversation turn
  • Enforce safety rules like confirming before file deletion
  • Add persistent reminders without modifying each prompt manually
  • Maintain consistent persona or language instructions across sessions

مثال على سير العمل

الإدخال

User asks: 'Delete the old logs folder'

الوكيل
  1. 1

    before_agent_start hook fires on incoming message

  2. 2

    Plugin reads prependText from config: '[RULE: Always verify file paths before deletion. Never run rm -rf without confirmation.]'

  3. 3

    prependContext prepends the rule to the user message

  4. 4

    Agent receives combined message: rule + original user request

  5. 5

    Agent processes message with injected constraint in context

الإخراج

Agent responds by asking for confirmation before proceeding with deletion

المتطلبات

  • OpenClaw Gateway installed and running

التثبيت

clawhub install harukaon/message-injector

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط