用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/akornmeier/super-looper --skill sl-test-browser命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Compatibility command for the streamlined unattended developer workflow. Plans a software task with sl-plan when needed, then routes execution through sl-run in mode:unattended. Prefer sl-plan followed by sl-run for new workflows.
Run an explicit, non-mutating compatibility diagnostic for the super-looper plugin. Use only when validating a Claude Code or Codex installation, runtime adapter, bundled reference and script resolution, interactive question support, and one-worker subagent dispatch.
Compatibility command for interactive implementation. Plans a software task when needed, then routes canonical Markdown execution through sl-run in mode:interactive. Prefer sl-run directly for new workflows.
基于 SOC 职业分类
正在显示 SKILL.md
| name | sl-test-browser |
| description | Run browser tests on pages affected by current PR or branch |
| argument-hint | [PR number, branch name, 'current', or --port PORT] |
Run end-to-end browser tests on pages affected by a PR or branch changes using the agent-browser CLI.
agent-browser Only For Browser AutomationThis workflow uses the agent-browser CLI exclusively. Do not use any alternative browser automation system, browser MCP integration, or built-in browser-control tool. If the platform offers multiple ways to control a browser, always choose agent-browser.
Use agent-browser for: opening pages, clicking elements, filling forms, taking screenshots, and scraping rendered content.
Platform-specific hints:
mcp__claude-in-chrome__*).bin/dev, rails server, npm run dev)agent-browser CLI installed (see Setup below)Check whether agent-browser is installed:
command -v agent-browser >/dev/null 2>&1 && echo "Installed" || echo "NOT INSTALLED"
If not installed, inform the user: "agent-browser is not installed. Run /sl-setup to install required dependencies." Then stop — this skill cannot function without agent-browser.
Before starting, verify agent-browser is available:
command -v agent-browser >/dev/null 2>&1 && echo "Ready" || echo "NOT INSTALLED"
If not installed, inform the user: "agent-browser is not installed. Run /sl-setup to install required dependencies." Then stop.
Pipeline mode (mode:pipeline): Skip this step entirely. Default to headless — no question, no blocking. Proceed directly to step 3.
Manual mode: Ask the user whether to run headed or headless using AskUserQuestion (call ToolSearch with select:AskUserQuestion first if its schema isn't loaded). Fall back to presenting options in chat only if it is unavailable or the call errors. Never silently skip the question:
Do you want to watch the browser tests run?
1. Headed (watch) - Opens visible browser window so you can see tests run
2. Headless (faster) - Runs in background, faster but invisible
Store the choice and use the --headed flag when the user selects option 1.
If PR number provided:
gh pr view [number] --json files -q '.files[].path'
If 'current' or empty:
git diff --name-only main...HEAD
If branch name provided:
git diff --name-only main...[branch]
Read references/port-and-server.md and follow it. It carries the port-priority resolution, the pipeline-only free-port scan, and the pipeline-only auto-start bash. Skipping it makes the agent assume port 3000 — which collides with other agents running in parallel in pipeline mode, or fails to boot a server that manual mode expects the user to own. Set PIPELINE_MODE=1 in the shell when mode:pipeline is present.
Read references/test-execution.md and follow it: the file-pattern-to-route mapping, the per-page snapshot/verify/interact/screenshot recipe (headed and headless), human-verification prompts for OAuth/email/payment/SMS/external-API flows, failure handling, and the results-summary template. Without it the agent invents route mappings (missing affected pages) and an ad-hoc summary shape (inconsistent, unscannable reports). Pass the browser mode from step 2 through as the --headed flag where the recipe calls for it.
The full command and flag reference lives in references/agent-browser-cli.md. Load it before issuing agent-browser commands — inventing subcommands or flags fails silently or errors mid-test.
# Test current branch changes (auto-detects port)
/sl-test-browser
# Test specific PR
/sl-test-browser 847
# Test specific branch
/sl-test-browser feature/new-dashboard
# Test on a specific port
/sl-test-browser --port 5000