# Anthropic's webapp-testing skill: let your agent test your web app with Playwright

> Anthropic's webapp-testing skill teaches Claude Code and Codex to test local web apps with Python Playwright scripts. What's in it and how to install it.

Published by Calyban (https://calyban.com/blog/webapp-testing-skill), 2026-11-28.

**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.

Or skip the clone and copy: [Calyban](/) installs webapp-testing into Claude Code, Codex and four other agents in one click, safety-checked first. Free, no account.

It turns "does the page work?" into a script the agent can rerun, from a repo with about 200,000 GitHub stars.

## What's in the folder

- `SKILL.md`, the instructions.
- `scripts/with_server.py`, which manages one or more servers around a test.
- `examples/`, sample automation scripts.

## How the agent uses it

The 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.

The server helper is the part that saves the most fiddling:

```bash
python scripts/with_server.py --server "npm run dev" --port 5173 -- python your_test.py
```

Backend and frontend together work too, with two `--server` and `--port` pairs. The test script contains only Playwright logic; the helper handles startup and cleanup.

One 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.

## Install it by hand

```bash
git clone https://github.com/anthropics/skills /tmp/anthropic-skills
cp -r /tmp/anthropic-skills/skills/webapp-testing ~/.claude/skills/
pip install playwright
playwright install chromium
```

Use `~/.codex/skills/` instead for Codex, or `~/.agents/skills/` to share one copy between Codex, Cursor, GitHub Copilot CLI and Gemini CLI.

## Skill or MCP server?

They do different jobs. The [Playwright MCP server](/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](/blog/best-browser-mcp-servers) covers the server side.

## The Calyban way

Open [Web App Testing](/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](/kits/collection-anthropics-skills).

Calyban is free for Windows and Linux at [/#download](/#download). Tell us on [Discord](https://discord.gg/pHDNtgYvWn) what your agent caught in its first test run.
