Architecture
Core idea
The workflow intentionally separates login from automation.
Diagram files
- Repository Structure: SVG preview / Draw.io source
- Runtime Workflow: SVG preview / Draw.io source
- Boundaries and Rules: SVG preview / Draw.io source
- Repository Structure (JA): SVG preview / Draw.io source
- Runtime Workflow (JA): SVG preview / Draw.io source
- Boundaries and Rules (JA): SVG preview / Draw.io source
What Each Diagram Shows
Repository Structure: main skill files, scripts, docs, and metadataRuntime Workflow: the happy-path flow from launching Chrome to reusing the authenticated sessionBoundaries and Rules: the separation between the main Chrome profile and the dedicated automation profile, plus the core safety rules
SVG previews
Repository Structure
Runtime Workflow
Boundaries and Rules
Sequence
- Chrome starts as a regular user-facing browser
- The browser uses a dedicated
--user-data-dir - The user logs in manually
- Chrome exposes a CDP port
- Playwright attaches over CDP
- Automation continues in the already authenticated browser
Why Not launchPersistentContext() For Login
Google can treat automation-first browser launches differently and may reject login with a security warning. By launching normal Chrome first and attaching later, the workflow is often more stable for Google sign-in pages.
Important Boundary
- Main daily Chrome profile: for human browsing
- Dedicated automation profile: for logged-in agent workflows
Do not mix them.