Cline rules
.clinerules/00-project.mdCline rules
Quality
79/100
Scores the file, not the repository.Length
427 words
6 headings · 0 code blocksRepository
0
— · pushed 61 days agoLast changed
3 days ago
First indexed 3 days ago.1# Playwright workshop — project rules (Cline)23This repo is the **Nordic Conference Playwright workshop**. App under test is **TodoMVC** at `https://demo.playwright.dev/todomvc` (set as `baseURL` in `playwright.config.ts`).45House style + workflow guidance live as on-demand skills under `.clinerules/skills/`.67## Skills available (load on-demand when relevant)89- `playwright-mcp-workflow` — orchestrator: when to use the test MCP, when to invoke an agent, when to just edit files. Read first for any Playwright task.10- `playwright-page-object` — when/how to use POM. Has a TodoMVC example at `.clinerules/skills/playwright-page-object/examples/todo.page.ts` — directly relevant to this project.11- `playwright-locators` — locator priority + auto-wait + web-first assertions12- `playwright-fixtures-auth` — custom fixtures, storage state, test isolation13- `playwright-debugging` — UI mode, codegen, trace viewer, page.pause14- `playwright-bug-hunting` — broken-image audits, console/5xx guards, a11y15- `playwright-network-mocking` — page.route, HAR record/replay16- `playwright-api-testing` — request fixture, hybrid UI + API tests1718## MCP gotcha — must read1920The MCP server `playwright-test` (`npx playwright run-test-mcp-server`) is a **test runner** MCP, not a raw browser driver. Every `browser_*` call must live inside a Playwright test context.2122**Before any `browser_*` call in a free-form session, call `planner_setup_page` first.** Otherwise the server returns *"must setup test before interacting with the page."*2324When invoking a Test Agent (planner/generator/healer in `.claude/agents/`), the agent's own setup tool handles this automatically.2526## Reference code in this repo2728- `tests/todo.spec.ts` — current example spec (add a todo item)29- `tests/seed.spec.ts` — seed test used by Test Agents (created by `init-agents`)30- `playwright.config.ts` — `baseURL: https://demo.playwright.dev`, trace on first retry, screenshot + video on failure31- `specs/` — where the Planner agent saves test plans3233No `pages/`, `tests/fixtures.ts`, or auth flow exists yet — those are patterns attendees build during the workshop. The skill examples (TodoMVC `todo.page.ts`, fixture/auth patterns) show the target style.3435## House style — quick anchors3637- **Locators**: `getByRole` → `getByLabel` → `getByPlaceholder` → `getByTestId`. The existing test uses `getByPlaceholder` and `getByTestId` — both good. Avoid CSS chains / positional XPath.38- **Waits**: never `page.waitForTimeout()`; let `await expect(locator)...` do the waiting.39- **Auth**: prefer fixtures + `storageState` files over re-logging in each test (NB: TodoMVC has no auth — relevant pattern when attendees move to apps that do).40- **Assertions**: web-first only — `await expect(locator).toX(...)`, never `expect(await locator.textContent()).toBe(...)`.4142For session flow, exercises, and the Cline-specific setup steps attendees follow, see `.roo/WORKSHOP_GUIDE.md`.4344## Keeping Roo and Cline skills in sync4546`.roo/skills/` is the canonical location; `.clinerules/skills/` is a mirror so Cline picks them up. After editing any SKILL.md, run `npm run skills:sync` to update the mirror, or `npm run skills:check` to confirm they match.47
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| BryaanF/LiantPortfolio.clinerules/project-guidelines.md · 0 | Cline rules | buildstylearchgit+2 | 96/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| prabhakar267/paper-games.clinerules/git-commit-guidelines.md · 0 | Cline rules | lint-formatstylearchgit+3 | 93/100 | 2 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| HerringtonDarkholme/megarepo.clinerules/02-development.md · 17 | Cline rules | setupbuildteststyle+3 | 92/100 | 3 days ago |
