browser-fallback-skill
Skill7 starsChanged 56 days agoApache-2.0View on GitHub
Route browser work across agent toolsets — probe a managed desktop-browser toolset read-only before any mutating call, fall back to independent automation stacks on disconnect, verify-then-handoff for show-the-user intents. Harness values in references/. Triggers: browser.disconnected, no desktop browser connected, browser toolset, probe before tabs.open, desktop browser attach, browser fallback.
In this repository85 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-a11y-skillSkill
- agent-introspection-debugging-skillSkill
- amplify-nextjs-deployment-skillSkill
- architecture-review-skillSkill
- authentication-authorization-skillSkill
- autoresearch-skillSkill
- aws-iac-safety-skillSkill
- blast-radius-skillSkill
- cad-dxf-skillSkill
- cad-generation-skillSkill
- cad-implicit-skillSkill
- cad-redraw-skillSkill
- cad-specialist-skillSkill
- cad-viewer-skillSkill
- changelog-python-cliff-skillSkill
- civiltekk-api-spec-skillSkill
- civiltekk-coding-harness-setup-skillSkill
- civiltekk-context-optimization-skillSkill
- civiltekk-diagram-skillSkill
- civiltekk-documentation-inline-skillSkill
- civiltekk-documentation-sync-skillSkill
- civiltekk-git-commits-skillSkill
- civiltekk-nextjs-skillSkill
- referencesSkill
- civiltekk-opencode-creation-skillSkill
- civiltekk-opentofu-skillSkill
- civiltekk-ponytail-audit-skillSkill
- civiltekk-pr-workflow-skillSkill
- civiltekk-python-backend-skillSkill
- civiltekk-react-quality-skillSkill
- civiltekk-startup-docs-skillSkill
- civiltekk-test-generation-skillSkill
- civiltekk-zai-media-skillSkill
- code-principles-skillSkill
- code-review-inline-skillSkill
- construction-bd-skillSkill
- continuous-learning-skillSkill
- coverage-readme-workflow-skillSkill
- database-migration-skillSkill
- deprecated-code-cleanup-skillSkill
- docker-containerization-skillSkill
- domain-modeling-skillSkill
- email-drafter-skillSkill
- error-resolver-workflow-skillSkill
- eval-harness-skillSkill
- frontend-design-skillSkill
- gh-cli-setup-skillSkill
- grilling-skillSkill
- gsap-skillSkill
- horseshoe-paper-writing-skillSkill
- install-assistant-skillSkill
- language-linting-skillSkill
- language-review-checklists-skillSkill
- linting-inline-skillSkill
- linting-workflow-skillSkill
- logging-observability-skillSkill
- monorepo-management-skillSkill
- office-document-router-skillSkill
- opencode-repo-setup-skillSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Before the first call to a managed desktop-browser toolset in any task.
- Distinctive: line 31
After any "no desktop browser connected" / client-not-attached failure.
- Distinctive: line 32
When deciding which browser stack serves a given intent.
- Distinctive: line 34
Not for: e2e test-suite authoring (use the project's test conventions).
- Distinctive: line 38
Gate: no browser-automation toolset in the session catalog → inert, stop.
- Distinctive: line 56
If unsure whether a call is read-only, treat it as mutating and find a cheaper probe.
- Distinctive: line 57
Never build detection on undocumented env or interface signals — they vanish without notice.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: browser-fallback-skill
What I do
- Gate on toolset presence: a managed desktop-browser toolset appearing in the session catalog does NOT mean its backing client is attached.
- Probe the managed toolset read-only before any mutating call — never let an open/preview call be the first touch.
- On a disconnect verdict: never retry (retries cannot attach the client); fall back to independent browser automation stacks.
- Show-the-user intents: verify the page via the fallback stack (load check + screenshot), report what was seen, hand off the URL plus how to attach the client.
- Automation intents (screenshots, DOM/console inspection, viewport checks): route straight to an independent stack; skip the managed toolset entirely.
- Re-probe at use time — catalogs and client attachments change mid-session; never latch.
When to use me
- Before the first call to a managed desktop-browser toolset in any task.
- After any "no desktop browser connected" / client-not-attached failure.
- When deciding which browser stack serves a given intent.
Not for: e2e test-suite authoring (use the project's test conventions); MCP server installation; tool permission configuration.
Method (decision rules)
- Gate: no browser-automation toolset in the session catalog → inert, stop. Catalog presence is necessary, never sufficient.
- Classify intent: show-the-user (the user must see it) vs automation (the agent verifies or inspects).
- Automation intent → independent stack directly. Done.
- Show-the-user intent → read-only probe of the managed toolset FIRST — cheap, side-effect free, never a mutating call.
- Probe reports disconnect → no retry. Load the harness side file (table below) for that harness's probe and fallback pairs; verify the target via the fallback stack; report findings; give the user the URL and the attach step.
- Long task → re-probe at each new use; attachment is session-lifetime-mutable.
Harness values (load rule)
| Read | When | Use |
references/opencode.md | session runs in OpenCode, or the managed toolset is browser.* | probe method, mutating first-touches to avoid, disconnect signature, fallback stack pairs, doc citations |
Another harness with a managed browser toolset and no side file: discover locally — identify one read-only catalog call, the mutating calls, and the installed independent stacks — then contribute references/<harness>.md copying this file's skeleton.
Hard rules
- One probe per intent resolution; a disconnect verdict stands for the task unless the user says they attached the client.
- If unsure whether a call is read-only, treat it as mutating and find a cheaper probe.
- Never build detection on undocumented env or interface signals — they vanish without notice; the probe is the contract.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

