.cursor/skills/e2e-playwright/SKILL.md
Playwright で E2E テストを追加する手順。E2E 追加や「ログインの E2E を書いて」と依頼されたときに使用する。
npx skillsauth add hakushun/ai-dev-starter e2e-playwrightInstall 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.
e2e/<feature>.spec.ts にファイルを追加。import { test, expect } from "@playwright/test";page.goto("/") は baseURL(localhost:5173)に対する相対パス。絶対パスで開く場合は page.goto("/about") のようにする。page.getByRole, page.getByText, page.getByTestId を優先する。expect(...).toBeVisible(), toBeEnabled(), toHaveText() など。pnpm run e2e。dev サーバーは設定で自動起動される。page で操作してよい。page.waitForSelector や expect(...).toBeVisible() で表示を待つ。development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
development
Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.
tools
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.