weixin-file-send

Sends local files and images to the chat using a structured protocol block.

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/Dhanuzh/DCode-Core --skill weixin-file-send-dhanuzh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weixin-file-send
Source: https://github.com/Dhanuzh/DCode-Core/tree/main/crates/dcode-app/assets/builtin-skills/weixin-file-send
Command: npx skills add https://github.com/Dhanuzh/DCode-Core --skill weixin-file-send-dhanuzh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working with an AI assistant, generated files like charts or reports often stay on the local machine with no way to reach the user. This Skill defines a protocol that lets the assistant actually deliver local files and images back into the current chat conversation. ## Core Features & Use Cases - File Delivery Protocol: Emits a structured AIONUI_CHANNEL_SEND block that instructs the app to send a real local file to the chat. - Image and File Support: Handles both image types (e.g., PNG charts) and generic files (e.g., PDF reports) with optional captions and file names. - Use Case: After generating a sales chart at ./output/chart.png, the assistant appends the protocol block so the image is sent directly to the user in the Weixin chat instead of only describing it in text. ## Quick Start Ask the assistant to send you the generated file, for example by saying "send me the chart you just created".

Frequently Asked Questions about weixin-file-send

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send a local file to the user in chat?

Append an AIONUI_CHANNEL_SEND protocol block at the end of the reply with type set to file or image and a path pointing to an existing local file. The app parses this block and delivers the file to the current chat.

What file types can be sent with the channel send protocol?

The protocol supports two types: image and file. Use image for pictures like PNG charts and file for documents such as PDF reports, with an optional fileName and caption.

Why was my file not sent even though I mentioned it in the reply?

The file is only sent when the exact AIONUI_CHANNEL_SEND protocol block is emitted. Describing the file in plain text does nothing, and the block must not be wrapped in Markdown code fences.

Can I send a file that does not exist yet?

No. The path in the protocol block must point to a real local file that already exists. Emitting the block for a missing file is explicitly disallowed and the send will fail.

Should I use relative or absolute paths when sending files?

Use relative paths when the file is inside the workspace, such as ./output/report.pdf. The key requirement is that the path resolves to an existing local file.