# playwright-suite-skills

> Project-agnostic Claude Code skills and subagents for Playwright suites. One skill reads your repository's actual conventions into a profile; the rest follow it — scaffolding specs, hardening locators, triaging a red suite, reviewing a test diff, scoping work before it starts. Assumes no framework, no directory layout, and no house style.

playwright-suite-skills is a paid AI agent skill pack (several skills in one listing) on Agensi by loffy, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [loffy](https://www.agensi.io/creators/loffy)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-10-17
- Security: scan passed (2026-10-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/playwright-suite-skills
- Tags: ai-agents, playwright, testing, typescript, automation

## About this skill

Automation suites often decay into a mess of brittle locators, inconsistent patterns, and trust-destroying "green" results that hide real bugs. This package provides 13 specialized skills for Playwright environments, designed to maintain suite health without imposing an external house style. It works by first probing your repository's unique conventions and then operating strictly within those bounds.

### What it does
- **Probes conventions** by inspecting your Playwright config, directory layout, and locator habits to create a local profile.
- **Audits changesets** by reviewing PRs in order of consequence, prioritizing weakened assertions and secrets over style.
- **Hardens locators** by replacing positional CSS and XPath with role-based and accessible name selectors.
- **Scaffolds tests** across browser, API, and database layers while mirroring existing import paths and patterns.
- **Triages red suites** by classifying failures into product bugs versus test defects before suggesting fixes.
- **Manages infrastructure** by registering fixtures, writing page objects, and resolving the correct runner commands.

### How it works
1. **Initialize** by running the probe-conventions skill to generate a `.claude/test-profile.md` file.
2. **Execute tasks** like `write-e2e-test` or `harden-locators`, which automatically read the profile to ensure consistency.
3. **Manage flow** using clarify-scope for vague requests or handoff-notes for session persistence.

### Frameworks & tools
Specifically designed for Playwright suites using TypeScript or JavaScript. Integrates with Claude Code and Cursor to interact with the local filesystem, shell, and git diffs.

### Why this beats prompting it yourself
Generic prompts often suggest "best practices" that conflict with your team's existing code style, creating friction during PRs. These skills derive their rules from your actual code, ensuring every generated spec or locator looks like your team wrote it.

### Use cases
- Auditing a pull request to ensure no assertions were accidentally widened or disabled.
- Converting a brittle suite filled with XPath selectors into one using stable roles.
- Quickly scaffolding new API client methods and corresponding request specs.
- Summarizing a complex debugging session into a handoff for another developer.

### Known limitations
Requires an initial convention probe to function accurately. Does not support non-Playwright runners like Cypress or Selenium. Requires access to the local shell to run tests.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the playwright-suite-skills skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does the skill ensure generated tests match my existing coding standards?

The suite starts by running a 'probe-conventions' skill that analyzes your Playwright config and existing codebase to create a local profile, ensuring all generated code matches your team's specific style and patterns.

### Which AI agents and programming languages are supported?

It is optimized for Playwright environments using TypeScript or JavaScript and is designed to work seamlessly with agentic interfaces like Claude Code and Cursor that have filesystem and shell access.

### How does this differ from just asking a standard LLM to write a Playwright test?

Unlike generic prompts, these skills prioritize 'consequence-based' auditing—flagging weakened assertions and security risks over simple style preferences—and use your actual repository as the source of truth for best practices.

### What exactly is included in the playwright-suite-skills package?

You receive a package of 13 specialized skills covering the entire testing lifecycle, including tools for repository probing, locator hardening, test scaffolding, and automated failure triaging.

### Are there any specific limitations or prerequisites I should be aware of?

The suite requires an initial convention probe to function effectively and currently only supports Playwright; it is not compatible with other runners like Cypress, Selenium, or Vitest.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
