Pwdebug
用于需要通过命令行操作真实浏览器实例进行前端调试(如导航、执行 JS、截图、元素拾取、控制台日志)且希望跨多次命令复用同一浏览器会话的场景。From its SKILL.md
npx -y skills add aiskillstore/marketplace --skill pwdebugAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.4 KB, 386 tokens by cl100k_base, as published. Nobody here has run it
Playwright 浏览器调试 CLI
概览
该技能提供一个基于 Playwright 的命令行工具,用于启动浏览器服务并执行导航、评估 JS、截图、元素拾取与日志监听等调试操作。当前仅支持 Chromium(通过 CDP 连接)。
快速开始
工作目录应为本文件所在目录,示例命令默认从该目录执行。
- 启动浏览器服务(常驻进程):
scripts/pwdebug.py start
- 在新标签页打开页面:
scripts/pwdebug.py nav https://example.com --new
- 执行 JS 表达式:
scripts/pwdebug.py evaluate "document.title"
- 截图:
scripts/pwdebug.py screenshot --full
- 交互式拾取元素:
scripts/pwdebug.py pick "点击登录按钮"
- 监听控制台日志:
scripts/pwdebug.py watch-logs
- 查看最近日志:
scripts/pwdebug.py logs 100
说明
- CLI 入口:
scripts/pwdebug.py - 日志路径:
~/.cache/pwdebug/console.log.jsonl - 状态路径:
~/.cache/pwdebug/server.json
依赖与安装
- 脚本依赖通过
uv --script管理。
What ships with it: 6 files
73.5 KB alongside SKILL.md, 5 of them executable
scripts/
- pwdebug/browser.pyruns1.7 KB
- pwdebug/__init__.pyruns45 B
- pwdebug/picker.pyruns4.3 KB
- pwdebug.pyruns9.8 KB
- pwdebug/state.pyruns2.7 KB
- skill-report.json55.0 KB