跳到正文
Skillpedia
通用编程6.7k · #13734

dev-browser

它能做什么

为你的智能体提供一个命令行工具,用于驱动真实的 Chrome 浏览器,并在步骤之间保持命名页面处于打开状态。适合希望自动化网站操作或测试网页应用、又不想手动点击的人。

适用场景

  • ✓当你希望智能体打开网站、填写表单或截取屏幕截图的时候。
  • ✓当你需要从网页中提取数据,而这些数据否则需要手动复制时。
  • ✓当你想测试用户登录并四处点击时网站的表现的时候。

技能链接

https://github.com/SawyerHood/dev-browser/blob/main/skills/dev-browser/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/SawyerHood/dev-browser/blob/main/skills/dev-browser/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请打开我的店铺网站,用我的测试信息填写联系表单,并截取提交结果的屏幕截图。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能针对一个在后台保持运行的 Chrome 浏览器执行简短脚本。命名页面在多次运行之间保持打开,智能体会将每个页面读取为一组带标签的项目,并可以点击这些项目。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

dev-browser

CLI for controlling a real Chrome with short Puppeteer scripts. One warm daemon; named pages persist between runs.

npm install -g dev-browser   # bun add -g dev-browser works too; the first run downloads the binary if the install script was blocked
dev-browser install          # only if the first run says "No Chrome found"

Run dev-browser --help (full guide; dev-browser help <topic> for one section) before non-trivial work. Quick start:

dev-browser <<'EOF'
const page = await browser.getPage("main");        // named page persists across runs
await page.goto("https://example.com");            // default waitUntil: domcontentloaded
await page.snapshot({ interactive: true })         // ARIA tree with refs; last expression is printed
EOF
dev-browser -e 'const p = await browser.getPage("main"); await p.click("ref/e6"); await p.waitForLoad(); p.url()'

Gotchas: end lines with semicolons (a line starting with ( continues the previous one); return an object as ({ a, b }); page.click never waits (use waitForSelector first); page names are per browser (--headless and headed are separate Chromes and profiles); refs reset on navigation — re-snapshot; file paths resolve against your cwd (uploadFile, screenshot/pdf path); do not run parallel dev-browser calls against the same named page.

常见问题

我需要懂编程吗?

不需要。你的智能体会编写简短脚本,你只需描述想完成的任务。

它能登录网站吗?

能。该技能用于登录和填写表单,因此请只用于你有权使用的账户。

如果没有安装 Chrome 怎么办?

如果首次运行提示未找到 Chrome,该技能的安装步骤会为你设置好。

详情

作者的原始描述

Browser automation with persistent named pages via the dev-browser CLI. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, log into sites, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", "open the browser", or any browser interaction request.

repo: SawyerHood/dev-browser

热度

GitHub 星标
6.7k
排名
#13734
许可证
MIT
更新时间
2026/10/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能