Skip to content

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

chrome-automation

Flagged

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

scripts/setup.sh

View on GitHub
#!/bin/bash
# Setup agent-browser for Chrome automation
# Usage: ./setup.sh [install_directory]

set -e

INSTALL_DIR="${1:-/Users/jyxc-dz-0100272/Documents/agent-browser}"

echo "🚀 Setting up agent-browser at: $INSTALL_DIR"

# Check if directory exists
if [ ! -d "$INSTALL_DIR" ]; then
    echo "❌ Directory not found: $INSTALL_DIR"
    echo "Please clone agent-browser first:"
    echo "  git clone https://github.com/vercel-labs/agent-browser.git $INSTALL_DIR"
    exit 1
fi

cd "$INSTALL_DIR"

# Step 1: Install dependencies
echo "📦 Installing dependencies..."
if command -v pnpm &> /dev/null; then
    pnpm install
elif command -v npm &> /dev/null; then
    npm install
else
    echo "❌ Neither pnpm nor npm found. Please install Node.js first."
    exit 1
fi

# Step 2: Install Chromium
echo "🌐 Installing Chromium browser..."
npx playwright install chromium

# Step 3: Build TypeScript
echo "🔨 Building TypeScript code..."
npm run build

# Step 4: Verify installation
echo "✅ Verifying installation..."
if [ -f "$INSTALL_DIR/bin/agent-browser" ]; then
    echo "✓ Binary found"
else
    echo "❌ Binary not found"
    exit 1
fi

if [ -d "$INSTALL_DIR/node_modules" ]; then
    echo "✓ Dependencies installed"
else
    echo "❌ Dependencies missing"
    exit 1
fi

if [ -d "$INSTALL_DIR/dist" ]; then
    echo "✓ TypeScript compiled"
else
    echo "❌ TypeScript not compiled"
    exit 1
fi

echo ""
echo "✅ Setup complete!"
echo ""
echo "Environment variable to set:"
echo "  export AGENT_BROWSER_HOME=$INSTALL_DIR"
echo ""
echo "Test with:"
echo "  cd $INSTALL_DIR"
echo "  AGENT_BROWSER_HOME=$INSTALL_DIR ./bin/agent-browser --help"
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