Typescript Refactor

by pproencacf93c57cac89No license215 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 7 weeks ago

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

Instructions onlySoftware Development

Only the file list is public. File contents are available once the skill is installed in a workspace.

PathSizeType
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

Source and attribution

Source:pproenca/dot-skillsinskills/.experimental/typescript-refactorat commitcf93c57

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal