lxt070409/hermes-skills/playwright-automation
Claude Code and agent skill by lxt070409/hermes-skills
- community
Checking that the SKILL.md file is still in the repository.
Three-tier browser strategy for Hermes Agent — built-in browser for light browsing, Playwright MCP for complex interactions, project scripts for repeated tasks.
Install
npx vskill@latest install lxt070409/hermes-skills/playwright-automationSKILL.md
The same SKILL.md was published earlier as lxt070409/hermes-skills/playwright-automation.
浏览器三重奏 🎵
Overview
浏览器策略分三个层次,像三重奏的三个声部:
🎭 第一乐章:内置浏览器(轻量浏览)
工具:browser_navigate / browser_snapshot / browser_click / browser_type 等 适用场景:
- 快速查看网站内容
- 简单的页面导航
- 获取某个页面的公告、信息
特点:轻量快速,免安装,适合"看一眼就走"的任务。不需要考虑浏览器配置、headless 模式等问题。
🎪 第二乐章:Playwright MCP(复杂交互)
工具:MCP 服务器 @playwright/mcp(通过 npx 启动) 配置位置:~/.hermes/config.yaml 中的 mcp_servers.playwright 适用场景:
- 需要填写表单、下拉菜单、多步骤操作
- 多标签页管理
- 截图(全页面或特定元素)
- 滚动翻页、等待动态加载内容
- 需要精细控制浏览器的复杂交互
工具列表:注册为 mcp_playwright_* 开头的工具名(约 23 个工具) 启动时机:Hermes Agent 启动时自动连接,重启后生效 特点:功能丰富,即插即用,无需写脚本
📜 第三乐章:项目脚本(重复任务)
项目目录:~/playwright-automation/ 参考脚本:edge-bot.mjs(完整示例)/ search.mjs(搜索专用) 适用场景:
- 定时/反复执行的自动化流程
- 自定义搜索逻辑
- 需要特定数据处理管道的场景
特点:永久保存的乐谱,可配合 cronjob 技能做定时任务
搜索策略(重要)
当用户要求搜索信息时,按以下优先级:
- 先用 Bing 搜索正确 URL:如果用户要找某个学校的页面/公告,先用 Bing(cn.bing.com)定位正确网址,再导航过去。不要猜测域名(如
dwb.nju.edu.cn、wyy.nju.edu.cn等未经确认的 URL)。
- 搜索引擎选择:
- 国内查询默认用 Bing 国内版(cn.bing.com)
- Google / DuckDuckGo 在 NJU 校园网被屏蔽,避免使用
- 不要用 Baidu
- Site 搜索语法:
site:nju.edu.cn 关键词可用于限定搜索范围
三层工具选用指南
| 场景 | 用哪个 | 原因 | |
|---|---|---|---|
| 看一眼网页内容 | 内置浏览器 | 最快,零配置 | |
| 搜索信息、找链接 | 内置浏览器 → Bing | 先定位再导航 | |
| 填搜索框、点下拉菜单 | Playwright MCP | 擅长交互操作 | |
| 截图保存 | Playwright MCP | 有截图工具 | |
| 翻页加载更多内容 | Playwright MCP | 能处理动态加载 | |
| 每天定时检查页面更新 | 项目脚本 + cronjob | 可复用、自动执行 | |
| 定制化数据提取流程 | 项目脚本 | 灵活度最高 |
环境信息
- 平台:WSL (Ubuntu 26.04)
- 系统 Chrome:
/usr/bin/google-chrome(用于项目脚本) - MCP Playwright:
npx -y @playwright/mcp - 内置浏览器:Hermes Agent 自带的 stealth browser
注意事项
- 内置浏览器是 Hermes 自带的,不需要额外安装
- Playwright MCP 依赖 npx,首次运行会自动下载 @playwright/mcp 包
- 项目脚本的 Chrome 需要用
--no-sandbox --disable-dev-shm-usage参数(WSL 环境要求) - 多步任务中可以混合使用不同层次——比如先用内置浏览器定位到页面,发现需要填表单时切换到 Playwright MCP
Security
- Security scanPassed, 90 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 repositoryCheckingsoftware-development/playwright-automation/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/lxt070409/hermes-skills/playwright-automation)