Claude skill · Development · Anthropic
Web app testing skill for Claude
webapp-testing is an Anthropic skill that has Claude test a local web app by writing Python Playwright scripts. A helper starts your dev servers, Claude waits for the page to settle, inspects it with a screenshot or the DOM, then acts and reads console logs. It needs Python, Playwright and its browsers on the machine, so it suits Claude Code.
- Command
- /webapp-testing
- Licence
- Apache-2.0, copying allowed with attribution
- Folder
- 6 files, 22 KB
- Runs code
- 4 scripts
Overview
What does webapp-testing do?
The skill gives Claude a decision tree. For static HTML it reads the file to find selectors. For a dynamic app it starts the servers with scripts/with_server.py if they aren’t already running, waits for the page to settle, takes a screenshot or inspects the DOM, and only then writes the actions.
It tells Claude to run the helper script with --help rather than reading its source, which keeps helper scripts out of the context window: a good example of treating a bundled script as a black box.
Triggers
When does Claude use it?
- Checking that a local web app works, debugging UI behaviour, capturing screenshots or reading browser console logs.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
What it needs
- Python with Playwright and its browsers installed.
Install
How do I install it in Claude Code?
From the plugin marketplace
/plugin marketplace add anthropics/skills
/plugin install example-skills@anthropic-agent-skillsThe example-skills plugin brings 12 skills, including this one; it runs as /example-skills:webapp-testing.
As a personal or project skill
git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p ~/.claude/skills
cp -r skills/skills/webapp-testing ~/.claude/skills/git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p .claude/skills
cp -r skills/skills/webapp-testing .claude/skills/Either way it’s available as /webapp-testing.
claude.ai and API
How do I use it in claude.ai and the API?
claude.ai
Anthropic’s skills README says its example skills are already available on paid claude.ai plans, so check Customize > Skills before uploading anything.
Claude API
Upload the folder through the Skills API, then list it in container.skills as type custom with the returned ID, alongside the code execution tool. Uploaded skills are shared across your workspace.
from anthropic import Anthropic
from anthropic.lib import files_from_dir
client = Anthropic()
skill = client.skills.create(files=files_from_dir("webapp-testing"))
print(skill.id) # use as a custom skill_id with the code execution toolAPI containers have no network access, so its scripts can’t download anything there.
Checks
SKILL.md validator results
Its SKILL.md (96 lines) run through our SKILL.md validator, with the folder’s file list, for both targets. These check the file’s format, not whether the skill works well.
Claude Code
0 errors, 1 warning, 0 tips
- warningSay when to use it, e.g. “Use when the user asks for…”. Claude matches requests against the description, so it needs both what the skill does and when.
claude.ai and the API
0 errors, 1 warning, 1 tip
- warningSay when to use it, e.g. “Use when the user asks for…”. Claude matches requests against the description, so it needs both what the skill does and when.
- tipThe Claude Help Center’s upload guide gives a 200-character description limit for claude.ai, though the platform docs say 1,024. Keep it under 200 if you’ll upload it there.
Folder
What’s in the folder?
- LICENSE.txt11 KB
- SKILL.md3.8 KB
- examples/3 files, 3.4 KB
- scripts/1 file, 3.6 KB
SKILL.md sections
- Web Application Testing
- Decision Tree: Choosing Your Approach
- Example: Using with_server.py
- Reconnaissance-Then-Action Pattern
- Common Pitfall
- Best Practices
- Reference Files
Source
Licence and source
- Published by Anthropic in anthropics/skills/skills/webapp-testing, last changed 2026-04-20.
- Licence: Apache-2.0, copying allowed with attribution. Our copy of the SKILL.md is unmodified, served with its licence.
- Read from commit
ca45fc4; write-up checked 2026-10-14. - Before installing, read the SKILL.md on GitHub and its scripts. Anthropic advises using skills only from sources you trust (security considerations).
FAQ
Questions people ask
Should I use the webapp-testing skill or the Playwright MCP server?
The skill has Claude write and run a script, which you can keep and rerun, and only the script’s output enters the conversation. The Playwright MCP server gives Claude browser tools to call step by step, which suits exploring a page. Use the skill for repeatable checks of your own app and the server for interactive browsing.
What do I need installed for webapp-testing?
Python with the Playwright package and its browsers, installed with playwright install. The skill launches Chromium in headless mode. Its scripts/with_server.py helper manages the server lifecycle: give it one or more start commands and ports, such as a backend and a frontend, and it runs your test script against them.
Why does webapp-testing miss elements on my page?
The skill’s main warning is to wait before inspecting. A dynamic app may still be rendering after the page loads, so Claude should wait for the network to go quiet, then screenshot or read the DOM to find selectors. If elements are still missing, ask Claude to wait for a specific selector instead.
Related
Related skills
All Claude skillsWrite your own skillSlash command builderGuide: subagents, skills and commands
Keep exploring