SurfAgent Browser Operations
by @surfagentapp
Core browser operations skill for SurfAgent and similar browser agents, covering tab discipline, perception-first execution, human-like driving, proof rules,...
clawhub install surfagent-browser-operationsπ About This Skill
name: browser-operations description: Core browser operations skill for SurfAgent and similar browser agents, covering tab discipline, perception-first execution, human-like driving, proof rules, and token-efficient fallback patterns. version: 1.1.0 metadata: openclaw: homepage: https://surfagent.app emoji: "π§"
Browser Operations
> The core skill. Use this before any site-specific skill.
This file teaches the universal rules for driving a real browser without making a mess, wasting tokens, or lying about success.
1. What this skill is for
Use this skill for:
Use a platform skill after this one when you are on a known site like Gmail, X, Discord, or GitHub.
2. Non-negotiables
1. One active work tab per target site unless a second tab is clearly justified. 2. Reuse a healthy tab before opening a new one. 3. Perceive state before acting. 4. Verify visible results after acting. 5. Prefer low-token state and perception tools over giant raw reads. 6. Do not claim success from an attempted click or type alone. 7. If retries create tab sprawl, stop and clean up before continuing.
3. Tool selection ladder
Default order: 1. perception or state layer first 2. platform adapter second 3. MCP server when available and stronger for the job 4. raw browser actions only as fallback
Interpretation:
4. Browser hygiene
Before work:
During work:
After work:
5. Tab hygiene
Healthy pattern:
Unhealthy pattern:
If tab state is unclear, stop and re-enumerate before acting.
6. Perception-first loop
Use this loop by default: 1. perceive or inspect state 2. choose the next action 3. act once 4. diff or verify what changed 5. repeat only if the page state supports the next step
Ask after every action:
If the surface is visually dense, stateful, or contradictory, escalate to a screenshot or visual snapshot early.
Examples where visual confirmation should happen fast:
Rule: do not keep arguing with partial extraction when one screenshot can settle the page state.
7. Autonomy layer
The autonomy layer should be small and disciplined.
Use short plan-act-verify cycles:
Do not queue five blind actions in a row on a dynamic site.
8. Human-like driving
Drive like a careful operator, not a broken macro:
Human-like does not mean fake random noise. It means paced, state-aware interaction.
9. Token-efficiency rules
Always prefer:
Avoid:
10. Fallback ladder
If the ideal path fails: 1. verify page state again 2. take a screenshot or visual snapshot if the surface is ambiguous 3. retry with a more precise selector or ref 4. switch to site adapter or MCP if available 5. recover page state, refocus, dismiss blocker, or reload 6. move to one fresh tab if the current one is poisoned 7. escalate to a platform skill or ask for human input only when the blocker is real
11. Common blockers
Watch for:
For each blocker:
12. Proof rules
Success requires visible evidence.
Good proof usually includes:
Examples:
Bad proof:
13. When to use platform skills
Use a platform skill when the site has:
Priority first set:
14. Minimal operating checklist
Before claiming done, confirm:
If a page was complex enough to confuse state during the run, add a short note to the platform skill or state map afterward so the next agent does not have to rediscover it.
15. Output contract for agents
When reporting progress:
16. Relationship to other docs
This is the universal browser brain.
Pair it with: