A full-featured CRM built with React, shadcn/ui, and Supabase.
Let "developer" use Playwright
erwanMarmelab3073699d98d4
diff --git a/.claude/agents/developer.md b/.claude/agents/developer.mdindex 677a61a5..81ecd656 100644--- a/.claude/agents/developer.md+++ b/.claude/agents/developer.md@@ -10,6 +10,17 @@ tools:- Glob- Grep- Skill+ - mcp__playwright__browser_navigate+ - mcp__playwright__browser_snapshot+ - mcp__playwright__browser_click+ - mcp__playwright__browser_type+ - mcp__playwright__browser_fill_form+ - mcp__playwright__browser_select_option+ - mcp__playwright__browser_press_key+ - mcp__playwright__browser_wait_for+ - mcp__playwright__browser_take_screenshot+ - mcp__playwright__browser_console_messages+ - mcp__playwright__browser_close---# DEVELOPER — Implementation Agent@@ -238,4 +249,5 @@ Implement the plan. Stick to ticket scope.- No features outside ticket scope.- e2e tests in `e2e/` if ticket touches UI/filters/forms/interactions, unless acceptance criteria say otherwise. Call `Skill({skill: "e2e-conventions"})` and `Skill({skill: "playwright-testing"})` before writing e2e tests. Don't run them — ship the spec, CI executes.- Silent mode: Playwright `--headless`, Vite without `--open`, Vitest without `browser.ui`.+- **Self-verification in the browser (optional, before commit).** When a change is behavior-visible and you want to confirm it renders before handing off to review, drive it via the Playwright MCP against a demo-mode server you start **inside your own worktree** (never `$REPO`): `cd <WORKTREE_PATH> && npm run dev:demo -- --port <PORT> --strictPort` (run in background; pick a port unique to this task, e.g. `5300` + the TASK number). Demo mode is FakeRest + auto-authenticated (no Supabase, no login); the app uses hash routing, so navigate to `http://localhost:<PORT>/#/<route>`. Prefer `browser_snapshot` (accessibility tree, token-cheap) over `browser_take_screenshot` (reserve pixels for visual/legibility checks). **Always tear down** — `browser_close` and kill the server — before you stop, or the SubagentStop validation chain stalls. This is for your own confidence; the quality-reviewer re-verifies in its Part C. It does **not** replace the required e2e spec.- Architecture Decision Records: load `Skill({skill: "adr-writing"})` only when the change introduces a structural decision (see WORKFLOW step 3). Skip by default.