sunwood-ai-labs/browser-reuse-guard/skill
Claude Code and agent skill by sunwood-ai-labs/browser-reuse-guard
- community
Checking that the SKILL.md file is still in the repository.
Enforce inspection and reuse of existing browser windows, profiles, and tabs before creating a new tab, window, profile, CDP listener, or OAuth URL. Use for any browser automation, OAuth recovery, CDP attachment, or task where Codex might otherwise open or switch browser surfaces.
Install
npx vskill@latest install sunwood-ai-labs/browser-reuse-guard/skillSKILL.md
Browser Reuse Guard
Treat a new browser surface as an exception, not a starting point. Follow this workflow before every new tab, window, profile, CDP listener, or authorization URL.
1. Inspect before deciding
Select the browser surface already associated with the task. Inspect its existing candidate tabs and record only:
- URL origin and path; omit query and fragment values
- title
- visible rendered state
Never treat an uninspected tab as unsuitable. Do not inspect cookies, local storage, profile files, saved passwords, tokens, or auth files.
2. Reuse or prove the exception
- Reuse a tab when its visible state can serve the task.
- If no tab can serve it, record a specific reason: the target tab closed, the browser transport remained inaccessible after retry, the provider showed a terminal error, or an isolated test profile is explicitly required.
- A slow page, blank tab, provider/account picker, consent screen, ordinary Allow, or a reachable CDP port is not evidence for creating or switching a browser surface.
- For OAuth started by a CLI or app, inspect and reuse that process's browser/tab. Do not create another authorization URL or choose an in-app/dedicated browser to look for a more convenient session.
3. Validate a new-surface decision
Before a new-surface action, run the read-only checker with sanitized observations:
Use -Decision reuse when retaining an existing tab. The checker rejects missing inspection, query-bearing URLs, sensitive storage/auth references, and new-surface decisions without objective evidence.
4. Act and verify
Open or switch only after the record passes. Reinspect the resulting visible tab state after navigation. For OAuth, browser appearance never proves completion; use the workflow's fresh CLI authentication check.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sunwood-ai-labs/browser-reuse-guard/skill)