xint
X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.
Self Prompt: Forcing Agent Responses
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install eliranwong/self-prompt打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
When automated scripts (cron, monitoring) send messages via openclaw message send:
Use openclaw agent instead of openclaw message send for messages requiring agent response:
# OLD (agent may ignore):
openclaw message send --target -GROUP_ID --message "TASK: Do something"
# NEW (agent MUST respond):
RESPONSE=$(openclaw agent \
--agent AGENT_ID \
--session-id "agent:AGENT_ID:telegram:group:GROUP_ID" \
--channel telegram \
--message "TASK: Do something" \
--timeout 180)
# Send response to chat:
openclaw message send --target -GROUP_ID --message "$RESPONSE"
openclaw message send → Creates chat message → Agent sees as "notification"openclaw agent → Triggers actual agent turn → Agent MUST process and respondUse scripts/send_agent_task.sh:
# Simple usage:
~/.openclaw/skills/self-prompt/scripts/send_agent_task.sh \
"AGENT_ID" \
"GROUP_ID" \
"Your task message here"
Use scripts/send_agent_task.py:
from send_agent_task import send_and_deliver
success, response = send_and_deliver(
agent_id="stock-trading",
group_id="-5283045656",
message="TASK: Analyze current positions",
timeout=180
)
For monitoring scripts, separate data delivery from task requests:
# 1. Send DATA immediately (informational)
openclaw message send --target "$GROUP_ID" --message "📊 Position Data:
$POSITIONS"
# 2. Send TASK via agent (forces response)
RESPONSE=$(openclaw agent \
--agent "$AGENT_ID" \
--session-id "agent:$AGENT_ID:telegram:group:$GROUP_ID" \
--message "Anal...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# Self-Prompt: Forcing Agent Responses
## The Problem
When automated scripts (cron, monitoring) send messages via `openclaw message send`:
- Messages appear in chat as "system messages"
- Agents may treat them as background info, not tasks
- Agents respond to user messages but ignore automated ones
- Accountability checks, alerts, and tasks go unanswered
## The Solution
Use `openclaw agent` instead of `openclaw message send` for messages requiring agent response:
```bash
# OLD (agent may ignore):
openclaw message send --target -GROUP_ID --message "TASK: Do something"
# NEW (agent MUST respond):
RESPONSE=$(openclaw agent \
--agent AGENT_ID \
--session-id "agent:AGENT_ID:telegram:group:GROUP_ID" \
--channel telegram \
--message "TASK: Do something" \
--timeout 180)
# Send response to chat:
openclaw message send --target -GROUP_ID --message "$RESPONSE"
```
## Why This Works
- `openclaw message send` → Creates chat message → Agent sees as "notification"
- `openclaw agent` → Triggers actual agent turn → Agent MUST process and respond
## Quick Start
### For Bash Scripts
Use `scripts/send_agent_task.sh`:
```bash
# Simple usage:
~/.openclaw/skills/self-prompt/scripts/send_agent_task.sh \
"AGENT_ID" \
"GROUP_ID" \
"Your task message here"
```
### For Python Scripts
Use `scripts/send_agent_task.py`:
```python
from send_agent_task import send_and_deliver
success, response = send_and_deliver(
agent_id="stock-trading",
group_id="-5283045656",
message="TASK: Analyze current positions",
timeout=180
)
```
## Pattern: Data + Task Separation
For monitoring scripts, separate data delivery from task requests:
```bash
# 1. Send DATA immediately (informational)
openclaw message send --target "$GROUP_ID" --message "📊 Position Data:
$POSITIONS"
# 2. Send TASK via agent (forces response)
RESPONSE=$(openclaw agent \
--agent "$AGENT_ID" \
--session-id "agent:$AGENT_ID:telegram:group:$GROUP_ID" \
--message "Anal...X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.
openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime...