skills/pwdebug/SKILL.md
用于需要通过命令行操作真实浏览器实例进行前端调试(如导航、执行 JS、截图、元素拾取、控制台日志)且希望跨多次命令复用同一浏览器会话的场景。
npx skillsauth add dcjanus/prompts pwdebugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
该技能提供一个基于 Playwright 的命令行工具,用于启动浏览器服务并执行导航、评估 JS、截图、元素拾取与日志监听等调试操作。当前仅支持 Chromium(通过 CDP 连接)。
工作目录应为本文件所在目录,示例命令默认从该目录执行。 说明:必须直接执行脚本,不要用
uv run python或python。
脚本调用方式示例:
cd skills/pwdebug && ./scripts/pwdebug.py start
错误示例:
uv run python skills/pwdebug/scripts/pwdebug.py start
python skills/pwdebug/scripts/pwdebug.py start
./scripts/pwdebug.py start
./scripts/pwdebug.py nav https://example.com --new
./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
./scripts/pwdebug.py~/.cache/pwdebug/console.log.jsonl~/.cache/pwdebug/server.jsonuv --script 管理。development
为当前 Codex thread 设置名称;仅当用户手动调用或明确要求命名、重命名、整理当前 Codex 会话标题时使用,永远不要自动调用。
testing
编写或更新 GitHub/GitLab Issue、PR、MR 的标题与正文;适用于创建、修改、重写 reviewer-facing 描述、Validation、Risks、Breaking Change、避免本地路径泄露等场景。
tools
使用 GitLab CLI(glab)与 GitLab 资源交互;适用于 project、issue、MR、comment、wiki 等查看、更新或创建场景,含自建实例。
tools
使用 GitHub CLI 与 GitHub 资源交互;适用于 repo、issue、PR、comment、release、workflow 等查看、更新或创建场景。