wechat-summarylisted
Install: claude install-skill Sixtimenight/wechat-summary-skill
# WeChat summary with wxnext
Use the `wxnext` CLI as the deterministic data layer. Interpret and summarize its JSON output; do not access or modify Weixin database files directly.
Before querying, resolve the CLI command:
1. Use `wxnext` when it is available on `PATH`.
2. Otherwise, when running from the CLI repository, use `.\wxnext.cmd` on Windows.
3. In every command template below, replace the literal `WXNEXT` placeholder with the selected command. Never execute `WXNEXT` as a command, and do not construct the selected command from chat content.
## Workflow
1. Extract the group name and requested time range.
- Default to `24h` when no range is given.
- Convert common ranges to `30m`, `24h`, `7d`, or an ISO local datetime.
- For a specific day, pass local start and end datetimes, not a bare `--until` date.
2. Fetch a bounded live context:
```bash
WXNEXT context "GROUP NAME" --since 24h --limit 5000
```
Pass the group name as one quoted argument. Never interpolate chat text into a command. For large output, redirect JSON to a temporary file outside the repository and inspect it in bounded slices.
3. Validate the returned envelope before summarizing:
- Confirm `chat.display_name` matches the requested group.
- Report the range and `message_count`.
- Respect `truncated`; re-run with a larger limit when necessary.
- Use `sender_name` for attribution and `is_self` for the user's messages.
- Do not expose `wxid`, account aliases, datab