[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75DRXJRQS0DC6XMQDB9G9FJ":3,"skill-same:01M75DRXJRQS0DC6XMQDB9G9FJ":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M75DRXJRQS0DC6XMQDB9G9FJ","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\".","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Ffix\u002FSKILL.md",[],[],"2026-11-12 13:55:43",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","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Ffix",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add agisota\u002Fold-one --skill fix",{"tool":38,"command":39},"bunx","bunx skills add agisota\u002Fold-one --skill fix",{"tool":41,"command":42},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill fix","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Ffix\u002FSKILL.md",true,[],[47,54,61,70,77,84],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":65,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]