wechat-message-queue

Save incoming WeChat or ClawBot messages' original text into a durable cloud-side queue for later local Codex processing; use this skill when a WeChat or ClawBot message arrives and the intended action is to store the original message (without summarizing, classifying, or rewriting).

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "wechat-message-queue" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-cc7e8c64dafa4de3117a76e628fd45a8c6347b9327d7e9804557882e2e3b7c6b. Verify the upstream source and version against https://skillhub.cn/skills/user_cb22149b/wechat-message-queue before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Save incoming WeChat or ClawBot messages' original text into a durable cloud-side queue for later local Codex processing; use this skill when a WeChat or ClawBot message arrives and the intended action is to store the original message (without summarizing, classifying, or rewriting).

0 Downloads

Introduction source: third_party · user_cb22149b · 1.0.0 Reference

SkillPi interpretation

Tasks
Save incoming WeChat ClawBot messages into a durable cloud-side queue for later local Codex processing. Use this skill whenever a WeChat or ClawBot message arrives and the desired behavior is to store the original message without summarizing, classifying, rewriting, or writing to the user's local knowledge base.
Inputs and outputs
Pass the script a JSON object like this: If the platform uses different variable names, map the closest available values. At minimum, provide `raw_content` or a text-like field such as `text`, `content`, or `message`.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: wechat-message-queue
description: Save incoming WeChat ClawBot messages into a durable cloud-side queue for later local Codex processing. Use this skill whenever a WeChat or ClawBot message arrives and the desired behavior is to store the original message without summarizing, classifying, rewriting, or writing to the user's local knowledge base.

WeChat Message Queue

Purpose

This skill is the cloud-side intake layer for WeChat ClawBot messages.

It must only save the original inbound message into a durable queue. It must not analyze, classify, summarize, rewrite, schedule, or update any knowledge-base file.

The user's local laptop and Codex process will later pull pending messages, classify them, rewrite them, and write them into the local Obsidian vault.

Required Behavior

When a WeChat/ClawBot message arrives:

  1. Preserve the original content exactly.
  2. Build a JSON payload with the best available fields.
  3. Run scripts/save_message.py with that JSON payload on stdin.
  4. Reply briefly with the saved message ID and status.

Never infer whether the message is a todo, done work, plan, reminder, or project update. That happens later on the local Codex side.

Queue Fields

Save one JSON object per message with these fields:

  • id: unique message id. Prefer the source message id. If unavailable, the script generates a stable hash.
  • source: usually wechat-clawbot.
  • sender: sender identifier or display name.
  • message_type: text, voice, image, file, or unknown.
  • raw_content: original text or transcript if already provided.
  • voice_url: voice file URL or local path if available.
  • image_url: image URL or local path if available.
  • created_at: source timestamp if available; otherwise current time.
  • status: initially pending.
  • processed_at: initially null.
  • retry_count: initially 0.
  • error: initially null.

Input Payload

Pass the script a JSON object like this:

{
  "message_id": "{{message_id}}",
  "source": "wechat-clawbot",
  "sender": "{{sender}}",
  "message_type": "{{message_type}}",
  "raw_content": "{{content}}",
  "voice_url": "{{voice_url}}",
  "image_url": "{{image_url}}",
  "created_at": "{{created_at}}"
}

If the platform uses different variable names, map the closest available values. At minimum, provide raw_content or a text-like field such as text, content, or message.

Script

Run:

python scripts/save_message.py

Send the JSON payload on stdin. The script returns JSON:

{
  "ok": true,
  "id": "message-id",
  "status": "pending",
  "duplicate": false,
  "queue_file": "/data/openclaw/wechat_queue/messages.ndjson"
}

If duplicate is true, do not save the message again. Reply that it was already recorded.

Storage

The script writes to:

  1. WECHAT_QUEUE_FILE, if that environment variable is set.
  2. Otherwise /data/openclaw/wechat_queue/messages.ndjson.
  3. If that path is not writable, it falls back to ./data/wechat_queue/messages.ndjson.

Use WECHAT_QUEUE_FILE on the server if you want a different persistent disk location.

Reply Style

On successful save:

已记录,等待本地 Codex 处理。
消息ID:<id>

For duplicate messages:

这条消息已记录,无需重复处理。
消息ID:<id>

For errors, report a short failure reason and do not claim that the message was saved.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 明确解决 WeChat ClawBot 消息云端持久化存储的实际需求
  • 功能定位清晰,避免与本地 Codex 处理职责重叠
Trigger Precision90/100

Highlights

  • 触发场景描述清晰,边界明确
  • 覆盖多种消息类型和变量映射场景
Structure and Standards95/100

Highlights

  • 文档结构完整,章节划分清晰
  • 包含详细的字段说明、输入示例和回复规范
Execution Reliability90/100

Highlights

  • 脚本路径和参数说明明确
  • 覆盖重复消息、错误处理等异常场景
  • 存储路径有明确回退机制
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.