Dev.to AI 🤖 Ai 👁 0

Made a small set of Playwright skills for myself and coding agents. Figured I'd share!

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.wa

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.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.