browser

Automate browser navigation, element interaction, and data extraction with pw CLI.

3|Updated Jul 17, 2024
One-click install
npx skills add https://github.com/Castrozan/.dotfiles --skill browser-castrozan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: browser
Source: https://github.com/Castrozan/.dotfiles/tree/main/agents/skills/browser
Command: npx skills add https://github.com/Castrozan/.dotfiles --skill browser-castrozan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, and includes scripts (resource) components.

What problem does it solve?

This Skill enables developers to automate repetitive browser tasks without manual clicking, enabling reliable web interactions and testing across sessions.

Core Features & Use Cases

  • Persistent agent browser with a dedicated profile at ~/.local/share/pw-browser/ for session persistence.
  • pw CLI commands for navigation, element interaction, data extraction, and screenshots.
  • Playwright MCP fallback server for Claude Code MCP integration to extend compatibility.
  • Reusable automation scripts that run across reboots to reduce manual effort in web workflows.

Quick Start

Open https://example.com in the agent browser and return the page title and current URL.

Frequently Asked Questions about browser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate web tasks with a persistent browser profile?

You can automate web tasks with a persistent browser profile by using pw CLI commands for navigation and element interaction, saving session data to a dedicated directory so login states persist across reboots.

Does Playwright work with Claude Code MCP for browser automation?

Playwright works with Claude Code MCP through an optional fallback server integration, enabling extended compatibility for automated element interaction, data extraction, and web testing workflows.

Can I run automated web testing across reboots without losing session data?

Automated web testing across reboots preserves session data by utilizing a dedicated agent browser profile at a specific local directory, ensuring persistent authentication and reliable repeated script execution.

What's the best way to extract data from web pages using Playwright automation?

The best way to extract data from web pages using Playwright automation is executing pw CLI commands against the persistent agent browser to capture text, interact with elements, and take screenshots.

Do I need the pw CLI installed to automate browser navigation?

You need the pw CLI installed to automate browser navigation because the Skill relies on its commands to interface with the persistent agent browser profile and execute Playwright actions.

Why are my automated browser scripts failing to maintain login sessions?

Automated browser scripts fail to maintain login sessions if the persistent agent browser profile is missing or incorrectly configured at the required local directory, preventing session data from saving.