
Typescript Clean Code
bmad-labs/skills/skills/typescript-clean-codeby 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
Only the file list is public. File contents are available once the skill is installed in a workspace.
| Path | Size | Type |
|---|---|---|
| guidelines.md | 11.8 KB | text/markdown |
| LICENSE | 1 KB | text/plain |
| progress.md | 6.1 KB | text/markdown |
| references/acceptance-testing/examples.md | 5.5 KB | text/markdown |
| references/acceptance-testing/knowledge.md | 4.7 KB | text/markdown |
| references/acceptance-testing/rules.md | 4 KB | text/markdown |
| references/classes/examples.md | 5.4 KB | text/markdown |
| references/classes/knowledge.md | 4.3 KB | text/markdown |
| references/classes/rules.md | 4 KB | text/markdown |
| references/coding-practices/examples.md | 5.9 KB | text/markdown |
| references/coding-practices/knowledge.md | 4.2 KB | text/markdown |
| references/coding-practices/rules.md | 5 KB | text/markdown |
| references/collaboration/examples.md | 4.7 KB | text/markdown |
| references/collaboration/knowledge.md | 4 KB | text/markdown |
| references/collaboration/rules.md | 2.8 KB | text/markdown |
| references/comments/examples.md | 5.3 KB | text/markdown |
| references/comments/knowledge.md | 3.2 KB | text/markdown |
| references/comments/rules.md | 5.3 KB | text/markdown |
| references/commitment/examples.md | 4.3 KB | text/markdown |
| references/commitment/knowledge.md | 3 KB | text/markdown |
| references/commitment/rules.md | 2.9 KB | text/markdown |
| references/error-handling/examples.md | 4.5 KB | text/markdown |
| references/error-handling/knowledge.md | 3.9 KB | text/markdown |
| references/error-handling/rules.md | 5.2 KB | text/markdown |
| references/estimation/examples.md | 5.3 KB | text/markdown |
| references/estimation/knowledge.md | 4.3 KB | text/markdown |
| references/estimation/rules.md | 3.6 KB | text/markdown |
| references/formatting/examples.md | 6.9 KB | text/markdown |
| references/formatting/knowledge.md | 3.1 KB | text/markdown |
| references/formatting/rules.md | 5.2 KB | text/markdown |
| references/functions/checklist.md | 2 KB | text/markdown |
| references/functions/examples.md | 5.7 KB | text/markdown |
| references/functions/knowledge.md | 4 KB | text/markdown |
| references/functions/rules.md | 6.5 KB | text/markdown |
| references/naming/examples.md | 4.6 KB | text/markdown |
| references/naming/knowledge.md | 3.6 KB | text/markdown |
| references/naming/rules.md | 3.9 KB | text/markdown |
| references/practicing/examples.md | 4.1 KB | text/markdown |
| references/practicing/knowledge.md | 3.6 KB | text/markdown |
| references/practicing/rules.md | 3 KB | text/markdown |
| references/pressure/examples.md | 4.4 KB | text/markdown |
| references/pressure/knowledge.md | 3.6 KB | text/markdown |
| references/pressure/rules.md | 3.4 KB | text/markdown |
| references/professionalism/examples.md | 5.9 KB | text/markdown |
| references/professionalism/knowledge.md | 3.5 KB | text/markdown |
| references/professionalism/rules.md | 5.3 KB | text/markdown |
| references/saying-no/examples.md | 5.8 KB | text/markdown |
| references/saying-no/knowledge.md | 4 KB | text/markdown |
| references/saying-no/rules.md | 3 KB | text/markdown |
| references/smells/examples.md | 9.9 KB | text/markdown |
| references/smells/fowler.md | 16.3 KB | text/markdown |
| references/smells/knowledge.md | 6 KB | text/markdown |
| references/smells/rules.md | 20.9 KB | text/markdown |
| references/smells/tooling.md | 6.9 KB | text/markdown |
| references/smells/typescript.md | 14.3 KB | text/markdown |
| references/tdd/examples.md | 3.4 KB | text/markdown |
| references/tdd/knowledge.md | 4.7 KB | text/markdown |
| references/tdd/rules.md | 3 KB | text/markdown |
| references/testing-strategies/examples.md | 5.3 KB | text/markdown |
| references/testing-strategies/knowledge.md | 3.4 KB | text/markdown |
| references/testing-strategies/rules.md | 2.8 KB | text/markdown |
| references/time-management/examples.md | 5.9 KB | text/markdown |
| references/time-management/knowledge.md | 4.4 KB | text/markdown |
| references/time-management/rules.md | 4.7 KB | text/markdown |
| references/unit-tests/examples.md | 5.3 KB | text/markdown |
| references/unit-tests/knowledge.md | 4.2 KB | text/markdown |
| references/unit-tests/rules.md | 4.2 KB | text/markdown |
| SKILL.md | 5.8 KB | text/markdown |
| workflows/bug-fix.md | 6.5 KB | text/markdown |
| workflows/code-review/steps/step-01b-continue.md | 1.8 KB | text/markdown |
| workflows/code-review/steps/step-01-init.md | 2 KB | text/markdown |
| workflows/code-review/steps/step-02-function-quality.md | 2.9 KB | text/markdown |
| workflows/code-review/steps/step-03-naming.md | 2 KB | text/markdown |
| workflows/code-review/steps/step-04-class-design.md | 2 KB | text/markdown |
| workflows/code-review/steps/step-05-error-handling.md | 2 KB | text/markdown |
| workflows/code-review/steps/step-06-tests.md | 2 KB | text/markdown |
| workflows/code-review/steps/step-07-comments.md | 1.9 KB | text/markdown |
| workflows/code-review/steps/step-08-smells.md | 3.9 KB | text/markdown |
| workflows/code-review/steps/step-09-feedback.md | 4.4 KB | text/markdown |
| workflows/code-review/templates/report-template.md | 233 B | text/markdown |
| workflows/code-review/workflow.md | 2.1 KB | text/markdown |
| workflows/deadline-negotiation.md | 7.2 KB | text/markdown |
| workflows/estimation.md | 7 KB | text/markdown |
| workflows/new-feature.md | 6.1 KB | text/markdown |
| workflows/pr-review/steps/step-01b-continue.md | 1.9 KB | text/markdown |
| workflows/pr-review/steps/step-01-init.md | 2.3 KB | text/markdown |
| workflows/pr-review/steps/step-02-tests-first.md | 2.1 KB | text/markdown |
| workflows/pr-review/steps/step-03-high-level.md | 1.3 KB | text/markdown |
| workflows/pr-review/steps/step-04-code-details.md | 2.1 KB | text/markdown |
| workflows/pr-review/steps/step-05-security.md | 1.9 KB | text/markdown |
| workflows/pr-review/steps/step-06-performance.md | 1.8 KB | text/markdown |
| workflows/pr-review/steps/step-07-run-code.md | 1.2 KB | text/markdown |
| workflows/pr-review/steps/step-08-feedback.md | 2.5 KB | text/markdown |
| workflows/pr-review/steps/step-09-decision.md | 1.9 KB | text/markdown |
| workflows/pr-review/templates/report-template.md | 293 B | text/markdown |
| workflows/pr-review/workflow.md | 2.2 KB | text/markdown |
| workflows/refactoring/steps/step-01b-continue.md | 2.2 KB | text/markdown |
| workflows/refactoring/steps/step-01-init.md | 2.2 KB | text/markdown |
| workflows/refactoring/steps/step-02-identify-smell.md | 3.2 KB | text/markdown |
| workflows/refactoring/steps/step-03-fowler-sweep.md | 4.5 KB | text/markdown |
| workflows/refactoring/steps/step-04-plan-steps.md | 1.6 KB | text/markdown |
| workflows/refactoring/steps/step-05-make-change.md | 2.1 KB | text/markdown |
| workflows/refactoring/steps/step-06-run-tests.md | 1.3 KB | text/markdown |
| workflows/refactoring/steps/step-07-commit.md | 918 B | text/markdown |
| workflows/refactoring/steps/step-08-repeat.md | 2 KB | text/markdown |
| workflows/refactoring/templates/log-template.md | 329 B | text/markdown |
| workflows/refactoring/workflow.md | 2.6 KB | text/markdown |
| workflows/tdd.md | 5.8 KB | text/markdown |
| workflows/test-strategy.md | 7.6 KB | text/markdown |
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.
More in Software Development

Playground
anthropics
Builds self-contained interactive HTML playgrounds with controls, live preview, and copyable prompt output.

M5 Onboard
anthropics
Provisions M5Stack ESP32 boards by detecting them on USB, flashing UIFlow 2.0 firmware, and installing a MicroPython app bundle.

Cardputer Buddy
anthropics
Guides iterating on a Cardputer-Adv MicroPython app bundle: adding apps, pushing files over USB-serial, tailing logs, and running REPL commands.

Web Design Guidelines
vercel-labs
Reviews UI code against Web Interface Guidelines fetched from a remote source and reports findings as file:line entries.

Vercel React Native Skills
vercel-labs
React Native and Expo best-practice rules covering list performance, animation, navigation, UI patterns, state, and monorepo setup.

Vercel React Best Practices
vercel-labs
Vercel's React and Next.js performance guidelines, organized as 70 rules for writing, reviewing, and refactoring code.