agent-browser
What it does
This skill uses the agent-browser command-line tool to open web pages, perform actions and inspect what is shown. It is for people who need to confirm a website works the way a user would experience it.
When to use it
- ✓When you want to check that a web page or admin screen behaves correctly in a real browser.
- ✓When you need screenshots as evidence of how a page looks after an action.
- ✓When you want to confirm the page shows the expected result after a click or form submission.
Skill link
https://github.com/emdash-cms/emdash/blob/main/skills/agent-browser/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you open my site's login page in a browser, log in, and take a screenshot of the dashboard?”
5 new skills a week. 1 minute to read.
How it works
The agent opens the page in a named browser session, reads the page's structure, performs the action, then checks the new state and any console errors. It can capture screenshots along the way.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Test interfaces with agent-browser
Use the installed agent-browser CLI for rendered, user-facing verification. Load its version-matched instructions before relying on command syntax:
agent-browser skills get core --full
Use a specialized bundled guide when the target requires one. agent-browser skills list shows the available guides.
Verification loop
- Start or identify the target application and record the exact URL and viewport.
- Open the page in a named session.
- Take an accessibility snapshot and identify controls by role, label, or snapshot reference.
- Perform the user action.
- Wait for the resulting state, then take a fresh snapshot. References can become stale after navigation or a substantial DOM update.
- Verify the observable result, console errors, and relevant network behavior.
- Capture screenshots when visual evidence helps establish the result.
For EmDash admin testing, authenticate through the development bypass rather than attempting to automate passkeys:
agent-browser open 'http://localhost:4321/_emdash/api/setup/dev-bypass?redirect=/_emdash/admin'
Use auth/dev-bypass instead when setup is already complete.
Interaction guidance
- Prefer role and label locators when they express the user-facing control clearly. Use snapshot references for efficient exploration.
- Re-snapshot after a dialog opens, a route changes, or content is replaced.
- Wait for a selector or visible state instead of adding a fixed delay unless timing itself is under test.
- Use a named session for flows that depend on cookies or storage. Close sessions that are no longer needed.
- Check
agent-browser consoleandagent-browser errorswhen the UI behaves unexpectedly. - Use
agent-browser network requestswhen the result depends on a request or response boundary.
Evidence
Record the path tested, inputs, viewport, expected result, actual result, and any console or request failures. For UI changes, capture before-and-after screenshots of every affected screen.
Save screenshots inside the task workspace with descriptive filenames. Inspect the saved image before reporting success; a completed screenshot command does not prove that the intended state was visible.
Browser exploration does not replace a regression test when stable automated coverage can protect the behavior. Convert a confirmed defect into the narrowest meaningful automated test when the task includes implementation.
FAQ
Does it replace automated tests?
No. When a repeatable regression test is needed, a deterministic test suite is the better choice.
How does it find buttons on the page?
It reads the page's accessibility information, using labels and roles to find controls.
Can it show errors?
Yes. It checks console errors and relevant network behavior as part of verification.
Details
Original description by the author
Use the agent-browser CLI to exercise web interfaces, inspect rendered accessibility state, verify interactions, and capture screenshots. Use for browser-based UI testing and evidence collection. Do not use as a substitute for deterministic Playwright coverage when an automated regression test is the requested deliverable.
repo: emdash-cms/emdash
Popularity
- GitHub stars
- 14k
- Ranking position
- #11245
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
adversarial-reviewer
14kHelps your agent hunt for hidden bugs and unsafe assumptions in a code change, going beyond an ordinary review when you ask for it.
building-emdash-site
14kHelps your agent build the site side of an EmDash CMS project on Astro, covering content, schema, menus, taxonomies and deployment.
creating-plugins
14kHelps your agent build a plugin for the EmDash CMS, with safe hooks, routes, storage and an admin interface.
emdash-cli
14kLets your agent manage an EmDash site from the command line, including content, media, menus, migrations and full site export or import.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.