go-playwright
Skill by sickn33
Guides an AI assistant to write Go browser automation scripts with playwright-go, covering browser contexts, Zap logging, explicit timeouts and human-like input. Meant for developers who scrape, test or debug sites that need a real browser.
Install go-playwright
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/go-playwright ~/.claude/skills/go-playwrightRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/go-playwright ~/.gemini/antigravity-cli/skills/go-playwrightAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
go-playwright is a skill that guides an AI assistant to write browser automation scripts in Go using github.com/playwright-community/playwright-go. It sets architecture rules, such as launching one Browser and creating a new BrowserContext for each task. It also asks for explicit timeouts, defer-based cleanup and panic recovery in automation routines.
Generated code uses Zap for structured logging instead of fmt.Println. The skill also describes human-like input techniques, including Bezier mouse movement, typing with random keystroke delays, and slight viewport randomization. According to the source, it is for scraping, testing and debugging websites that need a real browser. Automation should stay within the authorized site, account and action scope.
Written from the project's SKILL.md and checked against it.
What it can do
- Browser and context architectureLaunches one Browser and creates a new BrowserContext for each distinct session or task.
- Structured logging with ZapLogs navigations, clicks and inputs using go.uber.org/zap instead of fmt.Println.
- Error handling and timeoutsUses defer for cleanup, panic recovery with stack traces, and explicit timeouts on operations.
- Human-like mouse movementMoves the mouse along a Bezier curve with random jitter instead of teleporting it.
- Human-like typingUses Type() with random 50ms to 200ms delays between keystrokes instead of Fill().
- Viewport and User-Agent randomizationRandomizes viewport size slightly and rotates User-Agents for each new context.
- Documentation lookupChecks the official API docs for the pinned playwright-go version before version-sensitive calls.
What you need
- Go
- Playwright drivers and browsers installed via the playwright-go install command
Try asking
- Write a Go script with playwright-go that scrapes product titles from a React page.
- Add zap logging and explicit timeouts to my existing playwright-go test.
- Refactor my Go Playwright code to reuse one Browser and create a BrowserContext per task.
Good to know
- Requires Playwright drivers and browsers to be installed.
- Launching full browser instances consumes significant RAM and CPU.
- Strict anti-bot systems may still detect automation.
- Does not include built-in CAPTCHA solving.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/go-playwright/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
resources/implementation-playbook.md3 KB
Alternatives to go-playwright
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
go-playwright: common questions
Does go-playwright solve CAPTCHAs?
No. The source states that the skill does not include built-in CAPTCHA solving capabilities.
Can go-playwright bypass anti-bot systems?
It includes stealth and human-emulation techniques, but the source says strict anti-bot systems may still detect automation. It also says to use automation only within the authorized scope.
Which logging library does the generated code use?
The source says to use go.uber.org/zap exclusively and not fmt.Println, with development and production modes.
How do I install go-playwright?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is go-playwright free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is go-playwright safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to go-playwright?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
