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 從公開儲存庫中收錄這些內容。

檢舉或申請下架