Agent Skills
› rcarmo/piclaw
› send-message
send-message
GitHub通过写入IPC JSON文件立即向聊天发送消息或进度更新,适用于长任务前的确认、多步骤任务的中间汇报及结果交付。
Trigger Scenarios
需要立即回复用户请求以确认收到
在长时间或多步骤任务中发送进度更新
在工作继续时交付部分结果
Install
npx skills add rcarmo/piclaw --skill send-message -g -y
SKILL.md
Frontmatter
{
"name": "send-message",
"description": "Send a message to the chat immediately without waiting for the current task to finish. Useful for acknowledging requests or sending progress updates while working.",
"distribution": "public"
}
Send a Message
Write an IPC JSON file so piclaw sends a message immediately.
Usage
cat > "$PICLAW_DATA/ipc/messages/msg_$(date +%s)_$$_send.json" <<EOF
{
"type": "message",
"chatJid": "$PICLAW_CHAT_JID",
"text": "Your message here",
"media": [
{
"path": "/absolute/path/to/chart.svg",
"content_type": "image/svg+xml",
"inline": true
}
]
}
EOF
When to use
- acknowledge a request before longer work starts
- send progress updates during a multi-step task
- deliver partial results while continuing to work
Example progress message:
Processing 3/10 files, ~30s remaining…
Notes
- Messages are usually picked up within ~1 second.
- The IPC file is deleted after successful delivery.
- Use WhatsApp-compatible formatting for WhatsApp-bound chats:
*bold*,_italic_,• bullets, and fenced code blocks. - You can attach local media files with an optional
mediaarray.- each item is
{ path, content_type?, filename?, inline? } pathmust point to an existing readable filecontent_typeandfilenameoverride detected valuesinline: truehints inline rendering for supported images
- each item is
- Missing or unreadable media paths generate an inline warning and do not block delivery of the remaining files.
- Do not use this for your final conversational response.
- Edge case: if the main deliverable is a file or image, send it via IPC if needed, then still return a brief normal response confirming what was sent.
Environment
PICLAW_DATA— piclaw data directory (containsipc/messages/)PICLAW_CHAT_JID— JID of the chat that triggered this invocation
Version History
- 5fa0ce5 Current 2026-07-25 10:25


