
Typescript Clean Code
bmad-labs/skills/skills/typescript-clean-code作者 bmad-labsf2e09b317c6f無授權條款16 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫3 週前更新
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
僅公開檔案列表。將技能安裝到工作區後即可檢視檔案內容。
| 路徑 | 大小 | 類型 |
|---|---|---|
| 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 |
來源與署名
來源:bmad-labs/skills位於skills/typescript-clean-code提交f2e09b3
授權條款: 無授權條款
內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。
更多Software Development技能

Playground
anthropics
建立自成一體的互動式 HTML 遊樂場,包含控制項、即時預覽與可複製的提示詞輸出。

M5 Onboard
anthropics
透過 USB 偵測 M5Stack ESP32 開發板,燒錄 UIFlow 2.0 韌體並安裝 MicroPython 應用程式套件。

Cardputer Buddy
anthropics
指導迭代 Cardputer-Adv 的 MicroPython 應用程式套件:新增應用程式、透過 USB 序列埠推送檔案、查看日誌並執行 REPL 指令。

Web Design Guidelines
vercel-labs
依據從遠端來源取得的 Web Interface Guidelines 審查 UI 程式碼,並以 file:line 形式回報問題。

Vercel React Native Skills
vercel-labs
React Native 與 Expo 最佳實務規則,涵蓋清單效能、動畫、導覽、UI 模式、狀態與 monorepo 設定。

Vercel React Best Practices
vercel-labs
Vercel 的 React 與 Next.js 效能指南,以 70 條規則的形式用於撰寫、審查與重構程式碼。