cleanup-ts
Cleanup TS
Purpose
Use this skill when cleaning up TypeScript, TSX, Node, React, frontend, backend, or shared package code that may contain AI-generated or AI-modified code smells.
Primary objective: reduce long-term maintenance risk without changing behavior.
Secondary objective: remove unsafe TypeScript patterns, redundant abstractions, duplicated logic, brittle tests, and architectural drift.
Operating Rules
-
Preserve behavior unless the task explicitly asks for a behavior change.
-
Before editing, inspect nearby code, existing helpers, existing types, existing tests, and project conventions.
-
Prefer deleting code over adding code. A cleanup that increases code size must justify the increase.
-
Do not loosen
tsconfig, ESLint, test config, build config, or CI config to make cleanup pass.