[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X7E83PNNGJX4V8AV4MDB2K":3,"skill-same:01M6X7E83PNNGJX4V8AV4MDB2K":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":58,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6X7E83PNNGJX4V8AV4MDB2K","playwright-architect",null,"Use when shaping a Playwright suite — locator strategy, Page Object boundaries, fixture composition, flake-prevention architecture, CI-vs-local split — even on 'design our E2E tests'.","event4u-app\u002Fagent-config","event4u-app","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F199339632?v=4","01M6X5TWBNCQCE1VDKT4E9KF7N","event4u.app","01M6X5TWF4HRM266RG2Q5VVH1X",19,"MIT","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fplaywright-architect\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"playwright architect","playwright","architect","shaping","when","suite","flake","tests","fixture","local","engineer","page","frontend","Composition","prevention","developer","ci","e2e tests","architecture","design","2026-11-10 10:12:30",false,"---\nmodel_tier: high\nname: playwright-architect\ndescription: \"Use when shaping a Playwright suite — locator strategy, Page Object boundaries, fixture composition, flake-prevention architecture, CI-vs-local split — even on 'design our E2E tests'.\"\npersonas:\n  - frontend-engineer\ndomain: quality\nrecommended_for_user_types: [developer]\nworkspaces:\n  - engineering\npacks:\n  - engineering-base\n---\n\n# playwright-architect\n\n> Architectural lens **above** the existing tactical\n> [`playwright-testing`](..\u002Fplaywright-testing\u002FSKILL.md). Decides\n> locator philosophy, Page Object boundaries, fixture composition,\n> and the CI-vs-local split *before* the first test is written.\n> The `playwright-testing` skill handles concrete assertions,\n> selectors, and visual-regression mechanics once the design is\n> locked.\n\n## When to use\n\n- A new Playwright suite is starting and the directory shape, fixture\n  hierarchy, and locator strategy are unsettled.\n- An existing suite has flake > 2 % runs, slow CI (> 10 min), or a\n  god-test file mixing unrelated journeys.\n- A second app \u002F surface (admin, mobile-web, embedded widget) needs\n  to share fixtures with the main suite.\n- German triggers: \"Playwright Setup planen\", \"Page Objects schneiden\",\n  \"warum flaket der Test?\".\n\nDo NOT use when:\n\n- A single test fails and the question is the assertion or selector\n  — route to [`playwright-testing`](..\u002Fplaywright-testing\u002FSKILL.md).\n- The platform is mobile-native (Detox, Appium, Maestro) — route to\n  [`mobile-e2e-strategy`](..\u002Fmobile-e2e-strategy\u002FSKILL.md).\n- Unit \u002F component tests are the question — Playwright is the wrong\n  tool; route to the stack-specific testing skill.\n\n## Procedure\n\n### 1. Inspect the suite, pick the locator philosophy\n\nReview existing tests for current locator patterns; the established\nstrategy wins unless it is the \"last resort\" tier. One philosophy\nper suite, written into `CONTRIBUTING-tests.md`:\n\n| Strategy | When |\n|---|---|\n| `getByRole` + accessible name | Default — couples tests to the user contract, not markup |\n| `data-testid` | Legacy markup, third-party widgets, hash-suffixed CSS modules |\n| Text content (`getByText`) | Static marketing pages, copy-stable surfaces |\n| CSS \u002F XPath | Last resort — every use is a debt entry |\n\nMixing strategies inside one test file is the smell — pick one and\nfall back only with comment.\n\n### 2. Cut Page Object boundaries\n\nA Page Object owns: (a) one URL or one logical surface (modal,\ndrawer), (b) the locators on that surface, (c) the **actions** a\nuser can perform there. It does NOT own assertions about other\nsurfaces or test setup. Boundary rule: if two POs need to call\neach other, introduce a **flow object** (`SignupFlow`) above them.\n\n### 3. Compose fixtures, don't inherit\n\nPlaywright fixtures stack via `test.extend()`. Three layers max:\n\n| Layer | Owns |\n|---|---|\n| Base | Browser, context, storageState, network mocks |\n| Auth | Logged-in user states (admin, member, guest) |\n| Domain | Pre-seeded entities for a journey |\n\nDeeper stacks become un-debuggable; flatten by extracting helpers.\n\n### 4. Plan flake prevention before the first failure\n\nBake in: auto-retry on network idle, soft assertions for parallel\nchecks, deterministic seed data, time freezing (`page.clock`),\nexplicit `expect.poll()` for eventual consistency, no\n`waitForTimeout` ever. If a test needs `sleep`, the fixture is\nwrong.\n\n### 5. Split CI vs local execution\n\nLocal: headed browser, single worker, slowMo enabled, video off,\ntrace-on-retry. CI: headless, sharded workers (2–8), trace-on-first-retry,\nvideo-on-failure, Github reporter + HTML. Document both in\n`playwright.config.ts`; do not let local config leak into CI.\n\n## Output format\n\nReturn:\n\n1. Locator + Page Object plan — chosen strategy, PO list with surface\n   and action count, flow objects when ≥ 2 POs collaborate.\n2. Fixture composition — base \u002F auth \u002F domain layer with what each\n   layer sets up.\n3. Parallelism + flake budget — worker count, shard strategy,\n   isolation, target flake ceiling, CI-vs-local config delta.\n\nConcrete shape:\n\n```\nSuite:            \u003Cname>\nLocator strategy: \u003CgetByRole | data-testid | text | mixed (justified)>\nPage Objects:     \u003Clist with surface owned + action count>\nFlow objects:     \u003Clist — only when ≥ 2 POs collaborate>\nFixture layers:   base \u002F auth \u002F domain — each with what it sets up\nParallelism:      \u003Cworkers, shards, isolation strategy>\nFlake budget:     ≤ 1 % failure on green main; alert threshold\nCI-vs-local:      \u003Ckey config delta, one bullet each>\n```\n\n## Gotcha\n\n- `page.waitForSelector` is almost always wrong — `expect(locator).toBeVisible()`\n  has built-in retry. The former teaches devs to think \"wait, then\n  assert\" instead of \"auto-retry assertion\".\n- Storage-state reuse across workers requires cookie domain\n  isolation; the same `auth.json` across two browsers in parallel\n  shares a session and corrupts state.\n- Visual regression in CI requires identical fonts and renderer —\n  pin the Docker image, never run visual tests against host\n  Chromium.\n- One Page Object per URL **looks** clean but creates god-objects\n  for SPA routes; cut by *user surface*, not by `pathname`.\n\n## Do NOT\n\n- Do NOT cite this skill alongside [`playwright-testing`](..\u002Fplaywright-testing\u002FSKILL.md)\n  in the same step — they sit at different tiers; pick one per phase.\n- Do NOT design suites for component tests with this skill —\n  Playwright Component Testing has different fixture rules; route\n  there instead.\n- Do NOT promise zero flake; budget for ≤ 1 % and instrument the\n  metric. Zero is a goal that disguises silent retries.\n- Do NOT push the architecture into the tracker as code AC — output\n  is a design note for refinement, not implementation steps.\n","# playwright-architect\n\n> Architectural lens **above** the existing tactical\n> [`playwright-testing`](..\u002Fplaywright-testing\u002FSKILL.md). Decides\n> locator philosophy, Page Object boundaries, fixture composition,\n> and the CI-vs-local split *before* the first test is written.\n> The `playwright-testing` skill handles concrete assertions,\n> selectors, and visual-regression mechanics once the design is\n> locked.\n\n## When to use\n\n- A new Playwright suite is starting and the directory shape, fixture\n  hierarchy, and locator strategy are unsettled.\n- An existing suite has flake > 2 % runs, slow CI (> 10 min), or a\n  god-test file mixing unrelated journeys.\n- A second app \u002F surface (admin, mobile-web, embedded widget) needs\n  to share fixtures with the main suite.\n- German triggers: \"Playwright Setup planen\", \"Page Objects schneiden\",\n  \"warum flaket der Test?\".\n\nDo NOT use when:\n\n- A single test fails and the question is the assertion or selector\n  — route to [`playwright-testing`](..\u002Fplaywright-testing\u002FSKILL.md).\n- The platform is mobile-native (Detox, Appium, Maestro) — route to\n  [`mobile-e2e-strategy`](..\u002Fmobile-e2e-strategy\u002FSKILL.md).\n- Unit \u002F component tests are the question — Playwright is the wrong\n  tool; route to the stack-specific testing skill.\n\n## Procedure\n\n### 1. Inspect the suite, pick the locator philosophy\n\nReview existing tests for current locator patterns; the established\nstrategy wins unless it is the \"last resort\" tier. One philosophy\nper suite, written into `CONTRIBUTING-tests.md`:\n\n| Strategy | When |\n|---|---|\n| `getByRole` + accessible name | Default — couples tests to the user contract, not markup |\n| `data-testid` | Legacy markup, third-party widgets, hash-suffixed CSS modules |\n| Text content (`getByText`) | Static marketing pages, copy-stable surfaces |\n| CSS \u002F XPath | Last resort — every use is a debt entry |\n\nMixing strategies inside one test file is the smell — pick one and\nfall back only with comment.\n\n### 2. Cut Page Object boundaries\n\nA Page Object owns: (a) one URL or one logical surface (modal,\ndrawer), (b) the locators on that surface, (c) the **actions** a\nuser can perform there. It does NOT own assertions about other\nsurfaces or test setup. Boundary rule: if two POs need to call\neach other, introduce a **flow object** (`SignupFlow`) above them.\n\n### 3. Compose fixtures, don't inherit\n\nPlaywright fixtures stack via `test.extend()`. Three layers max:\n\n| Layer | Owns |\n|---|---|\n| Base | Browser, context, storageState, network mocks |\n| Auth | Logged-in user states (admin, member, guest) |\n| Domain | Pre-seeded entities for a journey |\n\nDeeper stacks become un-debuggable; flatten by extracting helpers.\n\n### 4. Plan flake prevention before the first failure\n\nBake in: auto-retry on network idle, soft assertions for parallel\nchecks, deterministic seed data, time freezing (`page.clock`),\nexplicit `expect.poll()` for eventual consistency, no\n`waitForTimeout` ever. If a test needs `sleep`, the fixture is\nwrong.\n\n### 5. Split CI vs local execution\n\nLocal: headed browser, single worker, slowMo enabled, video off,\ntrace-on-retry. CI: headless, sharded workers (2–8), trace-on-first-retry,\nvideo-on-failure, Github reporter + HTML. Document both in\n`playwright.config.ts`; do not let local config leak into CI.\n\n## Output format\n\nReturn:\n\n1. Locator + Page Object plan — chosen strategy, PO list with surface\n   and action count, flow objects when ≥ 2 POs collaborate.\n2. Fixture composition — base \u002F auth \u002F domain layer with what each\n   layer sets up.\n3. Parallelism + flake budget — worker count, shard strategy,\n   isolation, target flake ceiling, CI-vs-local config delta.\n\nConcrete shape:\n\n```\nSuite:            \u003Cname>\nLocator strategy: \u003CgetByRole | data-testid | text | mixed (justified)>\nPage Objects:     \u003Clist with surface owned + action count>\nFlow objects:     \u003Clist — only when ≥ 2 POs collaborate>\nFixture layers:   base \u002F auth \u002F domain — each with what it sets up\nParallelism:      \u003Cworkers, shards, isolation strategy>\nFlake budget:     ≤ 1 % failure on green main; alert threshold\nCI-vs-local:      \u003Ckey config delta, one bullet each>\n```\n\n## Gotcha\n\n- `page.waitForSelector` is almost always wrong — `expect(locator).toBeVisible()`\n  has built-in retry. The former teaches devs to think \"wait, then\n  assert\" instead of \"auto-retry assertion\".\n- Storage-state reuse across workers requires cookie domain\n  isolation; the same `auth.json` across two browsers in parallel\n  shares a session and corrupts state.\n- Visual regression in CI requires identical fonts and renderer —\n  pin the Docker image, never run visual tests against host\n  Chromium.\n- One Page Object per URL **looks** clean but creates god-objects\n  for SPA routes; cut by *user surface*, not by `pathname`.\n\n## Do NOT\n\n- Do NOT cite this skill alongside [`playwright-testing`](..\u002Fplaywright-testing\u002FSKILL.md)\n  in the same step — they sit at different tiers; pick one per phase.\n- Do NOT design suites for component tests with this skill —\n  Playwright Component Testing has different fixture rules; route\n  there instead.\n- Do NOT promise zero flake; budget for ≤ 1 % and instrument the\n  metric. Zero is a goal that disguises silent retries.\n- Do NOT push the architecture into the tracker as code AC — output\n  is a design note for refinement, not implementation steps.\n",{"name":5,"packs":44,"domain":46,"personas":47,"model_tier":49,"workspaces":50,"description":7,"recommended_for_user_types":52},[45],"engineering-base","quality",[48],"frontend-engineer","high",[51],"engineering",[34],"main","12bd765ce1d800501d45dfb8232102793af01290","src\u002Fskills\u002Fplaywright-architect",1,"https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config","https:\u002F\u002Fevent4u.app","https:\u002F\u002Fgithub.com\u002Fevent4u-app","Your events in your hand","2026-11-14 02:29:41",{"source":8,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add event4u-app\u002Fagent-config --skill playwright-architect",{"tool":68,"command":69},"bunx","bunx skills add event4u-app\u002Fagent-config --skill playwright-architect",{"tool":71,"command":72},"pnpm","pnpm dlx skills add event4u-app\u002Fagent-config --skill playwright-architect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fplaywright-architect\u002FSKILL.md",true,[],[77,89,100,110,121,130],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":39},"01M6X84PK96XBPENXH66JCTSD1","unknown-key-fixture","Declares a key the schema does not know.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Fscripts\u002Ffixtures\u002Fbody-portable\u002Funknown-key\u002FSKILL.md",[],[84,85,27,86,87,88],"unknown key fixture","Unknown key","unknown","schema","package",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":39},"01M6X84HW7NAHZ7GZMQ9RXK1XJ","portable-fixture","Declares only semantics the MCP-lite carrier transports whole.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Fscripts\u002Ffixtures\u002Fbody-portable\u002Fportable\u002FSKILL.md",[],[27,96,97,29,98,88,99],"portable","portable fixture","only","MCP",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M6X84F29FE0RGGZ1ZTFGZTX2","non-portable-fixture","Declares a runtime semantic the carrier drops.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Fscripts\u002Ffixtures\u002Fbody-portable\u002Fnon-portable\u002FSKILL.md",[],[97,107,96,27,108,49,109,88],"non portable fixture","semantic","runtime",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":39},"01M6X848F706PT9MDCX75JKJ6B","candidate-zero-width","A candidate whose prose carries an invisible joiner.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-scout-candidates\u002Fzero-width-injection\u002FSKILL.md",[],[117,118,119,120],"candidate zero width","candidate","ZeRO","prose",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":39},"01M6X841SSC2T31VDF41SA6DG1","candidate-disclosure-suppression","A candidate whose prose tells the agent to withhold from the user.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-scout-candidates\u002Fdisclosure-suppression\u002FSKILL.md",[],[128,118,120,129],"candidate disclosure suppression","user",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":39},"01M6X83TFS5AGPBPVTQNWP0BB3","candidate-dangerous-frontmatter","A candidate claiming an unscoped tool grant and a permission bypass.","https:\u002F\u002Fgithub.com\u002Fevent4u-app\u002Fagent-config\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-scout-candidates\u002Fdangerous-frontmatter\u002FSKILL.md",[],[137,118,138,139,140,141],"candidate dangerous frontmatter","frontmatter","shell","permission","tool"]