[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D9EFSPBBHXRFAWGFX50WHM":3,"skill-same:01M6D9EFSPBBHXRFAWGFX50WHM":65},{"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":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M6D9EFSPBBHXRFAWGFX50WHM","fix",null,"Fix failing or flaky Playwright tests. Use when user says \"fix test\", \"flaky test\", \"test failing\", \"debug test\", \"test broken\", \"test passes sometimes\", or \"intermittent failure\".","oabdelmaksoud\u002FAgention","oabdelmaksoud","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F50699149?v=4","01M6D5CVVN778ZCDP1WHS816SP","Omar Abdelmaksoud","01M6D8A4TE76V3DCSH3D94VG1V",2,"MIT","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-import\u002Fclaude-skills\u002Freferences\u002Fengineering-team\u002Fplaywright-pro\u002Fskills\u002Ffix\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26],"playwright","test","debug","debug test","broken","user","use","tests","2026-11-10 10:12:30",false,"---\nname: fix\ndescription: >-\n  Fix failing or flaky Playwright tests. Use when user says \"fix test\",\n  \"flaky test\", \"test failing\", \"debug test\", \"test broken\", \"test passes\n  sometimes\", or \"intermittent failure\".\n---\n\n# Fix Failing or Flaky Tests\n\nDiagnose and fix a Playwright test that fails or passes intermittently using a systematic taxonomy.\n\n## Input\n\n`$ARGUMENTS` contains:\n- A test file path: `e2e\u002Flogin.spec.ts`\n- A test name: `\"should redirect after login\"`\n- A description: `\"the checkout test fails in CI but passes locally\"`\n\n## Steps\n\n### 1. Reproduce the Failure\n\nRun the test to capture the error:\n\n```bash\nnpx playwright test \u003Cfile> --reporter=list\n```\n\nIf the test passes, it's likely flaky. Run burn-in:\n\n```bash\nnpx playwright test \u003Cfile> --repeat-each=10 --reporter=list\n```\n\nIf it still passes, try with parallel workers:\n\n```bash\nnpx playwright test --fully-parallel --workers=4 --repeat-each=5\n```\n\n### 2. Capture Trace\n\nRun with full tracing:\n\n```bash\nnpx playwright test \u003Cfile> --trace=on --retries=0\n```\n\nRead the trace output. Use `\u002Fdebug` to analyze trace files if available.\n\n### 3. Categorize the Failure\n\nLoad `flaky-taxonomy.md` from this skill directory.\n\nEvery failing test falls into one of four categories:\n\n| Category | Symptom | Diagnosis |\n|---|---|---|\n| **Timing\u002FAsync** | Fails intermittently everywhere | `--repeat-each=20` reproduces locally |\n| **Test Isolation** | Fails in suite, passes alone | `--workers=1 --grep \"test name\"` passes |\n| **Environment** | Fails in CI, passes locally | Compare CI vs local screenshots\u002Ftraces |\n| **Infrastructure** | Random, no pattern | Error references browser internals |\n\n### 4. Apply Targeted Fix\n\n**Timing\u002FAsync:**\n- Replace `waitForTimeout()` with web-first assertions\n- Add `await` to missing Playwright calls\n- Wait for specific network responses before asserting\n- Use `toBeVisible()` before interacting with elements\n\n**Test Isolation:**\n- Remove shared mutable state between tests\n- Create test data per-test via API or fixtures\n- Use unique identifiers (timestamps, random strings) for test data\n- Check for database state leaks\n\n**Environment:**\n- Match viewport sizes between local and CI\n- Account for font rendering differences in screenshots\n- Use `docker` locally to match CI environment\n- Check for timezone-dependent assertions\n\n**Infrastructure:**\n- Increase timeout for slow CI runners\n- Add retries in CI config (`retries: 2`)\n- Check for browser OOM (reduce parallel workers)\n- Ensure browser dependencies are installed\n\n### 5. Verify the Fix\n\nRun the test 10 times to confirm stability:\n\n```bash\nnpx playwright test \u003Cfile> --repeat-each=10 --reporter=list\n```\n\nAll 10 must pass. If any fail, go back to step 3.\n\n### 6. Prevent Recurrence\n\nSuggest:\n- Add to CI with `retries: 2` if not already\n- Enable `trace: 'on-first-retry'` in config\n- Add the fix pattern to project's test conventions doc\n\n## Output\n\n- Root cause category and specific issue\n- The fix applied (with diff)\n- Verification result (10\u002F10 passes)\n- Prevention recommendation\n","# Fix Failing or Flaky Tests\n\nDiagnose and fix a Playwright test that fails or passes intermittently using a systematic taxonomy.\n\n## Input\n\n`$ARGUMENTS` contains:\n- A test file path: `e2e\u002Flogin.spec.ts`\n- A test name: `\"should redirect after login\"`\n- A description: `\"the checkout test fails in CI but passes locally\"`\n\n## Steps\n\n### 1. Reproduce the Failure\n\nRun the test to capture the error:\n\n```bash\nnpx playwright test \u003Cfile> --reporter=list\n```\n\nIf the test passes, it's likely flaky. Run burn-in:\n\n```bash\nnpx playwright test \u003Cfile> --repeat-each=10 --reporter=list\n```\n\nIf it still passes, try with parallel workers:\n\n```bash\nnpx playwright test --fully-parallel --workers=4 --repeat-each=5\n```\n\n### 2. Capture Trace\n\nRun with full tracing:\n\n```bash\nnpx playwright test \u003Cfile> --trace=on --retries=0\n```\n\nRead the trace output. Use `\u002Fdebug` to analyze trace files if available.\n\n### 3. Categorize the Failure\n\nLoad `flaky-taxonomy.md` from this skill directory.\n\nEvery failing test falls into one of four categories:\n\n| Category | Symptom | Diagnosis |\n|---|---|---|\n| **Timing\u002FAsync** | Fails intermittently everywhere | `--repeat-each=20` reproduces locally |\n| **Test Isolation** | Fails in suite, passes alone | `--workers=1 --grep \"test name\"` passes |\n| **Environment** | Fails in CI, passes locally | Compare CI vs local screenshots\u002Ftraces |\n| **Infrastructure** | Random, no pattern | Error references browser internals |\n\n### 4. Apply Targeted Fix\n\n**Timing\u002FAsync:**\n- Replace `waitForTimeout()` with web-first assertions\n- Add `await` to missing Playwright calls\n- Wait for specific network responses before asserting\n- Use `toBeVisible()` before interacting with elements\n\n**Test Isolation:**\n- Remove shared mutable state between tests\n- Create test data per-test via API or fixtures\n- Use unique identifiers (timestamps, random strings) for test data\n- Check for database state leaks\n\n**Environment:**\n- Match viewport sizes between local and CI\n- Account for font rendering differences in screenshots\n- Use `docker` locally to match CI environment\n- Check for timezone-dependent assertions\n\n**Infrastructure:**\n- Increase timeout for slow CI runners\n- Add retries in CI config (`retries: 2`)\n- Check for browser OOM (reduce parallel workers)\n- Ensure browser dependencies are installed\n\n### 5. Verify the Fix\n\nRun the test 10 times to confirm stability:\n\n```bash\nnpx playwright test \u003Cfile> --repeat-each=10 --reporter=list\n```\n\nAll 10 must pass. If any fail, go back to step 3.\n\n### 6. Prevent Recurrence\n\nSuggest:\n- Add to CI with `retries: 2` if not already\n- Enable `trace: 'on-first-retry'` in config\n- Add the fix pattern to project's test conventions doc\n\n## Output\n\n- Root cause category and specific issue\n- The fix applied (with diff)\n- Verification result (10\u002F10 passes)\n- Prevention recommendation\n",{"name":5,"description":7},"main","a318f48de3c5718e8ea2e9f6fae7790e8a759e85","upstream-import\u002Fclaude-skills\u002Freferences\u002Fengineering-team\u002Fplaywright-pro\u002Fskills\u002Ffix",0,"https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fo-abdelmaksoud\u002F","Full-Stack Engineer | AI Systems Architect | Building autonomous multi-agent systems","2026-03-08 21:23:03",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add oabdelmaksoud\u002FAgention --skill fix",{"tool":47,"command":48},"bunx","bunx skills add oabdelmaksoud\u002FAgention --skill fix",{"tool":50,"command":51},"pnpm","pnpm dlx skills add oabdelmaksoud\u002FAgention --skill fix","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-import\u002Fclaude-skills\u002Freferences\u002Fengineering-team\u002Fplaywright-pro\u002Fskills\u002Ffix\u002FSKILL.md",true,[55,61],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"agents\u002Fopenai.yaml","REFERENCE","参考文档",82,"https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcyber-hunting-bootkits-in-efi-system-partition\u002Fagents\u002Fopenai.yaml",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"flaky-taxonomy.md",3496,"https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-import\u002Fclaude-skills\u002Freferences\u002Fengineering-team\u002Fplaywright-pro\u002Fskills\u002Ffix\u002Fflaky-taxonomy.md",[66,85,99,118,144,163],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":27},"01M6G2QFCBNBYAJF2KTK85G9A6","visa-doc-translate","Translate visa application documents (images) to English and create a bilingual PDF with original and translation","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fvisa-doc-translate\u002FSKILL.md",[],[73,74,75,76,77,78,79,80,81,82,83,84],"translate","doc","visa doc translate","bilingual","with","english","application","PDF","translation","documents","create","images",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":27},"01M6G2QB09TSK6BY4ME5X20EVQ","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[92,93,94,95,96,97,98],"verification","loop","verification loop","sessions","code","claude code sessions","system",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":27},"01M6G2Q6V2F7G03VAAF27FXPJR","tdd-workflow","Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Ftdd-workflow\u002FSKILL.md",[],[106,107,108,25,109,110,111,112,113,96,114,115,26,116,77,20,117],"workflow","tdd","tdd workflow","unit","coverage","refactoring","e2e","integration","development","e2e tests","driven","writing",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":27},"01M6G2Q359YJRWAR2PFCEQAXF3","swiftui-patterns","SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS\u002FmacOS UI best practices.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fswiftui-patterns\u002FSKILL.md",[],[125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,77],"patterns","swiftui","swiftui patterns","architecture","macos","performance","state management","best practices","state","ui","Optimization","ios","architecture patterns","Composition","performance optimization","view","management","swiftui architecture","navigation",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":27},"01M6G2PY8B2FWZTWPZ84H83Y7C","swift-protocol-di-testing","Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fswift-protocol-di-testing\u002FSKILL.md",[],[151,152,153,154,96,155,156,157,158,98,159,160,161,162],"swift protocol di testing","protocol","swift","testing","protocols","file","network","injection","dependency","swift testing","dependency injection","mock",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":27},"01M6G2PSCN2GXV9FFZDRRRWVB6","swift-concurrency-6-2","Swift 6.2 Approachable Concurrency — single-threaded by default, @concurrent for explicit background offloading, isolated conformances for main actor types.","https:\u002F\u002Fgithub.com\u002Foabdelmaksoud\u002FAgention\u002Fblob\u002Fmain\u002Fupstream-sync\u002Fwork\u002Fecc\u002Fskills\u002Fswift-concurrency-6-2\u002FSKILL.md",[],[170,171,172,153,173,32,174],"concurrency","swift concurrency","swift concurrency 6 2","default","types"]