playwright-execute

playwright-execute is a cursor rule for Cursor from katalon-labs/true-skills. It costs 117 tokens per session (2,427 once invoked), scanned A, original, MIT.

A workflow for running Playwright tests and sending their reports to Katalon True Platform. Playwright is a tool for testing websites in real browsers using scripts or test suites.

In plain words
What is it for?
Use it to run a Playwright command, script, project, or suite, configure the Katalon reporter, collect the report, upload it, and verify the uploaded results.
Why use it?
It connects local Playwright execution with centralized Katalon reporting, so test output does not remain only on a developer's machine.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/katalon-labs/true-skills/playwright-execute
Clone the repo
git clone --depth 1 https://github.com/katalon-labs/true-skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for playwright-execute

README.md
[![agentmods](https://agentmods.dev/badge/rules/katalon-labs/true-skills/playwright-execute.svg)](https://agentmods.dev/rules/katalon-labs/true-skills/playwright-execute)
Your own site
<a href="https://agentmods.dev/rules/katalon-labs/true-skills/playwright-execute"><img src="https://agentmods.dev/badge/rules/katalon-labs/true-skills/playwright-execute.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,427 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00117 $0.02427
Opus 5 $0.00059 $0.01213
Sonnet 5 $0.00023 $0.00485
Haiku 4.5 $0.00012 $0.00243

Measured 4d ago against content hash 4a312c4baaef, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

playwright-execute scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/playwright-execute.mdc · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Katalon Playwright Execute

Use this skill when the user asks to execute a Playwright script/suite and send results to Katalon True Platform. The workflow is not complete until local execution finishes, report artifacts are collected, and upload is either verified or clearly blocked.

Execution Workflow

+------------------+ --> +------------------+ --> +------------------+
| Resolve target   |     | Preflight repo   |     | Configure report |
+------------------+     +------------------+     +------------------+
                                                        |
                                                        v
+------------------+ <-- +------------------+ <-- +------------------+
| Verify Platform  |     | Upload report    |     | Run Playwright   |
+------------------+     +------------------+     +------------------+

Required Context

Resolve or ask for only missing required values:

  • Playwright target: spec file, grep, project, package script, suite command, or user-provided command.
  • Repository/root directory that contains package.json and Playwright config.
  • Katalon Platform project ID. Use Katalon MCP list_projects when available.
  • Katalon API key from a secure source such as KATALON_API_KEY; check whether it is already available before asking.
  • Platform base URL only when non-default or when the project uses QA/prod custom domains.
  • Whether the agent may modify Playwright config/package files if the Katalon reporter is missing.

Treat the human as a tool: ask concise questions when target, credentials, project, or permission cannot be resolved safely. Never ask the user to paste secrets into normal chat when a secure secret mechanism or environment variable can be used.

Preflight

Before running:

  • Inspect the repository for package.json, playwright.config.*, @playwright/test, existing reporters, package manager lockfiles, and scripts.
  • Verify Node.js is version 18 or newer when possible.
  • Check for KATALON_API_KEY in the current process environment or the repo's approved secret mechanism before composing any upload command.
  • If KATALON_API_KEY is missing, stop before execution/upload and ask the user to provide it through a secure environment variable or secret mechanism.
  • Run dependency installation only when the repo convention is clear and the user has allowed dependency changes.
  • Confirm @katalon/playwright-reporter is installed or can be installed.
  • Verify a deterministic report output directory, preferably ./reports or the repo's existing Katalon report directory.
  • Build commands with secrets redacted in user-facing output.

Read the full file on GitHub · 245 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 245 lines · 117 tokens per session scan A 4a312c4baaef

Subscribe to this mod's changes

playwright-execute is a cursor rule published in the GitHub repository katalon-labs/true-skills (7 stars, last pushed 9d ago), licensed MIT. It adds 117 tokens to every session and 2,427 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.