$ loading_
通过持久浏览器与 Electron 交互,快速迭代调试和排查界面问题
复制安装指令,让 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.…
用于构建、脚手架生成、重构并排查 ChatGPT Apps SDK 应用问题。
帮助你基于接口文档或脚本快速生成可组合的命令行工具
帮助你将应用与基础设施部署、发布并托管到 Cloudflare 平台。
帮助用户把模糊想法转成具体、可衡量的目标与成功标准。
将 Figma 设计组件与代码组件建立映射,便于设计与实现保持一致。
帮助你构建、评审与重构 ASP.NET Core Web 应用及架构方案