[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CHZ5TMVDA370GJJRY70KD3":3,"skill-same:01M7CHZ5TMVDA370GJJRY70KD3":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7CHZ5TMVDA370GJJRY70KD3","claude-in-chrome-troubleshooting",null,"Diagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return \"Browser extension is not connected\", or behave erratically.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fclaude-in-chrome-troubleshooting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: claude-in-chrome-troubleshooting\ndescription: Diagnose and fix Claude in Chrome MCP extension connectivity issues. Use when mcp__claude-in-chrome__* tools fail, return \"Browser extension is not connected\", or behave erratically.\nrisk: critical\nsource: community\n---\n\n# Claude in Chrome MCP Troubleshooting\n\nUse this skill when Claude in Chrome MCP tools fail to connect or work unreliably.\n\n## When to Use\n- `mcp__claude-in-chrome__*` tools fail with \"Browser extension is not connected\"\n- Browser automation works erratically or times out\n- After updating Claude Code or Claude.app\n- When switching between Claude Code CLI and Claude.app (Cowork)\n- Native host process is running but MCP tools still fail\n\n## When NOT to Use\n\n- **Linux or Windows users** - This skill covers macOS-specific paths and tools (`~\u002FLibrary\u002FApplication Support\u002F`, `osascript`)\n- General Chrome automation issues unrelated to the Claude extension\n- Claude.app desktop issues (not browser-related)\n- Network connectivity problems\n- Chrome extension installation issues (use Chrome Web Store support)\n\n## The Claude.app vs Claude Code Conflict (Primary Issue)\n\n**Background:** When Claude.app added Cowork support (browser automation from the desktop app), it introduced a competing native messaging host that conflicts with Claude Code CLI.\n\n### Two Native Hosts, Two Socket Formats\n\n| Component | Native Host Binary | Socket Location |\n|-----------|-------------------|-----------------|\n| **Claude.app (Cowork)** | `\u002FApplications\u002FClaude.app\u002FContents\u002FHelpers\u002Fchrome-native-host` | `\u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F\u003CPID>.sock` |\n| **Claude Code CLI** | `~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F\u003Cversion> --chrome-native-host` | `$TMPDIR\u002Fclaude-mcp-browser-bridge-$USER` (single file) |\n\n### Why They Conflict\n\n1. Both register native messaging configs in Chrome:\n   - `com.anthropic.claude_browser_extension.json` → Claude.app helper\n   - `com.anthropic.claude_code_browser_extension.json` → Claude Code wrapper\n\n2. Chrome extension requests a native host by name\n3. If the wrong config is active, the wrong binary runs\n4. The wrong binary creates sockets in a format\u002Flocation the MCP client doesn't expect\n5. Result: \"Browser extension is not connected\" even though everything appears to be running\n\n### The Fix: Disable Claude.app's Native Host\n\n**If you use Claude Code CLI for browser automation (not Cowork):**\n\n```bash\n# Disable the Claude.app native messaging config\nmv ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json \\\n   ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json.disabled\n\n# Ensure the Claude Code config exists and points to the wrapper\ncat ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_code_browser_extension.json\n```\n\n**If you use Cowork (Claude.app) for browser automation:**\n\n```bash\n# Disable the Claude Code native messaging config\nmv ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_code_browser_extension.json \\\n   ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_code_browser_extension.json.disabled\n```\n\n**You cannot use both simultaneously.** Pick one and disable the other.\n\n### Toggle Script\n\nAdd this to `~\u002F.zshrc` or run directly:\n\n```bash\nchrome-mcp-toggle() {\n    local CONFIG_DIR=~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\n    local CLAUDE_APP=\"$CONFIG_DIR\u002Fcom.anthropic.claude_browser_extension.json\"\n    local CLAUDE_CODE=\"$CONFIG_DIR\u002Fcom.anthropic.claude_code_browser_extension.json\"\n\n    if [[ -f \"$CLAUDE_APP\" && ! -f \"$CLAUDE_APP.disabled\" ]]; then\n        # Currently using Claude.app, switch to Claude Code\n        mv \"$CLAUDE_APP\" \"$CLAUDE_APP.disabled\"\n        [[ -f \"$CLAUDE_CODE.disabled\" ]] && mv \"$CLAUDE_CODE.disabled\" \"$CLAUDE_CODE\"\n        echo \"Switched to Claude Code CLI\"\n        echo \"Restart Chrome and Claude Code to apply\"\n    elif [[ -f \"$CLAUDE_CODE\" && ! -f \"$CLAUDE_CODE.disabled\" ]]; then\n        # Currently using Claude Code, switch to Claude.app\n        mv \"$CLAUDE_CODE\" \"$CLAUDE_CODE.disabled\"\n        [[ -f \"$CLAUDE_APP.disabled\" ]] && mv \"$CLAUDE_APP.disabled\" \"$CLAUDE_APP\"\n        echo \"Switched to Claude.app (Cowork)\"\n        echo \"Restart Chrome to apply\"\n    else\n        echo \"Current state unclear. Check configs:\"\n        ls -la \"$CONFIG_DIR\"\u002Fcom.anthropic*.json* 2>\u002Fdev\u002Fnull\n    fi\n}\n```\n\nUsage: `chrome-mcp-toggle` then restart Chrome (and Claude Code if switching to CLI).\n\n## Quick Diagnosis\n\n```bash\n# 1. Which native host binary is running?\nps aux | grep chrome-native-host | grep -v grep\n# Claude.app: \u002FApplications\u002FClaude.app\u002FContents\u002FHelpers\u002Fchrome-native-host\n# Claude Code: ~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002FX.X.X --chrome-native-host\n\n# 2. Where is the socket?\n# For Claude Code (single file in TMPDIR):\nls -la \"$(getconf DARWIN_USER_TEMP_DIR)\u002Fclaude-mcp-browser-bridge-$USER\" 2>&1\n\n# For Claude.app (directory with PID files):\nls -la \u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F 2>&1\n\n# 3. What's the native host connected to?\nlsof -U 2>&1 | grep claude-mcp-browser-bridge\n\n# 4. Which configs are active?\nls ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic*.json\n```\n\n## Critical Insight\n\n**MCP connects at startup.** If the browser bridge wasn't ready when Claude Code started, the connection will fail for the entire session. The fix is usually: ensure Chrome + extension are running with correct config, THEN restart Claude Code.\n\n## Full Reset Procedure (Claude Code CLI)\n\n```bash\n# 1. Ensure correct config is active\nmv ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json \\\n   ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json.disabled 2>\u002Fdev\u002Fnull\n\n# 2. Update the wrapper to use latest Claude Code version\ncat > ~\u002F.claude\u002Fchrome\u002Fchrome-native-host \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\nLATEST=$(ls -t ~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F 2>\u002Fdev\u002Fnull | head -1)\nexec \"$HOME\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F$LATEST\" --chrome-native-host\nEOF\nchmod +x ~\u002F.claude\u002Fchrome\u002Fchrome-native-host\n\n# 3. Kill existing native host and clean sockets\npkill -f chrome-native-host\nrm -rf \u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F\nrm -f \"$(getconf DARWIN_USER_TEMP_DIR)\u002Fclaude-mcp-browser-bridge-$USER\"\n\n# 4. Restart Chrome\nosascript -e 'quit app \"Google Chrome\"' && sleep 2 && open -a \"Google Chrome\"\n\n# 5. Wait for Chrome, click Claude extension icon\n\n# 6. Verify correct native host is running\nps aux | grep chrome-native-host | grep -v grep\n# Should show: ~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002FX.X.X --chrome-native-host\n\n# 7. Verify socket exists\nls -la \"$(getconf DARWIN_USER_TEMP_DIR)\u002Fclaude-mcp-browser-bridge-$USER\"\n\n# 8. Restart Claude Code\n```\n\n## Other Common Causes\n\n### Multiple Chrome Profiles\n\nIf you have the Claude extension installed in multiple Chrome profiles, each spawns its own native host and socket. This can cause confusion.\n\n**Fix:** Only enable the Claude extension in ONE Chrome profile.\n\n### Multiple Claude Code Sessions\n\nRunning multiple Claude Code instances can cause socket conflicts.\n\n**Fix:** Only run one Claude Code session at a time, or use `\u002Fmcp` to reconnect after closing other sessions.\n\n### Hardcoded Version in Wrapper\n\nThe wrapper at `~\u002F.claude\u002Fchrome\u002Fchrome-native-host` may have a hardcoded version that becomes stale after updates.\n\n**Diagnosis:**\n```bash\ncat ~\u002F.claude\u002Fchrome\u002Fchrome-native-host\n# Bad: exec \"\u002FUsers\u002F...\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F2.0.76\" --chrome-native-host\n# Good: Uses $(ls -t ...) to find latest\n```\n\n**Fix:** Use the dynamic version wrapper shown in the Full Reset Procedure above.\n\n### TMPDIR Not Set\n\nClaude Code expects `TMPDIR` to be set to find the socket.\n\n```bash\n# Check\necho $TMPDIR\n# Should show: \u002Fvar\u002Ffolders\u002FXX\u002F...\u002FT\u002F\n\n# Fix: Add to ~\u002F.zshrc\nexport TMPDIR=\"${TMPDIR:-$(getconf DARWIN_USER_TEMP_DIR)}\"\n```\n\n## Diagnostic Deep Dive\n\n```bash\necho \"=== Native Host Binary ===\"\nps aux | grep chrome-native-host | grep -v grep\n\necho -e \"\\n=== Socket (Claude Code location) ===\"\nls -la \"$(getconf DARWIN_USER_TEMP_DIR)\u002Fclaude-mcp-browser-bridge-$USER\" 2>&1\n\necho -e \"\\n=== Socket (Claude.app location) ===\"\nls -la \u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F 2>&1\n\necho -e \"\\n=== Native Host Open Files ===\"\npgrep -f chrome-native-host | xargs -I {} lsof -p {} 2>\u002Fdev\u002Fnull | grep -E \"(sock|claude-mcp)\"\n\necho -e \"\\n=== Active Native Messaging Configs ===\"\nls ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic*.json 2>\u002Fdev\u002Fnull\n\necho -e \"\\n=== Custom Wrapper Contents ===\"\ncat ~\u002F.claude\u002Fchrome\u002Fchrome-native-host 2>\u002Fdev\u002Fnull || echo \"No custom wrapper\"\n\necho -e \"\\n=== TMPDIR ===\"\necho \"TMPDIR=$TMPDIR\"\necho \"Expected: $(getconf DARWIN_USER_TEMP_DIR)\"\n```\n\n## File Reference\n\n| File | Purpose |\n|------|---------|\n| `~\u002F.claude\u002Fchrome\u002Fchrome-native-host` | Custom wrapper script for Claude Code |\n| `\u002FApplications\u002FClaude.app\u002FContents\u002FHelpers\u002Fchrome-native-host` | Claude.app (Cowork) native host |\n| `~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F\u003Cversion>` | Claude Code binary (run with `--chrome-native-host`) |\n| `~\u002FLibrary\u002FApplication Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json` | Config for Claude.app native host |\n| `~\u002FLibrary\u002FApplication Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_code_browser_extension.json` | Config for Claude Code native host |\n| `$TMPDIR\u002Fclaude-mcp-browser-bridge-$USER` | Socket file (Claude Code) |\n| `\u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F\u003CPID>.sock` | Socket files (Claude.app) |\n\n## Summary\n\n1. **Primary issue:** Claude.app (Cowork) and Claude Code use different native hosts with incompatible socket formats\n2. **Fix:** Disable the native messaging config for whichever one you're NOT using\n3. **After any fix:** Must restart Chrome AND Claude Code (MCP connects at startup)\n4. **One profile:** Only have Claude extension in one Chrome profile\n5. **One session:** Only run one Claude Code instance\n\n---\n\n*Original skill by [@jeffzwang](https:\u002F\u002Fgithub.com\u002Fjeffzwang) from [@ExaAILabs](https:\u002F\u002Fgithub.com\u002FExaAILabs). Enhanced and updated for current versions of Claude Desktop and Claude Code.*\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","# Claude in Chrome MCP Troubleshooting\n\nUse this skill when Claude in Chrome MCP tools fail to connect or work unreliably.\n\n## When to Use\n- `mcp__claude-in-chrome__*` tools fail with \"Browser extension is not connected\"\n- Browser automation works erratically or times out\n- After updating Claude Code or Claude.app\n- When switching between Claude Code CLI and Claude.app (Cowork)\n- Native host process is running but MCP tools still fail\n\n## When NOT to Use\n\n- **Linux or Windows users** - This skill covers macOS-specific paths and tools (`~\u002FLibrary\u002FApplication Support\u002F`, `osascript`)\n- General Chrome automation issues unrelated to the Claude extension\n- Claude.app desktop issues (not browser-related)\n- Network connectivity problems\n- Chrome extension installation issues (use Chrome Web Store support)\n\n## The Claude.app vs Claude Code Conflict (Primary Issue)\n\n**Background:** When Claude.app added Cowork support (browser automation from the desktop app), it introduced a competing native messaging host that conflicts with Claude Code CLI.\n\n### Two Native Hosts, Two Socket Formats\n\n| Component | Native Host Binary | Socket Location |\n|-----------|-------------------|-----------------|\n| **Claude.app (Cowork)** | `\u002FApplications\u002FClaude.app\u002FContents\u002FHelpers\u002Fchrome-native-host` | `\u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F\u003CPID>.sock` |\n| **Claude Code CLI** | `~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F\u003Cversion> --chrome-native-host` | `$TMPDIR\u002Fclaude-mcp-browser-bridge-$USER` (single file) |\n\n### Why They Conflict\n\n1. Both register native messaging configs in Chrome:\n   - `com.anthropic.claude_browser_extension.json` → Claude.app helper\n   - `com.anthropic.claude_code_browser_extension.json` → Claude Code wrapper\n\n2. Chrome extension requests a native host by name\n3. If the wrong config is active, the wrong binary runs\n4. The wrong binary creates sockets in a format\u002Flocation the MCP client doesn't expect\n5. Result: \"Browser extension is not connected\" even though everything appears to be running\n\n### The Fix: Disable Claude.app's Native Host\n\n**If you use Claude Code CLI for browser automation (not Cowork):**\n\n```bash\n# Disable the Claude.app native messaging config\nmv ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json \\\n   ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json.disabled\n\n# Ensure the Claude Code config exists and points to the wrapper\ncat ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_code_browser_extension.json\n```\n\n**If you use Cowork (Claude.app) for browser automation:**\n\n```bash\n# Disable the Claude Code native messaging config\nmv ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_code_browser_extension.json \\\n   ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_code_browser_extension.json.disabled\n```\n\n**You cannot use both simultaneously.** Pick one and disable the other.\n\n### Toggle Script\n\nAdd this to `~\u002F.zshrc` or run directly:\n\n```bash\nchrome-mcp-toggle() {\n    local CONFIG_DIR=~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\n    local CLAUDE_APP=\"$CONFIG_DIR\u002Fcom.anthropic.claude_browser_extension.json\"\n    local CLAUDE_CODE=\"$CONFIG_DIR\u002Fcom.anthropic.claude_code_browser_extension.json\"\n\n    if [[ -f \"$CLAUDE_APP\" && ! -f \"$CLAUDE_APP.disabled\" ]]; then\n        # Currently using Claude.app, switch to Claude Code\n        mv \"$CLAUDE_APP\" \"$CLAUDE_APP.disabled\"\n        [[ -f \"$CLAUDE_CODE.disabled\" ]] && mv \"$CLAUDE_CODE.disabled\" \"$CLAUDE_CODE\"\n        echo \"Switched to Claude Code CLI\"\n        echo \"Restart Chrome and Claude Code to apply\"\n    elif [[ -f \"$CLAUDE_CODE\" && ! -f \"$CLAUDE_CODE.disabled\" ]]; then\n        # Currently using Claude Code, switch to Claude.app\n        mv \"$CLAUDE_CODE\" \"$CLAUDE_CODE.disabled\"\n        [[ -f \"$CLAUDE_APP.disabled\" ]] && mv \"$CLAUDE_APP.disabled\" \"$CLAUDE_APP\"\n        echo \"Switched to Claude.app (Cowork)\"\n        echo \"Restart Chrome to apply\"\n    else\n        echo \"Current state unclear. Check configs:\"\n        ls -la \"$CONFIG_DIR\"\u002Fcom.anthropic*.json* 2>\u002Fdev\u002Fnull\n    fi\n}\n```\n\nUsage: `chrome-mcp-toggle` then restart Chrome (and Claude Code if switching to CLI).\n\n## Quick Diagnosis\n\n```bash\n# 1. Which native host binary is running?\nps aux | grep chrome-native-host | grep -v grep\n# Claude.app: \u002FApplications\u002FClaude.app\u002FContents\u002FHelpers\u002Fchrome-native-host\n# Claude Code: ~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002FX.X.X --chrome-native-host\n\n# 2. Where is the socket?\n# For Claude Code (single file in TMPDIR):\nls -la \"$(getconf DARWIN_USER_TEMP_DIR)\u002Fclaude-mcp-browser-bridge-$USER\" 2>&1\n\n# For Claude.app (directory with PID files):\nls -la \u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F 2>&1\n\n# 3. What's the native host connected to?\nlsof -U 2>&1 | grep claude-mcp-browser-bridge\n\n# 4. Which configs are active?\nls ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic*.json\n```\n\n## Critical Insight\n\n**MCP connects at startup.** If the browser bridge wasn't ready when Claude Code started, the connection will fail for the entire session. The fix is usually: ensure Chrome + extension are running with correct config, THEN restart Claude Code.\n\n## Full Reset Procedure (Claude Code CLI)\n\n```bash\n# 1. Ensure correct config is active\nmv ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json \\\n   ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json.disabled 2>\u002Fdev\u002Fnull\n\n# 2. Update the wrapper to use latest Claude Code version\ncat > ~\u002F.claude\u002Fchrome\u002Fchrome-native-host \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\nLATEST=$(ls -t ~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F 2>\u002Fdev\u002Fnull | head -1)\nexec \"$HOME\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F$LATEST\" --chrome-native-host\nEOF\nchmod +x ~\u002F.claude\u002Fchrome\u002Fchrome-native-host\n\n# 3. Kill existing native host and clean sockets\npkill -f chrome-native-host\nrm -rf \u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F\nrm -f \"$(getconf DARWIN_USER_TEMP_DIR)\u002Fclaude-mcp-browser-bridge-$USER\"\n\n# 4. Restart Chrome\nosascript -e 'quit app \"Google Chrome\"' && sleep 2 && open -a \"Google Chrome\"\n\n# 5. Wait for Chrome, click Claude extension icon\n\n# 6. Verify correct native host is running\nps aux | grep chrome-native-host | grep -v grep\n# Should show: ~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002FX.X.X --chrome-native-host\n\n# 7. Verify socket exists\nls -la \"$(getconf DARWIN_USER_TEMP_DIR)\u002Fclaude-mcp-browser-bridge-$USER\"\n\n# 8. Restart Claude Code\n```\n\n## Other Common Causes\n\n### Multiple Chrome Profiles\n\nIf you have the Claude extension installed in multiple Chrome profiles, each spawns its own native host and socket. This can cause confusion.\n\n**Fix:** Only enable the Claude extension in ONE Chrome profile.\n\n### Multiple Claude Code Sessions\n\nRunning multiple Claude Code instances can cause socket conflicts.\n\n**Fix:** Only run one Claude Code session at a time, or use `\u002Fmcp` to reconnect after closing other sessions.\n\n### Hardcoded Version in Wrapper\n\nThe wrapper at `~\u002F.claude\u002Fchrome\u002Fchrome-native-host` may have a hardcoded version that becomes stale after updates.\n\n**Diagnosis:**\n```bash\ncat ~\u002F.claude\u002Fchrome\u002Fchrome-native-host\n# Bad: exec \"\u002FUsers\u002F...\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F2.0.76\" --chrome-native-host\n# Good: Uses $(ls -t ...) to find latest\n```\n\n**Fix:** Use the dynamic version wrapper shown in the Full Reset Procedure above.\n\n### TMPDIR Not Set\n\nClaude Code expects `TMPDIR` to be set to find the socket.\n\n```bash\n# Check\necho $TMPDIR\n# Should show: \u002Fvar\u002Ffolders\u002FXX\u002F...\u002FT\u002F\n\n# Fix: Add to ~\u002F.zshrc\nexport TMPDIR=\"${TMPDIR:-$(getconf DARWIN_USER_TEMP_DIR)}\"\n```\n\n## Diagnostic Deep Dive\n\n```bash\necho \"=== Native Host Binary ===\"\nps aux | grep chrome-native-host | grep -v grep\n\necho -e \"\\n=== Socket (Claude Code location) ===\"\nls -la \"$(getconf DARWIN_USER_TEMP_DIR)\u002Fclaude-mcp-browser-bridge-$USER\" 2>&1\n\necho -e \"\\n=== Socket (Claude.app location) ===\"\nls -la \u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F 2>&1\n\necho -e \"\\n=== Native Host Open Files ===\"\npgrep -f chrome-native-host | xargs -I {} lsof -p {} 2>\u002Fdev\u002Fnull | grep -E \"(sock|claude-mcp)\"\n\necho -e \"\\n=== Active Native Messaging Configs ===\"\nls ~\u002FLibrary\u002FApplication\\ Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic*.json 2>\u002Fdev\u002Fnull\n\necho -e \"\\n=== Custom Wrapper Contents ===\"\ncat ~\u002F.claude\u002Fchrome\u002Fchrome-native-host 2>\u002Fdev\u002Fnull || echo \"No custom wrapper\"\n\necho -e \"\\n=== TMPDIR ===\"\necho \"TMPDIR=$TMPDIR\"\necho \"Expected: $(getconf DARWIN_USER_TEMP_DIR)\"\n```\n\n## File Reference\n\n| File | Purpose |\n|------|---------|\n| `~\u002F.claude\u002Fchrome\u002Fchrome-native-host` | Custom wrapper script for Claude Code |\n| `\u002FApplications\u002FClaude.app\u002FContents\u002FHelpers\u002Fchrome-native-host` | Claude.app (Cowork) native host |\n| `~\u002F.local\u002Fshare\u002Fclaude\u002Fversions\u002F\u003Cversion>` | Claude Code binary (run with `--chrome-native-host`) |\n| `~\u002FLibrary\u002FApplication Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_browser_extension.json` | Config for Claude.app native host |\n| `~\u002FLibrary\u002FApplication Support\u002FGoogle\u002FChrome\u002FNativeMessagingHosts\u002Fcom.anthropic.claude_code_browser_extension.json` | Config for Claude Code native host |\n| `$TMPDIR\u002Fclaude-mcp-browser-bridge-$USER` | Socket file (Claude Code) |\n| `\u002Ftmp\u002Fclaude-mcp-browser-bridge-$USER\u002F\u003CPID>.sock` | Socket files (Claude.app) |\n\n## Summary\n\n1. **Primary issue:** Claude.app (Cowork) and Claude Code use different native hosts with incompatible socket formats\n2. **Fix:** Disable the native messaging config for whichever one you're NOT using\n3. **After any fix:** Must restart Chrome AND Claude Code (MCP connects at startup)\n4. **One profile:** Only have Claude extension in one Chrome profile\n5. **One session:** Only run one Claude Code instance\n\n---\n\n*Original skill by [@jeffzwang](https:\u002F\u002Fgithub.com\u002Fjeffzwang) from [@ExaAILabs](https:\u002F\u002Fgithub.com\u002FExaAILabs). Enhanced and updated for current versions of Claude Desktop and Claude Code.*\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n",{"name":5,"risk":24,"source":25,"description":7},"critical","community","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fclaude-in-chrome-troubleshooting",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill claude-in-chrome-troubleshooting",{"tool":41,"command":42},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill claude-in-chrome-troubleshooting",{"tool":44,"command":45},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill claude-in-chrome-troubleshooting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fclaude-in-chrome-troubleshooting\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]