Skip to content

anbeime/skill / skills/chrome-automation/chrome-automation

chrome-automation

Flagged

网页开发工程师与运营专员在需要自动化现有 Chrome 浏览器时必用!通过 CDP 协议无缝接管当前浏览器,自动配置环境并实时可视化执行任务。完美保留登录状态,一键完成复杂网页自动化流程,让繁琐操作自动化。

scripts/connect_chrome.sh

View on GitHub
#!/bin/bash
# Connect to or start Chrome with remote debugging
# Usage: ./connect_chrome.sh [port]

PORT="${1:-9222}"

echo "🔍 Checking for Chrome with remote debugging on port $PORT..."

# Check if Chrome already running with debug port
if ps aux | grep -q "[r]emote-debugging-port=$PORT"; then
    echo "✅ Chrome already running with remote debugging on port $PORT"
    echo ""
    echo "Test connection with:"
    echo "  cd /Users/jyxc-dz-0100272/Documents/agent-browser"
    echo "  AGENT_BROWSER_HOME=/Users/jyxc-dz-0100272/Documents/agent-browser \\"
    echo "  ./bin/agent-browser --cdp $PORT get url"
    exit 0
fi

echo "🚀 Starting Chrome with remote debugging on port $PORT..."

# Start Chrome with debugging
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --remote-debugging-port=$PORT \
  --user-data-dir=/tmp/chrome-debug-$PORT &

# Wait for Chrome to start
echo "⏳ Waiting for Chrome to start..."
sleep 3

# Open initial page
echo "📄 Opening initial page..."
osascript -e 'tell application "Google Chrome" to activate' \
  -e 'tell application "Google Chrome" to open location "https://google.com"' 2>/dev/null

# Wait for page load
sleep 2

echo ""
echo "✅ Chrome started successfully!"
echo ""
echo "Chrome is now running with remote debugging on port $PORT"
echo "You should see a Chrome window open"
echo ""
echo "Test connection with:"
echo "  cd /Users/jyxc-dz-0100272/Documents/agent-browser"
echo "  AGENT_BROWSER_HOME=/Users/jyxc-dz-0100272/Documents/agent-browser \\"
echo "  ./bin/agent-browser --cdp $PORT snapshot -i"
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall