通过持久浏览器与 Electron 交互,快速迭代调试和排查界面问题
该技能来源于高可信的开源 GitHub 仓库且无内置密钥、无声明的远程端点,整体基础可信度较高。但其文档明确要求启用 `js_repl` 并以 `danger-full-access` 关闭沙箱运行,这会显著扩大本机代码执行与数据访问面,使用时需严格限制环境。
材料明确写明“需要的密钥/环境变量:无”,未见要求 API key、token 或账号凭证;主要风险不在凭证本身,而在高权限本地执行环境中可能接触到宿主机已存在的凭据。
未声明固定远程端点,客观检查项也标记为无 host;按描述其主要用于调试本地 Web 或 Electron 应用,未见内置数据外发设计。但 Playwright 会访问被调试目标,若目标页面或应用本身联网,用户内容仍可能经该目标产生网络请求。
README 明确要求启用 `js_repl`,并建议以 `--sandbox danger-full-access` 运行;同时包含 `npm install playwright`、`node -e ...`、启动 dev server、启动浏览器/Electron 运行时等步骤。这已超出单纯提示词技能,意味着可在宿主机进行较强的本地代码执行,且文档直接要求关闭沙箱是明显红旗。
文档要求在目标项目目录执行初始化与安装,并在关闭沙箱的前提下持久化调试会话;这意味着技能可能读取项目源码、构建产物、配置文件及运行时数据。对 UI 调试而言访问项目文件属常规能力,但 `danger-full-access` 使其数据访问范围接近宿主机全局,超出最小权限。
来源为 GitHub 上的 openai/skills,且开源、约 2.2 万 star,来源可信度较高并可审计,这是明显的降风险因素;但许可证未声明、维护状态未知,且 README 指导安装 npm 依赖(如 `playwright`),仍存在常规依赖供应链与版本漂移风险。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "playwright-interactive" 技能: 1. 下载 https://raw.githubusercontent.com/openai/skills/main/skills/.curated/playwright-interactive/SKILL.md 2. 保存为 ~/.claude/skills/playwright-interactive/SKILL.md 3. 装好后重载技能,告诉我可以用了
Use a persistent js_repl Playwright session to debug local web or Electron apps, keep the same handles alive across iterations, and run functional plus visual QA without restarting the whole toolchain unless the process ownership changed.
js_repl must be enabled for this skill.js_repl is missing, enable it in ~/.codex/config.toml:[features]
js_repl = true
--enable js_repl (equivalent to -c features.js_repl=true).js_repl, start a new Codex session so the tool list refreshes.--sandbox danger-full-access (or the equivalent config for sandbox_mode=danger-full-access). This is a temporary requirement while js_repl + Playwright support inside the sandbox is still being completed.js_repl_reset as a recovery tool, not routine cleanup. Resetting the kernel destroys your Playwright handles.test -f package.json || npm init -y
npm install playwright
# Web-only, for headed Chromium or mobile emulation:
# npx playwright install chromium
# Electron-only, and only if the target workspace is the app itself:
# npm install --save-dev electron
node -e "import('playwright').then(() => console.log('playwright import ok')).catch((error) => { console.error(error); process.exit(1); })"
If you switch to a different workspace later, repeat setup there.
var chromium;
var electronLauncher;
var browser;
var context;
var page;
var mobileContext;
var mobilePage;
var electronApp;
var appWindow;
try {
({ chromium, _electron: electronLauncher } = await import("playwright"));
console.log("Playwright loaded");
} catch (error) {
throw new Error(
`Could not load playwright from the current js_repl cwd. Run the setup commands from this workspace first. Original error: ${error}`
);
}
Binding rules:
var for the shared top-level Playwright handles because later js_repl cells reuse them.undefined and rerun the cell instead of adding recovery logic everywhere.…
帮助开发者将指令文件、技能、代理和MCP配置迁移到Codex项目与全局文件。
将对话与决策整理成结构化 Notion 页面,便于沉淀知识库与规范文档
结合 Notion 上下文与研究结果,高效准备会议议程、预读和参会材料。
跨多个 Notion 信息源检索并整合,生成带引用的结构化文档与报告。
用于读取、生成与审阅PDF,并通过渲染检查版式和内容准确性。
将音频或视频中的语音转成文字,并可区分说话人与整理访谈记录。
通过终端自动控制真实浏览器,执行测试、抓取数据与界面调试。
通过持久浏览器会话自动操作网页并抓取页面数据
通过 Playwright 驱动真实浏览器,帮助用户浏览网页、点击交互并执行自动化测试。
通过浏览器自动化与调试能力,帮助开发者高效测试和排查网页问题
通过 Playwright 沙箱控制浏览器,自动执行网页操作与测试流程。
解析 Playwright 跟踪文件,定位测试失败原因并提供调试修复建议。