Agent skill · software engineering · aradotso
wx-cli-wechat-local-data
wx-cli-wechat-local-data — an agent skill for coding agents.
Why this skill is useful
Provides specific commands and workflows for querying and managing local WeChat data that the AI wouldn't reliably generate on its own.
What it needs
Requires npm installed locally. About 4k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.
What this skill does
wx (CLI) ──Unix socket──▶ wx-daemon (background process) │ ┌─────────┴──────────┐ DBCache Contact Cache (mtime-aware reuse) bash npm install -g @jackwener/wx-cli bash curl -fsSL https://raw.githubusercontent.com/jackwener/wx-cli/main/install.sh bash powershell irm https://raw.githubusercontent.com/jackwener/wx-cli/main/install.ps1 iex bash git clone git@github.com:jackwener/wx-cli.git && cd wx-cli cargo build --release Binary: target/release/wx (Windows: wx.exe) sudo mv target/release/wx /usr/local/bin/ bash 1. Re-sign WeChat so wx-cli can read its memory (redo after WeChat updates) codesign --force --deep --sign - /Applications/WeChat.app If you get "signature in use" error: codesign --remove-signature "/Applications/WeChat.app/Contents/Frameworks/vlcplugins/librtpmpeg4plugin.dylib" codesign --force --deep --sign - /Applications/WeChat.app 2. Restart WeChat and wait for full login killall WeChat && open /Applications/WeChat.app 3. Initialize (extracts encryption keys from memory) sudo wx init bash sudo wx init powershell wx init bash wx sessions # Should show recent conversations bash Recent 20 sessions wx sessions Sessions with unread messages wx unread Filter by type: private, group, officialaccount, folded wx unread --filter private,group New messages since last check (incremental) wx new-messages Chat history (last 50 messages) wx history "张三" Chat history with date range wx history "AI群" --since 2026-04-01 --until 2026-04-15 Full-text search across all chats wx search "关键词" Search within a specific chat with date filter wx search "会议" --in "工作群" --since 2026-01-01 bash All contacts wx contacts Search contacts by name wx contacts --query "李" List group members wx members "AI交流群" bash All favorites wx favorites Filter favorites by type: text, image, article, card, video wx favorites --type image Search favorites wx favorites --query "关键词" Chat statistics wx stats "AI群" Stats with date range wx stats "AI群" --since 2026-01-01 bash Export to Markdown wx export "张三" …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aradotso/wx-cli-wechat-local-data