browser-test
它能做什么
这项技能指导智能体在真实浏览器中测试用户界面,检查流程、文字和页面标题,并把每次运行保存为可重放的记录。适合希望在真实浏览器中检查前端改动的开发者和测试人员。
适用场景
- ✓当你想在真实浏览器中验证某个用户流程能否正常工作时。
- ✓当你想建立基准录制,供以后的改动进行比较时。
- ✓当失败的浏览器测试需要重新运行而无需重写时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-test/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在真实浏览器中测试注册流程,检查欢迎文字是否出现,并保存这次运行,方便我重放。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体记录一次会话,执行点击和输入操作,等待元素出现,检查文字和页面细节,拍摄截图,并以通过或失败的结论结束运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Browser Test
Automated UI testing. Now backed by a recorded RVF session container instead of an ephemeral run, so every test produces a replayable artifact.
When to use
- Verifying UI functionality, user flows, or that frontend changes work in a real browser.
- Producing a baseline session that future regressions can diff against.
- Re-running a stored test session when CI fails (no need to re-author the test).
Steps
- Record the test run by composing
browser-record:- Allocates an RVF container with
--kind browser-session. - Begins a ruvector trajectory.
- Allocates an RVF container with
- Drive interactions —
browser_open,browser_click,browser_fill,browser_type,browser_select. Each action emits atrajectory-step. - Wait for elements / network idle via
browser_waitbefore assertions. - Validate with
browser_get-text/browser_get-value/browser_get-title/browser_get-url. Validation outcomes go intofindings.mdinside the RVF container. - Screenshot before / after key interactions for visual regression. Filenames follow
<step-id>.png. - Snapshot the accessibility tree at navigation boundaries.
- End the session:
trajectory-end --verdict pass|fail,rvf compact, AgentDB index inbrowser-sessions. - (Optional) Diff against
--against <prior-session-id>: invokebrowser-screenshot-diffto compare the new run with a baseline.
Navigation
browser_back/browser_forwardfor history navigationbrowser_reloadto refresh the pagebrowser_scrollto scroll to elements or coordinates
What changed from v0.1.0
- The skill no longer ends with
browser_closealone — it ends with the session-end protocol. - Selectors discovered during the test land in
browser-selectors(host:intent), so the next test can find them by embedding similarity. - Validation outputs pass
aidefence_is_safebefore any LLM-facing summary; injection-flagged content is quarantined tofindings.md. - The same skill, used in CI, now produces an artifact that
/ruflo-browser replaycan re-drive.
Tips
- Use
browser_waitbefore assertions to handle async rendering. - For visual regression, save the parent session id and pass
--against <id>on the next run. - Use
browser_evalfor custom JavaScript assertions — but redact any returned strings via theaidefence_is_safegate before logging.
常见问题
测试结果会被保存吗?
会。每次运行都会保存为可重放的录制会话。
它能和之前的运行进行比较吗?
可以。这项技能可以将新运行与之前的会话做视觉差异比较。
它需要安装浏览器吗?
这项技能通过其工具驱动浏览器,因此你的环境中必须可以使用浏览器工具。
详情
作者的原始描述
UI test recipe -- composes browser-record (capture) + browser-replay (verify) so every test produces a replayable RVF artifact, not an ephemeral run
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1583
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。