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.
79%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./backend/super-magic/agents/skills/im-channels/SKILL.mdThis skill covers connecting IM bots, handling incoming IM messages, and explicit WeChat delivery from the main agent in Claw mode.
When a user message includes an <im> block at the end, the message was relayed from an IM platform. The block looks like this:
<!-- 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>source: the IM platform — WeChat, WeCom, DingTalk, or Lark<file>: a file already downloaded into the workspace; use its path directlytype: media category — image, voice, video, file, etc.mime: MIME type of the filefrom="quoted": the file came from a message the user was replying to, not their current messageim:resource permission.<file> is present; ask the user to resend if needed.source to choose the matching channel reference and read its reply and media guidance when needed. Receiving a message does not require reconnecting the bot or collecting credentials.<im> block is metadata onlypath value — no download needed, files are already in the workspace<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.Connect the current Agent to an IM platform so it can receive and send messages in the target app.
If the user did not specify one, ask which IM platform they want: WeChat, WeCom, DingTalk, or Lark.
Load the matching file from 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_idorsecret.
Follow the instructions in the reference file. Run the run_sdk_snippet code to establish the connection.
If the connection succeeds, tell the user what to do next. If it fails, return the error and guide the next step.
To inspect the current configuration and connection state of all IM channels, run:
from sdk.tool import tool
result = tool.call("get_im_channel_status", {})
print(result.content).magic/config/im-channels.json and bound to the current sandbox. Restarting the same sandbox process should auto-reconnect without asking for setup again..magic/config/im-channels.json and set that channel's enabled field to false.Match the incoming source or the channel the user wants to connect:
dtyq/magic
0f1432c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.