
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 条规则的形式用于编写、审查和重构代码。