| name | pseudo-agentic-automation |
| description | Use for browser or GUI automation tasks that require iterative scripts, runtime adaptation, and debugging loops (for example dynamic scraping, authenticated web flows, CAPTCHA handoffs, and headed/headless browser control). |
Pseudo-Agentic Automation
Quick Index (Action-Routed)
Read First (All Actions)
Overview
Preconditions
Use This Skill When / Do Not Use This Skill When
Action Modules (Read As Needed)
- Running automation loops:
Execution Loop
Tool Guidance
- Hardening runtime behavior:
Robust Patterns
Pitfalls
Security and Ops
Output
Deliverable Format
Overview
Use this skill for browser and GUI automation tasks that need iterative script execution, debugging, and adaptation.
Use Scripted Command Execution for simple command chains, setup tasks, and deterministic local operations.
If the request can be solved with deterministic shell commands alone, switch to that skill.
Preconditions
Before execution:
- confirm automation target and success criteria
- confirm required credentials/access are available
- confirm whether headless or headed mode is appropriate
- confirm any legal/terms constraints for scraping/automation
- for new projects (model has not worked on before), ask whether model should run tests/build by default or user will run them to save tokens
- operate locally by default; do not deploy unless explicitly requested
Use This Skill When
- The target is a dynamic/authenticated website.
- No stable API exists.
- Browser rendering and interaction is required for E2E behavior checks.
- Native GUI control is required and direct shell actions are insufficient.
Do Not Use This Skill When
- A static file can be fetched directly.
- A straightforward REST API call solves the request.
- The task is simple local shell/file work.
Execution Loop
- Clarify goal and constraints.
- Prepare minimal runtime dependencies.
- Write scripts that output machine-readable success data and rich failure diagnostics.
- Execute scripts.
- Inspect logs/artifacts and iterate.
- Stop after bounded retries and escalate with concrete failure evidence.
Retry budget:
- default max retries: 3
- if blocked by CAPTCHA/anti-bot twice, switch to human-handoff flow
- if selectors keep failing with no stable anchors, escalate with captured artifacts
Tool Guidance
browser-use: for highly dynamic pages with unstable selectors.
Playwright: for deterministic browser automation and structured extraction.
Puppeteer: for Node-centric automation or PDF-heavy workflows.
PyAutoGUI: fallback only; coordinate-based and fragile.
PyWinAuto / Appium: preferred for semantic native UI automation where available.
Robust Patterns
- Log precise failure context to
stderr (URL, selector, compact DOM snapshot).
- Always close browser/resources in
finally.
- Write large outputs to files (JSON preferred), then read those artifacts.
- On CAPTCHA/challenges, switch to headed mode and perform explicit human handoff.
Pitfalls
- Infinite retries: cap attempts.
- Zombie processes: always clean up child processes.
- Headless detection: switch to headed mode when anti-bot behavior appears.
- Fragile selectors: prefer role/text/test-id over dynamic classes.
Security and Ops
- Run scripts in project-local or temporary directories.
- Keep credentials in environment variables.
- Minimize dependency-install side effects.
Deliverable Format
When applying this skill, provide:
- target and completion criteria
- script/run summary
- artifact locations (logs/screenshots/outputs)
- pass/fail outcome
- blockers and next action
Related Skills