Replace MCP-based browser automation with a custom Claude Code skill to cut token usage by ~50% and eliminate screenshot overhead.
Implement Playwright wrapper skill in Claude Upgrades project to replace any MCP-based browser automation. Test against current GnomeGuys scraper (if using Apify fallback) and ReelBot vision analysis workflows.
Evaluate if ReelBot's Playwright fallback for FB Marketplace scraping can use text extraction instead of screenshots for faster processing and lower API costs.
This aligns perfectly with our current Claude Code optimization work—we've already reduced context overhead from 55k to 19k tokens. Adding a Playwright skill wrapper instead of MCP server could push this even lower for browser tasks.
We just cut our Claude Code context from 55k to 19k tokens—definitely trying this Playwright skill approach next. Text extraction > screenshots for most automation tasks.
What it is: A workflow optimization that replaces the Playwright MCP server with a lightweight Claude Code skill wrapping raw Playwright. Instead of screenshot-based browser interaction (vision model), it extracts text/DOM content and returns structured text output.
How it helps us: Directly applicable to Claude Upgrades project which is actively reducing token overhead (already cut from ~55k to ~19k). We already have Playwright CLI installed and auto-approved—creating a skill wrapper would standardize browser automation across projects and potentially reduce costs further.
Limitations: If current browser automation needs require visual verification (e.g., checking rendering, CSS visuals), screenshot approach may still be necessary. The video oversimplifies—some automation tasks genuinely need visual context.
Who should see this: Dylan / Lead Developer — Claude Code configuration and optimization lead
| Step | Prompt | Completion | Cost |
|---|---|---|---|
| analysis | 11,819 | 2,383 | $0.0106 |
| similarity | 731 | 25 | $0.0001 |
| plan | 7,118 | 6,455 | $0.0174 |
| Total | $0.0281 | ||