cursor-rules

cursor-rules is a cursor rule for Cursor from willcoliveira/qualiow-playwright-skills. It costs 597 tokens per session, 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 that use page objects, response checks, polling, and retry logic.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursor-rules

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 597 This file is loaded in full into every session.
When invoked 597 The same file — it is already loaded in full.
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.00597 $0.00597
Opus 5.5 $0.00239 $0.00239
Sonnet 5.5 $0.00119 $0.00119
Haiku 4.5 $0.00060 $0.00060

Measured 16d ago against content hash 1c75dfcfc379, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 16d 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.

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

How it starts

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

Playwright E2E Rules

Full guidance: read .agents/skills/playwright-e2e/SKILL.md and follow its decision tree before {{#if HAS_TEMPLATES}}planning, generating, reviewing or debugging{{else}}writing, reviewing or debugging{{/if}} tests.

MUST

  • Use web-first assertions (await expect(locator).toBeVisible())
  • Use named timeout constants, not hardcoded numbers
  • Wrap page object methods in test.step()
  • Keep locators as readonly class properties on page objects
  • Use short inner timeouts inside toPass blocks
  • Clean up test resources in afterEach hooks
  • Tag tests with { tag: ['@smoke'] } options, not in the title
  • Give every absence assertion (toBeHidden(), toHaveCount(0)) a presence anchor — prove the same locator matched first

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, page.$, locator.type())
  • Write custom retry/polling loops (use toPass() or expect.poll())
  • Use page.evaluate() as a workaround for missing locators

Working method

  • Explore before generate — resolve every selector against a real page, never from source
  • Below 5, emit no plan — a low confidence score means keep exploring, not caveat the proposal
  • A skeleton counts as a placeholder — TODOs and empty methods are not deliverables
  • No substitute exploration — if playwright-cli is unavailable, stop and say so
  • Stop before applying — emit the plan, wait for approval

Selector Priority

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

Browser automation

Use the official playwright-cli skill (install with npx playwright cli install --skills=agents){{#if HAS_PLAYWRIGHT_159}}; debug failing tests with npx playwright test --debug=cli and playwright-cli attach as described in .agents/skills/playwright-e2e/references/agent-debugging.md{{/if}}.

Read the full file on GitHub · 42 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. 16d ago Changed · +1 lines · +30 tokens per session 1c75dfcfc379
  2. 1mo ago Changed · +9 lines · +144 tokens per session 8622d7c1bfdc
  3. 1mo ago Changed · -20 lines · +423 tokens per session c95035118437
  4. 1mo ago Changed · +2 lines 0f67bda01574
  5. 1mo 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 (18 stars, last pushed 17d ago), licensed MIT. It adds 597 tokens to every session, about $0.0024 per session on Opus 5.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-30.