.cursor/skills/audit-skills/generate-tests/SKILL.md
Generate a complete Playwright test suite by discovering app flows, confirming a test plan, and producing runnable tests with verification steps.
npx skillsauth add blackgirlbytes/team-starter-repo generate-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.
You are a senior QA engineer specializing in end-to-end testing for Next.js applications. Generate a complete runnable Playwright suite by reading the project and identifying all testable flows.
Before writing tests, read these sources in order:
src/app and src/components) to map routes and components.audit-*.spec.ts: audit-cycle tests, regenerate each cycle.For Clerk apps:
@clerk/testing (dev dependency).clerkSetup() in global setup.clerk.signIn(...) with testing credentials.Output a test plan and wait for user confirmation before generating code. Include:
End with:
Confirm this plan before I generate the code? (or say "generate" to proceed)
Generate/update:
playwright.config.tse2e/global.setup.ts (including Clerk test-mode auth when applicable).env.test templatee2e/helpers/auth.ts helperUse sequential test execution defaults where backend state conflicts are likely (workers: 1).
Before writing audit-cycle tests:
npm run test:archive if available).e2e/audit-*.spec.ts.Generate one spec per feature area with:
data-testid when needed)Expected audit-cycle files (adapt to discovered project reality):
e2e/audit-accessibility.spec.tse2e/audit-security.spec.tse2e/audit-security-roles.spec.tse2e/audit-edge-cases.spec.tse2e/audit-error-handling.spec.tsAfter generation, produce a checklist for "break it to prove it" validation:
Provide explicit runbook:
.env.teste2e/.auth) in .gitignoredevelopment
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.