{"slug": "anthropic-s-webapp-testing-skill-let-your-agent-test-your-web-app-with", "title": "Anthropic's webapp-testing skill: let your agent test your web app with Playwright", "summary": "Anthropic's anthropics/skills repository includes a webapp-testing skill that teaches coding agents to test local web apps by writing short Python Playwright scripts, with a helper script, with_server.py, that starts the dev server, runs the test, and shuts the server down. The skill is installed by copying the skills/webapp-testing folder into ~/.claude/skills/ for Claude Code or ~/.codex/skills/ for Codex and installing Playwright for Python; the repo has about 200,000 GitHub stars. The skill supplies a decision tree — read static HTML for selectors, or for dynamic apps load the page, wait for the network to go quiet, screenshot or inspect the DOM, then act — and differs from the Playwright MCP server in that it produces a test script that can be rerun in CI.", "body_md": "[Dev blog](https://calyban.com/blog) · [Guides](https://calyban.com/blog#guide) · 2026-11-28\n\n# Anthropic's webapp-testing skill: let your agent test your web app with Playwright\n\n**Short answer:** `webapp-testing` is a skill in Anthropic’s [anthropics/skills](https://github.com/anthropics/skills) repo. It teaches your agent to test a local web app by writing short Python Playwright scripts, with a helper, `with_server.py`, that starts your dev server, runs the test, and shuts the server down. Copy the `skills/webapp-testing` folder into `~/.claude/skills/` (Claude Code) or `~/.codex/skills/` (Codex), and install Playwright for Python.\n\nOr skip the clone and copy: [Calyban](https://calyban.com/) installs webapp-testing into Claude Code, Codex and four other agents in one click, safety-checked first. Free, no account.\n\nIt turns “does the page work?” into a script the agent can rerun, from a repo with about 200,000 GitHub stars.\n\n## What’s in the folder\n\n- `SKILL.md` , the instructions.\n- `scripts/with_server.py` , which manages one or more servers around a test.\n- `examples/` , sample automation scripts.\n\n## How the agent uses it\n\nThe skill gives the agent a decision tree. Static HTML file? Read it and pick selectors from the source. A dynamic app? Start it, then follow “reconnaissance then action”: load the page, wait for the network to go quiet, take a screenshot or inspect the DOM, find selectors from what actually rendered, then act on them.\n\nThe server helper is the part that saves the most fiddling:\n\n```\npython scripts/with_server.py --server \"npm run dev\" --port 5173 -- python your_test.py\n```\n\nBackend and frontend together work too, with two `--server` and `--port` pairs. The test script contains only Playwright logic; the helper handles startup and cleanup.\n\nOne instruction in the skill is worth copying into your own skills: run helper scripts with `--help` first and treat them as black boxes, because reading a big script into context costs tokens for nothing.\n\n## Install it by hand\n\n```\ngit clone https://github.com/anthropics/skills /tmp/anthropic-skills\ncp -r /tmp/anthropic-skills/skills/webapp-testing ~/.claude/skills/\npip install playwright\nplaywright install chromium\n```\n\nUse `~/.codex/skills/` instead for Codex, or `~/.agents/skills/` to share one copy between Codex, Cursor, GitHub Copilot CLI and Gemini CLI.\n\n## Skill or MCP server?\n\nThey do different jobs. The [Playwright MCP server](https://calyban.com/mcp/playwright) lets the agent click around a live browser right now. This skill has the agent write a test script you can keep and run again in CI. Plenty of setups use both: the server to explore, the skill to lock the behavior in. Our [browser MCP comparison](https://calyban.com/blog/best-browser-mcp-servers) covers the server side.\n\n## The Calyban way\n\nOpen [Web App Testing](https://calyban.com/skills/webapp-testing) in Calyban and press **Install**. It’s downloaded from `anthropics/skills` at a pinned commit, the safety check reads the skill and its scripts first, and the folder is copied into the right place for each agent you tick. If two of your agents share a skills folder, Calyban tells you before a second copy shows up twice. Anthropic’s whole collection is one click away too, as the [Anthropic skills kit](https://calyban.com/kits/collection-anthropics-skills).\n\nCalyban is free for Windows and Linux at [/#download](https://calyban.com/#download). Tell us on [Discord](https://discord.gg/pHDNtgYvWn) what your agent caught in its first test run.", "url": "https://wpnews.pro/news/anthropic-s-webapp-testing-skill-let-your-agent-test-your-web-app-with", "canonical_source": "https://calyban.com/blog/webapp-testing-skill", "published_at": "2026-11-28 00:00:00+00:00", "updated_at": "2026-11-29 06:15:06.588325+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-products"], "entities": ["Anthropic", "webapp-testing", "anthropics/skills", "Playwright", "Claude Code", "Codex", "with_server.py", "Calyban"], "also_reported_by": [], "takeaway": "Copy the webapp-testing skill folder into ~/.claude/skills/ or ~/.codex/skills/ and run tests via `python scripts/with_server.py --server \"npm run dev\" --port 5173 -- python your_test.py`, which starts and cleans up the dev server so the test script holds only Playwright logic.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/anthropic-s-webapp-testing-skill-let-your-agent-test-your-web-app-with", "markdown": "https://wpnews.pro/news/anthropic-s-webapp-testing-skill-let-your-agent-test-your-web-app-with.md", "text": "https://wpnews.pro/news/anthropic-s-webapp-testing-skill-let-your-agent-test-your-web-app-with.txt", "jsonld": "https://wpnews.pro/news/anthropic-s-webapp-testing-skill-let-your-agent-test-your-web-app-with.jsonld"}}