yichen-mac-wechat-dual-open
하는 일
번들 ID가 다른 WeChat 복사본을 만들고 다시 서명하며, 두 앱을 쉽게 구분할 수 있도록 아이콘 색을 바꿀 수 있습니다. Mac에서 WeChat 계정 두 개에 로그인하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓Mac에서 WeChat 계정 두 개를 동시에 열고 싶을 때.
- ✓온라인에서 찾은 이중 실행 방법이 믿을 만한지 묻고 싶을 때.
- ✓복사한 두 번째 WeChat 앱의 아이콘을 다른 색으로 바꾸고 싶을 때.
스킬 링크
https://github.com/mcncarl/yichen-skills/blob/main/yichen-mac-wechat-dual-open/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 Mac에 두 번째 WeChat 앱을 만들어 주세요. 업무 계정에도 개인 계정 옆에서 로그인하고 싶어요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 WeChat 앱을 복사하고, 복사본의 번들 ID만 바꾼 뒤 다시 서명합니다. 에이전트는 WeChat을 직접 실행하지 않으며, 준비된 복사본은 여러분이 직접 엽니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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
자주 묻는 질문
업데이트 후에도 두 번째 복사본이 계속 작동하나요?
항상 그렇지는 않습니다. 스킬은 업데이트, 알림, 앱 점검 때문에 기능이 깨지거나 약해질 수 있다고 말합니다.
에이전트가 WeChat을 대신 열어 주나요?
아니요. 준비된 복사본은 여러분이 직접 엽니다.
원래 WeChat 앱을 바꾸나요?
아니요. 복사본의 번들 ID만 바뀌므로 원래 앱은 그대로 남습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 5.2k
- 순위
- #15037
- 라이선스
- —
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
yichen-grok-consult
5.2k에이전트가 xAI Grok에게 두 번째 의견, 검토, 웹이나 X 검색을 요청하도록 돕고, 주 AI가 계속 주도권을 갖습니다.
yichen-chatgpt-web-research
5.2k에이전트가 로그인된 ChatGPT 웹 계정(Pro 모델 포함)을 사용해 제품, 시장, 경쟁사 조사를 하도록 돕습니다.
yichen-codex-chatgpt
5.2k에이전트가 ChatGPT를 로컬 프로젝트의 설계자이자 검토자로 쓰도록 돕고, Codex는 코드를 작성하고 테스트합니다.
yichen-wechat-mp-batch-exporter
5.2k에이전트가 WeChat 공식 계정 기사 본문, 기사 목록, 읽기 및 댓글 수를 내려받아 로컬 보관함에 저장하도록 돕습니다.