wxsender

Send text and file messages through the desktop WeChat client via CLI automation.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/dulltackle/kangkang-skills --skill wxsender-dulltackle
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: wxsender
Source: https://github.com/dulltackle/kangkang-skills/tree/main/wxsender
Command: npx skills add https://github.com/dulltackle/kangkang-skills --skill wxsender-dulltackle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Sending WeChat messages from a Linux desktop normally requires manual GUI interaction. This Skill drives the local desktop WeChat client through a CLI so an AI agent can send text, images, or files to contacts on demand, while enforcing rate limits, quiet hours, and failure cooldowns. ## Core Features & Use Cases - Instant Sending: Send text messages or file/image attachments to a contact via send-text and send-file, with optional --dry-run rehearsal and --force to bypass rate limits when explicitly requested. - Contact Search Positioning: Save each contact's 1-based search result position with contact --set so the automation selects the correct search result every time. - History & Troubleshooting: Query send history, rate-limit status, and safety configuration in JSON to diagnose failures such as missing dependencies, unfound WeChat windows, or rate-limit rejections. - Use Case: A user says "send this report PDF to Zhang San on WeChat" — the agent runs send-file --contact 张三 --file /path/report.pdf, and the CLI activates the WeChat window, searches the contact, pastes the file, and records the result. ## Quick Start Ask the agent to send a WeChat message to a contact, for example: send a WeChat text saying "meeting at 8pm" to contact Zhang San.

Frequently Asked Questions about wxsender

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

FAQPage Schema
How do I send a WeChat message from the command line?▼

Run the CLI with send-text, passing the contact name and message: python3 scripts/wxsender_cli.py send-text --contact NAME --message "your text". For files or images, use send-file with --file pointing to a local path.

How do I automate the desktop WeChat client on Linux?▼

The CLI uses xdotool to find and activate the WeChat window and xclip to place text or files on the clipboard, then simulates Ctrl+F search, Down key navigation, paste, and Enter. Both xdotool and xclip must be installed.

What are the requirements for running WeChat desktop automation?▼

You need a Linux graphical desktop, the desktop WeChat client running and logged in with a window titled 微信, plus the xclip and xdotool utilities installed. Missing dependencies cause preflight failures before any send attempt.

Why does my WeChat send fail with rate limit errors?▼

The CLI enforces quiet hours, an hourly send cap, a minimum interval between sends, and a failure cooldown. Run status --json and config --json to see which rule rejected the send, or use --force only when the user explicitly requests bypassing limits.

What is the search-index parameter when sending WeChat messages?▼

search-index is the 1-based position of the target contact in WeChat search results; index N triggers N-1 Down key presses. Save it per contact with contact --set NAME --search-index N, since sending without it fails for unconfigured contacts.

Does dry-run mode verify that WeChat sending will work?▼

No. The --dry-run flag only rehearses the command flow without checking dependencies, window state, rate limits, or performing GUI actions, and it writes no history. Only a real send validates the actual environment.