pdbjork/hermosskills-site/ce-test-browser
Claude Code and agent skill by pdbjork/hermosskills-site
- community
Checking that the SKILL.md file is still in the repository.
Run browser tests for pages affected by the current branch or PR.
Install
npx vskill@latest install pdbjork/hermosskills-site/ce-test-browserSKILL.md
The same SKILL.md was published earlier as everyinc/compound-engineering-plugin/ce-test-browser.
Browser Test Skill
Run end-to-end browser tests on pages affected by a PR or branch changes using the agent-browser CLI.
Use agent-browser Only For Browser Automation
This 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:
- In Claude Code, do not use Chrome MCP tools (
mcp__claude-in-chrome__*). - In Codex, do not substitute unrelated browsing tools.
Prerequisites
- Local development server running (e.g.,
bin/dev,rails server,npm run dev) agent-browserCLI installed (see Setup below)- Git repository with changes to test
Setup
Check whether agent-browser is installed:
If not installed, inform the user: "agent-browser is not installed. Run /ce-setup for the current install command, then install agent-browser and retry." Then stop — this skill cannot function without agent-browser.
Workflow
1. Verify Installation
Before starting, verify agent-browser is available:
If not installed, inform the user: "agent-browser is not installed. Run /ce-setup for the current install command, then install agent-browser and retry." Then stop.
2. Ask Browser Mode
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 the platform's blocking question tool: AskUserQuestion in Claude Code (call ToolSearch with select:AskUserQuestion first if its schema isn't loaded), request_user_input in Codex, ask_question in Antigravity CLI (agy), ask_user in Pi (requires the pi-ask-user extension). Fall back to presenting options in chat only when no blocking tool exists in the harness or the call errors (e.g., Codex edit modes) — not because a schema load is required. Never silently skip the question:
Store the choice and use the --headed flag when the user selects option 1.
3. Determine Test Scope
If PR number provided:
If 'current' or empty:
If branch name provided:
4. Map Files to Routes
Map changed files to testable routes:
| File Pattern | Route(s) | |
|---|---|---|
app/views/users/* | /users, /users/:id, /users/new | |
app/controllers/settings_controller.rb | /settings | |
app/javascript/controllers/*_controller.js | Pages using that Stimulus controller | |
app/components/*_component.rb | Pages rendering that component | |
app/views/layouts/* | All pages (test homepage at minimum) | |
app/assets/stylesheets/* | Visual regression on key pages | |
app/helpers/*_helper.rb | Pages using that helper | |
src/app/* (Next.js) | Corresponding routes | |
src/components/* | Pages using those components |
Build a list of URLs to test based on the mapping.
5. Detect and Claim a Free Port
Pipeline mode only (`mode:pipeline`): When invoked from LFG or another automated pipeline, always find a port that is actually free — never assume 3000 is available, as multiple agents may be running in parallel on the same machine.
Manual mode (no `mode:pipeline`): Use the preferred port as-is. Do not scan for alternatives — the user controls their own server.
Determine the preferred port using this priority:
- Explicit argument — if the user passed
--port 5000, use that directly (skip free-port scan) - In-context project instructions — if your active project instructions already in context explicitly state the dev-server port, use it. Don't grep instruction files for a port: prose mentions (docs, examples, troubleshooting) are unreliable and false-positive-prone — config files and
.envare the trustworthy sources. - package.json — check dev/start scripts for
--portflags - Environment files — check
.env,.env.local,.env.developmentforPORT= - Default — fall back to
3000
In pipeline mode, verify the preferred port is free and scan upward if not. In manual mode, use the preferred port directly.
Set PIPELINE_MODE=1 in your shell when the argument mode:pipeline is present.
6. Start Dev Server if Not Running, Then Verify
Pipeline mode only: If no server is already listening on $PORT, start one automatically in the background. In manual mode, inform the user and stop.
7. Test Each Affected Page
For each affected route:
Navigate and capture snapshot:
For headed mode:
Verify key elements:
- Use
agent-browser snapshot -ito get interactive elements with refs - Page title/heading present
- Primary content rendered
- No error messages visible
- Forms have expected fields
Test critical interactions:
Take screenshots:
8. Human Verification (When Required)
Pause for human input when testing touches flows that require external interaction:
| Flow Type | What to Ask | |
|---|---|---|
| OAuth | "Please sign in with [provider] and confirm it works" | |
| "Check your inbox for the test email and confirm receipt" | ||
| Payments | "Complete a test purchase in sandbox mode" | |
| SMS | "Verify you received the SMS code" | |
| External APIs | "Confirm the [service] integration is working" |
Ask the user (using the platform's question tool, or present numbered options and wait):
9. Handle Failures
When a test fails:
- Document the failure:
- Screenshot the error state:
agent-browser screenshot error.png - Note the exact reproduction steps
- Ask the user how to proceed:
``` Test Failed: [route]
Issue: [description] Console errors: [if any]
How to proceed?
- Fix now - debug and fix the failing test
- Skip - continue testing other pages
```
- If "Fix now": investigate, propose a fix, apply, re-run the failing test
- If "Skip": log as skipped, continue
10. Test Summary
After all tests complete, present a summary:
Quick Usage Examples
agent-browser CLI Reference
Run agent-browser --help for all commands.
Key commands:
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ce-test-browser/SKILL.md
Popularity
- 7-day trend score
- 5
Refreshed 11 Oct 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pdbjork/hermosskills-site/ce-test-browser)