# Send Self-Prompt 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": "self-prompt",
    "name": "Self-Prompt",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/eliranwong/self-prompt",
    "canonicalUrl": "https://clawhub.ai/eliranwong/self-prompt",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/self-prompt",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=self-prompt",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/send_agent_task.py",
      "scripts/send_agent_task.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "self-prompt",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T07:11:05.353Z",
      "expiresAt": "2026-05-08T07:11:05.353Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=self-prompt",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=self-prompt",
        "contentDisposition": "attachment; filename=\"self-prompt-1.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "self-prompt"
      },
      "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/self-prompt"
    },
    "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/self-prompt",
    "downloadUrl": "https://openagent3.xyz/downloads/self-prompt",
    "agentUrl": "https://openagent3.xyz/skills/self-prompt/agent",
    "manifestUrl": "https://openagent3.xyz/skills/self-prompt/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/self-prompt/agent.md"
  }
}
```
## Documentation

### 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:

# 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

### For Bash Scripts

Use scripts/send_agent_task.sh:

# 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:

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:

# 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 "Analyze the data above and report findings" \\
    --timeout 180)

# 3. Deliver response
openclaw message send --target "$GROUP_ID" --message "📊 Analysis:
$RESPONSE"

### Accountability Checks

# Force agent to respond to accountability check
send_agent_task.sh "my-agent" "-123456789" \\
    "ACCOUNTABILITY CHECK: Did you complete the required tasks? Respond with status."

### Monitoring Alerts

# Force agent to investigate and report
send_agent_task.sh "trading-agent" "-123456789" \\
    "ALERT: Position down 5%. Investigate and report findings."

### Scheduled Research Tasks

# Force agent to do research
send_agent_task.sh "research-agent" "-123456789" \\
    "DAILY TASK: Search for news on $SYMBOLS and summarize findings."

### Session Key Format

The session key follows this pattern:

agent:AGENT_ID:CHANNEL:TYPE:TARGET

Examples:

agent:stock-trading:telegram:group:-5283045656
agent:main:telegram:direct:123456789
agent:assistant:discord:channel:987654321

### send_agent_task.sh

Location: scripts/send_agent_task.sh

send_agent_task.sh AGENT_ID GROUP_ID "message" [timeout]

Sends task via openclaw agent
Captures response
Sends response to group via message send
Logs to ~/agent_task.log

### send_agent_task.py

Location: scripts/send_agent_task.py

from send_agent_task import send_and_deliver

success, response = send_and_deliver(
    agent_id="agent-name",
    group_id="-123456789",
    message="Task message",
    timeout=180,
    channel="telegram"
)

### Agent not responding

Verify agent is running: openclaw gateway status
Check session key format matches your agent/group
Increase timeout for long-running tasks

### Response not appearing in chat

Ensure script sends response via message send after capturing
Check GROUP_ID is correct (negative for groups)
Verify channel is correct (telegram/discord/etc)

### Timeout errors

Increase timeout for research/analysis tasks (300-600 seconds)
Check if agent is overloaded with concurrent requests
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: eliranwong
- Version: 1.1.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-01T07:11:05.353Z
- Expires at: 2026-05-08T07:11:05.353Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/self-prompt)
- [Send to Agent page](https://openagent3.xyz/skills/self-prompt/agent)
- [JSON manifest](https://openagent3.xyz/skills/self-prompt/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/self-prompt/agent.md)
- [Download page](https://openagent3.xyz/downloads/self-prompt)