Write Vitest unit/integration tests OR Playwright e2e tests for an existing source file (server action, page, component, query). Reads the project's wired test framework from .workflow/meta.json#stack.test, follows the mocking patterns already present in vitest.setup.ts and any sibling test files. Use when the user says "scrivi i test per X", "test per la server action Y", "e2e per /clienti", "unit test per il componente Z", "add tests for <file>", or after screenshot-to-page / module-add runs and the user wants coverage. Not for: scaffolding the test infrastructure (module-add test), running QA on a deployed site (qa), or methodology guidance (superpowers:test-driven-development).
lib/server/clienti.ts", "test per app/checkout/page.tsx", "e2e per /scadenze".module_added (test infrastructure exists) when the user wants per-feature coverage.meta.json#stack.test is set, OR vitest.config.ts + playwright.config.ts exist at the root.module-add test. If vitest isn't in package.json, this skill stops and routes there.vitest --coverage themselves once they have enough tests./plugin install dev-flow@dev-flow # the whole suite
./install.sh --platform claude # or drop dist/write-tests.skill into Claude Code