Wechat Dedup
Description
Claude Code Skill: WeChat document deduplicator - 微信文档去重工具
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
WeChat Document Deduplicator
A Claude Code Skill for finding and removing duplicate documents in WeChat folders
微信文档去重工具 - 自动识别并清理微信产生的重复文档文件
Problem
WeChat (微信) tends to create multiple copies of the same document when:
- Files are forwarded multiple times
- Files are saved from different chats
- Sync issues between devices
This results in files like:
document.pdf
document(1).pdf
document(2).pdf
These duplicates waste significant storage space.
Solution
This skill scans your WeChat folder, identifies duplicate documents by **content hash** (not filename), and safely moves duplicates to a quarantine folder.
Key Features
- Content-based detection: Uses MD5 hash to identify truly identical files
- Safe operation: Moves files to quarantine instead of deleting
- Smart retention: Keeps the oldest (original) file
- Detailed report: Generates a markdown report of all actions
Installation
For Claude Code Users
# Clone to your skills directory
git clone https://github.com/rolandwong/wechat-dedup.git ~/.claude/skills/wechat-dedup
Manual Installation
git clone https://github.com/rolandwong/wechat-dedup.git
cd wechat-dedup
python3 dedup.py
Usage
Via Claude Code
Just say:
微信去重清理微信重复文件wechat dedup
Via Command Line
python3 ~/.claude/skills/wechat-dedup/dedup.py
How It Works
- Scan: Finds all PDF and Word documents in WeChat folder
- Hash: Groups files by size first (fast), then by MD5 hash (accurate)
- Select: Keeps the file with earliest creation time
- Move: Moves duplicates to
~/微信重复文件_待删除/ - Report: Generates
去重报告.mdwith full details
Configuration
| Parameter | Default | Description |
|---|---|---|
| Scan Path | WeChat folder | Auto-detected on macOS |
| File Types | PDF, DOC, DOCX | Can be extended |
| Quarantine | ~/微信重复文件_待删除/ |
30-day holding period |
| Keep Strategy | Oldest file |
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development