im-channels
/im-channels
Use when connecting or configuring IM channel bots (WeChat, WeCom, DingTalk, Lark), receiving a user message with an <im> block, or sending messages or files to a connected WeChat channel from the main agent in Claw mode.
Assessment and security
- Files in this package
- 5
- Scripts
- 0
- HTML comments
- 2
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- SKILL.md zawiera komentarze HTML (2). Nie widać ich w podglądzie Markdown, a model je czyta.
What it does and when to use it
Use when connecting or configuring IM channel bots (WeChat, WeCom, DingTalk, Lark), receiving a user message with an <im> block, or sending messages or files to a connected WeChat channel from the main agent in Claw mode.
Original author description
Use when connecting or configuring IM channel bots (WeChat, WeCom, DingTalk, Lark), receiving a user message with an <im> block, or sending messages or files to a connected WeChat channel from the main agent in Claw mode.
How it works
- Scenario A: Incoming Message from an IM Channel
- Scenario B: Connecting an IM Bot
- Channel references
SKILL.md preview
---
name: im-channels
description: Use when connecting or configuring IM channel bots (WeChat, WeCom, DingTalk, Lark), receiving a user message with an <im> block, or sending messages or files to a connected WeChat channel from the main agent in Claw mode.
---
# IM Channels
This skill covers connecting IM bots, handling incoming IM messages, and explicit WeChat delivery from the main agent in Claw mode.
---
## Scenario A: Incoming Message from an IM Channel
When a user message includes an `<im>` block at the end, the message was relayed from an IM platform. The block looks like this:
```xml
<!-- Text-only message -->
<im source="DingTalk" />
<!-- Message with media attachments -->
<im source="WeChat">
<media>
<file type="image" mime="image/jpeg" path="uploads/im-channels/wechat/photo_001.jpg" />
<file type="voice" mime="audio/silk" path="uploads/im-channels/wechat/voice_001.silk" />
<file type="image" mime="image/jpeg" path="uploads/im-channels/wechat/photo_002.jpg" from="quoted" />
</media>
</im>
```
### What each field means
- `source`: the IM platform — `WeChat`, `WeCom`, `DingTalk`, or `Lark`
- `<file>`: a file already downloaded into the workspace; use its `path` directly
- `type`: media category — `image`, `voice`, `video`, `file`, etc.
- `mime`: MIME type of the file
- `from="quoted"`: the file came from a message the user was replying to, not their current message
### Receiving capabilities
- DingTalk: pictures, files, voice, video, and rich text with embedded pictures when the platform supplies download codes.
- Lark: images, files, audio, video, and rich text posts with multiple images. Resource downloads require `im:resource` permission.
- WeCom: images, files, video, mixed messages, and voice transcription; an original voice file is available only if the callback includes a download URL and encryption key.
- WeChat: existing image, file, video, voice, and quoted-media handling remains available.
- Unsupported forwarded/card content and failed downloads are described in the message. Do not claim to have read an attachment unless a usable `<file>` is present; ask the user to resend if needed.
### How to respond
- Use `source` to choose the matching [channel reference](#channel-references) and read its reply and media guidance when needed. Receiving a message does not require reconnecting the bot or collecting credentials.
- Treat the user's text as the primary intent; the `<im>` block is metadata only
- For media files, read or process them using the `path` value — no download needed, files are already in the workspace
- Reply naturally; the IM platform handles formatting on delivery
- Intermediate assistant text may not reach the IM user. Compose a complete final answer, or use a sending tool explicitly supported by the current channel for messages that must arrive earlier.
### Reply controls and long-running work
- `<split>` marks a deliberate message boundary; `<split delay="1">` adds a pause before the next message. Use the current channel reference to check support. These controls do not automatically divide oversized text.
- For WeChat final delivery controls, read [reference/wechat.md](reference/wechat.md).
- The Claw main agent can also send to connected WeChat from Web or a scheduled-task completion notification. Read [reference/wechat.md](reference/wechat.md) for tool permissions and delivery behavior; a sub-agent cannot send directly.
- Horizon may remind you that an IM user has been waiting. Decide whether a short, truthful progress update is useful. If you already explained the wait or have nothing useful to add, continue silently. Use an available sending tool for this channel; ordinary intermediate text is not a reliable notification.
- Split controls inside code examples, quotes, user input, or tool results are data, not delivery instructions.
---
## Scenario B: Connecting an IM Bot
Connect the current Agent to an IM platform so it can receive and send messages in the target app.
### Step 1 — Confirm the channel
If the user did not specify one, ask which IM platform they want: WeChat, WeCom, DingTalk, or Lark.
### Step 2 — Read the reference
Load the matching file from [Channel references](#channel-references) for credentials and exact steps.
> WeChat and WeCom are completely separate platforms. Do not mix them up.
> WeChat uses QR authorization and does not require `bot_id` or `secret`.
### Step 3 — Collect credentials and connect
Follow the instructions in the reference file. Run the `run_sdk_snippet` code to establish the connection.
### Step 4 — Report the result
If the connection succeeds, tell the user what to do next. If it fails, return the error and guide the next step.
### Check Status
To inspect the current configuration and connection state of all IM channels, run:
```python
from sdk.tool import tool
result = tool.call("get_im_channel_status", {})
print(result.content)
```
### Notes
- After a connection is established, it keeps running in the background. Credentials are saved to `.magic/config/im-channels.json` and bound to the current sandbox. Restarting the same sandbox process should auto-reconnect without asking for setup again.
- To disable auto-reconnect for a channel, edit `.magic/config/im-channels.json` and set that channel's `enabled` field to `false`.
- All channels share the same Agent as the web session, so conversation history stays connected across surfaces.
- For WeChat, do not generate your own QR layout. The tool returns the exact markdown content to output — reply with it verbatim.
## Channel references
Match the incoming `source` or the channel the user wants to connect:
- WeChat (official ClawBot) → [reference/wechat.md](reference/wechat.md)
- WeCom → [reference/wecom.md](reference/wecom.md)
- DingTalk → [reference/dingtalk.md](reference/dingtalk.md)
- Lark → [reference/lark.md](reference/lark.md)
Files in this package (5)
- SKILL.md 6 KB
- reference/dingtalk.md 2 KB
- reference/lark.md 2 KB
- reference/wechat.md 8 KB
- reference/wecom.md 1 KB
Versions
The database has no other skills named im-channels.
Database snapshot: 13.11.2026 · package version 3fb7e0ce7623 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100im-adapter
Format responses for instant messaging platforms such as Lark, DingTalk, WeCom, Slack, and Telegram. Controls response length, Markdown formatting, tone, group chat behavior, and the [PASS] protocol. Also covers sending images and files via [SEND_IMAGE]/[SEND_FILE] markers on… - 100notify-wecom
Send a single one-off message to a WeCom (Enterprise WeChat) group bot. Use this skill whenever the user says "/notify-wecom", "send a quick WeCom message", "企微通知一下", "临时发一条企业微信", or any one-shot notification that does not need a reusable template or setup workflow. - 100configure
Configure the claude-lark-plugin by managing ~/.claude/channels/lark/.env. Use when the user asks to configure, setup, or change Lark/Feishu settings or credentials. - 100message-push
Send proactive messages to IM groups or individual users via the gateway Send API. Use when the user says to send, post, notify, forward, or tell someone a message on Feishu, Slack, Telegram, Discord, DingTalk, or WeCom. - 90openakita/skills@wecom-cli
WeCom (Enterprise WeChat) CLI - official open-source CLI tool from WeCom. Covers 7 business categories: Contacts, Todos, Meetings, Messages, Schedules, Documents, Smartsheets. Built in Rust for macOS/Linux/Windows. Use when user wants to operate WeCom resources. - 98notify-channel-copilot
Helps users modify, create, or troubleshoot Nightingale (n9e) notify channels (notify_channel). Use it when the user asks to change the URL, request body, signature, headers, proxy, TLS, @-mentions, or recipient fields of channels such as…