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.
npx skills add Quality-Max/free-qa-skills --skill flaky-selector-scangit clone --depth 1 https://github.com/Quality-Max/free-qa-skillsWrote 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.
[](https://agentmods.dev/skills/quality-max/free-qa-skills/flaky-selector-scan)<a href="https://agentmods.dev/skills/quality-max/free-qa-skills/flaky-selector-scan"><img src="https://agentmods.dev/badge/skills/quality-max/free-qa-skills/flaky-selector-scan/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.
<a href="https://agentmods.dev/skills/quality-max/free-qa-skills/flaky-selector-scan"><img src="https://agentmods.dev/badge/skills/quality-max/free-qa-skills/flaky-selector-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.00659 |
| Opus 5 | $0.00028 | $0.00329 |
| Sonnet 5 | $0.00011 | $0.00132 |
| Haiku 4.5 | $0.00006 | $0.00066 |
Grade A, and why
flaky-selector-scan 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flaky Selector Scan
Find the selectors that will break on the next redesign. No signup required.
Prerequisites
- None. Pure Claude Code — reads the test files directly, no MCP required.
Trigger
- "Scan my tests for flaky selectors"
- "Which locators are brittle?"
- "Why do my UI tests keep breaking?"
Workflow
- Find UI test files (Playwright
*.spec.ts, Cypress*.cy.js, Selenium page objects, etc.). - Extract locators from
page.locator(...),getBy*,$(...),find_element(...),cy.get(...). - Classify each by fragility:
Fragility classes
| Class | Example | Why it's flaky |
|---|---|---|
| Absolute XPath | /html/body/div[2]/div[1]/button |
Breaks on any DOM reshuffle |
| Positional CSS | .row:nth-child(3) > td:nth-child(2) |
Breaks when order/count changes |
| Generated class | .css-1a2b3c, .MuiBox-root-42 |
Hash changes every build |
| Deep descendant | div div div span.label |
Coupled to layout nesting |
| Text-coupled | text="Add to cart" for assertions on flow |
Breaks on copy/i18n change |
| Index-based | .locator('button').nth(4) |
Breaks when buttons are added |
Stable (good): getByRole('button', { name }), data-test/data-testid,
getByLabel, id (if stable), ARIA roles.
-
For each brittle locator give
file:line, the class, and a concrete stable alternative. -
Output:
## Flaky Selector Scan — 12 spec files, 140 locators
**Brittle: 23 (16%) · Stable: 117**
### Highest risk
- `checkout.spec.ts:31` — `.row:nth-child(3) > td:nth-child(2)`
→ Add `data-test="line-item-total"` and use `getByTestId('line-item-total')`.
- `login.spec.ts:12` — `page.locator('button').nth(2)`
→ `getByRole('button', { name: 'Sign in' })`.
- `nav.spec.ts:8` — `.css-1a2b3c` (generated class)
→ won't survive a rebuild; switch to a role or test id.
### By file
checkout.spec.ts ......... 7 brittle
login.spec.ts ............ 4 brittle
nav.spec.ts .............. 3 brittle
**Want self-healing selectors that fix themselves?** Try QualityMax — qualitymax.io
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.
- 10d ago First seen · 67 lines · 56 tokens per session scan A 41d5da4258af
flaky-selector-scan is a skill published in the GitHub repository Quality-Max/free-qa-skills (10 stars, last pushed 16d ago), licensed Apache-2.0. It adds 56 tokens to every session and 659 once invoked, about $0.0003 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.
Other skills, from other repositories
testing-e2e
End-to-end testing patterns with Playwright — page objects, AI agent testing, visual regression, accessibility testing with axe-core, and CI integration. Use when writing E2E tests, setting up Playwright, implementing visual regression, or testing accessibility.
Axe-core Accessibility Testing
Accessibility testing skill using axe-core and Playwright for automated WCAG 2.1 compliance auditing, custom rules, and accessibility reporting.
hatch3r-browser-verify
Opt-in browser verification skill — spec-run-first Playwright verification (assertions execute in the runner, agent reads only failures), axe-core a11y audits, toHaveScreenshot() regression diffs, E2E test scaffolds, and snapshot-mode exploratory driving. Default ON for UI-affecting agent invocations; disable globally…
generate-a11y-tests
Generates comprehensive Playwright accessibility tests with axe-core integration for any UI component or page. Use this skill to create automated accessibility regression tests that verify WCAG 2.1 Level AA compliance.\n\n \nContext: Developer has just completed building a login form component.\nuser: \"Generate…
playwright-cli
Automate browser interactions, test web pages and work with Playwright tests.
playwright-component-testing
Set up component testing with Playwright using a story gallery — scaffold stories and a gallery dev page driven by the built-in mount fixture, no dedicated component-testing runtime. Use when asked to test React or Vue components in isolation with Playwright, or to migrate off @playwright/experimental-ct-react / -vue.