Web + Desktop Automation
by @lurui808
Use when the user wants browser automation, web scraping, form filling, clicking, or desktop GUI automation, including mixed workflows that move between web...
clawhub install web-desktop-automationπ About This Skill
name: web-desktop-automation description: Use when the user wants browser automation, web scraping, form filling, clicking, or desktop GUI automation, including mixed workflows that move between web pages and local applications.
Web + Desktop Automation
Use this skill when a task may involve:
Core rule
Prefer the simplest reliable path: 1. If the task can be done in the browser, use browser automation. 2. If the task needs local apps or OS-level interaction, use desktop automation. 3. If both are needed, split the job into clear phases and verify after each phase.
Execution strategy
1) Classify the task
Decide which of these applies:2) Browser automation
Use browser automation for:Prefer stable selectors and explicit waits. Avoid brittle coordinate-based clicking when browser selectors exist.
3) Desktop automation
Use desktop automation for:Prefer application/window-aware methods when available. Use image-based or coordinate-based control only when necessary.
4) Mixed workflows
Break the task into phases:After each phase, verify the result before continuing.
Recovery rules
If a step fails: 1. Re-check the current UI state 2. Re-locate the target element or window 3. Try a more stable selector or a different interaction method 4. If the task risks loss of data or irreversible action, stop and ask the user
Best practices
scripts/browser_runner.py for Playwright browser automation templatesscripts/desktop_runner.py for PyAutoGUI desktop automation templatesscripts/mixed_orchestrator.py for browser + desktop handoffsreferences/browser-workflows.mdreferences/desktop-workflows.mdreferences/mixed-flows.mdreferences/dependencies.mdreferences/mixed-example.mdrequirements.txt for a minimal install setreferences/dependencies.mdreferences/mixed-example.mdreferences/dependencies.mdπ Tips & Best Practices
scripts/browser_runner.py for Playwright browser automation templatesscripts/desktop_runner.py for PyAutoGUI desktop automation templatesscripts/mixed_orchestrator.py for browser + desktop handoffsreferences/browser-workflows.mdreferences/desktop-workflows.mdreferences/mixed-flows.mdreferences/dependencies.mdreferences/mixed-example.mdrequirements.txt for a minimal install setreferences/dependencies.mdreferences/mixed-example.mdreferences/dependencies.md