Made a small set of Playwright skills for myself so my coding agent stops writing tests I'd reject in review.
Basically agents left unguided default to stuff like:
await page.click('.btn-login-submit');
await page.waitForTimeout(2000);
Skill nudges it toward:
await page.getByRole('button', { name: 'Log in' }).click();
await expect(page.getByRole('heading', { name: /welcome/i })).toBeVisible();
4 narrow skills — core authoring, auth state, network mocking, debugging flaky tests.
Install via npx skills add hzijad/playwright-agent-skills, works with Copilot/Cursor/Claude Code/etc.
Repo: https://github.com/hzijad/playwright-agent-skills
Open to feedback if anyone's tried something similar.
Top comments (0)