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 agentmods add commands/digi-uw/openelis-global-2/debug-playwrightgit 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.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00354 |
| Opus 5 | $0.00000 | $0.00177 |
| Sonnet 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 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.
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.
- 4d 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 (250 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
auto-browse
Auto-browse — learn, optimize, and graduate browser operations or web data-mining workflows.
research-perplexity
Run a deep research query using Perplexity's /research mode via Playwright browser automation. This is an alternative to /export-to-council that uses Perplexity's dedicated research mode instead of multi-model council.
open
SoDam-Design-Kit open 대시보드 — 검증 이력·판정서·스크린샷을 브라우저로 열람 + 재검증.
qa
Smoke or browser-walk a running app. Report only. Do not implement. Do not merge.
verify-pr
Verify a PR's frontend changes through browser automation.
gh-issue-use-cypress
Like /gh-issue-use-browser, but pinned to the Cypress MCP — use when your project runs the Cypress MCP for browser automation. Example — /gh-issue-use-cypress "Composer > Save" saving toasts failure but the record persists.