cursor-rules

cursor-rules is a cursor rule for Cursor from willcoliveira/qualiow-playwright-skills. It costs 0 tokens per session (595 once invoked), scanned A, original, MIT.

Rules and workflows for end-to-end browser testing with Playwright, a tool that tests web applications by controlling a real browser.

In plain words
What is it for?
Use them when planning, writing, reviewing, or debugging Playwright tests, including tests that use page objects, response checks, polling, and retry logic.
Why use it?
They reduce unreliable tests by defining how to wait for page changes, locate elements, organize page objects, retry checks, and investigate failures.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use them when planning, writing, reviewing, or debugging Playwright tests, including tests…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/willcoliveira/qualiow-playwright-skills/cursor-rules
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.

Clone the repo
git clone --depth 1 https://github.com/willcoliveira/qualiow-playwright-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 cursor-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/willcoliveira/qualiow-playwright-skills/cursor-rules.svg)](https://agentmods.dev/rules/willcoliveira/qualiow-playwright-skills/cursor-rules)
Your own site
<a href="https://agentmods.dev/rules/willcoliveira/qualiow-playwright-skills/cursor-rules"><img src="https://agentmods.dev/badge/rules/willcoliveira/qualiow-playwright-skills/cursor-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 595 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00595
Opus 5 $0.00000 $0.00298
Sonnet 5 $0.00000 $0.00119
Haiku 4.5 $0.00000 $0.00060

Measured yesterday against content hash 0f67bda01574, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cursor-rules 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 yesterday.

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.

skills/indexes/cursor-rules.mdc · 52 lines

How it starts

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

Playwright E2E Skills

Decision Tree

  • Write a NEW test: Read test-planning → explore with playwright-cli → write using test-generation → review with test-review {{#if HAS_PLAYWRIGHT_159}}- Debug a FAILING test: Follow test-debugging workflow → use --debug=cli + CLI trace analysis → classify root cause → fix or report bug{{/if}} {{#if NO_PLAYWRIGHT_159}}- Debug a FAILING test: Follow test-debugging workflow → classify root cause → fix or report bug{{/if}}
  • Test an API with no browser: api-testing-patterns (APIRequestContext, zod contracts, bounded polling, request budgets)
  • Prove determinism: pass-rate-and-flake-analysis (N consecutive runs, the four outcomes, flake triage)
  • Understand PATTERNS: playwright-patterns (waitForResponse, toPass, expect.poll), data-strategy, page-object-conventions
  • Follow CONVENTIONS: project-conventions (MUST/SHOULD/WON'T rules)

Key Rules

MUST

  • Use web-first assertions (await expect(locator).toBeVisible())
  • Use named timeout constants, not hardcoded numbers
  • Wrap page object methods in test.step()
  • Use POM pattern — locators as readonly class properties
  • Use short inner timeouts inside toPass blocks

WON'T

  • Use XPath selectors
  • Use page.waitForTimeout() for synchronization
  • Use { force: true } on actions
  • Use networkidle in goto() or waitForLoadState()
  • Use deprecated APIs (waitForNavigation)
  • Write custom retry/polling loops (use toPass() or expect.poll())

Selector Priority

  1. getByRole() > 2. getByLabel() > 3. getByText() > 4. getByTestId() > 5. CSS selector

waitForResponse Pattern

// Setup listener BEFORE the action
const responsePromise = page.waitForResponse('**/api/data')
await page.getByRole('button', { name: 'Submit' }).click()
const response = await responsePromise

toPass Pattern

await expect(async () => {
  await expect(page.getByTestId('result')).toBeVisible({ timeout: 1_000 })
}).toPass({ timeout: 30_000, intervals: [1_000, 2_000, 5_000] })

Read the full file on GitHub · 52 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. yesterday Changed · +2 lines 0f67bda01574
  2. 6d ago First seen · 50 lines · 0 tokens per session scan A 413bfe7c6cb6

Subscribe to this mod's changes

cursor-rules is a cursor rule published in the GitHub repository willcoliveira/qualiow-playwright-skills (16 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 595 tokens. 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-30.