[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76W2J9TYYX02M823ST9MR7Q":3,"skill-same:01M76W2J9TYYX02M823ST9MR7Q":222},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M76W2J9TYYX02M823ST9MR7Q","typescript-advanced-patterns",null,"Advanced TypeScript — type-level programming, library\u002FDSL APIs, declaration merging, modern language features at depth (decorators, using, const T, NoInfer, variance), and feature implementation patterns built on advanced types. Trigger on tasks involving recursive conditional types, infer patterns, mapped-type key remapping, variadic tuples, fluent builders with phantom state, schema-first inference (Zod\u002FValibot), end-to-end-typed API clients, finite state machines, module augmentation, and library-publishing concerns. Trigger even when the user does not say \"advanced\" — if the work involves type-level algorithms, library-author API design, or going beyond surface-level uses of TS 5.x features, this is the skill. Assumes the reader has absorbed the `typescript-refactor` skill — this one extends those patterns at depth, never restates them.","ngxccc\u002Fagent-skills-kit","ngxccc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F163379246?v=4","01M758XVG64QK26AGK0WKB26TB","Ngoc Tran","01M758XVHB8J6MHV0YTBVDBXCA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: typescript-advanced-patterns\ndescription: Advanced TypeScript — type-level programming, library\u002FDSL APIs, declaration merging, modern language features at depth (decorators, using, const T, NoInfer, variance), and feature implementation patterns built on advanced types. Trigger on tasks involving recursive conditional types, infer patterns, mapped-type key remapping, variadic tuples, fluent builders with phantom state, schema-first inference (Zod\u002FValibot), end-to-end-typed API clients, finite state machines, module augmentation, and library-publishing concerns. Trigger even when the user does not say \"advanced\" — if the work involves type-level algorithms, library-author API design, or going beyond surface-level uses of TS 5.x features, this is the skill. Assumes the reader has absorbed the `typescript-refactor` skill — this one extends those patterns at depth, never restates them.\n---\n\n# TypeScript Advanced Patterns Best Practices\n\nType-level programming, library-author idioms, and feature-implementation patterns that go beyond surface uses of TypeScript 5.x. Contains 40 rules across 5 categories, prioritised by impact on consumer codebases.\n\n## When to Apply\n\nReference these guidelines when:\n\n- Designing a public library or DSL surface (fluent builders, event emitters, route parsers, query builders, schema-derived clients)\n- Writing type-level algorithms (recursive conditionals, accumulator pattern, key remapping, variadic tuples, type-level string\u002Fnumber ops, type-level tests)\n- Using TS 5.x features in non-trivial ways (Stage 3 decorators, `using` composition, `const T` for overload disambiguation, `NoInfer` for anchor-vs-constrained parameters, variance annotations, the bivariance hole)\n- Encoding workflow state, transitions, and capabilities at the type level so illegal states and missing checks are compile errors\n- Integrating with the declaration & module system (module augmentation, declaration merging, ambient asset modules, library type publishing via `exports`\u002F`typesVersions`)\n\n## Boundary with neighbouring skills\n\n| Skill                       | Don't reach for this skill if you need…                     |\n| --------------------------- | ----------------------------------------------------------- |\n| `typescript` (curated)      | Compiler performance \u002F tsconfig tuning                      |\n| `typescript-refactor`       | General refactoring patterns and modern-TS surface basics   |\n| `ts-google`                 | Google-style code style decisions                           |\n| `clean-code-ts-react`       | Clean-code principles (naming, function shape, abstraction) |\n| `effect-ts` \u002F `opencode-ts` | Effect library-specific patterns                            |\n\nIf a rule in this skill overlaps with one in `typescript-refactor` or `.curated\u002Ftypescript`, the rule's **Scope delta** section names what this skill adds beyond the simpler version.\n\n## Rule Categories by Priority\n\n| Priority | Category                        | Impact      | Prefix  | Rules |\n| -------- | ------------------------------- | ----------- | ------- | ----- |\n| 1        | Library Author \u002F DSL Patterns   | CRITICAL    | `dsl-`  | 8     |\n| 2        | Type-level Programming          | HIGH        | `tlp-`  | 10    |\n| 3        | Modern Features at Depth        | HIGH        | `mod-`  | 8     |\n| 4        | Feature Implementation Patterns | MEDIUM-HIGH | `impl-` | 8     |\n| 5        | Declaration & Module System     | MEDIUM      | `decl-` | 6     |\n\n## Quick Reference\n\n### 1. Library Author \u002F DSL Patterns (CRITICAL)\n\n- [`dsl-fluent-builder-phantom-state`](references\u002Fdsl-fluent-builder-phantom-state.md) — Enforce builder call order with phantom state types\n- [`dsl-typed-event-emitter`](references\u002Fdsl-typed-event-emitter.md) — Build typed event emitters with mapped event maps\n- [`dsl-type-safe-object-paths`](references\u002Fdsl-type-safe-object-paths.md) — Type object path access with dot-notation inference\n- [`dsl-route-param-inference`](references\u002Fdsl-route-param-inference.md) — Infer route parameters from path patterns\n- [`dsl-schema-first-inference`](references\u002Fdsl-schema-first-inference.md) — Derive static types from runtime schemas\n- [`dsl-type-safe-query-builder`](references\u002Fdsl-type-safe-query-builder.md) — Encode query shape in the builder's return type\n- [`dsl-narrow-api-surface`](references\u002Fdsl-narrow-api-surface.md) — Export only the API surface, not internal helpers\n- [`dsl-overloads-vs-conditional-returns`](references\u002Fdsl-overloads-vs-conditional-returns.md) — Choose overloads over conditional return types\n\n### 2. Type-level Programming (HIGH)\n\n- [`tlp-recursive-conditional-types`](references\u002Ftlp-recursive-conditional-types.md) — Use recursive conditional types for structural transformations\n- [`tlp-tail-recursion-accumulator`](references\u002Ftlp-tail-recursion-accumulator.md) — Use tail-recursion accumulator pattern to bypass the 50-step limit\n- [`tlp-infer-extends-constraints`](references\u002Ftlp-infer-extends-constraints.md) — Constrain `infer` with `extends` for validated extraction\n- [`tlp-key-remapping-as`](references\u002Ftlp-key-remapping-as.md) — Remap keys with `as` clauses in mapped types\n- [`tlp-variadic-tuple-types`](references\u002Ftlp-variadic-tuple-types.md) — Use variadic tuples for position-aware type algorithms\n- [`tlp-type-level-string-algorithms`](references\u002Ftlp-type-level-string-algorithms.md) — Build type-level string algorithms with recursive template literals\n- [`tlp-distributive-conditional-control`](references\u002Ftlp-distributive-conditional-control.md) — Control distribution with the `[T] extends [U]` tuple trick\n- [`tlp-type-level-tests`](references\u002Ftlp-type-level-tests.md) — Test types with `Equal`, `Expect`, and `@ts-expect-error`\n- [`tlp-template-literal-pattern-matching`](references\u002Ftlp-template-literal-pattern-matching.md) — Match structured strings with `infer` in template literals\n- [`tlp-hkt-emulation`](references\u002Ftlp-hkt-emulation.md) — Emulate higher-kinded types with interface dictionaries\n\n### 3. Modern Features at Depth (HIGH)\n\n- [`mod-stage-3-decorators`](references\u002Fmod-stage-3-decorators.md) — Use Stage 3 decorators with decorator context for metaprogramming\n- [`mod-using-disposal-ordering`](references\u002Fmod-using-disposal-ordering.md) — Compose `using` resources with explicit disposal ordering\n- [`mod-const-type-params-overloads`](references\u002Fmod-const-type-params-overloads.md) — Use `const T` to preserve literals through overloaded APIs\n- [`mod-noinfer-overload-disambiguation`](references\u002Fmod-noinfer-overload-disambiguation.md) — Use `NoInfer\u003CT>` to disambiguate overloaded function signatures\n- [`mod-variance-debugging`](references\u002Fmod-variance-debugging.md) — Debug variance errors with `in`\u002F`out` annotations\n- [`mod-method-vs-property-bivariance`](references\u002Fmod-method-vs-property-bivariance.md) — Prefer property syntax over method syntax to avoid bivariance holes\n- [`mod-phantom-capability-tracking`](references\u002Fmod-phantom-capability-tracking.md) — Track capabilities at the type level with phantom brands\n- [`mod-satisfies-branded-config`](references\u002Fmod-satisfies-branded-config.md) — Combine `satisfies` with branded types for validated configuration\n\n### 4. Feature Implementation Patterns (MEDIUM-HIGH)\n\n- [`impl-tagged-result-type`](references\u002Fimpl-tagged-result-type.md) — Model operation outcomes as `Ok\u003CT> | Err\u003CE>` tagged unions\n- [`impl-state-discriminated-union`](references\u002Fimpl-state-discriminated-union.md) — Model workflow state as a discriminated union of state records\n- [`impl-finite-state-machine`](references\u002Fimpl-finite-state-machine.md) — Encode FSM transitions in function signatures\n- [`impl-schema-derived-api-client`](references\u002Fimpl-schema-derived-api-client.md) — Derive client argument and return types from endpoint schemas\n- [`impl-type-safe-form-builder`](references\u002Fimpl-type-safe-form-builder.md) — Drive form-field inference from a single schema definition\n- [`impl-phantom-feature-flags`](references\u002Fimpl-phantom-feature-flags.md) — Gate feature-dependent code with phantom capability types\n- [`impl-assert-never-exhaustive`](references\u002Fimpl-assert-never-exhaustive.md) — Use `assertNever` to force exhaustive handling of union variants\n- [`impl-env-config-loader`](references\u002Fimpl-env-config-loader.md) — Validate environment configuration at boundary with schema inference\n\n### 5. Declaration & Module System (MEDIUM)\n\n- [`decl-module-augmentation`](references\u002Fdecl-module-augmentation.md) — Augment third-party module types without patching source\n- [`decl-declaration-merging`](references\u002Fdecl-declaration-merging.md) — Merge interface, namespace, and class declarations to extend APIs\n- [`decl-ambient-asset-modules`](references\u002Fdecl-ambient-asset-modules.md) — Declare ambient modules for non-TypeScript asset imports\n- [`decl-global-augmentation-discipline`](references\u002Fdecl-global-augmentation-discipline.md) — Scope global type augmentation to avoid conflicts\n- [`decl-exports-and-types-versions`](references\u002Fdecl-exports-and-types-versions.md) — Ship library types with `exports` and `typesVersions` maps\n- [`decl-authoring-d-ts-for-js`](references\u002Fdecl-authoring-d-ts-for-js.md) — Author `.d.ts` files for plain JavaScript libraries\n\n## How to Use\n\nRead individual reference files for detailed explanations, code examples, and \"when NOT to apply\" guidance:\n\n- [Section definitions](references\u002F_sections.md) — Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) — Template for adding new rules\n\nRules cross-link via `[[other-rule-slug]]`; follow them when a related pattern is referenced.\n\n## Reference Files\n\n| File                                                            | Description                       |\n| --------------------------------------------------------------- | --------------------------------- |\n| [references\u002F\\_sections.md](references\u002F_sections.md)             | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F\\_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules            |\n| [metadata.json](metadata.json)                                  | Version and reference information |\n","# TypeScript Advanced Patterns Best Practices\n\nType-level programming, library-author idioms, and feature-implementation patterns that go beyond surface uses of TypeScript 5.x. Contains 40 rules across 5 categories, prioritised by impact on consumer codebases.\n\n## When to Apply\n\nReference these guidelines when:\n\n- Designing a public library or DSL surface (fluent builders, event emitters, route parsers, query builders, schema-derived clients)\n- Writing type-level algorithms (recursive conditionals, accumulator pattern, key remapping, variadic tuples, type-level string\u002Fnumber ops, type-level tests)\n- Using TS 5.x features in non-trivial ways (Stage 3 decorators, `using` composition, `const T` for overload disambiguation, `NoInfer` for anchor-vs-constrained parameters, variance annotations, the bivariance hole)\n- Encoding workflow state, transitions, and capabilities at the type level so illegal states and missing checks are compile errors\n- Integrating with the declaration & module system (module augmentation, declaration merging, ambient asset modules, library type publishing via `exports`\u002F`typesVersions`)\n\n## Boundary with neighbouring skills\n\n| Skill                       | Don't reach for this skill if you need…                     |\n| --------------------------- | ----------------------------------------------------------- |\n| `typescript` (curated)      | Compiler performance \u002F tsconfig tuning                      |\n| `typescript-refactor`       | General refactoring patterns and modern-TS surface basics   |\n| `ts-google`                 | Google-style code style decisions                           |\n| `clean-code-ts-react`       | Clean-code principles (naming, function shape, abstraction) |\n| `effect-ts` \u002F `opencode-ts` | Effect library-specific patterns                            |\n\nIf a rule in this skill overlaps with one in `typescript-refactor` or `.curated\u002Ftypescript`, the rule's **Scope delta** section names what this skill adds beyond the simpler version.\n\n## Rule Categories by Priority\n\n| Priority | Category                        | Impact      | Prefix  | Rules |\n| -------- | ------------------------------- | ----------- | ------- | ----- |\n| 1        | Library Author \u002F DSL Patterns   | CRITICAL    | `dsl-`  | 8     |\n| 2        | Type-level Programming          | HIGH        | `tlp-`  | 10    |\n| 3        | Modern Features at Depth        | HIGH        | `mod-`  | 8     |\n| 4        | Feature Implementation Patterns | MEDIUM-HIGH | `impl-` | 8     |\n| 5        | Declaration & Module System     | MEDIUM      | `decl-` | 6     |\n\n## Quick Reference\n\n### 1. Library Author \u002F DSL Patterns (CRITICAL)\n\n- [`dsl-fluent-builder-phantom-state`](references\u002Fdsl-fluent-builder-phantom-state.md) — Enforce builder call order with phantom state types\n- [`dsl-typed-event-emitter`](references\u002Fdsl-typed-event-emitter.md) — Build typed event emitters with mapped event maps\n- [`dsl-type-safe-object-paths`](references\u002Fdsl-type-safe-object-paths.md) — Type object path access with dot-notation inference\n- [`dsl-route-param-inference`](references\u002Fdsl-route-param-inference.md) — Infer route parameters from path patterns\n- [`dsl-schema-first-inference`](references\u002Fdsl-schema-first-inference.md) — Derive static types from runtime schemas\n- [`dsl-type-safe-query-builder`](references\u002Fdsl-type-safe-query-builder.md) — Encode query shape in the builder's return type\n- [`dsl-narrow-api-surface`](references\u002Fdsl-narrow-api-surface.md) — Export only the API surface, not internal helpers\n- [`dsl-overloads-vs-conditional-returns`](references\u002Fdsl-overloads-vs-conditional-returns.md) — Choose overloads over conditional return types\n\n### 2. Type-level Programming (HIGH)\n\n- [`tlp-recursive-conditional-types`](references\u002Ftlp-recursive-conditional-types.md) — Use recursive conditional types for structural transformations\n- [`tlp-tail-recursion-accumulator`](references\u002Ftlp-tail-recursion-accumulator.md) — Use tail-recursion accumulator pattern to bypass the 50-step limit\n- [`tlp-infer-extends-constraints`](references\u002Ftlp-infer-extends-constraints.md) — Constrain `infer` with `extends` for validated extraction\n- [`tlp-key-remapping-as`](references\u002Ftlp-key-remapping-as.md) — Remap keys with `as` clauses in mapped types\n- [`tlp-variadic-tuple-types`](references\u002Ftlp-variadic-tuple-types.md) — Use variadic tuples for position-aware type algorithms\n- [`tlp-type-level-string-algorithms`](references\u002Ftlp-type-level-string-algorithms.md) — Build type-level string algorithms with recursive template literals\n- [`tlp-distributive-conditional-control`](references\u002Ftlp-distributive-conditional-control.md) — Control distribution with the `[T] extends [U]` tuple trick\n- [`tlp-type-level-tests`](references\u002Ftlp-type-level-tests.md) — Test types with `Equal`, `Expect`, and `@ts-expect-error`\n- [`tlp-template-literal-pattern-matching`](references\u002Ftlp-template-literal-pattern-matching.md) — Match structured strings with `infer` in template literals\n- [`tlp-hkt-emulation`](references\u002Ftlp-hkt-emulation.md) — Emulate higher-kinded types with interface dictionaries\n\n### 3. Modern Features at Depth (HIGH)\n\n- [`mod-stage-3-decorators`](references\u002Fmod-stage-3-decorators.md) — Use Stage 3 decorators with decorator context for metaprogramming\n- [`mod-using-disposal-ordering`](references\u002Fmod-using-disposal-ordering.md) — Compose `using` resources with explicit disposal ordering\n- [`mod-const-type-params-overloads`](references\u002Fmod-const-type-params-overloads.md) — Use `const T` to preserve literals through overloaded APIs\n- [`mod-noinfer-overload-disambiguation`](references\u002Fmod-noinfer-overload-disambiguation.md) — Use `NoInfer\u003CT>` to disambiguate overloaded function signatures\n- [`mod-variance-debugging`](references\u002Fmod-variance-debugging.md) — Debug variance errors with `in`\u002F`out` annotations\n- [`mod-method-vs-property-bivariance`](references\u002Fmod-method-vs-property-bivariance.md) — Prefer property syntax over method syntax to avoid bivariance holes\n- [`mod-phantom-capability-tracking`](references\u002Fmod-phantom-capability-tracking.md) — Track capabilities at the type level with phantom brands\n- [`mod-satisfies-branded-config`](references\u002Fmod-satisfies-branded-config.md) — Combine `satisfies` with branded types for validated configuration\n\n### 4. Feature Implementation Patterns (MEDIUM-HIGH)\n\n- [`impl-tagged-result-type`](references\u002Fimpl-tagged-result-type.md) — Model operation outcomes as `Ok\u003CT> | Err\u003CE>` tagged unions\n- [`impl-state-discriminated-union`](references\u002Fimpl-state-discriminated-union.md) — Model workflow state as a discriminated union of state records\n- [`impl-finite-state-machine`](references\u002Fimpl-finite-state-machine.md) — Encode FSM transitions in function signatures\n- [`impl-schema-derived-api-client`](references\u002Fimpl-schema-derived-api-client.md) — Derive client argument and return types from endpoint schemas\n- [`impl-type-safe-form-builder`](references\u002Fimpl-type-safe-form-builder.md) — Drive form-field inference from a single schema definition\n- [`impl-phantom-feature-flags`](references\u002Fimpl-phantom-feature-flags.md) — Gate feature-dependent code with phantom capability types\n- [`impl-assert-never-exhaustive`](references\u002Fimpl-assert-never-exhaustive.md) — Use `assertNever` to force exhaustive handling of union variants\n- [`impl-env-config-loader`](references\u002Fimpl-env-config-loader.md) — Validate environment configuration at boundary with schema inference\n\n### 5. Declaration & Module System (MEDIUM)\n\n- [`decl-module-augmentation`](references\u002Fdecl-module-augmentation.md) — Augment third-party module types without patching source\n- [`decl-declaration-merging`](references\u002Fdecl-declaration-merging.md) — Merge interface, namespace, and class declarations to extend APIs\n- [`decl-ambient-asset-modules`](references\u002Fdecl-ambient-asset-modules.md) — Declare ambient modules for non-TypeScript asset imports\n- [`decl-global-augmentation-discipline`](references\u002Fdecl-global-augmentation-discipline.md) — Scope global type augmentation to avoid conflicts\n- [`decl-exports-and-types-versions`](references\u002Fdecl-exports-and-types-versions.md) — Ship library types with `exports` and `typesVersions` maps\n- [`decl-authoring-d-ts-for-js`](references\u002Fdecl-authoring-d-ts-for-js.md) — Author `.d.ts` files for plain JavaScript libraries\n\n## How to Use\n\nRead individual reference files for detailed explanations, code examples, and \"when NOT to apply\" guidance:\n\n- [Section definitions](references\u002F_sections.md) — Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) — Template for adding new rules\n\nRules cross-link via `[[other-rule-slug]]`; follow them when a related pattern is referenced.\n\n## Reference Files\n\n| File                                                            | Description                       |\n| --------------------------------------------------------------- | --------------------------------- |\n| [references\u002F\\_sections.md](references\u002F_sections.md)             | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F\\_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules            |\n| [metadata.json](metadata.json)                                  | Version and reference information |\n",{"name":5,"description":7},"main","1ef0dcd00fe806a8dc4e0b7173b9db967c3ab274","skills\u002F.curated\u002Ftypescript-advanced-patterns","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit","https:\u002F\u002Fgithub.com\u002Fngxccc","https:\u002F\u002Fngxccc.github.io","Make it work, make it right, make it fast.","2026-08-02 20:59:07",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add ngxccc\u002Fagent-skills-kit --skill typescript-advanced-patterns",{"tool":38,"command":39},"bunx","bunx skills add ngxccc\u002Fagent-skills-kit --skill typescript-advanced-patterns",{"tool":41,"command":42},"pnpm","pnpm dlx skills add ngxccc\u002Fagent-skills-kit --skill typescript-advanced-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002FSKILL.md",true,[46,52,58,62,66,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"AGENTS.md","REFERENCE","参考文档",12641,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002FAGENTS.md",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Ftemplates\u002F_template.md","ASSET","资产文件",1049,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Fassets\u002Ftemplates\u002F_template.md",{"path":59,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002F_sections.md",2095,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002F_sections.md",{"path":63,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fdecl-ambient-asset-modules.md",3561,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdecl-ambient-asset-modules.md",{"path":67,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fdecl-authoring-d-ts-for-js.md",4277,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdecl-authoring-d-ts-for-js.md",{"path":71,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fdecl-declaration-merging.md",4679,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdecl-declaration-merging.md",{"path":75,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fdecl-exports-and-types-versions.md",4341,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdecl-exports-and-types-versions.md",{"path":79,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fdecl-global-augmentation-discipline.md",4095,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdecl-global-augmentation-discipline.md",{"path":83,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fdecl-module-augmentation.md",3840,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdecl-module-augmentation.md",{"path":87,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fdsl-fluent-builder-phantom-state.md",3428,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdsl-fluent-builder-phantom-state.md",{"path":91,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fdsl-narrow-api-surface.md",3177,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdsl-narrow-api-surface.md",{"path":95,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fdsl-overloads-vs-conditional-returns.md",3450,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdsl-overloads-vs-conditional-returns.md",{"path":99,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fdsl-route-param-inference.md",2838,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdsl-route-param-inference.md",{"path":103,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fdsl-schema-first-inference.md",3209,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdsl-schema-first-inference.md",{"path":107,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fdsl-type-safe-object-paths.md",3083,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdsl-type-safe-object-paths.md",{"path":111,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fdsl-type-safe-query-builder.md",3242,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdsl-type-safe-query-builder.md",{"path":115,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002Fdsl-typed-event-emitter.md",3120,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fdsl-typed-event-emitter.md",{"path":119,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":120,"sourceHtmlUrl":121},"references\u002Fimpl-assert-never-exhaustive.md",4365,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fimpl-assert-never-exhaustive.md",{"path":123,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fimpl-env-config-loader.md",3998,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fimpl-env-config-loader.md",{"path":127,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fimpl-finite-state-machine.md",4385,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fimpl-finite-state-machine.md",{"path":131,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fimpl-phantom-feature-flags.md",3944,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fimpl-phantom-feature-flags.md",{"path":135,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fimpl-schema-derived-api-client.md",4541,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fimpl-schema-derived-api-client.md",{"path":139,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":140,"sourceHtmlUrl":141},"references\u002Fimpl-state-discriminated-union.md",3923,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fimpl-state-discriminated-union.md",{"path":143,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":144,"sourceHtmlUrl":145},"references\u002Fimpl-tagged-result-type.md",4141,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fimpl-tagged-result-type.md",{"path":147,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":148,"sourceHtmlUrl":149},"references\u002Fimpl-type-safe-form-builder.md",3834,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fimpl-type-safe-form-builder.md",{"path":151,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":152,"sourceHtmlUrl":153},"references\u002Fmod-const-type-params-overloads.md",3895,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fmod-const-type-params-overloads.md",{"path":155,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":156,"sourceHtmlUrl":157},"references\u002Fmod-method-vs-property-bivariance.md",4223,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fmod-method-vs-property-bivariance.md",{"path":159,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":160,"sourceHtmlUrl":161},"references\u002Fmod-noinfer-overload-disambiguation.md",3620,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fmod-noinfer-overload-disambiguation.md",{"path":163,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":164,"sourceHtmlUrl":165},"references\u002Fmod-phantom-capability-tracking.md",3997,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fmod-phantom-capability-tracking.md",{"path":167,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":168,"sourceHtmlUrl":169},"references\u002Fmod-satisfies-branded-config.md",4035,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fmod-satisfies-branded-config.md",{"path":171,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":172,"sourceHtmlUrl":173},"references\u002Fmod-stage-3-decorators.md",4278,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fmod-stage-3-decorators.md",{"path":175,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":176,"sourceHtmlUrl":177},"references\u002Fmod-using-disposal-ordering.md",4011,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fmod-using-disposal-ordering.md",{"path":179,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":180,"sourceHtmlUrl":181},"references\u002Fmod-variance-debugging.md",4380,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Fmod-variance-debugging.md",{"path":183,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":184,"sourceHtmlUrl":185},"references\u002Ftlp-distributive-conditional-control.md",3610,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-distributive-conditional-control.md",{"path":187,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":188,"sourceHtmlUrl":189},"references\u002Ftlp-hkt-emulation.md",4021,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-hkt-emulation.md",{"path":191,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":192,"sourceHtmlUrl":193},"references\u002Ftlp-infer-extends-constraints.md",3027,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-infer-extends-constraints.md",{"path":195,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":196,"sourceHtmlUrl":197},"references\u002Ftlp-key-remapping-as.md",3091,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-key-remapping-as.md",{"path":199,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":200,"sourceHtmlUrl":201},"references\u002Ftlp-recursive-conditional-types.md",3135,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-recursive-conditional-types.md",{"path":203,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":204,"sourceHtmlUrl":205},"references\u002Ftlp-tail-recursion-accumulator.md",3192,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-tail-recursion-accumulator.md",{"path":207,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":208,"sourceHtmlUrl":209},"references\u002Ftlp-template-literal-pattern-matching.md",3438,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-template-literal-pattern-matching.md",{"path":211,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":212,"sourceHtmlUrl":213},"references\u002Ftlp-type-level-string-algorithms.md",3568,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-type-level-string-algorithms.md",{"path":215,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":216,"sourceHtmlUrl":217},"references\u002Ftlp-type-level-tests.md",3343,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-type-level-tests.md",{"path":219,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":220,"sourceHtmlUrl":221},"references\u002Ftlp-variadic-tuple-types.md",3377,"https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-advanced-patterns\u002Freferences\u002Ftlp-variadic-tuple-types.md",[223,230,237,244,251,258],{"skillNo":224,"name":225,"nameZh":6,"description":226,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":227,"categories":228,"keywords":229,"publishedAt":19},"01M76W3C8X6Q5DS0364KQT7W7A","zustand","Rules and standards for state management using Zustand in React and Next.js. Use when implementing client-side stores, persistence with localStorage, or preventing SSR hydration mismatch.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fzustand\u002FSKILL.md",[],[],{"skillNo":231,"name":232,"nameZh":6,"description":233,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":234,"categories":235,"keywords":236,"publishedAt":19},"01M76W39FJGES309VAH7SFWA9Y","zod","Zod v4 schema validation best practices. Use when defining schemas, utilizing safeParse, or customizing error messages.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fzod\u002FSKILL.md",[],[],{"skillNo":238,"name":239,"nameZh":6,"description":240,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":241,"categories":242,"keywords":243,"publishedAt":19},"01M76W36HTYA4BR5FKCWMX1RFR","upstash-ratelimit","Rules, standards, and references for rate limiting in serverless environments using Upstash Ratelimit. Use when implementing rate limiting, configuring Upstash Redis, or handling request blocking.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fupstash-ratelimit\u002FSKILL.md",[],[],{"skillNo":245,"name":246,"nameZh":6,"description":247,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":248,"categories":249,"keywords":250,"publishedAt":19},"01M76W32H4PS01WFRS7FNPK2G1","ui-design","UI\u002FUX and frontend design best practices guidelines (formerly frontend-design). This skill should be used when writing, reviewing, or designing frontend code to ensure accessibility, performance, and usability. Triggers on tasks involving HTML structure, CSS styling, responsive layouts, form design, animations, or accessibility improvements.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Fui-design\u002FSKILL.md",[],[],{"skillNo":252,"name":253,"nameZh":6,"description":254,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":255,"categories":256,"keywords":257,"publishedAt":19},"01M76W2YAP6RK8N0EVWFG54VD7","typescript","TypeScript performance, tsconfig, type errors, async patterns — triggered when the user asks to \"optimize TypeScript performance\", \"speed up tsc compilation\", \"configure tsconfig.json\", \"fix type errors\", \"improve async patterns\", or encounters TS errors (TS2322, TS2339, \"is not assignable to\"). Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management. Does NOT cover TypeScript basics, framework-specific patterns, or testing.","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript\u002FSKILL.md",[],[],{"skillNo":259,"name":260,"nameZh":6,"description":261,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":262,"categories":263,"keywords":264,"publishedAt":19},"01M76W2RMAZNNJQ2HECH3X6ZSH","typescript-refactor","TypeScript and TSX refactoring and modernization guidelines from a principal specialist perspective, current to TypeScript 6.0 and React 19. This skill should be used when refactoring, reviewing, or modernizing TypeScript or React\u002FTSX code for type safety, compiler performance, and idiomatic patterns. Triggers on tasks involving type architecture, narrowing, generics, discriminated unions, error handling, React component and hook typing, or migration to modern TypeScript features (satisfies, using, const type parameters, inferred type predicates, isolatedDeclarations, erasable syntax, import attributes).","https:\u002F\u002Fgithub.com\u002Fngxccc\u002Fagent-skills-kit\u002Fblob\u002Fmain\u002Fskills\u002F.curated\u002Ftypescript-refactor\u002FSKILL.md",[],[]]