Agent skill
creating-browser-automations
Record browser workflows and convert them into reliable automation. Use this when the workflow is demonstrated manually, when you need a reusable artifact, or when you need to derive replayable steps and inspect the same artifact's runtime behavior.
Install this agent skill to your Project
npx add-skill https://github.com/svilupp/browser-pilot/tree/main/docs/creating-browser-automations
SKILL.md
Creating Browser Automations
This skill is for the manual-demo-to-automation pipeline.
For local Chrome on Chrome 144+, try plain bp connect first after enabling remote debugging in chrome://inspect/#remote-debugging. Only add --channel or --user-data-dir if auto-discovery is ambiguous.
Core rule
Do not start by reading raw recording.json.
Start with:
bp record summarybp record inspectbp trace summary --view ...
Pipeline
- Capture the workflow with
bp record - Summarize the artifact
- Inspect runtime behavior through
trace summary - Derive replayable steps
- Run the derived workflow
- Harden with assertions or replay proof
Capture
bp record -s demo --profile automation -f ./artifacts/demo.recording.json
# perform the flow manually, then stop with Ctrl+C
Use a profile that matches the job:
automationrealtimevoiceauth
Understand the artifact before deriving
bp record summary ./artifacts/demo.recording.json
bp record inspect ./artifacts/demo.recording.json
bp trace summary ./artifacts/demo.recording.json --view session
bp trace summary ./artifacts/demo.recording.json --view ws
bp trace summary ./artifacts/demo.recording.json --view console
Use trace summary to inspect network/runtime behavior inside the same artifact instead of inventing a separate debugging path.
Derive and run
bp record derive ./artifacts/demo.recording.json -o workflow.json
bp run workflow.json --json
Harden the automation
Add trace-backed assertions where the app is stateful:
bp exec -s demo '[
{"action":"waitForWsMessage","match":"*realtime*","where":{"type":"session.ready"}},
{"action":"assertTextChanged","selector":"#status","from":"Connecting","to":"Live"},
{"action":"assertNoConsoleErrors","windowMs":500}
]'
Add outcome conditions to verify actions actually worked:
bp exec -s demo '[
{"action":"submit","selector":"form",
"expectAny":[
{"kind":"urlMatches","pattern":"*/success*"},
{"kind":"textAppears","text":"Submitted"}
],
"failIf":[{"kind":"textAppears","text":"Error"}],
"dangerous":true}
]'
Review page state after a workflow completes:
bp review -s demo --json
Or capture replay proof:
bp connect --name validation --record
bp exec -s validation -f workflow.json
When to reach for other surfaces
- Need fresh targets on a page:
bp snapshot -i - Need structured business state:
bp review - Need one-off direct control:
bp exec - Need to verify an action's effect: outcome conditions in
bp exec - Need long-running analysis or evidence:
bp trace - Need voice/media control:
bp audio - Need permissions/network/visibility changes:
bp env
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
automate-browser-actions-and-testing
Browser automation skill using browser-pilot CLI. Use this when you need to control a web browser, inspect a page, capture a workflow, trace a realtime issue, or exercise voice and environment conditions.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
Didn't find tool you were looking for?