Skill · v1.0
Playwright
Playwright is browser automation that reads the web and hands back clean JSON. Scrape a page, extract a pricing table, pull a changelog, check what a URL contains. It returns structured data rather than screenshots, which keeps each read light and precise.
Install
Claude Code (CLI / WSL / Git Bash)
/plugin marketplace add https://www.infinitegameos.io/marketplace.json
/plugin install playwright@igos-libraryClaude Code (VS Code)
Install in VS CodeOpens the Claude Code plugins dialog with the marketplace and skill prefilled. Requires the Claude Code VS Code extension installed and signed in. Or paste the snippet below into .claude/settings.json for VS Code, JetBrains or any setup that prefers manual config.
{
"extraKnownMarketplaces": {
"igos-library": {
"source": {
"source": "url",
"url": "https://www.infinitegameos.io/marketplace.json"
}
}
},
"enabledPlugins": {
"playwright@igos-library": true
}
}Direct markdown URL (Claude Code, Cursor, Codex CLI)
https://www.infinitegameos.io/markdown/skills/playwrightThis URL returns the narrative concept page. The plugin install path above delivers the operational SKILL.md instruction file.
Cursor (.mdc rules file)
curl -O https://www.infinitegameos.io/install/cursor/playwright.mdcAider, Cline, any agent with --read
curl -O https://www.infinitegameos.io/markdown/skills/playwright
aider --read playwright.mdThis skill ships in both homes, the Sovereign Ecosystem Foundation and this library.
Definition
Playwright is a browser automation skill built on headless Chromium. It scrapes pages, extracts structured data and interacts with web interfaces, returning clean JSON rather than screenshots. A single script takes a URL and returns the page title, the cleaned body text and the links, ready to read or pass downstream. The read-before-act posture is the discipline: it retrieves, cleans and returns before anything acts on the result. The browser always closes in a finally block, so no external state lingers. It also ships inside the Sovereign Ecosystem Foundation, where it covers structured page reads and watch checks.
A URL in, clean JSON out
The script takes a URL and returns a structured object: the page title, the cleaned body text and the links with their text and href. You tell your AI what you need in plain language, it runs the read and hands back the data. A changelog, a pricing table, an article body, the contents of a page that may or may not load. Each one comes back as data you can work with directly.
Structured output is the reason this stays light. A screenshot-based read costs many thousands of tokens and returns pixels you still have to interpret. A structured read returns the text and the links already cleaned. The skill asserts data quality too: a blocked or failed scrape surfaces as a clear failure rather than returning corrupted output dressed as a result.
Use Cases
Watching a repo for what shipped
A tech-watch list tracks several repositories. Playwright reads the changelog and release notes, returns the structured text and your AI summarizes what changed since the last check. No manual page visits, no screenshots to squint at.
Pulling a pricing table as data
A competitor publishes pricing on a live page. Playwright extracts the table as a JSON array, ready to compare or store. The read is precise and the output drops straight into the next step.
Confirming a URL loads and what it holds
A link needs verifying before it ships. Playwright loads the page, returns the title and the body text and confirms the content is what you expect. A quick, structured check instead of a manual visit.
FAQ
Why JSON instead of screenshots?
A structured read returns cleaned text and links you can work with directly. A screenshot returns pixels you still have to interpret, at many times the token cost. JSON keeps each page read light, precise and ready for the next step.
What happens when a site blocks the scrape?
It surfaces as a clear failure rather than returning corrupted output. For sites behind a bot wall, a stealth layer can be added. The discipline is to assert data quality, so a blocked read reads as blocked, not as an empty success.
Does Playwright write to the pages it reads?
No. It reads. The posture is retrieve, clean and return before anything acts on the result. The browser always closes in a finally block, so no external state lingers after a run.
Related
Skill
Source Harvest
Systematic pattern extraction from any external repo or tool at source level. Classify, extract, integrate.
Skill
Researcher
Parallel sub-agent research on a topic, aggregated into a structured report. Up to 4 independent workers, synthesized output.
Skill
Systematic Debugging
Root-cause investigation discipline. Use before proposing fixes. The Iron Law: no fixes without Phase 1 complete.
Playwright is the read tool. Source Harvest is the discipline for turning what you read into integrated patterns. Both ship inside the Sovereign Ecosystem Foundation, a starting workspace you can adopt and make your own. The wider system that puts structured reads to work is The Sovereign Life Playbook.
See the Sovereign Life Playbook