.cursor/skills/audit-skills/debug-tests/SKILL.md
Debug Playwright failures using fresh sub-agents, optional parallelism for independent failures, and --dry-run/--debug visibility.
npx skillsauth add blackgirlbytes/team-starter-repo debug-testsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run a retry loop that fixes failing Playwright tests with fresh worker context.
/debug-tests -> configure + execute/debug-tests -in -> interactive mode/debug-tests -auto -> unattended mode/debug-tests --dry-run -> configure + discover failures + show worker plan only/debug-tests --debug -> execute with prompt/worker-trace logging/debug-tests --dry-run --debug -> show worker plan + debug log paths onlyDo not directly apply failure fixes in the orchestrator context.
At start, ask:
.cursor/debug-session.json exists):
Derived runtime values:
MODEMAX_RETRIESWORKER_MODELSTATE_FILE = .cursor/debug-session.jsonDEBUG_MODE (true if --debug is present)npx playwright test --project=chromium 2>&1
test-results.json.suites[].specs[].tests[].results[].error.message, error.stack, error.snippetSTATE_FILE if presentClassify each failure as:
Prepare worker handoff per failure:
Worker prompt template:
You are a focused test-debug worker.
Failure:
- title: [title]
- spec: [file:line]
- status: [status]
- error: [message]
- stack/snippet: [trimmed]
- prior attempts: [history]
Tasks:
1) Read relevant test and app files.
2) Identify root cause.
3) Apply one concrete fix.
4) Return:
- rootCause
- fixSummary
- filesChanged
- why this fix should resolve the failure
If debug mode is enabled:
5) Write an execution trace to: [debugExecutionPath]
6) Include:
- ## Received Context (exact worker prompt)
- ## Files Read
- ## Root Cause Analysis
- ## Fix Applied
- ## Validation Reasoning
- ## Final Output
Debug paths per worker (when --debug):
debugPromptPath: .cursor/debug-logs/[timestamp]-attempt-[N]-[failureSlug]-prompt.mddebugExecutionPath: .cursor/debug-logs/[timestamp]-attempt-[N]-[failureSlug]-execution.mdIf --debug is present, orchestrator must:
.cursor/debug-logs/ exists.[debugPromptPath].If --dry-run is present:
No workers were launched. Remove --dry-run to execute.If not dry-run:
--debug, ensure .cursor/debug-logs/ exists and write/print resolved prompts before each worker launch.npx playwright test --project=chromium 2>&1
STATE_FILE with retries, attempts, failures, fix summaries, and remaining failures.test-results.json and compare with previous attempt.attempt >= MAX_RETRIESIn -in mode, after each failed attempt:
continue -> next interactive attemptauto -> switch to unattended modestop -> end and print final summaryRemind user:
To switch models: change the model in the Cursor dropdown, then reply continue.
Print:
--debug)Delete STATE_FILE if session is complete.
test-results.json).lastCompletedAttempt and re-run tests before continuing.development
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".
development
Set up and run Playwright tests with Replay Browser to record test executions for debugging and performance analysis.
tools
Use Replay MCP to inspect the contents of https://replay.io recordings.
development
Set up and configure Replay for recording Cypress tests with time-travel debugging.