aradotso/trending-skills/wx-cli-wechat-local-data
Claude Code and agent skill by aradotso/trending-skills
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install aradotso/trending-skills/wx-cli-wechat-local-dataSKILL.md
wx (CLI) ──Unix socket──▶ wx-daemon (background process) │ ┌─────────┴──────────┐ DBCache Contact Cache (mtime-aware reuse)
npm install -g @jackwener/wx-cli
curl -fsSL https://raw.githubusercontent.com/jackwener/wx-cli/main/install.sh | bash
irm https://raw.githubusercontent.com/jackwener/wx-cli/main/install.ps1 | iex
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/
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/vlc_plugins/librtp_mpeg4_plugin.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
sudo wx init
wx init
wx sessions # Should show recent conversations
Recent 20 sessions
wx sessions
Sessions with unread messages
wx unread
Filter by type: private, group, official_account, 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
All contacts
wx contacts
Search contacts by name
wx contacts --query "李"
List group members
wx members "AI交流群"
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
Export to Markdown
wx export "张三" --format markdown -o chat.md
Export group chat as JSON with date range
wx export "AI群" --since 2026-01-01 --format json
Default: YAML (token-efficient, human-readable)
wx sessions
JSON output (for jq piping)
wx sessions --json wx search "关键词" --json | jq '.[0].content' wx new-messages --json wx history "张三" --json | jq '[.[] | select(.sender == "张三")]'
wx daemon status wx daemon stop wx daemon logs --follow
~/.wx-cli/ ├── config.json # Configuration ├── all_keys.json # Database encryption keys ├── daemon.sock # Unix socket (Linux/macOS) ├── daemon.pid # Daemon PID file ├── daemon.log # Daemon log file └── cache/ ├── _mtimes.json # mtime index for cache invalidation └── *.db # Decrypted SQLite databases
while true; do wx new-messages --json | jq '.[] | "\(.sender): \(.content)"' sleep 30 done
wx unread --json | jq 'group_by(.chat_type) | map({type: .[0].chat_type, count: length})'
wx contacts --json | jq -r '.[].name' | while read name; do wx export "$name" --since 2026-01-01 --format markdown -o "exports/${name}.md" done
wx search "项目" --in "工作群" --json | jq '[.[] | {time: .timestamp, sender: .sender, msg: .content}]'
if ! wx daemon status | grep -q "running"; then sudo wx init fi
codesign --remove-signature "/Applications/WeChat.app/Contents/Frameworks/vlc_plugins/librtp_mpeg4_plugin.dylib" codesign --force --deep --sign - /Applications/WeChat.app
Check daemon logs
wx daemon logs
Ensure WeChat is running and logged in, then re-init
wx daemon stop sudo wx init wx sessions
Stop daemon to clear in-memory state
wx daemon stop
Re-sign WeChat if updated
codesign --force --deep --sign - /Applications/WeChat.app
Re-initialize
sudo wx init
wx init requires root to read /proc/<pid>/mem
sudo wx init
Cache invalidates automatically on DB mtime change
Force refresh by stopping daemon
wx daemon stop wx sessions # Daemon auto-restarts and re-reads
Install skill for Claude Code / Cursor / Codex
npx skills add jackwener/wx-cli
Install globally
npx skills add jackwener/wx-cli -g
Security
- Security scanPassed, 40 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wx-cli-wechat-local-data/SKILL.md
Popularity
- Repository stars
- 72
- Repository forks
- 13
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Aug 2026, 2 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aradotso/trending-skills/wx-cli-wechat-local-data)