/devtools:browser-companion [start|stop|status] [options]from devtools
Zero-dependency live-preview server for showing HTML fragments in a browser with live-reload and click-event capture. Useful for mockups, design exploration, gallery browsing, and prototype iteration.
Ships in devtools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A zero-dependency Node.js HTTP + WebSocket server that turns a directory of HTML fragments into a live-reloading preview, with browser→agent click event capture.
The skill ships a public CLI arkhe-preview placed in plugins/devtools/bin/. Any plugin's skill can invoke it as a bare bash command — no need to know the devtools install path.
# Start a server scoped to the current project
arkhe-preview start --project-dir "$(pwd)"
# Output (one JSON line on stdout):
# {"type":"server-started","port":54123,"url":"http://localhost:54123",
# "screen_dir":".../<id>/content","state_dir":".../<id>/state",
# "session_dir":".../<id>","pid":12345}
# Tell the user to open the URL. Then write HTML to screen_dir:
echo '<h2>Hello</h2><button data-event="ok">OK</button>' > "$SCREEN/content.html"
# Browser auto-reloads. User clicks. Read events:
tail -f "$STATE/events.jsonl"
# When done:
arkhe-preview stop "$SESSION_DIR"
screen_dir, browser shows itarkhe-preview directly; it lives in devtools but its CLI is on PATH whenever devtools is enabledarkhe-preview start [options] # Print {url, screen_dir, state_dir, session_dir, pid} JSON
arkhe-preview stop <session-dir> # Graceful SIGTERM, falls back to SIGKILL
arkhe-preview status <session-dir> # {running, pid, url} JSON (always exits 0)
arkhe-preview --help # Full option reference (USAGE.txt)
Common start options:
--project-dir <path> — store under <path>/.claude/preview/<id>/ (default: /tmp/arkhe-preview-<id>/)--frame-template <path> — override default HTML frame--helper <path> — override default browser-side helper JS--port <N> — pin a specific port--owner-pid 0 — disable the watchdog (use idle timeout only)Default frame is neutral — a small header, OS-aware light/dark theming, no domain UI. Default helper captures clicks on [data-event] and ships them as JSONL events.
For richer UIs (indicator bars, gallery sidebars, multi-select chrome), supply a custom frame template and helper:
arkhe-preview start --project-dir "$PWD" \
--frame-template ./my-frame.html \
--helper ./my-helper.js
Frame template must contain <!-- FRAGMENT --> (canonical) or <!-- CONTENT --> (legacy alias) where the agent's HTML will be inserted.
Reference example flavors live in ${CLAUDE_PLUGIN_ROOT}/skills/browser-companion/examples/:
brainstorm/README.md — multi-select indicator bar with [data-choice] capturegallery/README.md — variant browser sidebar with [data-variant] captureThese are static reference docs, NOT runtime presets. Copy what fits.
<project>/.claude/preview/<session-id>/
├── content/ # Agent writes HTML fragments here
├── state/
│ ├── server-info # JSON: url, port, host, pid
│ ├── events.jsonl # Append-only browser events (one JSON object/line)
│ └── server.pid # Server PID
└── logs/
└── server.log
Every WebSocket message from a browser client is persisted to events.jsonl as one JSON line. Server adds timestamp (ISO 8601) and clientId if not already present. No filtering — consumers parse what they care about.
{"timestamp":"2026-05-21T12:34:56.789Z","clientId":"a1b2c3d4","type":"click","action":"ok","payload":{"foo":"bar"},"text":"OK","id":null}
EXAMPLES.md (opens in a new tab)TROUBLESHOOTING.md (opens in a new tab)USAGE.txt (opens in a new tab)WORKFLOW.md (opens in a new tab)examples/brainstorm/README.md (opens in a new tab)examples/brainstorm/frame-template.html (opens in a new tab)examples/brainstorm/helper.js (opens in a new tab)examples/gallery/README.md (opens in a new tab)examples/gallery/frame-template.html (opens in a new tab)examples/gallery/helper.js (opens in a new tab)scripts/frame-template.html (opens in a new tab)scripts/helper.js (opens in a new tab)scripts/server.cjs (opens in a new tab)scripts/start-server.sh (opens in a new tab)scripts/status-server.sh (opens in a new tab)scripts/stop-server.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
live-preview, html-preview, websocket, mockup-tool, click-capture
9 skills in this plugin
/code-env-setupInteractive Claude Code environment setup wizard. Detects existing configuration, guides through best-practice setup for Global CLAUDE.md, project scaffolding, MCP servers, hooks, custom agents, keybindings, and settings. Use when user runs /devtools:code-env-setup, mentions "setup claude code", "configure claude", "claude code setup", "environment setup", or "initialize claude code"./quality-stackScan a project to detect configured quality and testing tools across JVM (Gradle/Maven), Android (AGP/Compose/KMP), Node.js/TypeScript, and Python ecosystems. Cross-reference against research-backed recommendations and assist with setup. Auto-detects project type(s) including monorepos with mixed ecosystems. Use when user asks to "audit tooling", "recommend tools", "quality stack", "what tools am I missing", "setup eslint", "setup detekt", "add coverage", "add ruff", "configure CI quality pipeline", "scan project tools", "tooling audit", "android tooling", "android quality", "compose testing", "kmp testing", or "screenshot testing".
/sops-add-keyAdd a new machine's age public key to .sops.yaml and re-encrypt all files. Use for multi-machine setups. Use when user mentions "add key", "add machine", "sops add key", "new machine", "authorize machine", "share key", "add public key", "multi machine sops"./sops-decryptDecrypt SOPS-encrypted YAML files back to .env format. Finds *.enc.yaml files, decrypts, and converts YAML back to dotenv. Use when user mentions "decrypt env", "sops decrypt", "decrypt secrets", "restore env", "decrypt .env", "restore secrets", "decrypt environment files"./sops-encryptEncrypt .env files using SOPS + age. Converts dotenv to YAML format (avoids SOPS bug #1435), then encrypts. Auto-detects unencrypted .env files. Use when user mentions "encrypt env", "sops encrypt", "encrypt secrets", "encrypt .env", "encrypt environment", "re-encrypt", "update encrypted"./sops-setupSet up SOPS + age encryption for sharing .env files securely across machines. Detects existing state, installs tools, generates age keys, creates .sops.yaml, and encrypts .env files as YAML (avoids SOPS dotenv bug #1435). Use when user mentions "sops setup", "encrypt env", "share secrets", "secure env files", "sops age setup", "env encryption", "setup sops", "share env across machines".npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin devtoolsOther plugins' skills for the same job