templates/skills/modules/playwright/SKILL.md
Use MCP Playwright for automated browser testing and web automation.
npx skillsauth add hivellm/rulebook 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.
CRITICAL: Use MCP Playwright for automated browser testing and web automation.
await playwright.navigate({ url: "https://example.com" });
await playwright.takeScreenshot({ fullPage: true, filename: "page.png" });
// Click
await playwright.click({ element: "Submit Button", ref: "button[type='submit']" });
// Type
await playwright.type({ element: "Search", ref: "#search", text: "query" });
// Fill form
await playwright.fillForm({
fields: [
{ name: "Email", type: "textbox", ref: "#email", value: "[email protected]" },
{ name: "Password", type: "textbox", ref: "#password", value: "secret" }
]
});
// Get accessibility tree
const snapshot = await playwright.snapshot();
// Console errors
const errors = await playwright.getConsoleMessages({ onlyErrors: true });
// Network requests
const requests = await playwright.getNetworkRequests();
1. navigate to login page
2. fillForm with credentials
3. click submit button
4. waitFor dashboard text
5. verify success via snapshot
const errors = await playwright.getConsoleMessages({ onlyErrors: true });
if (errors.length > 0) {
await playwright.takeScreenshot({ filename: "error-state.png" });
}
✅ DO:
handleDialog)❌ DON'T:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-playwright"]
}
}
}
<!-- PLAYWRIGHT:END -->research
Author a rulebook task spec interactively — research, draft, ask the user clarifying questions, confirm, then create the tasks in rulebook ready for /rulebook-driver. Use when the user wants to plan/spec a feature before implementing.
development
Behavioral guidelines to reduce common LLM coding mistakes — overcomplication, sloppy refactors, hidden assumptions, weak goals. Use when writing, reviewing, or refactoring code. Auto-applies; invoke explicitly via /karpathy-guidelines or 'follow karpathy discipline'.
data-ai
Autonomous AI agent loop for iterative task implementation (@hivehub/rulebook ralph)
data-ai
Use SQL Server for enterprise relational data storage with advanced features, high availability, and Windows integration.