Typescript Clean Code

bmad-labs/skills/skills/typescript-clean-code

by bmad-labsf2e09b317c6fNo license16 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 3 weeks ago

Clean Code for TypeScript — code smell catalogs (Martin's per-line heuristics, Fowler's change-shape smells, TypeScript-native type smells), a linter-first detection policy, and step-by-step review, refactoring, TDD, and estimation workflows. Use when the user: - Writes, reviews, or refactors TypeScript/JavaScript code, or asks whether code is clean, maintainable, or well-designed - Names a smell — Shotgun Surgery, Feature Envy, Data Clumps, Long Method, Divergent Change, Duplicated Code, Large Class, Long Parameter List, Primitive Obsession, Message Chains, Dead Code, Speculative Generality, god class, copy-paste, stringly typed, premature abstraction - Asks about TypeScript type hygiene — `any` leakage, `as` assertions, non-null `!`, discriminated unions, exhaustiveness, strict flags, branded types - Asks what to enforce with lint or tsconfig versus what needs judgment, or names knip, jscpd, dependency-cruiser, typescript-eslint, type-coverage - Runs TDD, fixes a bug with test coverage, or plans test strat

  1. f2e09b317c6fCurrentcommit f2e09b3Published Oct 8, 2026

Source and attribution

Source:bmad-labs/skillsinskills/typescript-clean-codeat commitf2e09b3

License: No license

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

Report or request removal