用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jleechanorg/claude-commands --skill worldai-browser-login命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Token-efficient second opinion slash command /advice. Extracts decision point + artifact (≤150 lines), then fans out in parallel: (1) Opus subagent reviewer with fallback chain codex→agy→cursor, (2) /research on the decision topic, (3) /secondo multi-model opinion. Use instead of advisor() which ships the full conversation uncached.
Use this skill when working in repositories managed by Agent Orchestrator or when the user asks how to use `ao` properly. Covers the default AO workflow: bootstrap with `ao start`, dispatch work with `ao spawn`, inspect progress with `ao status` or `ao session ls`, steer sessions with `ao send`, and recover or clean up sessions safely. Includes strict parameter fidelity, pre-spawn cap cleanup, quota-wall fallback, and post-spawn verification.
Generate a full agento PR status report — draft readiness, canonical /green, zero-touch rate, inline display, and Slack summary.
基于 SOC 职业分类
| name | worldai-browser-login |
| description | Browser-based login to WorldAI via Firebase Google OAuth using Chrome Superpowers MCP |
| type | reference |
| scope | project |
This skill documents how to authenticate with WorldAI in a real browser using Chrome Superpowers MCP or Playwright MCP for browser-based testing.
| Account | Purpose | Campaigns |
|---|---|---|
jleechantest@gmail.com | Secondary test account | 44 campaigns |
jleechan@gmail.com | Primary account (owner) | 146 campaigns |
| Environment | URL |
|---|---|
| Deployed Dev | https://mvp-site-app-s2-i6xf2p72ka-uc.a.run.app |
| Local | http://localhost:8081 |
# Navigate to deployed server
mcp__chrome-superpower__use_browser(
action="navigate",
payload="https://mvp-site-app-s2-i6xf2p72ka-uc.a.run.app"
)
# Click the Google sign-in button
mcp__chrome-superpower__use_browser(
action="click",
selector="//button[contains(text(), 'Sign in with Google')]"
)
The Firebase OAuth popup will open. The MCP browser cannot track the popup window, but:
# Extract page content to verify login
mcp__chrome-superpower__use_browser(
action="extract",
payload="text",
selector="body"
)
Success indicators:
jleechan@gmail.com)# Navigate directly to a campaign
mcp__chrome-superpower__use_browser(
action="navigate",
payload="http://localhost:8081/game/CAMPAIGN_ID"
)
# Capture screenshot as evidence
mcp__chrome-superpower__use_browser(
action="screenshot",
payload="evidence-name.png"
)
Screenshots are saved to Chrome Superpowers temp directory:
/var/folders/j0/.../chrome-session-*/XXX-action-timestamp/screenshot.png
# Create evidence directory
mkdir -p /tmp/worldai-browser-evidence/
# Copy screenshot
cp /path/to/chrome-session/*/screenshot.png /tmp/worldai-browser-evidence/
Primary Method: Claude Code Native Vision
Claude Code can directly read and analyze image files as a multimodal LLM:
# Use the Read tool on PNG files - Claude sees the image directly
Read(file_path="/tmp/worldai-browser-evidence/screenshot.png")
# Claude will describe what it sees: user email, campaign list, UI state
Secondary Method: Tesseract OCR (Cross-validation)
python3 - <<'PY'
from PIL import Image
import pytesseract
image_path = "/tmp/worldai-browser-evidence/screenshot.png"
img = Image.open(image_path)
text = pytesseract.image_to_string(img)
# Verify login success
if "jleechan@gmail.com" in text or "jleechantest@gmail.com" in text:
print("SUCCESS: User is logged in")
if "My Campaigns" in text:
print("SUCCESS: Campaigns page visible")
print("\n=== Full OCR Output ===")
print(text)
PY
# 1. Navigate
mcp__chrome-superpower__use_browser(action="navigate", payload="https://mvp-site-app-s2-i6xf2p72ka-uc.a.run.app")
# 2. Click Sign In
mcp__chrome-superpower__use_browser(action="click", selector="//button[contains(text(), 'Sign in with Google')]")
# 3. Wait for OAuth popup (manual intervention if needed)
# 4. Take screenshot
mcp__chrome-superpower__use_browser(action="screenshot", payload="login-test.png")
# 5. Extract and verify
mcp__chrome-superpower__use_browser(action="extract", payload="text", selector="body")
If Chrome Superpowers is unavailable, use Playwright MCP:
# Navigate
mcp__playwright-mcp__browser_navigate(url="https://mvp-site-app-s2-i6xf2p72ka-uc.a.run.app")
# Get snapshot
mcp__playwright-mcp__browser_snapshot()
# Click login button
mcp__playwright-mcp__browser_click(element="Sign in with Google button", ref="button-ref")
# Take screenshot
mcp__playwright-mcp__browser_take_screenshot()
Firebase OAuth sessions may not persist across page navigations in MCP browsers.
Solution: Navigate to the target page directly after authentication completes, or use the same tab for all operations.
The MCP browser cannot interact with popup windows.
Solution: Use a browser profile that's already logged into Google, or manually complete the OAuth flow when the popup appears.
The API endpoint requires Firebase authentication.
Solution: Ensure you've completed the OAuth flow and the session is active. Check the header for your email address.