yichen-mac-wechat-dual-open
Skill này làm gì
Skill này tạo một bản sao của WeChat với một định danh gói (bundle identifier) khác, ký lại bản sao đó và có thể đổi màu biểu tượng để hai ứng dụng dễ phân biệt. Skill dành cho người dùng Mac muốn đăng nhập vào hai tài khoản WeChat.
Khi nào nên dùng
- ✓Khi bạn muốn mở hai tài khoản WeChat trên Mac cùng lúc.
- ✓Khi bạn hỏi liệu một phương pháp mở song song bạn tìm thấy trên mạng có đáng tin không.
- ✓Khi bạn muốn đổi màu biểu tượng của bản WeChat thứ hai đã sao chép.
Liên kết skill
https://github.com/mcncarl/yichen-skills/blob/main/yichen-mac-wechat-dual-open/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một ứng dụng WeChat thứ hai trên Mac để tôi có thể đăng nhập tài khoản công việc bên cạnh tài khoản cá nhân.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent sao chép ứng dụng WeChat, chỉ đổi định danh của bản sao, rồi ký lại nó. Sau đó agent để bạn tự mở ứng dụng, vì agent không bao giờ khởi chạy WeChat.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Mac WeChat Dual Open
Core Judgment
Prefer the copy + bundle id + ad-hoc signing method over injection/tweak tools when the user wants a cleaner second WeChat:
- Copy
/Applications/WeChat.appto a user-owned app such as~/Applications/WeChat-2.app. - Change only the copy's
CFBundleIdentifier, usually tocom.tencent.xin2. - Re-sign the copy with
codesign --force --deep --sign -. - Stop and have the user open the prepared copy manually. The agent never launches WeChat.
This is generally workable, but not permanent. Updates, push notifications, keychain isolation, Gatekeeper/signing policy, and Tencent-side app checks can break or degrade it. Read references/reliability-and-risks.md when evaluating a public tutorial or explaining tradeoffs.
Prerequisites
- macOS 12+ with WeChat installed at
/Applications/WeChat.app - Python 3.10+ (system python works)
- Pillow: required for
recolor-icon. Install withpip3 install Pillowif missing. - Xcode Command Line Tools:
xcode-select --installprovidescodesign,iconutil,sips.
Locating the Script
This skill contains a helper script at scripts/wechat_dual_open.py relative to the skill directory. Different agents install skills to different paths:
- Claude Code:
~/.claude/skills/yichen-mac-wechat-dual-open/scripts/wechat_dual_open.py - Codex CLI:
~/.codex/skills/yichen-mac-wechat-dual-open/scripts/wechat_dual_open.py - Others: locate the skill directory by finding
SKILL.mdforyichen-mac-wechat-dual-open
When executing commands, construct the script path dynamically:
# Auto-detect: find the script regardless of agent platform
SKILL_DIR="$(dirname "$(find ~ -path '*/yichen-mac-wechat-dual-open/SKILL.md' -maxdepth 4 2>/dev/null | head -1)")"
SCRIPT="$SKILL_DIR/scripts/wechat_dual_open.py"
python3 "$SCRIPT" status
Or if you know your skill path, use it directly:
SCRIPT="<skill-dir>/scripts/wechat_dual_open.py"
python3 "$SCRIPT" status
Quick Commands
python3 "$SCRIPT" status
python3 "$SCRIPT" create
python3 "$SCRIPT" set-language --languages zh-Hans en
python3 "$SCRIPT" recolor-icon --blue "#1296db"
# The user opens ~/Applications/WeChat-2.app manually; the agent never runs launch.
Default paths:
- Source app:
/Applications/WeChat.app - Second app:
~/Applications/WeChat-2.app - Second bundle id:
com.tencent.xin2
Pass --source-app, --target-app, or --bundle-id when the user's setup differs.
Workflow
- Run
statusfirst. Confirm the source version, target path, bundle ids, active processes, and whether an existingWeChat-2.appis already present. - If no second app exists, run
create. If it exists, avoid deleting it. Userepairto re-apply bundle id, language preference, signing, registration, and cache refresh. - If the second instance appears in English, run
set-language --languages zh-Hans en, then restart the second WeChat. - If the user wants a blue icon, run
recolor-icon. This extracts the original WeChat icon, changes green pixels to blue in HSV/HLS space, preserves white chat bubbles and shape, replaces both outer and embedded icon files, removesCFBundleIconNameto avoid staleAssets.cargreen icons, clears Finder custom-icon detritus before signing, re-signs, adds a Finder custom icon back, and refreshes caches. If the Finder custom icon tools (DeRez,Rez,SetFile) are unavailable on newer macOS, the script skips that step gracefully — icns replacement alone is usually sufficient. - Stop before launch. Tell the user to open
~/Applications/WeChat-2.appmanually. If Dock still shows the old icon, the user may quit and reopen it; the agent must not control either WeChat app.
Icon Pitfalls
Do not stop after replacing only Contents/Resources/AppIcon.icns. WeChat also has:
Contents/MacOS/WeChatAppEx.app/Contents/Resources/app.icnsContents/Resources/Assets.carwithAppIconrenditions- Finder/Dock/LaunchServices icon caches
For reliable Finder "Applications" display, the script also writes a Finder custom icon to WeChat-2.app/Icon\r and sets the Custom Icon attribute. If the user says "Finder still shows green," inspect the real selected path with Finder or open -R ~/Applications/WeChat-2.app; they may be looking at /Applications/WeChat.app or a cached Dock/Launchpad tile.
Important ordering: codesign must run before adding the Finder custom icon, or after clearing it. Otherwise macOS can reject the bundle w
Câu hỏi thường gặp
Bản sao thứ hai có tiếp tục hoạt động sau các bản cập nhật không?
Không phải lúc nào. Skill nói rằng bản cập nhật, thông báo và kiểm tra ứng dụng có thể làm nó lỗi hoặc yếu đi.
Agent có mở WeChat cho tôi không?
Không. Bạn tự mở bản sao đã chuẩn bị.
Có thay đổi ứng dụng WeChat gốc không?
Không. Chỉ định danh của bản sao được thay đổi, nên ứng dụng gốc vẫn như cũ.
Chi tiết
Mô tả gốc của tác giả
Create, inspect, repair, and polish a second WeChat app on macOS by copying WeChat, changing the bundle identifier, ad-hoc re-signing, preparing it for the user to open manually, setting Chinese language preferences, and recoloring only the copied app icon from WeChat green to blue. Use when the user asks whether Mac WeChat dual-open methods from X/Twitter or scripts are reliable, asks to prepare a second WeChat app, fix WeChat-2 language/icon/cache issues, or make the copied app visually distinct without installing third-party injection tools. Never launch or control WeChat.
repo: mcncarl/yichen-skills
Độ phổ biến
- Sao GitHub
- 5.2k
- Vị trí xếp hạng
- #15037
- Giấy phép
- —
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
yichen-grok-consult
5.2kCho phép agent của bạn hỏi xAI Grok để có ý kiến thứ hai, nhận xét, hoặc tìm kiếm trên web và X, trong khi AI chính vẫn giữ quyền kiểm soát.
yichen-chatgpt-web-research
5.2kCho phép agent của bạn dùng tài khoản ChatGPT trên web đã đăng nhập, gồm các mô hình Pro, để nghiên cứu sản phẩm, thị trường hoặc đối thủ.
yichen-codex-chatgpt
5.2kCho phép agent của bạn làm việc với ChatGPT như người thiết kế và người rà soát một dự án cục bộ, trong khi Codex viết và kiểm thử mã.
yichen-wechat-mp-batch-exporter
5.2kGiúp agent của bạn tải nội dung bài viết tài khoản công khai WeChat, danh sách bài và số liệu đọc hoặc bình luận vào một kho lưu trữ cục bộ.
Skill tương tự
blucli
394kGiúp agent của bạn tìm, phát, tạm dừng, nhóm và chỉnh âm lượng loa Bluesound và NAD qua lệnh blu.
camsnap
394kGiúp agent của bạn chụp ảnh, quay clip ngắn hoặc lấy sự kiện chuyển động từ camera mạng và webcam nội bộ mà bạn đã thiết lập.
eightctl
394kGiúp agent của bạn kiểm tra và điều khiển thiết bị Eight Sleep pod, gồm nhiệt độ, báo thức và lịch ngủ.