Typescript Refactor

pproenca/dot-skills/skills/.experimental/typescript-refactor

作者 pproencacf93c57cac89无许可证215 个星标收录于 2026年10月8日更新于 2026年10月8日仓库7周前更新

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/TSX 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).

仅公开文件列表。将技能安装到工作区后即可查看文件内容。

路径大小类型
AGENTS.md10.8 KBtext/markdown
assets/templates/_template.md786 Btext/markdown
metadata.json1.5 KBapplication/json
references/arch-avoid-partial-abuse.md1.4 KBtext/markdown
references/arch-branded-types.md1.4 KBtext/markdown
references/arch-const-assertion.md1.3 KBtext/markdown
references/arch-discriminated-unions.md1.9 KBtext/markdown
references/arch-interfaces-over-intersections.md1.6 KBtext/markdown
references/arch-readonly-by-default.md1.2 KBtext/markdown
references/arch-satisfies-over-annotation.md1.3 KBtext/markdown
references/compile-avoid-deep-recursion.md1.4 KBtext/markdown
references/compile-base-types-over-unions.md1.6 KBtext/markdown
references/compile-explicit-return-types.md2 KBtext/markdown
references/compile-isolated-declarations.md1.5 KBtext/markdown
references/compile-project-references.md1.6 KBtext/markdown
references/error-discriminated-error-unions.md1.3 KBtext/markdown
references/error-exhaustive-error-handling.md1.5 KBtext/markdown
references/error-result-type.md1.5 KBtext/markdown
references/error-typed-catch.md1.2 KBtext/markdown
references/generic-avoid-distributive-surprises.md1.2 KBtext/markdown
references/generic-constrain-dont-overconstrain.md1.1 KBtext/markdown
references/generic-mapped-type-utilities.md1.4 KBtext/markdown
references/generic-return-type-inference.md1.5 KBtext/markdown
references/modern-const-type-parameters.md1.3 KBtext/markdown
references/modern-erasable-syntax.md1.7 KBtext/markdown
references/modern-import-attributes.md1.1 KBtext/markdown
references/modern-noinfer-utility.md1.2 KBtext/markdown
references/modern-template-literal-types.md1.4 KBtext/markdown
references/modern-using-keyword.md1.5 KBtext/markdown
references/modern-verbatim-module-syntax.md1.4 KBtext/markdown
references/narrow-assertion-functions.md1.7 KBtext/markdown
references/narrow-custom-type-guards.md1.8 KBtext/markdown
references/narrow-eliminate-as-casts.md1.8 KBtext/markdown
references/narrow-exhaustive-switch.md1.5 KBtext/markdown
references/narrow-in-operator.md1.6 KBtext/markdown
references/perf-avoid-delete-operator.md1.1 KBtext/markdown
references/perf-map-set-over-object.md1.6 KBtext/markdown
references/perf-object-freeze-const.md1.3 KBtext/markdown
references/perf-object-keys-narrowing.md1.6 KBtext/markdown
references/perf-union-literals-over-enums.md1.8 KBtext/markdown
references/quirk-empty-object-type.md1.4 KBtext/markdown
references/quirk-excess-property-checks.md1.6 KBtext/markdown
references/quirk-structural-typing-escapes.md1.4 KBtext/markdown
references/quirk-variance-annotations.md1.8 KBtext/markdown
references/_sections.md2.3 KBtext/markdown
references/tsx-avoid-react-fc.md1.4 KBtext/markdown
references/tsx-discriminated-props.md1.6 KBtext/markdown
references/tsx-event-handler-types.md1.4 KBtext/markdown
references/tsx-extend-native-props.md1.6 KBtext/markdown
references/tsx-hook-typing.md1.3 KBtext/markdown
references/tsx-ref-as-prop.md1.3 KBtext/markdown
SKILL.md9 KBtext/markdown

来源与署名

来源:pproenca/dot-skills位于skills/.experimental/typescript-refactor提交cf93c57

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架