From krometrail
Browser recording and control via the krometrail CLI. Use when recording a browser session, driving the browser with batch actions, or investigating recorded sessions. Captures network, console, DOM, framework state, screenshots.
How this skill is triggered — by the user, by Claude, or both
Slash command
/krometrail:krometrail-chromeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use the `krometrail chrome` commands to record browser sessions, drive Chrome with batch actions, and investigate what happened.
Use the krometrail chrome commands to record browser sessions, drive Chrome with batch actions, and investigate what happened.
# Launch Chrome and record at a URL (isolated profile avoids conflicts)
krometrail chrome start --url http://localhost:3000 --profile krometrail
# With framework state capture (React, Vue)
krometrail chrome start --url http://localhost:3000 --framework-state auto
# Attach to an already-running Chrome (must have --remote-debugging-port=9222)
krometrail chrome start --attach
# Place markers at key moments
krometrail chrome mark "submitted form"
krometrail chrome mark "error appeared"
# Check status
krometrail chrome status
# Reload page and clear buffer (clean slate without restarting)
krometrail chrome refresh
# Stop recording
krometrail chrome stop
krometrail chrome stop --close-browser
Drive the browser with a sequence of steps in one call. Requires an active recording (start first).
# From a JSON file
krometrail chrome run-steps --file steps.json
# Inline JSON
krometrail chrome run-steps --steps '[{"action":"navigate","url":"/login"},{"action":"fill","selector":"#email","value":"[email protected]"},{"action":"click","selector":"#submit"}]'
# Save a named scenario for later replay
krometrail chrome run-steps --file steps.json --name login-flow --save
# Replay a saved scenario (no steps needed)
krometrail chrome run-steps --name login-flow
# Screenshot only on errors
krometrail chrome run-steps --file steps.json --screenshot on_error
# Disable auto-markers
krometrail chrome run-steps --file steps.json --no-markers
Each step is auto-marked (step:1:navigate:/login, step:2:fill:#email, etc.) and auto-screenshotted for investigation.
[
{ "action": "navigate", "url": "/login" },
{ "action": "fill", "selector": "#email", "value": "[email protected]" },
{ "action": "fill", "selector": "#password", "value": "secret" },
{ "action": "submit", "selector": "#login-form" },
{ "action": "wait_for", "selector": ".dashboard", "timeout": 5000 },
{ "action": "screenshot", "label": "after-login" }
]
Available actions: navigate, reload, click, fill, select, submit, type, press_key, hover, scroll_to, scroll_by, wait, wait_for, wait_for_navigation, wait_for_network_idle, screenshot, mark, evaluate
Key tips:
reload (not navigate to the same URL) for a full page refresh — navigate may hit SPA client-side routing cachepress_key with key: "Enter" to submit forms that lack a <button type="submit"> — this is common in chat UIs, search bars, and custom form componentsscreenshot step before interacting to understand the current page state# List recorded sessions
krometrail chrome sessions
krometrail chrome sessions --has-errors
# Overview of a session
krometrail chrome overview <session-id>
krometrail chrome overview <session-id> --around-marker <marker-id>
# Search events
krometrail chrome search <session-id> --query "payment failed"
krometrail chrome search <session-id> --status-codes 500
krometrail chrome search <session-id> --framework react --pattern stale_closure
# Inspect a specific event
krometrail chrome inspect <session-id> --event <event-id>
krometrail chrome inspect <session-id> --marker <marker-id>
# Compare two moments
krometrail chrome diff <session-id> --from <moment> --to <moment>
# Generate reproduction steps or test scaffolds
krometrail chrome replay-context <session-id> --format reproduction_steps
krometrail chrome replay-context <session-id> --format test_scaffold --framework playwright
# Export as HAR
krometrail chrome export <session-id> --format har --output session.har
See references/chrome.md for the full reference.
If chrome_start fails with "Chrome exited immediately":
google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/krometrail-chrome <url>
Then use: krometrail chrome start --attachpkill -f chrome — this kills Electron apps (Discord, VS Code, Unity Hub, etc.)step:N:action:detail) appear automatically during run-steps execution--around-marker in overview to focus on a specific moment--framework-state is enabledinspect --event <id> --include network_body to see the actual response. Also check server logs (Docker, process output) — the error may be server-sidereload (not navigate) to force a full refresh. SPAs may restore cached client-side state on navigatenpx claudepluginhub nklisch/skills --plugin krometrailAttaches a read-only CDP client to an active browser session to record DevTools traffic, screenshots, and DOM snapshots, then slices the output into per-page searchable buckets for debugging or agent feedback loops.
Automates browser tasks via Chrome DevTools CLI: take snapshots, click, fill, navigate, and more from the terminal.
Controls Chrome via DevTools Protocol for navigating, clicking, typing, multi-tab management, and content extraction with auto-screenshots.