Testing & Code ReviewOfficial · anthropics

Webapp Testing skill for Claude

The webapp testing skill by anthropics: 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.

Webapp Testing SKILL.md

A preview of the skill file from anthropics/skills (Complete terms in LICENSE.txt).

Web Application Testing

To test local web applications, write native Python Playwright scripts.

Helper Scripts Available:

  • scripts/with_server.py - Manages server lifecycle (supports multiple servers)

Always run scripts with --help first to see usage. DO NOT read the source until you try running the script first and find that a customized solution is abslutely necessary. These scripts can be very large and thus pollute your context window. They exist to be called directly as black-box scripts rather than ingested into your context window.

Decision Tree: Choosing Your Approach

User task → Is it static HTML?
    ├─ Yes → Read HTML file directly to identify selectors
    │         ├─ Success → Write Playwright script using selectors
    │         └─ Fails/Incomplete → Treat as dynamic (below)
    │
    └─ No (dynamic webapp) → Is the server already running?
        ├─ No → Run: python scripts/with_server.py --help
        │        Then use the helper + write simplified Playwright script
        │
        └─ Yes → Reconnaissance-then-action:
            1. Navigate and wait for networkidle
            2. Take screenshot or inspect DOM
            3. Identify selectors from rendered state

Read the full SKILL.md on GitHub →

How to install the webapp testing skill

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit anthropics/skills/skills/webapp-testing#main ~/.claude/skills/webapp-testing

Codex

npx degit anthropics/skills/skills/webapp-testing#main ~/.codex/skills/webapp-testing

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What is the webapp testing skill?

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.

+How do I install the webapp testing Claude skill?

Copy the skill folder into ~/.claude/skills/webapp-testing, for example with "npx degit anthropics/skills/skills/webapp-testing#main ~/.claude/skills/webapp-testing". Claude Code loads it automatically and uses it when a task matches.

+Does Webapp Testing work with ChatGPT or Codex?

Yes. Webapp Testing uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/webapp-testing. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Webapp Testing free?

Webapp Testing is published on GitHub by anthropics under the Complete terms in LICENSE.txt license; check the license terms before using it.

Related testing & code review skills

  1. Agent Browser

    Official

    Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms,…

    vercel-labs/agent-browser★ 53k
  2. Playwright

    Official

    Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction,…

    openai/skills★ 29k
  3. Playwright Skill

    Complete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive…

    lackeyjb/playwright-skill★ 3.3k
  4. Test Driven Development

    Use when implementing any feature or bugfix, before writing implementation code

    obra/superpowers★ 319k
  5. Matlab

    Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows.

    K-Dense-AI/scientific-agent-skills★ 58k
  6. Playwright Interactive

    Official

    Persistent browser and Electron interaction through `js_repl` for fast iterative UI debugging.

    openai/skills★ 29k
  7. Receiving Code Review

    Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable…

    obra/superpowers★ 319k
  8. Browser Automation

    Automate a browser: scrape websites, fill forms, pull structured data from web pages.

    alirezarezvani/claude-skills★ 30k
  9. Generate

    Use when asked to write Playwright or e2e tests for a page, component or feature ('write tests', 'add tests for', 'e2e test').

    alirezarezvani/claude-skills★ 30k

See all testing & code review skills →

More skills from anthropics

  1. Brand Guidelines

    Official

    Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.

    anthropics/skills★ 197k
  2. Algorithmic Art

    Official

    Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.

    anthropics/skills★ 197k
  3. Theme Factory

    Official

    Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc.

    anthropics/skills★ 197k

All skills by anthropics →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.