본문으로 건너뛰기
Skillpedia
기타5.2k · #15037

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mcncarl/yichen-skills/blob/main/yichen-mac-wechat-dual-open/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:

  1. Copy /Applications/WeChat.app to a user-owned app such as ~/Applications/WeChat-2.app.
  2. Change only the copy's CFBundleIdentifier, usually to com.tencent.xin2.
  3. Re-sign the copy with codesign --force --deep --sign -.
  4. 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 with pip3 install Pillow if missing.
  • Xcode Command Line Tools: xcode-select --install provides codesign, 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.md for yichen-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

  1. Run status first. Confirm the source version, target path, bundle ids, active processes, and whether an existing WeChat-2.app is already present.
  2. If no second app exists, run create. If it exists, avoid deleting it. Use repair to re-apply bundle id, language preference, signing, registration, and cache refresh.
  3. If the second instance appears in English, run set-language --languages zh-Hans en, then restart the second WeChat.
  4. 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, removes CFBundleIconName to avoid stale Assets.car green 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.
  5. Stop before launch. Tell the user to open ~/Applications/WeChat-2.app manually. 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.icns
  • Contents/Resources/Assets.car with AppIcon renditions
  • 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬