skills/use-browser/SKILL.md
Use when: 'test this page', 'go to URL', 'fill the form', 'screenshot'.
npx skillsauth add kenoxa/spine use-browserInstall 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.
Use the dev-browser CLI. dev-browser --help is the current source of truth and includes the full LLM usage guide. QuickJS WASM sandbox — no Node.js APIs (require(), import(), process, fs, fetch unavailable). API reference and error recovery in references/api-and-patterns.md. Advanced patterns (console capture, network interception, cookies, auth state): references/advanced-patterns.md.
Invocation — pipe scripts via stdin heredoc:
dev-browser --headless <<'EOF'
const page = await browser.getPage("main");
await page.goto("https://example.com", { waitUntil: "domcontentloaded" });
console.log(await page.title());
EOF
Flags: --headless (omit for visible browser), --browser <NAME> (named persistent instance), --connect [URL] (attach to running Chrome/CDP), --timeout <SEC> (default 30; use --timeout 10 for fast-fail).
Sandbox globals:
browser — getPage(name), newPage(), listPages(), closePage(name)console.log/warn/error/info — routed to stdout/stderrsaveScreenshot(buf, name), writeFile(name, data), readFile(name) — sandboxed I/O to ~/.dev-browser/tmp/Key directives:
--browser <NAME>) persist across dev-browser calls — reuse for multi-step flowspage.snapshotForAI() for AI-optimized accessibility tree before interacting with unknown pagesconsole.log(JSON.stringify(...))browser.getPage(name), saveScreenshot() to capture statepage.route("**/*") — blocks Playwright internals; use specific URL patterns.require() or import() — not available in the sandbox.{ path } to page.screenshot() or storageState() — use saveScreenshot(buf, name) / capture return value.<FILE> argument for scripts — always pipe via stdin heredoc.testing
Use when: 'clawpatch', 'clawpatch campaign', 'clawpatch review fix revalidate'.
tools
Use when: 'create a worktree', 'git worktree', 'parallel branch'.
tools
Use when: 'session state', 'resume work', 'worktree session'.
development
Use when: 'goal prompt', 'frame this', 'scope this', 'design', 'plan the approach', 'implement and review', 'just ship it', 'fix this', 'add this'.