lxt070409/hermes-skills/playwright-automation

Claude Code and agent skill by lxt070409/hermes-skills

Trust tier 3
  • community
Source check pending

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-automation

SKILL.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 技能做定时任务


搜索策略(重要)

当用户要求搜索信息时,按以下优先级:

  1. 先用 Bing 搜索正确 URL:如果用户要找某个学校的页面/公告,先用 Bing(cn.bing.com)定位正确网址,再导航过去。不要猜测域名(如 dwb.nju.edu.cn、wyy.nju.edu.cn 等未经确认的 URL)。
  1. 搜索引擎选择:
  • 国内查询默认用 Bing 国内版(cn.bing.com)
  • Google / DuckDuckGo 在 NJU 校园网被屏蔽,避免使用
  • 不要用 Baidu
  1. 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

注意事项

  1. 内置浏览器是 Hermes 自带的,不需要额外安装
  2. Playwright MCP 依赖 npx,首次运行会自动下载 @playwright/mcp 包
  3. 项目脚本的 Chrome 需要用 --no-sandbox --disable-dev-shm-usage 参数(WSL 环境要求)
  4. 多步任务中可以混合使用不同层次——比如先用内置浏览器定位到页面,发现需要填表单时切换到 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lxt070409/hermes-skills/playwright-automation/badge)](https://verified-skill.com/skills/lxt070409/hermes-skills/playwright-automation)

Something wrong with this skill or its page? Tell us.