Borrowing it
Nothing to install: this file belongs to DIGI-UW/OpenELIS-Global-2. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/DIGI-UW/OpenELIS-Global-2/develop/.ai/skills/playwright/commands/debug-playwright.mdgit clone --depth 1 https://github.com/DIGI-UW/OpenELIS-Global-2Wrote 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/commands/digi-uw/openelis-global-2/debug-playwright)<a href="https://agentmods.dev/commands/digi-uw/openelis-global-2/debug-playwright"><img src="https://agentmods.dev/badge/commands/digi-uw/openelis-global-2/debug-playwright/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/commands/digi-uw/openelis-global-2/debug-playwright"><img src="https://agentmods.dev/badge/commands/digi-uw/openelis-global-2/debug-playwright.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.00000 | $0.00354 |
| Opus 5.5 | $0.00000 | $0.00142 |
| Sonnet 5.5 | $0.00000 | $0.00071 |
| Haiku 4.5 | $0.00000 | $0.00035 |
Grade A, and why
debug-playwright 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 1mo 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.
What it actually says
Debug Playwright
Use this command to debug failing Playwright tests in a source-first, evidence-first workflow.
User Input
$ARGUMENTS
Interpret input best-effort:
/debug-playwright- diagnose current failing test context/debug-playwright <spec-file>- target a specific spec/debug-playwright <spec-file> --project <name>- target specific project
Workflow
-
Read source before edits
- Read the failing spec
- Read any page object/helper methods it calls
- Read relevant UI component source when selector behavior is unclear
-
Gather runtime evidence
- Review failure screenshot(s) under
frontend/test-results/ - Open Playwright trace if available
- Use headed or UI mode if runtime state is still ambiguous
- Review failure screenshot(s) under
-
Diagnose before trying alternatives
- State root cause hypothesis from source + runtime evidence
- Confirm whether failure is selector, timing, data, or navigation
- Do not iterate through locator syntax guesses blindly
-
Apply minimal fix
- Prefer stable
data-testid/semantic locator updates - Replace brittle CSS fallback selectors where possible
- Avoid
.first()unless there is no stable unique selector
- Prefer stable
-
Validate
- Run the narrowest command first (single spec + project)
- Verify project registration with:
python .ai/skills/playwright/scripts/validate-playwright-project.py <spec> - Re-run broader scope only after targeted pass
Required References
.ai/skills/playwright/reference/debug-workflow.md.ai/skills/playwright/reference/selector-policy.md
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.
- 1mo ago First seen · 54 lines · 0 tokens per session scan A 9d6da4e4381a
debug-playwright is a command published in the GitHub repository DIGI-UW/OpenELIS-Global-2 (272 stars, last pushed today), licensed MPL-2.0. It costs nothing until one of its globs matches a file; then it loads 354 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.
Other commands, from other repositories
playwright-test-heal
Run all my tests and fix the failing ones.
debug
Deep-dive artifact analysis for diagnosing E2E test failures.
verify-bug
Post-merge UAT verification workflow. Walks JIRA reproduce steps, performs comparative audits (Before/After), attaches evidence to JIRA, and transitions status on PASS.
ui-aqa-flow-test-report-analysis
Phase 7 Test Report Analysis of ui-aqa-flow.
fix
Correction automatisee des bugs identifies par la QA Recette.
break
Try to break a change on a disposable local stack: restarts, races, dependency failures, shipped defaults, users acting out of order.