[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FBWSMXJGXS3KSHKSVCZR8V":3,"skill-same:01M7FBWSMXJGXS3KSHKSVCZR8V":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"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":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7FBWSMXJGXS3KSHKSVCZR8V","flaky-patterns",null,"Reference catalogue of flaky-test causes — for each class, how it shows up in a stack trace, the real fix, the masking fixes to reject, and how to reproduce it deterministically without running the test many times. Use when diagnosing or reviewing a fix for a test that passes and fails on the same code.","marynabieliaieva\u002Fdev-ai-harness-marketplace","marynabieliaieva","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7878548?v=4","01M7FBT0ZD7GRRYKNENTZ5EH2T","01M7FBT101PH91MN21MJ7XTKMY",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fflaky-fix\u002Fskills\u002Fflaky-patterns\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: flaky-patterns\ndescription: Reference catalogue of flaky-test causes — for each class, how it shows up in a stack trace, the real fix, the masking fixes to reject, and how to reproduce it deterministically without running the test many times. Use when diagnosing or reviewing a fix for a test that passes and fails on the same code.\nuser-invocable: false\n---\n\n# Flaky test patterns\n\nA flaky test passes and fails on the same code. The fix removes the\nnondeterminism; a masking change only lowers how often it shows. Masking\nchanges: **retry\u002Frerun**, **skip\u002Fdisable**, **sleep**, **bigger timeout**,\n**swallowed error**, **weaker or fewer assertions**.\n\n## Classes\n\n| Class | Trace \u002F symptom | Real fix | Masking to reject | Deterministic repro |\n|---|---|---|---|---|\n| `async-wait` | assertion on a value that is \"not yet\" there; timeout waiting for element\u002Fmessage; NPE on a result read too early | wait on the actual condition (await the promise\u002Ffuture, poll for the state with a bound, event\u002Flatch) | sleep before the assertion; bigger timeout | delay the producer (inject a slow stub \u002F hook) so the read always comes first |\n| `race-condition` | intermittent wrong value, duplicate key, `ConcurrentModificationException`, lost update | synchronise the shared resource, make the operation atomic, or remove the sharing | retry; serialising the whole test suite | barrier\u002Flatch that forces the two threads\u002Ftasks into the bad interleaving |\n| `order-dependency` | passes alone, fails after a specific other test (often a newly added one) | the test sets up everything it needs; the other test cleans up after itself | fixed test order; `@Order` | run the polluting test's setup (or state) before this test inside one test |\n| `shared-state` | static\u002Fsingleton\u002Fglobal, shared DB rows, files, env vars, ports, caches leak between tests | per-test fixtures, unique names\u002Fids, reset in teardown, dependency injection instead of globals | clearing state with a sleep; retry | pre-populate the shared state the way another test leaves it |\n| `time-dependency` | fails around midnight, month end, DST, in other time zones; comparisons with `now()` | inject a clock; fixed time in the test; compare with tolerance only where the domain allows it | widening tolerance until it passes | freeze the clock at the boundary (23:59:59, DST switch, Feb 29) |\n| `randomness` | data-dependent failures, unordered collections asserted in order, hash order | fixed seed in the test; order-independent assertions; sort before comparing | rerun | the seed \u002F input that fails, pinned |\n| `external-dependency` | network errors, 5xx\u002F429, DNS, real third-party service, real clock server | stub\u002Ffake the dependency at the boundary; contract test separately | retry; bigger timeout | stub that returns the failing response |\n| `resource-leak` | \"too many open files\", port in use, connection pool exhausted, fails late in a suite | close\u002Fdispose in `finally`\u002Fteardown; bounded pools; random free ports | bigger pool; bigger timeout | open the leaked resource N times before the test |\n| `environment` | only on some agents\u002FOS\u002Flocale; after a CI image or dependency bump | pin the version or make the code independent of the difference (locale, path separator, CPU count) | skip on that environment | set the differing locale\u002Fenv\u002Fversion in the test |\n| `unknown` | none of the above fits the evidence | say what evidence is missing (another trace, logs at a given point) | — | — |\n\n## Reading a trace\n\n- The **top project frame** is where it failed, not necessarily where it went\n  wrong. Async failures point at the assertion; the cause is the producer.\n- `TimeoutException`\u002F`timed out` is a symptom of `async-wait`,\n  `external-dependency` or `resource-leak` — decide by what was awaited.\n- Several traces with different top frames but the same awaited resource are\n  one cause; different resources are several.\n\n## When a masking change is acceptable\n\nOnly when the class has no deterministic fix inside the repo (a real external\nsystem that cannot be stubbed in this test layer) — and then it is bounded,\nlabelled in the code, and the ticket says the cause stays.\nA bounded wait **on a real condition** is not a sleep: it ends as soon as the\ncondition holds.\n\n## Culprit commits\n\nA commit is a culprit when its diff creates the mechanism: makes something\nasync, adds shared\u002Fstatic state, adds a test that leaves state behind,\nchanges time handling, swaps a stub for a real call, bumps a dependency or CI\nimage. Touching the same file is not enough.\n","# Flaky test patterns\n\nA flaky test passes and fails on the same code. The fix removes the\nnondeterminism; a masking change only lowers how often it shows. Masking\nchanges: **retry\u002Frerun**, **skip\u002Fdisable**, **sleep**, **bigger timeout**,\n**swallowed error**, **weaker or fewer assertions**.\n\n## Classes\n\n| Class | Trace \u002F symptom | Real fix | Masking to reject | Deterministic repro |\n|---|---|---|---|---|\n| `async-wait` | assertion on a value that is \"not yet\" there; timeout waiting for element\u002Fmessage; NPE on a result read too early | wait on the actual condition (await the promise\u002Ffuture, poll for the state with a bound, event\u002Flatch) | sleep before the assertion; bigger timeout | delay the producer (inject a slow stub \u002F hook) so the read always comes first |\n| `race-condition` | intermittent wrong value, duplicate key, `ConcurrentModificationException`, lost update | synchronise the shared resource, make the operation atomic, or remove the sharing | retry; serialising the whole test suite | barrier\u002Flatch that forces the two threads\u002Ftasks into the bad interleaving |\n| `order-dependency` | passes alone, fails after a specific other test (often a newly added one) | the test sets up everything it needs; the other test cleans up after itself | fixed test order; `@Order` | run the polluting test's setup (or state) before this test inside one test |\n| `shared-state` | static\u002Fsingleton\u002Fglobal, shared DB rows, files, env vars, ports, caches leak between tests | per-test fixtures, unique names\u002Fids, reset in teardown, dependency injection instead of globals | clearing state with a sleep; retry | pre-populate the shared state the way another test leaves it |\n| `time-dependency` | fails around midnight, month end, DST, in other time zones; comparisons with `now()` | inject a clock; fixed time in the test; compare with tolerance only where the domain allows it | widening tolerance until it passes | freeze the clock at the boundary (23:59:59, DST switch, Feb 29) |\n| `randomness` | data-dependent failures, unordered collections asserted in order, hash order | fixed seed in the test; order-independent assertions; sort before comparing | rerun | the seed \u002F input that fails, pinned |\n| `external-dependency` | network errors, 5xx\u002F429, DNS, real third-party service, real clock server | stub\u002Ffake the dependency at the boundary; contract test separately | retry; bigger timeout | stub that returns the failing response |\n| `resource-leak` | \"too many open files\", port in use, connection pool exhausted, fails late in a suite | close\u002Fdispose in `finally`\u002Fteardown; bounded pools; random free ports | bigger pool; bigger timeout | open the leaked resource N times before the test |\n| `environment` | only on some agents\u002FOS\u002Flocale; after a CI image or dependency bump | pin the version or make the code independent of the difference (locale, path separator, CPU count) | skip on that environment | set the differing locale\u002Fenv\u002Fversion in the test |\n| `unknown` | none of the above fits the evidence | say what evidence is missing (another trace, logs at a given point) | — | — |\n\n## Reading a trace\n\n- The **top project frame** is where it failed, not necessarily where it went\n  wrong. Async failures point at the assertion; the cause is the producer.\n- `TimeoutException`\u002F`timed out` is a symptom of `async-wait`,\n  `external-dependency` or `resource-leak` — decide by what was awaited.\n- Several traces with different top frames but the same awaited resource are\n  one cause; different resources are several.\n\n## When a masking change is acceptable\n\nOnly when the class has no deterministic fix inside the repo (a real external\nsystem that cannot be stubbed in this test layer) — and then it is bounded,\nlabelled in the code, and the ticket says the cause stays.\nA bounded wait **on a real condition** is not a sleep: it ends as soon as the\ncondition holds.\n\n## Culprit commits\n\nA commit is a culprit when its diff creates the mechanism: makes something\nasync, adds shared\u002Fstatic state, adds a test that leaves state behind,\nchanges time handling, swaps a stub for a real call, bumps a dependency or CI\nimage. Touching the same file is not enough.\n",{"name":5,"description":7,"user-invocable":19},"main","3bcf689e2951ea8cef76e93d0e9a96a8443cec13","plugins\u002Fflaky-fix\u002Fskills\u002Fflaky-patterns","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva","2026-10-27 00:55:00",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add marynabieliaieva\u002Fdev-ai-harness-marketplace --skill flaky-patterns",{"tool":35,"command":36},"bunx","bunx skills add marynabieliaieva\u002Fdev-ai-harness-marketplace --skill flaky-patterns",{"tool":38,"command":39},"pnpm","pnpm dlx skills add marynabieliaieva\u002Fdev-ai-harness-marketplace --skill flaky-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fflaky-fix\u002Fskills\u002Fflaky-patterns\u002FSKILL.md",true,[],[44,51,58,65,72,80],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7FBX6FAH2MGVNNE4RGG2RPF","workflow-retro","Retrospective of a finished multi-agent workflow run (e.g. \u002Fsdd-engineering:run-plan, a code review, spec → plan → execution) — collects run facts (agents spawned, spawn order and waves, tokens per agent and per type, fix rounds, caps hit, human interventions), extracts insights per agent type (what was hard, what was easy, what information was duplicated, what each gate missed and who caught it later) and turns them into concrete, evidence-backed proposals for agent\u002Fskill\u002Fplan changes. Writes a ledger entry to docs\u002Fretro\u002Fledger\u002F and a summary in chat. Data source is the current conversation by default; --deep also parses the session transcripts on disk. Invoked only by the user as \u002Fsdd-engineering:workflow-retro — never automatically, never by another skill or agent.","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdd-engineering\u002Fskills\u002Fworkflow-retro\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7FBX11WK2ZEC50W955GVJ87","run-plan","Runs the Spec Driven Development execution workflow for an already-written Implementation Plan (docs\u002Fplans\u002F\u003Cslug>.md) — implementer tasks wave by wave along the plan's DAG, one plan-verifier pass with a fix loop, an architecture-review loop (review → fix → re-review until clean or the round cap), then one full test run. Accepts the plan, optionally the spec, extra requirements text and design files. Does NOT run spec-creator or implementation-planner (those are run manually first). Invoked only by the user as \u002Fsdd-engineering:run-plan.","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdd-engineering\u002Fskills\u002Frun-plan\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7FBWWYCS5F001B95Z8YXX3Q","engineering-insights","Captures a non-obvious engineering insight (a working pattern, an antipattern\u002Fdead end, a decision with its reason, or a recurring error and fix) found while working in this repo, and files it into the INSIGHTS.md of the package the session touched. Use at the end of a session that learned something substantial, or immediately when something surprising comes up — skip when nothing non-obvious happened.","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fsdd-engineering\u002Fskills\u002Fengineering-insights\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7FBWKCDZNTQE9AW5PYA47KS","flaky-fix","Triage and fix one flaky test without extra pipeline or test runs — from the test name, a stack trace, the date it became flaky and its failure rate to a Jira issue, a fix branch, a reviewed commit and a PR, with verification left to the normal runs of main after merge. Invoked only by the user as \u002Fflaky-fix:flaky-fix.","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fflaky-fix\u002Fskills\u002Fflaky-fix\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7FBWDF214X5KZ4YKD2XDJD8","zod","Zod schema validation best practices for type safety, parsing, and error handling. This skill should be used when defining z.object schemas, using z.string validations, safeParse, or z.infer. This skill does NOT cover form-library integration (e.g. React Hook Form resolvers) or OpenAPI client generation.","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-paved-path\u002Fskills\u002Fzod\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-paved-path\u002Fskills\u002Fzod\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7FBW8TR3E87GKA6WT551VX6","typescript-expert","TypeScript and JavaScript expert with deep knowledge of type-level programming, performance optimization, monorepo management, migration strategies, and modern tooling.","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-paved-path\u002Fskills\u002Ftypescript-expert\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmarynabieliaieva\u002Fdev-ai-harness-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-paved-path\u002Fskills\u002Ftypescript-expert\u002FSKILL.md",[],[]]